{"id":"MAL-2026-12118","revision":"6bc49a4cb83448149ea665833956f7e2","records":[{"revision":"6bc49a4cb83448149ea665833956f7e2","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12118","aliases":[],"title":"Malicious code in @zzzgenesis00/bitcoin-lib (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (742be73b4f635f669a2c8191ddc90c46150e9d92ca432e5045c570fc0163f439)\n@zzzgenesis00/bitcoin-lib 6.1.7 runs a postinstall.js at npm install time that harvests installer-owned secrets and exfiltrates them to attacker-controlled destinations. The script enumerates ~/.ssh, reads ~/.npmrc and ~/.gitconfig, inventories Chrome/Firefox cookie and login stores, scans cryptocurrency wallet directories (.bitcoin,.ethereum,.metamask, Exodus, Electrum, and others), and captures a curated list of credential-shaped environment variables including NPM_TOKEN, NODE_AUTH_TOKEN, GITHUB_TOKEN, AWS_*, *_PRIVATE_KEY, MNEMONIC, and SEED_PHRASE. Collected data is JSON-serialized and sent, after a short setTimeout delay, via GET to api.telegram.org/bot<TOKEN>/sendMessage with a hardcoded chat_id and via POST /collect to 40f955f39128bd79-178-249-214-24.serveousercontent.com. The package.json falsely attributes authorship to 'bitcoinjs' and points the repository at github.com/bitcoinjs/bitcoin-lib, impersonating the well-known bitcoinjs organization while shipping under the unrelated @zzzgenesis00 scope.\n","state":0,"publishedAt":"2026-08-05T08:43:51+00:00","modifiedAt":"2026-08-05T10:05:37.6265731+00:00","affected":[{"ecosystem":"npm","name":"@zzzgenesis00/bitcoin-lib","ranges":[],"versions":["6.1.7"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@zzzgenesis00/bitcoin-lib/v/6.1.7"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12118","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12118","identifiers":["MAL-2026-12118"]},"retained":false,"historicalAffected":[]}],"coverage":[]}