idnna (PyPI) · Malicious Code
Affects idnnaSource GCVE Database
Malicious package : remove idnna and rotate any secrets on hosts that installed it.
Data as of 7 Aug 2026, 15:40 UTC
Malicious package
Published to PyPI · OSV MAL-2026-13488
What to do
Remove idnna 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 |
|---|---|---|
| PyPIidnna | 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 PyPI package 'idnna' is a malicious typosquatting package impersonating the popular 'idna' library. During installation, it executes obfuscated code that downloads and runs a remote binary from an unrelated GitHub repository. This binary is executed with elevated permissions and is reported to exfiltrate cryptocurrency wallet data and potentially other sensitive information. The malicious behavior triggers automatically upon 'pip install' of affected versions.
References
- virustotal.com/gui/file/425f5336182e359211b5d751786d2ce1d31a673ea9c82107358a888803742649/detection (opens in a new tab)
- bad-packages.kam193.eu/pypi/package/idnna (opens in a new tab)
- tria.ge/260807-fkycrazzg1/behavioral1 (opens in a new tab)
- pypi.org/project/idnna/0.1.1/ (opens in a new tab)
- pypi.org/project/idnna/0.2.0/ (opens in a new tab)
- pypi.org/project/idnna/0.1.2/ (opens in a new tab)
- pypi.org/project/idnna/0.3.0/ (opens in a new tab)