MAL-2026-15931

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/metricboxlite/MAL-2026-15931.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-15931
Published
2026-09-04T18:22:18Z
Modified
2026-09-09T05:30:05Z
Summary
Malicious code in metricboxlite (PyPI)
Details

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

Source: amazon-inspector (d5a511a75c8c42dcd677dd3814265d3befefa7f339bdc6b0336788635813e837)

MetricBoxLite 1.0 collects the installer's username (getpass.getuser) and hostname (socket.gethostname), JSON-encodes them, and POSTs the payload to a hardcoded remote endpoint at https://kznkrxfzy4xgib6ejfh8etegndp3kwguf.oast.invalid/collect. The beacon fires from two independent paths: setup.py calls the reporter at module top level, so it runs during pip install of the sdist, and metricboxlite/init.py performs the same collect-and-POST at top level, so any import metricboxlite also phones home. Network errors are silently swallowed. The destination is an OAST/out-of-band-callback host that is not first-party to the package or its ecosystem, and the collected fields are installer identity rather than package operational data.

Source: kam193 (83407b9909ebc137e4d47fbb7fe2672a5920dd22bfd7d86ce8edb536bdd5fcab)

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/metricboxlite",
            "import_time": "2026-09-04T18:41:15.871339765Z",
            "modified_time": "2026-09-04T18:22:18.309882Z",
            "sha256": "83407b9909ebc137e4d47fbb7fe2672a5920dd22bfd7d86ce8edb536bdd5fcab",
            "source": "kam193",
            "versions": [
                "1.0",
                "2.0"
            ]
        },
        {
            "id": "IN-MAL-2026-019651",
            "import_time": "2026-09-08T18:43:43.716157344Z",
            "modified_time": "2026-09-08T18:42:45Z",
            "sha256": "b071475bfddef4e7b1637eba0ff65de0aa7841ac460bcca6a1892d349a38c073",
            "source": "amazon-inspector",
            "versions": [
                "2.0"
            ]
        },
        {
            "id": "IN-MAL-2026-019838",
            "import_time": "2026-09-09T05:18:18.21797359Z",
            "modified_time": "2026-09-09T05:03:02Z",
            "sha256": "d5a511a75c8c42dcd677dd3814265d3befefa7f339bdc6b0336788635813e837",
            "source": "amazon-inspector",
            "versions": [
                "1.0"
            ]
        }
    ]
}
References
Credits

Affected packages

PyPI / metricboxlite

Package

Name
metricboxlite
View open source insights on deps.dev
Purl
pkg:pypi/metricboxlite

Affected ranges

Affected versions

1.*
1.0
2.*
2.0

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "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": "b8f43ca9f750e1a8f1235e5f9cf05aee7aeaff1baa4cdefd815a95e32f97f147",
            "tlsh": "d301d397d8125c73e9cb90d49ca439b53221b5037d41a8957adc13185fc55fed0b1968"
        },
        {
            "path": "metricboxlite/__init__.py",
            "sha256": "23da2832a60d85ae7e769843296c3139207b62f6345e8d8575aacfa0ba5acd4b",
            "tlsh": "ad01c0cbfc525813d6cf505894b5c17472193d07680968b9bcec53555f808bae1b05ac"
        }
    ],
    "package_integrity": [
        {
            "filename": "metricboxlite-2.0.0.0-py3-none-any.whl",
            "hashes": {
                "blake2b_256": "64fb690e0dd0ba0ca5c044b7399efd66db3b55ec82782efd2dab282e4e12af29",
                "md5": "bcf5440f865561056c2e008a665dcab8",
                "sha256": "33a7b77623395e6acc13f44b4e8bcaba8b6793b3b4948bd83000ad4556196c83"
            }
        },
        {
            "filename": "metricboxlite-2.0.tar.gz",
            "hashes": {
                "blake2b_256": "87278ca22f34cb4889cbd98c1fa49741e64303d4197503644a163b0a9d58fc72",
                "md5": "21561431ff0b9cf816baa11cd136a3e4",
                "sha256": "152a42627f9d3978d566acdcad761358bb80bbac85cfb5ab2cb812c5988f067d"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/metricboxlite/MAL-2026-15931.json"