• News/
  • https://www.bleepingcomputer.com/news/security/ethereum-private-key-stealer-on-pypi-downloaded-over-1-000-times/

Ethereum private key stealer on PyPI downloaded over 1,000 times

BleepingComputer
·
Bill Toulas
·
Published Mar 6, 2025
·
Updated

A malicious Python Package Index (PyPI)  package named "set-utils" has been stealing Ethereum private keys through intercepted wallet creation functions and exfiltrating them via the Polygon blockchain. The package disguises itself as a utility for Python, mimicking the popular "python-utils," which has over 712 million downloads, and "utils," which counts over 23.5 million installs. Researchers from the developer cybersecurity platform Socket discovered the malicious package and reported that set-utils had been downloaded over a thousand times since its submission on PyPI on January 29, 2025. The open-source supply chain security firm reports that the attacks primarily target blockchain developers utilizing 'eth-account' for wallet creation and management, Python-based DeFi projects, Web3 apps with Ethereum support, and personal wallets using Python automation. As the malicious package is targeting cryptocurrency projects, even though there were only a thousand downloads, it could impact a far larger number of people who used the applications to generate wallets. The malicious set-utils package embeds the attacker's RSA public key to be used for encrypting stolen data and an Ethereum sender account controlled by the attacker. The package hooks into standard Ethereum wallet creation functions like 'from_key()' and 'from_mnewmonic()' to intercept private keys as they are generated on the compromised machine. It then encrypts the stolen private key and embeds it in the data fi...

Read full article

Affected Software

3 affected components
Python Package Index set-utils
Python Package Index set-utils
Python eth-account
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the main topic of this article?

The article discusses a malicious package called 'set-utils' on the Python Package Index (PyPI) that steals Ethereum private keys.

2

What security implications are discussed in the article?

The security implications include the risk of compromised cryptocurrency wallets and loss of funds due to private key theft.

3

What products or software are affected by the 'set-utils' package?

The affected software includes the Python Package Index 'set-utils' package and potentially the 'eth-account' library.

4

How many times was the 'set-utils' package downloaded before being flagged?

The 'set-utils' package was downloaded over 1,000 times.

5

How does the 'set-utils' package exfiltrate stolen keys?

The package exfiltrates stolen keys via the Polygon blockchain by intercepting wallet creation functions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203