OpenSSF/OSV advisory MAL-2026-6100 confirms this npm version as malicious. 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...
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in string-tools-be6c (npm)
Details
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.
## Source: ghsa-malware (c3354cd2bf560462cd49d85f56db444163db078aba1c0b9b2e468cb0a123a29c) 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.
Decision reason
OpenSSF Malicious Packages via OSV confirms string-tools-be6c@1.0.0 as malicious (MAL-2026-6100): Malicious code in string-tools-be6c (npm)