{"id":"MAL-2026-12030","revision":"f762b524c4e14c03bbff0cbf50f0554d","records":[{"revision":"f762b524c4e14c03bbff0cbf50f0554d","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12030","aliases":[],"title":"Malicious code in @zzzgenesis00/bip39-mnemonic (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (7f370f7bfdab3817c323daee33d8de48e5171c41dad3f1bff2f1335e04a65060)\nPackage impersonates the bitcoinjs/bip39 project (author field set to 'bitcoinjs-lib') and ships a postinstall.js that runs on `npm install`. The script collects host/user identifiers and a curated list of sensitive environment variables (including NPM_TOKEN, NODE_AUTH_TOKEN, GITHUB_TOKEN, AWS_* keys, and wallet-related PRIVATE_KEY/MNEMONIC/SEED_PHRASE), enumerates ~/.ssh, reads ~/.npmrc and ~/.gitconfig, probes Chrome/Firefox profile artifacts and crypto wallet directories, and shells out to `npm whoami` and `git config`. The collected JSON is transmitted to two hardcoded destinations: the Telegram Bot API (bot token and chat_id 7231970337 embedded in the script) and a POST to 40f955f39128bd79-178-249-214-24.serveousercontent.com/collect. Exfiltration is delayed by a randomized setTimeout (1500 + rand*2000 ms) and the module re-exports./index.js to appear legitimate.\n","state":0,"publishedAt":"2026-08-05T00:53:35+00:00","modifiedAt":"2026-08-05T01:49:45.1378579+00:00","affected":[{"ecosystem":"npm","name":"@zzzgenesis00/bip39-mnemonic","ranges":[],"versions":["2.3.1"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@zzzgenesis00/bip39-mnemonic/v/2.3.1"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12030","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12030","identifiers":["MAL-2026-12030"]},"retained":false,"historicalAffected":[]}],"coverage":[]}