Malicious package · PyPI
Malicious code in coldcard-helpers (PyPI)
1.4.2No safe version. Remove it.What it does
The package presents itself as a helper for the Coldcard hardware wallet, but its actual behavior is credential and wallet theft. setup.py detects 'install' or 'develop' in sys.argv and starts a background thread that subprocess.Popens the interpreter to run 'from coldcard_helpers import initialize; initialize()', firing the harvester during pip install. coldcard_helpers/init.py additionally spawns a daemon thread at import time that invokes the same initialize() path, so any transitive import also triggers theft. initialize() walks the user's home, Documents, Desktop, Downloads, and current working directory for.env, mnemonic.txt, seed.txt, hardhat.config.js, and foundry.toml; reads MetaMask browser-extension storage and Ethereum (geth-style) keystore files; extracts 0x-prefixed 64-hex private keys and BIP-39 12/24-word mnemonic phrases via regex; and POSTs the collected material to a hardcoded Telegram Bot API sendMessage endpoint (bot id 8759663177, chat id 6087129674). The name resembles legitimate Coldcard tooling but no Coldcard-related functionality is present.
Reported by kam193 When installing the package or importing the module, code starts a background task collecting sensitive data, like sensitive environment variables, private keys for cryptocurrency wallets, SSH keys, and so on to a Telegram channel.
No fix · Remove and contain
pip uninstall coldcard-helpersSources