MAL-2026-13488

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/idnna/MAL-2026-13488.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-13488
Published
2026-08-07T07:05:56Z
Modified
2026-08-07T12:35:24.780041272Z
Summary
Malicious code in idnna (PyPI)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (da6f2ec3b09fbcf061a9f4ffefe1c179983ad8cdc0af705f2218280ade3c1da3)

The 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.

Source: kam193 (c3caa6af02ad3844d721b93e94796fed92506f24517c3b990d741b147eee5acf)

Package 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.


Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.

Campaign: 2026-08-flasq

Reasons (based on the campaign):

  • typosquatting

  • The package overrides the install command in setup.py to execute malicious code during installation.

  • exfiltration-generic

  • Downloads and executes a remote executable.

  • obfuscation

  • exfiltration-crypto

Database specific
{
    "iocs": {
        "ips": [
            "193.70.34.101"
        ],
        "urls": [
            "https://github.com/totti2188/8gp1Q7iZD3h4VW/releases/download/v1.3A/something"
        ]
    },
    "malicious-packages-origins": [
        {
            "versions": [
                "0.1.1",
                "0.1.2",
                "0.2.0",
                "0.3.0"
            ],
            "id": "pypi/2026-08-flasq/idnna",
            "import_time": "2026-08-07T07:35:19.074850456Z",
            "modified_time": "2026-08-07T07:05:56.025428Z",
            "source": "kam193",
            "sha256": "c3caa6af02ad3844d721b93e94796fed92506f24517c3b990d741b147eee5acf"
        },
        {
            "versions": [
                "0.1.1",
                "0.1.2",
                "0.2.0",
                "0.3.0"
            ],
            "id": "pypi/2026-08-flasq/idnna",
            "import_time": "2026-08-07T08:57:13.352632455Z",
            "modified_time": "2026-08-07T07:05:56.025428Z",
            "source": "kam193",
            "sha256": "9a15a7dcdc8b4d5a392976f6abb8ae4615189125f0c910703a3d96ade5bce5ad"
        },
        {
            "modified_time": "2026-08-07T12:16:04Z",
            "id": "IN-MAL-2026-016908",
            "import_time": "2026-08-07T12:23:26.765397561Z",
            "versions": [
                "0.1.1"
            ],
            "source": "amazon-inspector",
            "sha256": "23ef36d00422f5968da72dbf01a4f9f6cea7adee00b4454956ba4dea8b13d020"
        },
        {
            "modified_time": "2026-08-07T12:15:47Z",
            "id": "IN-MAL-2026-016906",
            "import_time": "2026-08-07T12:23:26.643627946Z",
            "versions": [
                "0.2.0"
            ],
            "source": "amazon-inspector",
            "sha256": "557fd8e5f5101a40c97cf36a05feb66d99c597290096922b08d5d3b9797ce4af"
        },
        {
            "versions": [
                "0.1.2"
            ],
            "id": "IN-MAL-2026-016903",
            "import_time": "2026-08-07T12:23:26.513212497Z",
            "modified_time": "2026-08-07T12:15:22Z",
            "source": "amazon-inspector",
            "sha256": "c844cdd84d197bad25f5616870eb1d728b4ca22ded9ba1b0514a6620c0d31d7d"
        },
        {
            "modified_time": "2026-08-07T12:15:57Z",
            "id": "IN-MAL-2026-016907",
            "import_time": "2026-08-07T12:23:26.730670293Z",
            "versions": [
                "0.3.0"
            ],
            "source": "amazon-inspector",
            "sha256": "da6f2ec3b09fbcf061a9f4ffefe1c179983ad8cdc0af705f2218280ade3c1da3"
        }
    ]
}
References
Credits

Affected packages

PyPI / idnna

Package

Affected ranges

Affected versions

0.*
0.1.1
0.1.2
0.2.0
0.3.0

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
indicators
{
    "package_integrity": [
        {
            "filename": "idnna-0.1.1.tar.gz",
            "hashes": {
                "blake2b_256": "27f53dca917dfa8519f1bd08672a9b6b3a82cc047f7ac451ed2a325d77b9181d",
                "md5": "5d403c75dc6bcec98d20110f0b24eea5",
                "sha256": "3813650277e31545307c7c65a240f26e13de959bdd67db854fdc95debeed9eb1"
            }
        }
    ],
    "evidence_files": [
        {
            "path": "setup.py",
            "tlsh": "d521865b8e2510b06c18c7845843411f162baae1ac2074e4beed33642bcd249ca7f0d7",
            "sha256": "1f73bbeef78e8cd5df29ed6ae14b72b10041b327c80d89f04d7db821cead4e6d"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/idnna/MAL-2026-13488.json"