New PyPI Malware Targets Developers to Steal Ethereum Wallets



Uncovering a New Threat: The Malicious “set-utils” Package

The Socket Research Team recently made a startling discovery of a malicious PyPI package named “set-utils.” This package is designed to steal Ethereum private keys by exploiting common account creation functions. It masquerades as a utility for Python sets, resembling popular libraries like python-utils and utils, which tricks developers into downloading it. Since its release, “set-utils” has been downloaded over 1,000 times, posing a significant threat to Ethereum users and developers.



– Advertisement –

Understanding the Impact and Identifying Targets

The primary targets of this attack include Ethereum developers and organizations using Python-based blockchain applications. These encompass blockchain developers who use eth-account for wallet management, DeFi projects that rely on Python scripts for account generation, crypto exchanges, and Web3 applications integrating Ethereum transactions. Individuals managing personal Ethereum wallets via Python automation are also at risk.

The attack hooks silently into standard wallet creation methods, making it difficult to detect. Once a wallet is compromised, uninstalling “set-utils” does not remove the risk, as any wallets created while the package was active remain vulnerable.

Diving Deeper: Technical Analysis

The malicious code operates in three stages. Initially, it embeds an attacker-controlled RSA public key and Ethereum wallet address, which are used to encrypt and transmit stolen private keys. The core function, transmit(), encrypts the private key and sends it within an Ethereum transaction via the Polygon RPC endpoint rpc-amoy.polygon.technology, acting as a Command and Control (C2) server.



According to the Socket Report, this method conceals stolen data within blockchain transactions, adding complexity to detection efforts. The package also modifies Ethereum account creation functions to ensure that even successful account creations result in private key theft. These modifications run in background threads, further complicating detection efforts.

See also  5 Best Crypto Wallets in 2025

Steps for Mitigating Risks

Developers and organizations should implement several strategies to mitigate these risks. Regular dependency audits and automated scanning tools can help identify malicious behaviors in third-party packages. Tools like Socket’s free GitHub app monitor pull requests in real-time, flagging suspicious packages before they are merged into production environments. Additionally, integrating security measures such as the Socket CLI and browser extension can provide on-the-fly protection by analyzing browsing activity and alerting users to potential threats.

The PyPI team has been notified, and “set-utils” has been removed to prevent further attacks. However, it remains crucial for developers to remain vigilant and proactive in securing their environments against similar threats.

Collect Threat Intelligence on the Latest Malware and Phishing Attacks with ANY.RUN TI Lookup -> Try for free

See also  Python Users: BIPClip Is After Your Bitcoin Wallet, Via PyPI
Conclusion: Staying Ahead of Malicious Threats

The discovery of the “set-utils” package highlights the ever-evolving landscape of cybersecurity threats. As technology advances, so do the methods employed by malicious actors. For developers, staying informed and adopting robust security practices is essential to safeguard their projects and users. By leveraging tools that offer real-time monitoring and analysis, the community can better protect itself against potential threats, ensuring a safer digital environment for everyone.

Hot Topics

Related Articles

bitcoin
Bitcoin (BTC) $ 118,270.69
ethereum
Ethereum (ETH) $ 3,771.49
tether
Tether (USDT) $ 1.00
bnb
BNB (BNB) $ 795.17
xrp
XRP (XRP) $ 3.20
cardano
Cardano (ADA) $ 0.828476
usd-coin
USDC (USDC) $ 1.00
matic-network
Polygon (MATIC) $ 0.236822
binance-usd
BUSD (BUSD) $ 0.997766
dogecoin
Dogecoin (DOGE) $ 0.238938
okb
OKB (OKB) $ 48.25
polkadot
Polkadot (DOT) $ 4.18
shiba-inu
Shiba Inu (SHIB) $ 0.000014
tron
TRON (TRX) $ 0.320619
uniswap
Uniswap (UNI) $ 10.60
wrapped-bitcoin
Wrapped Bitcoin (WBTC) $ 118,154.66
dai
Dai (DAI) $ 1.00
litecoin
Litecoin (LTC) $ 114.83
staked-ether
Lido Staked Ether (STETH) $ 3,767.73
solana
Solana (SOL) $ 186.57
avalanche-2
Avalanche (AVAX) $ 25.00
chainlink
Chainlink (LINK) $ 18.68
cosmos
Cosmos Hub (ATOM) $ 4.80
the-open-network
Toncoin (TON) $ 3.32
ethereum-classic
Ethereum Classic (ETC) $ 23.09
leo-token
LEO Token (LEO) $ 8.99
filecoin
Filecoin (FIL) $ 2.69
bitcoin-cash
Bitcoin Cash (BCH) $ 570.21
monero
Monero (XMR) $ 322.17