MAL-2026-15938

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/dac-tools/MAL-2026-15938.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-15938
Published
2026-09-06T16:35:33Z
Modified
2026-09-08T19:30:04Z
Summary
Malicious code in dac-tools (PyPI)
Details

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

Source: amazon-inspector (203490886d6928aee2c8d681d282f53d8513907b30be5e5e20fe1effb5fd21d2)

On import of dac_tools, the top-level init.py executes whoami and hostname via subprocess, concatenates the results into a DNS label, and triggers socket.getaddrinfo against <label>.depconf-dac.dac2vlrk5gm3aemg9ptgq3kye1ky9kd4e.p.0xy.us, causing the installer's OS username and hostname to be transmitted to an attacker-controlled authoritative DNS server on every import. A second beacon in CDHApiClient.get_project_credentials_with_client_credentials performs a DNS lookup to cdh-intercept.depconf-dac.dac2vlrk5gm3aemg9ptgq3kye1ky9kd4e.p.0xy.us and returns fabricated AWS credentials, mimicking an internal cdh_api_client API surface so that any caller invoking the shim signals the attacker. The package name shadows an internal dependency and is published at version 999.0.0 to win resolution against the internal package - the canonical dependency-confusion shape.

Source: kam193 (21c38f5fc2ee894120161023d576dd3d54bb373ab89baa04b1d1ed8c54b7a1c3)

Installing the package or importing the module exfiltrates basic information about the host, and the package has no other purpose.


Category: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities.

Campaign: GENERIC-standard-pypi-install-pentest

Reasons (based on the campaign):

  • The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.

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

Source: ossf-package-analysis (fced1eb56b721b98d444549899dd7cd86f36478adc0ed132c99b601155c6331f)

The OpenSSF Package Analysis project identified 'dac-tools' @ 999.0.0 (pypi) as malicious.

It is considered malicious because:

  • The package executes one or more commands associated with malicious behavior.
Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "pypi/GENERIC-standard-pypi-install-pentest/dac-tools",
            "import_time":  "2026-09-06T17:13:38.234132543Z",
            "modified_time":  "2026-09-06T16:35:33.995894Z",
            "sha256":  "21c38f5fc2ee894120161023d576dd3d54bb373ab89baa04b1d1ed8c54b7a1c3",
            "source":  "kam193",
            "versions":  [
                "999.0.0"
            ]
        },
        {
            "import_time":  "2026-09-07T05:19:17.943444908Z",
            "modified_time":  "2026-09-06T16:40:52Z",
            "sha256":  "fced1eb56b721b98d444549899dd7cd86f36478adc0ed132c99b601155c6331f",
            "source":  "ossf-package-analysis",
            "versions":  [
                "999.0.0"
            ]
        },
        {
            "id":  "IN-MAL-2026-019663",
            "import_time":  "2026-09-08T19:15:03.504427989Z",
            "modified_time":  "2026-09-08T19:05:37Z",
            "sha256":  "203490886d6928aee2c8d681d282f53d8513907b30be5e5e20fe1effb5fd21d2",
            "source":  "amazon-inspector",
            "versions":  [
                "999.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

PyPI / dac-tools

Package

Affected ranges

Affected versions

999.*
999.0.0

Database specific

cwes
[
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "src/dac_tools/__init__.py",
            "sha256":  "0f870b89189c823033302e49601ba3667ad35678a91e3bbb22cf4750d6f9895a",
            "tlsh":  "e3f0e145c2398dcbf6d008e0242e2a96b6b55113f3b35c7476b69fe01f0f4764653538"
        },
        {
            "path":  "src/dac_tools/cdh_api_client/__init__.py",
            "sha256":  "36b4a948407bdb707ffd4b2f9fde966f4f6dac230848b714a7c53b29fb675812",
            "tlsh":  "5ef09e41e9f1ac57f6cb4a66f4bbd400303625236fc234b4f59c8f194f494d2aada601"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "dac_tools-999.0.0-py3-none-any.whl",
            "hashes":  {
                "blake2b_256":  "d4b4e4380324294e268f8dec68b8a3dddf46f27bd5dad7fde4beaeb1693ca9fd",
                "md5":  "6725ff671cf3669ba0d7d47a82f54818",
                "sha256":  "0ba58449fce918327c3507479a69d8dabdc97680e5f38c9e443e6f1e74a1c7dc"
            }
        },
        {
            "filename":  "dac_tools-999.0.0.tar.gz",
            "hashes":  {
                "blake2b_256":  "5be4f607909f4435fb6f9fbd95228b3c73c1b8d0030911338509f4d8fd66760f",
                "md5":  "657f9897222e5f4c902fa7de0f1de275",
                "sha256":  "bda50f023f8e6793ef921ba99b8b5335266c0a8788d40aeb805acbeb451cf574"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/dac-tools/MAL-2026-15938.json"