coinscan (PyPI) · Malicious Code
Affects coinscanSource GCVE Database
Malicious package : remove coinscan and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 16:22 UTC
Malicious package
Published to PyPI · OSV MAL-2026-17197
What to do
Remove coinscan from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIcoinscan | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The coinscan package on PyPI (version 0.1.0) contains malicious code that executes encrypted payloads during installation. It fetches an encrypted payload from a suspicious external domain and decrypts it with a hardcoded key, executing the code via exec(). If the network fetch fails, it falls back to a local encrypted payload, ensuring execution even offline. The payload includes sandbox evasion techniques to avoid detection in CI/build environments and targets developer workstations. Additionally, the package uses obfuscation and steganography to hide an infostealer that exfiltrates sensitive data to a command-and-control server referenced via the Polygon blockchain.
References
- virustotal.com/gui/file/d03c42c275f0dbc617428441508c49ae1adcbbc95af4eeb094bca4e4f8943f3e/detection (opens in a new tab)
- polygonscan.com/address/0x9c0a507300fd902787bb193d80fca5ce6e1bff9a (opens in a new tab)
- bad-packages.kam193.eu/pypi/package/coinscan (opens in a new tab)
- pypi.org/project/coinscan/0.1.0/ (opens in a new tab)