Hackers Exploit Bitcoinlib Users with Fake PyPI Packages, Stealing Wallets in Sophisticated Attack
April 18, 2025
In April 2025, hackers targeted Bitcoinlib users through typosquatting, uploading fake packages to the Python Package Index (PyPI), which developers use to download libraries.
Once the malware was installed, it allowed hackers to access victims' Bitcoin wallets and transfer funds, with little chance for recovery due to the irreversibility of Bitcoin transactions.
Bitcoinlib is an open-source Python library that simplifies Bitcoin development, allowing users to create wallets, manage transactions, and build applications that interact with the Bitcoin blockchain.
The malicious packages, named 'bitcoinlibdbfix' and 'bitcoinlib-dev', were designed to look like legitimate updates, tricking developers into downloading them.
Once installed, these fake packages contained wallet-draining malware that replaced a legitimate command-line tool with a malicious version, enabling hackers to steal sensitive data like private keys and wallet addresses.
ReversingLabs' 2025 Software Supply Chain Security Report noted a rise in attacks on crypto infrastructure, emphasizing the need for vigilance among developers.
The attack highlighted the vulnerability of open-source platforms and the increasing sophistication of software supply chain attacks, particularly in the cryptocurrency sector.
This incident underscores the importance of vigilance among developers, especially new ones who may be more susceptible to scams.
Security researchers successfully identified the malware through machine learning, limiting the damage and alerting the community.
The Bitcoinlib incident exemplifies the risks associated with relying on community oversight in open-source projects and the importance of verifying package authenticity before downloading.
To protect against similar hacks, users are advised to double-check package names, use trusted sources, keep software updated, employ antivirus protection, and securely store private keys.
For newcomers to cryptocurrency, the attack serves as a reminder to stay cautious and informed about potential scams while exploring development tools like Bitcoinlib.
Summary based on 2 sources
Get a daily email with more Crypto stories
Sources

Cointelegraph • Apr 18, 2025
Cointelegraph Bitcoin & Ethereum Blockchain News
Cointelegraph • Apr 18, 2025
What is Bitcoinlib, and how did hackers target it?