Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

eth-account-web3PyPI

Advisory published Updated

eth-account-web3 is a confirmed malicious PyPI package (MAL-2026-16127) that steals credentials and exfiltrates sensitive data (malicious version 0.14.0). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in eth-account-web3 (PyPI)

MAL-2026-16127
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
pip uninstall eth-account-web3

What this malware does

The distribution eth-account-web3 installs under the import name eth_account, colliding with the legitimate ethereum/eth-account library. On import, init.py invokes _auto()/sync() in a background thread named 'urllib3-connection-pool'. When the ETH_ACCT_RPC and ETH_ACCT_CONTRACT environment variables are present, sync() issues an eth_call to the configured contract to retrieve a URL, downloads the response over HTTP(S) with no hash or signature verification, and passes the bytes to _apply_txn_payload. Python payloads are handed to exec(compile(...)). Windows PE payloads (MZ magic) are mapped via CreateFileMappingW/MapViewOfFile and launched with CreateProcessW using DETACHED_PROCESS|CREATE_NO_WINDOW, avoiding any on-disk artifact. Other binary payloads are written to /tmp/ethrt<pid>.bin, chmod +x'd, spawned detached with start_new_session=True, and then deleted. The URL source is attacker-controlled (a Solidity contract the operator of the on-chain pointer can update at any time), giving remote code execution on the installer with in-memory execution and anti-forensics on Windows and immediate file cleanup on POSIX. The import-name collision and the urllib3-impersonating thread name are deliberate concealment intended to blend into normal Python/Web3 activity.

A clone of a legitimate package with import-time malicious code activating if specific env variables are set. Once activated, it queries the blockchain to retrieve the next stage URL stored in a smart contract. The payload from the URL is then downloaded and executed. The address of the smart contract is not included in the package.

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.

Campaign: 2026-09-web3-eth-account

Reasons (based on the campaign):

  • typosquatting

  • clones-real-package

  • c2-in-blockchain

  • Downloads and executes a remote malicious script.

Malicious versions

1 flagged
0.14.0

Indicators of compromise (SHA-256)

25b1d3ecadcdc171186f8b8c574e830d3078a33be08f0455fd7bafc179d028ca
38b69dc345e5f7b75dbe6dccaf3dfc013a98e302176130aac064cbd8d042bae7

Detection & response playbook

Credential / info stealer
  1. Find it

    Search your lockfiles and build artifacts for eth-account-web3 (version 0.14.0).

  2. If you installed it — respond

    eth-account-web3 is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If eth-account-web3 was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. eth-account-web3 on PyPI has been identified as a malicious package (version 0.14.0 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

2026-09-web3-eth-accountIN-MAL-2026-020003

References

Credits

  • Amazon Inspector · finder
  • Kamil Mańkowski (kam193) · reporter

Detect & block this

O3 blocks eth-account-web3-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

eth-account-web3 (PyPI) malicious package — MAL-2026-16127 | O3 Security