LWA-2026-10082 MAL-2026-12112 ↗ confirmed malware

mnemonic-utils@1.0.1

Malicious code in mnemonic-utils (npm)

T1059.007 · JavaScriptT1552.001 · Credentials In FilesT1082 · System Information DiscoveryT1005 · Data from Local SystemT1041 · Exfiltration Over C2 ChannelT1071.001 · Web Protocols

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

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.