MAL-2026-16137 Malicious code in cr-bot-common (npm)
Malicious package
Published
MAL-2026-16137 is a malicious package: cr-bot-common (npm). Every version was published to cause harm.
Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.
Reference: https://insights.sbomify.com/MAL-2026-16137/ (Markdown: https://insights.sbomify.com/MAL-2026-16137/index.md)
- Package
- cr-bot-common
- Registry
- npm
What is MAL-2026-16137?
MAL-2026-16137 is a malicious package in cr-bot-common, published on 11 Sep 2026.
Official description
preinstall.js and postinstall.js execute automatically on npm install. preinstall.js reads.env files from the current and parent directories, walks the working directory and home directory for files matching *.key, *.pem, id_rsa, id_ed25519, wallet.json, keystore.json, and mnemonic.txt, collects process.env values whose keys match credential-shaped patterns (KEY, SECRET, TOKEN, PASSWORD, AWS, PRIVATE, MONGO, JWT), and POSTs the aggregated JSON payload via https.request to https://attacker.com/collect. postinstall.js additionally captures hostname, user, uid/gid, cloud/container context (Docker, Kubernetes, AWS, GCP, Azure), and reads file contents from /root, /home, and /opt matching key/pem/mnemonic/wallet/keystore/secret, then POSTs to https://attacker.com/exfiltrate. A source comment states "Stealth: masquerade as legitimate operation" while a benign-looking "[@cr-bot/common] Checking environment…" message is printed and network errors are silently swallowed.
What should I do about MAL-2026-16137?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.