metrics-probe-f256npm
Malicious code in metrics-probe-f256 (npm) Remove it immediately and rotate any exposed credentials.
What this malware does
Package declares a postinstall lifecycle hook ("postinstall": "node run.js" in package.json) that executes run.js automatically on npm install. run.js imports child_process, os, https, and http; reads host identifiers via os.hostname() and os.platform() (run.js:194-195); and issues outbound POST requests (run.js:62, 63, 265) along with a GET (run.js:48). The shape — automatic install-time execution combined with host enumeration and outbound HTTP exfiltration primitives — matches the install-time host-reconnaissance / beacon pattern. The package name (metrics-probe-f256, with a random hex suffix) has no documented purpose consistent with running child processes and shipping host data outbound at install time.
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.
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