npm-sandbox-ping-c8f2anpm
Malicious code in npm-sandbox-ping-c8f2a (npm) Remove it immediately and rotate any exposed credentials.
What this malware does
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.
Malicious versions
Indicators of compromise (SHA-256)
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Scan your dependencies
O3 Security blocks malicious packages like this at install time and in CI.
Supply-chain protection