npm · Malicious package advisory
Malwaredotenvv-tool
MAL-2026-3758
Malicious code in dotenvv-tool (npm)
Details
---
_-= Per source details. Do not edit below this line.=-_
## Source: amazon-inspector (79fd33c6e511ab11f10b1dae91e2f083f486dd020bbf2dca5256eabc904f61b7)
Package name `dotenvv-tool` impersonates the popular `dotenv` package; index.js is an admitted dummy stub ("The real payload is in postinstall.js"). The `postinstall` lifecycle script runs on `npm install` and performs wholesale harvesting of installer-owned secrets: reads `~/.npmrc` (npm publish token), `~/.env` (API keys, DB URLs, cloud credentials), and `~/.git-credentials`; enumerates Chrome/Brave/Edge/Chromium/Vivaldi/Opera profile directories for 71 hardcoded crypto-wallet extension IDs (MetaMask, Phantom, Coinbase Wallet, Ledger, Trezor, etc.) and reads their LevelDB `.log` files for vault/mnemonic/privateKey/password patterns; scans `~/Documents`, `~/Desktop`, `~/Downloads` for files matching BIP-39 seed-phrase patterns; collects `os.hostname()` and `os.userInfo()`; and POSTs the bundle over plaintext HTTP to a hardcoded bare-IP endpoint at `http://149.28.127.35:8888` (postinstall.js line 7, with `process.env.C2_URL` override to let the operator retarget exfiltration without republishing). Author-written header comment self-describes the file as "Token harvester + Crypto wallet scanner / Runs on npm install. Silent. Zero trace."
Compromised versions (5)
- 2.0.0
- 1.0.2
- 1.0.4
- 1.0.5
- 1.0.3
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.