Malicious Python Packages Target Crypto Wallets in Sophisticated Supply Chain Attack

April 7, 2025
Malicious Python Packages Target Crypto Wallets in Sophisticated Supply Chain Attack
  • This incident is part of a broader trend of targeted supply chain compromises in the cryptocurrency sector, which saw nearly two dozen similar attacks throughout 2024.

  • The attack was detected by ReversingLabs' Spectra platform, which utilizes advanced machine learning algorithms to analyze software behavior and identify novel malware.

  • Recently, two malicious Python packages, bitcoinlibdbfix and bitcoinlib-dev, were uploaded to the Python Package Index (PyPI), aiming to exfiltrate sensitive database files.

  • These packages were designed to overwrite the legitimate command-line tool 'clw' with compromised code, enabling attackers to intercept commands related to cryptocurrency wallet management.

  • The attackers employed social engineering tactics, marketing these malicious packages as fixes for a fictitious 'ValueError' related to old database versions.

  • Following their detection, all three malicious packages, including a third package aimed at compromising WooCommerce stores, were quickly removed from PyPI to prevent further distribution.

  • Statistics revealed that bitcoinlibdbfix was downloaded 1,101 times, bitcoinlib-dev 735 times, and the malicious disgrasya package accumulated a staggering 37,217 downloads before its removal.

  • The external server used by the attackers to receive stolen data was identified as 'railgunmisaka.com', indicating a sophisticated operation capable of integrating into larger automation frameworks.

  • Exfiltrated data from these attacks is sent to servers controlled by the attackers, raising significant security concerns for cryptocurrency developers and users alike.

  • In the broader context, carding refers to the automated testing of stolen credit card information against payment systems, highlighting the ongoing issue of automated transaction abuse.

  • The bitcoinlib library, which is essential for developers working with crypto wallets and blockchain networks, became a prime target due to its widespread use.

  • As attackers evolve their tactics, the use of AI and machine learning for threat detection is becoming increasingly crucial to protect against such sophisticated threats.

Summary based on 4 sources


Get a daily email with more Crypto stories

More Stories