{"id":"MAL-2026-13372","title":"Malicious code in eth-account-wallet (PyPI)","summary":"Malicious code in eth-account-wallet (PyPI)","severity":"none","vendor":"eth-account-wallet","product":"eth-account-wallet","ecosystem":"pip","affected":["eth-account-wallet"],"published":"2026-08-05","updated":"2026-08-05","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13372","references":[{"url":"https://bad-packages.kam193.eu/pypi/package/eth-account-wallet"},{"url":"https://pypi.org/project/eth-account-wallet/0.11.2/"}],"tags":["osv","pip"],"ingestedAt":"2026-08-06T19:13:30.878Z","slug":"MAL-2026-13372","body":"## Overview\n\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (bc3337915e7c14a0ceb6743d1edf2e607fd7926656b49cdd041d7b161b718178)\neth-account-wallet 0.11.2 is a typosquat of the eth-account PyPI package. Its setup.py installs a custom install cmdclass (_PI) that, on `pip install`, spawns a background thread which harvests installer-side secrets: environment variables including PYPI_TOKEN, TWINE_PASSWORD, GITHUB_TOKEN, AWS_SECRET_ACCESS_KEY, NPM_TOKEN, PRIVATE_KEY, MNEMONIC, SEED_PHRASE; contents of ~/.ssh, ~/.aws/credentials, ~/.pypirc, ~/.npmrc, ~/.docker/config.json, pip and git global config; Chrome/Firefox profile artifacts (Cookies, Login Data, key4.db, logins.json); and wallet directories (.bitcoin,.ethereum,.solana,.metamask,.exodus,.electrum). Collected data is JSON-serialized and transmitted to two hardcoded attacker destinations: the Telegram Bot API (api.telegram.org/bot<token>/sendMessage with hardcoded bot token and chat id) and a Serveo reverse-tunnel C2 at https://40f955f39128bd79-178-249-214-24.serveousercontent.com/collect. The tarball ships no actual module code — the README advertises an `eth_account_wallet.create_wallet()` API that does not exist — confirming the package is a cover-story lure for the install-time stealer. Author metadata is placeholder (`opensource-dev`, `github.com/dev/eth-account-wallet`).\n\n## Source: kam193 (4e0a297fd6a2bfc0e15f9aac09c92768a4725458ad282594e97ec15bb3fa8c5f)\nDuring installation, the package exfiltrates sensitive env variables, browser data, crypto wallets files, ssh keys and other configuration files.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-08-bip39-py\n\n\nReasons (based on the campaign):\n\n\n - crypto-related\n\n\n - The package overrides the install command in setup.py to execute malicious code during installation.\n\n\n - exfiltration-crypto\n\n\n - exfiltration-browser-data\n\n\n - exfiltration-env-variables\n\n\n - exfiltration-ssh-keys\n\n\n - exfiltration-credentials\n\n\n - uses-telegram-bot\n\n\n## Affected packages\n\n- `eth-account-wallet`\n\n## Remediation\n\nRefer to the advisory for the patched release.","depth":"sunlit","depthScore":3,"depthScoreParts":{"impact":2.8,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}