npm · Malicious package advisory
Malware@wagni_bot/web3-toolkit
MAL-2026-10037
Malicious code in @wagni_bot/web3-toolkit (npm)
Details
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (0a07053ee42572578f0fbeab5c9c8551fd2937f1126bc9c71c37546dfdf19edd) The package installs a postinstall.js payload wired to both preinstall and postinstall lifecycle hooks (and to main), so it runs automatically on `npm install`. On execution it walks the user's home directory and OS-specific paths and reads files matching wallet, keystore, seed, mnemonic, and credential patterns — including.env, ~/.npmrc, ~/.aws/credentials, ~/.ssh/id_*, ~/.git-credentials, ~/.netrc, Solana id.json/keypair.json, Ethereum keystores, and browser wallet extension storage for MetaMask (nkbihfbeogaeaoehlefnkodbefgpgknn), Phantom, and similar extensions. It also scans.txt/.md/.rtf/.csv files across Desktop, Documents, and Downloads (including localized directory names), matches contents against an embedded BIP-39 wordlist to detect seed-phrase backups, and POSTs matching file contents plus host/user identifiers (os.hostname(), os.userInfo(), os.homedir()) over plain HTTP to a hardcoded remote endpoint at http://107.161.90.180:7777. The package.json description is empty and the package ships no legitimate functionality; the web3-themed scoped name is a lure targeting crypto developers.
Compromised versions (2)
- 1.2.0
- 1.0.0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.