MAL-2026-17194

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/metrics-sdk/MAL-2026-17194.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-17194
Published
2026-09-27T07:08:11Z
Modified
2026-09-27T14:30:14Z
Summary
Malicious code in metrics-sdk (PyPI)
Details

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

Source: amazon-inspector (60ce93696722d633e9eea7b3fac6f76ebe61a581bd2d1d79efb778f8cb015399)

metrics_sdk 999.0.0 is a dependency-confusion beacon. setup.py runs on pip install and metrics_sdk/init.py runs on import metrics_sdk; both hex-encode the installer's hostname into a subdomain label of the form mssdk-<event>-<hexhostname>.84avt3516s4q1obsv9q0mh4u2l8dw3ks.x9.to and then trigger socket.gethostbyname(host) plus urllib.request.urlopen('http://' + host + '/'), leaking the hostname to a hardcoded third-party domain over both DNS and plaintext HTTP. The version number 999.0.0 and the package description labeling itself a 'dependency-confusion PoC placeholder' are consistent with an artifact designed to win resolution against an internal package name from public PyPI and beacon from whichever build system pulls it in. The self-label is author-controlled and does not change the observable behavior: any installer that resolves this package on pip install or on import discloses its hostname to an attacker-controlled beacon domain with no opt-in.

Source: kam193 (1378dcfc94bda0e9beb3e3d66c0588967a164741686ab473826fbab077e7afb9)

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.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "pypi/GENERIC-standard-pypi-install-pentest/metrics-sdk",
            "import_time":  "2026-09-27T07:43:09.929870495Z",
            "modified_time":  "2026-09-27T07:08:11.746241Z",
            "sha256":  "1378dcfc94bda0e9beb3e3d66c0588967a164741686ab473826fbab077e7afb9",
            "source":  "kam193",
            "versions":  [
                "999.0.0",
                "1000.0.0",
                "1001.0.0"
            ]
        },
        {
            "id":  "IN-MAL-2026-020573",
            "import_time":  "2026-09-27T14:16:28.776676593Z",
            "modified_time":  "2026-09-27T13:44:54Z",
            "sha256":  "60ce93696722d633e9eea7b3fac6f76ebe61a581bd2d1d79efb778f8cb015399",
            "source":  "amazon-inspector",
            "versions":  [
                "999.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

PyPI / metrics-sdk

Package

Name
metrics-sdk
View open source insights on deps.dev
Purl
pkg:pypi/metrics-sdk

Affected ranges

Affected versions

999.*
999.0.0
1000.*
1000.0.0
1001.*
1001.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":  "setup.py",
            "sha256":  "c35374333854ee3b911bc58053b9ae44d20c0a3c29ea0bfb9969543c8d17529b",
            "tlsh":  "ba01fe01ed00a4bbd65301cc98600191262ab25b9a235c76bdcc538407cf9f0c4b22ab"
        },
        {
            "path":  "metrics_sdk/__init__.py",
            "sha256":  "a3c0f40974374809a26a558d4445fa77d2924346a7af8bcda239530047e40dd0",
            "tlsh":  "fff09e52de1090b7d60311c8547042d4221bb147d9235c36fecc57844bce0b1c0721a7"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/metrics-sdk/MAL-2026-17194.json"