MAL-2026-12113 Malicious code in python-bitcoinlib (npm)
Malicious package
Published
MAL-2026-12113 is a malicious package: python-bitcoinlib (npm). Every version was published to cause harm.
Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.
Reference: https://insights.sbomify.com/MAL-2026-12113/ (Markdown: https://insights.sbomify.com/MAL-2026-12113/index.md)
- Package
- python-bitcoinlib
- Registry
- npm
What is MAL-2026-12113?
MAL-2026-12113 is a malicious package in python-bitcoinlib, published on 5 Aug 2026.
Official description
This 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.What should I do about MAL-2026-12113?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.