📈 Get daily crypto insights that make you smarter about your money

PyPI Supply Chain Attack: Fake Crypto Wallet Recovery Tools Found Stealing Private Keys and Mnemonic Phrases

A sophisticated supply chain attack targeting cryptocurrency users has been uncovered in the Python Package Index (PyPI) repository, where ten malicious packages masqueraded as wallet recovery and management utilities. Discovered by cybersecurity researchers at Checkmarx, the campaign specifically targeted users of major cryptocurrency wallets including MetaMask, Trust Wallet, Exodus, Atomic Wallet, Ronin, TronLink, and Phantom. As Bitcoin trades around $60,759 and Ethereum hovers near $2,350, the attack underscores the persistent threats facing crypto holders who rely on open-source software tools.

The Exploit Mechanics

The threat actor behind this campaign demonstrated a notably sophisticated approach to social engineering and code obfuscation. Ten packages were uploaded to PyPI with names carefully designed to attract developers and users in the cryptocurrency ecosystem: atomicdecoderss (366 downloads), trondecoderss (240 downloads), phantomdecoderss (449 downloads), trustdecoderss (466 downloads), exodusdecoderss (422 downloads), walletdecoderss (232 downloads), ccl-localstoragerss (335 downloads), exodushcates (415 downloads), cipherbcryptors (450 downloads), and ccl_leveldbases (407 downloads).

According to Checkmarx researcher Yehuda Gelb, the packages presented themselves as utilities for extracting mnemonic phrases and decrypting wallet data, appearing to offer valuable functionality for cryptocurrency users engaged in wallet recovery or management. However, they harbored hidden functionality designed to steal private keys, mnemonic phrases, transaction histories, and wallet balances.

Six of the identified packages included a dependency called cipherbcryptors to execute the malicious payload, while others relied on an additional package named ccl_leveldbases to obfuscate their true purpose. A notable aspect of the operation is that the malicious functionality was triggered only when certain functions were called — a departure from the typical pattern where such behavior activates automatically upon installation.

Affected Systems

The attack targeted a broad range of cryptocurrency wallets across multiple blockchain ecosystems. Users of Atomic Wallet, Trust Wallet, MetaMask, Ronin, TronLink, Exodus, and Phantom were all in the crosshairs. Each package attracted hundreds of downloads before being identified and removed, meaning potentially thousands of users were exposed to the threat.

The threat actor also manipulated download statistics displayed on PyPI, giving users the false impression that the packages were popular and widely trusted. Package descriptions included installation instructions, usage examples, and in one case even best practices for virtual environments — all designed to build credibility and reduce suspicion.

The Mitigation Strategy

What makes this attack particularly difficult to detect is the use of a dead drop resolver technique, classified as MITRE T1102/001. Rather than hard-coding the command and control server address within the packages, the attacker retrieved this information dynamically from external resources. This approach provides operational flexibility — the attacker can update server information without pushing package updates and can easily switch infrastructure if servers are taken down.

The captured data, including private keys and mnemonic phrases, was exfiltrated to a remote server controlled by the attacker. With this information, an attacker could gain full access to victim wallets and drain funds at any time.

Lessons Learned

This incident highlights several critical security principles for the cryptocurrency community. First, supply chain attacks targeting open-source repositories represent a growing threat vector that requires constant vigilance. The trust placed in package managers like PyPI is being systematically exploited by threat actors who invest significant effort in making malicious packages appear legitimate.

Second, the use of dead drop resolvers and delayed execution represents an evolution in attack sophistication that makes detection more challenging. Traditional security tools that scan for malicious behavior at installation time may miss threats that activate only when specific functions are called.

Third, the crypto community must develop better practices for verifying the authenticity of software tools. This includes verifying package maintainers, checking for typosquatting, reviewing source code when possible, and using virtual environments to limit the blast radius of compromised packages.

User Action Required

If you have installed any of the ten identified packages, take immediate action. Move your funds to a new wallet with a fresh seed phrase generated on a clean device. Scan your system for any additional malware that may have been installed as a secondary payload. Report the incident to relevant authorities and consider using hardware wallets for storing significant cryptocurrency holdings. Always verify package names carefully before installation and prefer official wallet recovery tools provided directly by wallet developers. With Bitcoin valued at over $60,000, the stakes of poor operational security have never been higher.

Disclaimer: This article is for informational purposes only and does not constitute financial or security advice. Always conduct your own research and consult with security professionals regarding threat mitigation.

🌱 FOR BUSINESSES BitcoinsNews.com
Reach 100K+ Crypto Readers
Sponsored content, press releases, banner ads, and newsletter placements. Put your brand in front of Bitcoin's most engaged audience.

23 thoughts on “PyPI Supply Chain Attack: Fake Crypto Wallet Recovery Tools Found Stealing Private Keys and Mnemonic Phrases”

  1. requirements_txt

    trustdecoderss got 466 downloads before anyone noticed. PyPI has 500K packages and no automated name heuristics. the review process is a joke

    1. requirements_txt the scariest part is the exfil was completely silent. no errors, no warnings. your seed phrase just leaves and you never know

    2. requirements_txt PyPI having 500K packages and no automated name heuristics is the real scandal. npm fixed this after event-stream in 2018. python ecosystem learned nothing

  2. walletdecoderss got 232 downloads and trustdecoderss got 466. even one successful seed phrase theft from those numbers is devastating

    1. Priti N. exactly, 232 downloads is enough to ruin dozens of lives. these packages had realistic names too, not obvious typosquats

  3. trustdecoderss got 466 downloads and nobody at PyPI flagged the naming pattern. these werent even clever typosquats, just wallet names with ss appended

  4. 466 downloads for trustdecoderss and nobody noticed until Checkmarx flagged it. supply chain attacks are terrifyingly effective

    1. stealing mnemonic phrases through a fake python package is brutalll. low effort high reward for the attacker

    2. pypi_victim 466 downloads for trustdecoderss alone. Checkmarx found 10 packages but ReversingLabs found 6 more last month. the real number is probably 30+

    3. ten packages with names like trustdecoderss and nobody at pypi thought to flag the naming pattern. the review process is basically nonexistent

      1. flask_dev PyPI has no idea how many more are sitting unpublished right now. Checkmarx found 10, imagine the ones nobody is looking for

      2. pkg_maintainer

        pypi has like 500K packages and maybe 5 people reviewing. the scale makes manual review impossible, they need automated heuristics for suspicious names

        1. pkg_maintainer npm added mandatory 2FA after event-stream in 2018. PyPI in 2024 still lets anyone publish with email verification only. 500K packages and zero automated name heuristics

          1. segfault_ npm added mandatory 2FA after event-stream and PyPI in 2024 still only requires email verification. 500K packages with zero automated heuristics is asking for this

  5. pip install should have better warnings for new packages with zero maintainers. this is a platform level problem not just user error

    1. the hardest part is these names look totally reasonable if you are searching for wallet recovery tools. social engineering at its finest

  6. 10 malicious packages targeting MetaMask Phantom and Trust Wallet users. the silent seed exfiltration with zero console errors is what makes these scary. no warning at all

  7. Checkmarx found 10 packages. how many more are sitting there undiscovered. npm had the same issue with event-stream in 2018

    1. dep_tree_rat event-stream was the blueprint and nobody in python land paid attention. the npm registry at least added 2FA requirements. PyPI still lets anyone publish with an email verification

  8. the mnemonic phrase exfiltration is the scariest part. once your seed hits a remote server your wallet is drained in minutes with zero recourse

    1. cold_wallet_ the scary part is the exfil was silent. no console errors, no weird behavior. just your seed phrase gone

  9. Checkmarx found 10 packages. ReversingLabs found 6 more last month. the PyPI problem is way bigger than any single report

Leave a Comment

Your email address will not be published. Required fields are marked *

BTC$64,742.00-0.3%ETH$1,912.49-0.2%SOL$75.92+1.9%BNB$601.04+1.3%XRP$1.04+0.3%ADA$0.1977-1.5%DOGE$0.0700-0.3%DOT$0.8110-1.2%AVAX$6.46-1.2%LINK$8.29+0.3%UNI$3.97-1.1%ATOM$1.38+0.6%LTC$45.97+1.0%ARB$0.0781-0.9%NEAR$1.62+1.0%FIL$0.7114+2.4%SUI$0.6915+1.6%BTC$64,742.00-0.3%ETH$1,912.49-0.2%SOL$75.92+1.9%BNB$601.04+1.3%XRP$1.04+0.3%ADA$0.1977-1.5%DOGE$0.0700-0.3%DOT$0.8110-1.2%AVAX$6.46-1.2%LINK$8.29+0.3%UNI$3.97-1.1%ATOM$1.38+0.6%LTC$45.97+1.0%ARB$0.0781-0.9%NEAR$1.62+1.0%FIL$0.7114+2.4%SUI$0.6915+1.6%
Scroll to Top