MAL-2026-5757
Dashboard / Malicious Package / MAL-2026-5757
MAL-2026-5757
Summary: Malicious code in npm-sandbox-ping-c8f2a (npm)
Details: Source: amazon-inspector (f5401a81d56283c310efebfe29af19c3e3fa331667f40adeed71a54627adc877) Package declares a postinstall hook (`"postinstall": "node run.js"` in package.json) that executes on every install. Bundled scripts beacon6.js and beacon_linux.js use `require('child_process')` to gather host identity (`whoami`, `os.hostname()`, `os.platform()`) and POST the collected data to a remote HTTP endpoint via `http.request(...)`. The package name `npm-sandbox-ping-c8f2a` and the beacon-style file naming together with no legitimate library functionality indicate the install-time goal is host fingerprinting / callback to an attacker-controlled destination, not any documented purpose. Installing this package automatically transmits installer machine identity off-host. Source: ghsa-malware (38def903f941c683b93a1cc92c9f3f9e2a11dfeaf811b080725b18cf886a3a8f) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
References: https://www.npmjs.com/package/npm-sandbox-ping-c8f2a/v/1.0.0, https://github.com/advisories/GHSA-w249-c3rp-ffwq
Affected packages
Package
Name: npm-sandbox-ping-c8f2a
Purl: pkg:npm/npm-sandbox-ping-c8f2a
Affected ranges
Type: SEMVER
Events:
