string-tools-be6cnpm
Malicious code in string-tools-be6c (npm) Remove it immediately and rotate any exposed credentials.
What this malware does
Package ships a postinstall lifecycle hook (node run.js) that runs automatically on npm install. The executed script imports os, https, http, and child_process, reads host identifiers via os.hostname() and os.platform(), and issues outbound HTTP/HTTPS POST requests. This combination — install-time auto-execution + host-identity collection + outbound POSTs + child_process — is the canonical install-time host-beacon / dropper shape. The package name (string-tools-be6c) is a generic-name + random-hex-suffix pattern characteristic of throwaway supply-chain attack publications with no legitimate utility matching the observed runtime behavior.
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