npm-sandbox-research-8b2fnpm
Malicious code in npm-sandbox-research-8b2f (npm) Remove it immediately and rotate any exposed credentials.
What this malware does
On install, package.json runs postinstall: node run.js, which loads beacon scripts (beacon8.js, beacon_linux.js) that import child_process, os, and http, gather host identity (output of whoami, os.hostname(), os.platform()), and POST the collected data to a hardcoded HTTP endpoint via http.request(...). This fires automatically on npm install, providing attacker-controlled reconnaissance of every installer host with no user interaction. The behavior — privileged shell command execution, host identity collection, and outbound HTTP POST from a postinstall hook — matches the active-attack reconnaissance/beacon fingerprint.
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