mnemonic-utils@1.0.1
Malicious code in mnemonic-utils (npm)
Analysis
The postinstall hook (postinstall.js) runs on install and harvests the victim's credentials and crypto wallets. It reads ~/.env, ~/.env.local, ~/.env.production, ~/.npmrc, ~/.aws/credentials, ~/.ssh/id_rsa, ~/.ssh/id_ed25519, ~/.ssh/id_ecdsa, ~/.config/solana/id.json, and ~/.ethereum/keystore, then recursively scans every dot-directory in the home folder for files whose names match wallet, key, secret, seed, mnemonic, keystore, or private, or that end in .json or .pem (files under 50KB). It bundles these contents together with the hostname and username and POSTs them as JSON to hxxps://webhook[.]site/5c5ad6cb-62df-4ea5-9dfb-2c447920ddc4. This exfiltrates SSH private keys, cloud credentials, npm tokens, and Solana/Ethereum wallet keys to a third-party webhook endpoint.
- analyzed by
- Leitwacht
- first seen
- Aug 5, 2026, 02:05 AM
- analyzed
- Aug 5, 2026, 02:06 AM
Related advisories
- emulative@1.0.1
- stellarfixer@1.0.0
- simple-date-formatter-new-4@1.0.0
- simple-date-formatter-util-15@1.0.0
- simple-date-formatter-util-14@1.0.0
- simple-date-formatter-util-13@1.0.0
- simple-date-formatter-util-8@1.0.0
- simple-date-formatter-util-7@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.