{"id":"MAL-2026-13488","title":"Malicious code in idnna (PyPI)","summary":"Malicious code in idnna (PyPI)","severity":"none","vendor":"idnna","product":"idnna","ecosystem":"pip","affected":["idnna"],"published":"2026-08-07","updated":"2026-08-07","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13488","references":[{"url":"https://www.virustotal.com/gui/file/425f5336182e359211b5d751786d2ce1d31a673ea9c82107358a888803742649/detection"},{"url":"https://bad-packages.kam193.eu/pypi/package/idnna"},{"url":"https://tria.ge/260807-fkycrazzg1/behavioral1"},{"url":"https://pypi.org/project/idnna/0.1.1/"},{"url":"https://pypi.org/project/idnna/0.2.0/"},{"url":"https://pypi.org/project/idnna/0.1.2/"},{"url":"https://pypi.org/project/idnna/0.3.0/"}],"tags":["osv","pip"],"ingestedAt":"2026-08-07T19:14:15.167Z","slug":"MAL-2026-13488","body":"## Overview\n\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (da6f2ec3b09fbcf061a9f4ffefe1c179983ad8cdc0af705f2218280ade3c1da3)\nThe package publishes under a name that closely resembles the widely-used `idna` package and advertises itself as 'HTTP client utilities', but the only importable module is `djangoo` containing a trivial `hello()` function. setup.py registers a custom `install` cmdclass (`LinuxInstall`) whose post-install step base64-decodes a hidden Python payload stored in `_HOOK_B64` and executes it via `exec(compile(...))`. On Linux, the decoded payload uses `urlretrieve` to download an opaque binary named `something` from https://github.com/totti2188/8gp1Q7iZD3h4VW/releases/download/v1.3A/something — an unrelated personal GitHub account whose repository has no connection to the package's stated purpose — chmods it to 0o755, and spawns it detached via `Popen`. The download destination is not publisher-matched, the fetched artifact is unpinned by hash, and the payload is obfuscated to evade casual review. This fires automatically on `pip install` of the sdist.\n\n## Source: kam193 (c3caa6af02ad3844d721b93e94796fed92506f24517c3b990d741b147eee5acf)\nPackage imitates name of a popula library. During installation, obfuscated code downloads a malicious executable and starts it. It then exfiltrates at least cryptocurrency wallet data, probably more.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-08-flasq\n\n\nReasons (based on the campaign):\n\n\n - typosquatting\n\n\n - The package overrides the install command in setup.py to execute malicious code during installation.\n\n\n - exfiltration-generic\n\n\n - Downloads and executes a remote executable.\n\n\n - obfuscation\n\n\n - exfiltration-crypto\n\n\n## Affected packages\n\n- `idnna`\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":[]}