{"id":"MAL-2026-12113","revision":"c439419a213742b38850da03fec425a5","records":[{"revision":"c439419a213742b38850da03fec425a5","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12113","aliases":[],"title":"Malicious code in python-bitcoinlib (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (cfb9c83260c4fb83a678636e1e1c028f2aff3e3c0a0ac13728cfa2056a13389f)\nThis npm package, published under the well-known PyPI name `python-bitcoinlib`, ships a `postinstall.js` lifecycle script that runs automatically on `npm install`. The script reads classic installer secret paths including `~/.ssh/id_rsa`, `~/.aws/credentials`, `~/.npmrc`, `.env` files, and Solana/Ethereum wallet keystores (`~/.config/solana/id.json`), and additionally walks dotdirs under $HOME for files whose names match wallet/key/secret/seed/mnemonic/keystore/private patterns. The collected file contents, together with `os.hostname()` and `os.userInfo()`, are POSTed via `https.request` to a hardcoded webhook.site collector at `https://webhook.site/5c5ad6cb-62df-4ea5-9dfb-2c447920ddc4`. The package name collides with the established PyPI `python-bitcoinlib` project but ships unrelated code on npm, indicating deliberate ecosystem-confusion typosquatting rather than a legitimate port.\n","state":0,"publishedAt":"2026-08-05T06:18:23+00:00","modifiedAt":"2026-08-05T07:21:24.3360099+00:00","affected":[{"ecosystem":"npm","name":"python-bitcoinlib","ranges":[],"versions":["1.0.3","1.0.1","1.0.0","1.0.2"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/python-bitcoinlib/v/1.0.3","https://www.npmjs.com/package/python-bitcoinlib/v/1.0.1","https://www.npmjs.com/package/python-bitcoinlib/v/1.0.0","https://www.npmjs.com/package/python-bitcoinlib/v/1.0.2"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12113","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12113","identifiers":["MAL-2026-12113"]},"retained":false,"historicalAffected":[]}],"coverage":[]}