pypi · Malicious package advisory
Malwarebitcoinlib-dev
GHSA-xghh-wmw4-rp87
Malicious code in bitcoinlib-dev (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 0.4.16` ## Source: kam193 (a198ee5e2df9c67dcbd24ed19a8fec5d462bbb3c0eb474cf00cd299e75074ef5) It overwrites the 'clw' command from legit bitconinlib package and attempts to exfiltrate its database on the usage. As a context, it appears to be created to lure users seeking for help with the bitconinlib package: https://github.com/1200wd/bitcoinlib/issues/455#issuecomment-2764513104 --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2025-03-bitcoinlibdbfix Reasons (based on the campaign): - files-exfiltration - crypto-related - action-hidden-in-lib-usage - exfiltration-crypto --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/bitcoinlib-dev/MAL-2025-3436.json)) **References:** - https://github.com/1200wd/bitcoinlib/issues/455#issuecomment-2764513104 - https://bad-packages.kam193.eu/pypi/package/bitcoinlib-dev - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/bitcoinlib-dev/MAL-2025-3436.json - https://security.snyk.io/vuln/SNYK-PYTHON-BITCOINLIBDEV-9667327 - https://www.reversinglabs.com/blog/malicious-python-packages-target-popular-bitcoin-library - https://github.com/advisories/GHSA-xghh-wmw4-rp87
Compromised versions (1)
- = 0.4.16
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.