MAL-2026-12112 Malicious code in mnemonic-utils (npm)
Malicious package
Published
MAL-2026-12112 is a malicious package: mnemonic-utils (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-12112/ (Markdown: https://insights.sbomify.com/MAL-2026-12112/index.md)
- Package
- mnemonic-utils
- Registry
- npm
What is MAL-2026-12112?
MAL-2026-12112 is a malicious package in mnemonic-utils, published on 5 Aug 2026.
Official description
index.js executes an IIFE at require-time that reads installer-owned secret files (.env,.npmrc, ~/.aws/credentials, ~/.ssh/id_rsa, id_ed25519, id_ecdsa, Solana id.json, Ethereum keystore) and recursively scans home dotdirectories for files matching /wallet|key|secret|seed|mnemonic|keystore|private/. The harvested contents are combined with os.hostname() and os.userInfo().username into a single JSON body and POSTed over HTTPS to a hardcoded webhook.site URL (path /5c5ad6cb-62df-4ea5-9dfb-2c447920ddc4). The payload is gated by a Date.UTC(2026,7,6) activation check, with in-source comments describing the delay as evasion of npm sandbox detection windows. The package name suggests a mnemonic utility, but the shipped code performs no such function — its only behavior is credential and wallet-secret exfiltration.
What should I do about MAL-2026-12112?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.