MAL-2024-12281

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/hack-test/MAL-2024-12281.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2024-12281
Published
2024-08-23T22:55:41Z
Modified
2025-12-31T02:54:03.017958Z
Summary
Malicious code in hack-test (PyPI)
Details

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

Source: kam193 (bedfa0b9b013ca3de0418ac30c7192adef27902eee78ae8bdf2d74afe652c3e2)

Packages that might be part of testing for pentesting / malicious activity / joy, with suspicious activity that does not present any real harm.


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-simple-tests

Reasons (based on the campaign):

  • The package overrides the install command in setup.py to execute malicious code during installation.
Database specific
{
    "malicious-packages-origins": [
        {
            "id": "pypi/GENERIC-simple-tests/hack-test",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T22:30:56.082415459Z",
            "sha256": "69727976e464122a8453f300a53e246882e4c266f302a9e44389aeefb0fd028d",
            "source": "kam193",
            "modified_time": "2025-11-23T15:11:02.968104Z"
        },
        {
            "id": "pypi/GENERIC-simple-tests/hack-test",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T23:07:19.272252411Z",
            "sha256": "bedfa0b9b013ca3de0418ac30c7192adef27902eee78ae8bdf2d74afe652c3e2",
            "source": "kam193",
            "modified_time": "2025-11-23T15:11:02.968104Z"
        },
        {
            "id": "pypi/GENERIC-simple-tests/hack-test",
            "import_time": "2025-12-12T12:11:30.652577033Z",
            "sha256": "712cb96dca55e5b55be43eb1a2f7e436acf74c4d55e5aa37caa0f64245caa648",
            "source": "kam193",
            "modified_time": "2025-11-23T15:11:02.968104Z",
            "versions": [
                "0.1.1",
                "0.1.0"
            ]
        },
        {
            "id": "pypi/GENERIC-simple-tests/hack-test",
            "import_time": "2025-12-30T22:39:04.292999707Z",
            "sha256": "291f7292bdbb1b11223d3b6b72da35a931e2a5f2b89e1ea63234dacafff01aef",
            "source": "kam193",
            "modified_time": "2025-11-23T15:11:02.968104Z",
            "versions": [
                "0.1.0",
                "0.1.1"
            ]
        }
    ]
}
References
Credits

Affected packages

PyPI / hack-test

Package

Affected ranges

Affected versions

0.*
0.1.0
0.1.1

Database specific

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