Malicious code in @zzzgenesis00/bip39-generator (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-11515
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (4029e4462d0c27bbfd619024ba7311a0ecefef1ce551dba08ea57e920047e246) Package @zzzgenesis00/bip39-generator impersonates the bitcoinjs project (author field set to 'bitcoinjs', repo URL pointing at github.com/bitcoinjs/bip39-generator) while publishing under an unrelated scope. The package.json declares a postinstall hook that runs postinstall.js, which on `npm install` collects installer-owned secrets: contents of ~/.ssh (private key material), ~/.npmrc, ~/.gitconfig, presence of wallet directories for MetaMask, Exodus, Electrum, Bitcoin, Ethereum, Solana, and Ledger, Chrome and Firefox profile artifacts (Cookies, Login Data, key4.db), output of `npm whoami` and `git config`, and a curated set of credential env vars including NPM_TOKEN, AWS_*, GITHUB_TOKEN, *_PRIVATE_KEY, MNEMONIC, and SEED_PHRASE. The collected profile is transmitted over HTTPS to the Telegram Bot API using a hardcoded bot token and chat id, and additionally POSTed to 40f955f39128bd79-178-249-214-24.serveousercontent.com/collect, a serveo.net reverse-tunnel host. Execution is delayed by a randomized setTimeout (1500 + Math.random()*2000 ms) and uses scrambled identifiers (_zfg, _jam, _xwl, _tk, _ch, _co, _ex) to reduce scanner visibility. ## Source: ossf-package-analysis (5cd50fa982c125844b76d3527f878bd6a171b497e86fd7cbcccfc56d22000da4) The OpenSSF Package Analysis project identified '@zzzgenesis00/bip39-generator' @ 3.1.2 (npm) as malicious. It is considered malicious because: - The package communicates with a domain associated with malicious activity.
- Source published
- 4 Aug 2026 02:25:51 UTC
- Source modified
- 4 Aug 2026 22:04:52 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.