MAL-2024-12221

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/blz-test-package/MAL-2024-12221.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2024-12221
Published
2024-07-26T16:53:30Z
Modified
2025-12-12T20:36:38.832899Z
Summary
Malicious code in blz-test-package (PyPI)
Details

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

Source: kam193 (01f2433c1d8bc3c461a9580e06ffcac55e0d5e79ac651f1326c6ddd10114a544)

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/blz-test-package",
            "import_time": "2025-12-02T22:30:55.890805416Z",
            "sha256": "121728257844143a4062950382204e6f338d3341b5a628bcdfcfb2b442616423",
            "modified_time": "2024-07-26T16:53:30Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "ECOSYSTEM"
                }
            ],
            "source": "kam193"
        },
        {
            "id": "pypi/GENERIC-standard-pypi-install-pentest/blz-test-package",
            "import_time": "2025-12-02T23:07:19.075483441Z",
            "sha256": "01f2433c1d8bc3c461a9580e06ffcac55e0d5e79ac651f1326c6ddd10114a544",
            "modified_time": "2024-07-26T16:53:30Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "ECOSYSTEM"
                }
            ],
            "source": "kam193"
        },
        {
            "id": "pypi/GENERIC-standard-pypi-install-pentest/blz-test-package",
            "import_time": "2025-12-10T21:38:58.210453115Z",
            "sha256": "cba8d1a21b518934dfc7a82238fbcbc05778298b758d5e4cd4ea09998c280718",
            "modified_time": "2024-07-26T16:53:30Z",
            "source": "kam193",
            "versions": [
                "3.0.2"
            ]
        }
    ]
}
References
Credits

Affected packages

PyPI / blz-test-package

Package

Name
blz-test-package
View open source insights on deps.dev
Purl
pkg:pypi/blz-test-package

Affected ranges

Affected versions

3.*
3.0.2

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/blz-test-package/MAL-2024-12221.json"