{"id":"MAL-2026-11515","summary":"Malicious code in @zzzgenesis00/bip39-generator (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4029e4462d0c27bbfd619024ba7311a0ecefef1ce551dba08ea57e920047e246)\nPackage @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.\n\n## Source: ossf-package-analysis (5cd50fa982c125844b76d3527f878bd6a171b497e86fd7cbcccfc56d22000da4)\nThe OpenSSF Package Analysis project identified '@zzzgenesis00/bip39-generator' @ 3.1.2 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n","modified":"2026-08-04T22:04:52.338695707Z","published":"2026-08-04T02:25:51Z","database_specific":{"malicious-packages-origins":[{"sha256":"5cd50fa982c125844b76d3527f878bd6a171b497e86fd7cbcccfc56d22000da4","source":"ossf-package-analysis","versions":["3.1.2"],"import_time":"2026-08-04T04:37:26.121568622Z","modified_time":"2026-08-04T02:25:51Z"},{"source":"amazon-inspector","versions":["3.1.2"],"id":"IN-MAL-2026-010999","import_time":"2026-08-04T21:33:12.978249241Z","modified_time":"2026-08-04T21:17:40Z","sha256":"4029e4462d0c27bbfd619024ba7311a0ecefef1ce551dba08ea57e920047e246"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@zzzgenesis00/bip39-generator/v/3.1.2"}],"affected":[{"package":{"name":"@zzzgenesis00/bip39-generator","ecosystem":"npm","purl":"pkg:npm/%40zzzgenesis00/bip39-generator"},"versions":["3.1.2"],"database_specific":{"indicators":{"evidence_files":[{"tlsh":"1cd1959612e603286852f9ae879f10242b32d5033c18fbf67ecc07564f4e52c9ab57a8","path":"postinstall.js","sha256":"6902f69f1224216a62a7d77bc962785330d3c852a8f1d4299c754fb63444bc67"},{"sha256":"f4d9d2a786e24570410e6d8fb0f06320bb4246d42c3e7f09f7b26927f4117b50","tlsh":"76012b60c5506e330ae82b909c66509766764c978804bc3e23db011de7cd5ab06fe1bc","path":"package.json"}],"package_integrity":[{"hashes":{"sha512_sri":"sha512-ys1u5R5WUD3yWAB+yUVRzb/aQNSpJ3V7OrKgdz71P8Pf3bNYDJeCDS/Jxlyojr0pwx4LrFIwr93Mds5Q//yJvg==","sha1":"a227d0933d2862c7b98ec8b65ceb9e5087864872"},"filename":"bip39-generator-3.1.2.tgz"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@zzzgenesis00/bip39-generator/MAL-2026-11515.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}]}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}