Malicious code in idnna (PyPI)
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.
AI Analysis
Technical Summary
The 'idnna' package on PyPI mimics the name of the legitimate 'idna' package and advertises itself as HTTP client utilities, but contains only a trivial module. Its setup.py overrides the install command to execute a base64-decoded hidden payload. This payload downloads an opaque binary named 'something' from a personal GitHub repository unrelated to the package's stated purpose, sets executable permissions, and runs it detached. The downloaded artifact is unpinned by hash, and the payload is obfuscated to evade detection. The executed binary reportedly exfiltrates cryptocurrency wallet data and possibly other sensitive information. This malicious code activates automatically during the installation of versions 0.1.1, 0.1.2, 0.2.0, and 0.3.0.
Potential Impact
Installation of the 'idnna' package results in execution of a remote, unverified binary that can exfiltrate sensitive data such as cryptocurrency wallet information. This compromises the confidentiality of user data and may lead to financial loss or further system compromise. The attack is triggered automatically during package installation, increasing risk of inadvertent infection.
Mitigation Recommendations
Users should avoid installing the 'idnna' package and verify package names carefully to avoid typosquatting. Remove any installed versions of 'idnna' (0.1.1, 0.1.2, 0.2.0, 0.3.0) from environments. Since no official patch or fix exists, the best mitigation is to rely on trusted sources and package names. Monitor for suspicious activity if the package was installed. There is no vendor advisory or patch available; patch status is not yet confirmed — check vendor advisories or PyPI security notices for updates.
Malicious code in idnna (PyPI)
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.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The 'idnna' package on PyPI mimics the name of the legitimate 'idna' package and advertises itself as HTTP client utilities, but contains only a trivial module. Its setup.py overrides the install command to execute a base64-decoded hidden payload. This payload downloads an opaque binary named 'something' from a personal GitHub repository unrelated to the package's stated purpose, sets executable permissions, and runs it detached. The downloaded artifact is unpinned by hash, and the payload is obfuscated to evade detection. The executed binary reportedly exfiltrates cryptocurrency wallet data and possibly other sensitive information. This malicious code activates automatically during the installation of versions 0.1.1, 0.1.2, 0.2.0, and 0.3.0.
Potential Impact
Installation of the 'idnna' package results in execution of a remote, unverified binary that can exfiltrate sensitive data such as cryptocurrency wallet information. This compromises the confidentiality of user data and may lead to financial loss or further system compromise. The attack is triggered automatically during package installation, increasing risk of inadvertent infection.
Mitigation Recommendations
Users should avoid installing the 'idnna' package and verify package names carefully to avoid typosquatting. Remove any installed versions of 'idnna' (0.1.1, 0.1.2, 0.2.0, 0.3.0) from environments. Since no official patch or fix exists, the best mitigation is to rely on trusted sources and package names. Monitor for suspicious activity if the package was installed. There is no vendor advisory or patch available; patch status is not yet confirmed — check vendor advisories or PyPI security notices for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13488
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a75f711bf8831d53984fb12
Added to database: 08/07/2026, 15:17:37 UTC
Last enriched: 08/07/2026, 15:40:30 UTC
Last updated: 08/08/2026, 03:40:59 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.