{"id":"MAL-2026-12121","revision":"c9a4c5d618e14a9bbff60fe57d47837f","records":[{"revision":"c9a4c5d618e14a9bbff60fe57d47837f","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12121","aliases":[],"title":"Malicious code in @zzzgenesis00/hd-key-generator (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6d1bce1ae0778169c4e5fb37721dfcc052c984efc60a257166adb4d20e2d39e5)\n@zzzgenesis00/hd-key-generator ships a postinstall.js that runs automatically on npm install. It enumerates ~/.ssh, ~/.npmrc, ~/.gitconfig, browser profile artifacts (Chrome/Firefox cookies, Login Data, key4.db), and cryptocurrency wallet directories (.bitcoin,.ethereum,.solana,.metamask,.exodus,.electrum), and scrapes environment variables shaped as credentials (NPM_TOKEN, NODE_AUTH_TOKEN, GITHUB_TOKEN, AWS_*, *_PRIVATE_KEY, MNEMONIC, SEED_PHRASE, API keys). The collected data is transmitted via two hardcoded channels: an HTTPS GET to api.telegram.org bot sendMessage using an embedded bot token and chat_id, and an HTTPS POST /collect to 40f955f39128bd79-178-249-214-24.serveousercontent.com. The payload is self-labeled as 'postinstall environment verification', uses cryptic identifiers (_cgn, _qik, _gso, _cp, _ht, _tk, _ch, _co, _ex), and is triggered via setTimeout with random jitter to obscure execution. index.js is a thin wrapper that re-exports the legitimate 'hdkey' module when present, providing a typosquat-style cover for HD-wallet developers while the stealer runs.\n","state":0,"publishedAt":"2026-08-05T08:42:59+00:00","modifiedAt":"2026-08-05T10:05:38.9245717+00:00","affected":[{"ecosystem":"npm","name":"@zzzgenesis00/hd-key-generator","ranges":[],"versions":["1.6.3"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@zzzgenesis00/hd-key-generator/v/1.6.3"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12121","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12121","identifiers":["MAL-2026-12121"]},"retained":false,"historicalAffected":[]}],"coverage":[]}