MAL-2025-1997

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/testospkg/MAL-2025-1997.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2025-1997
Published
2024-07-26T16:53:30Z
Modified
2026-03-19T12:57:09.651899Z
Summary
Malicious code in testospkg (PyPI)
Details

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

Source: kam193 (9e465f1b8689bea6b370d4daf187498e073715c051bea18b33f8e20f15b03e02)

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": [
        {
            "versions": [
                "0.0.2",
                "0.0.3"
            ],
            "modified_time": "2025-03-03T13:45:23Z",
            "sha256": "8037754b80149b6d2d3be95e1867d4f5b8401637539733006147968cd9920f75",
            "id": "RLMA-2025-01240",
            "source": "reversing-labs",
            "import_time": "2025-03-03T15:07:17.604572056Z"
        },
        {
            "source": "kam193",
            "modified_time": "2024-07-26T16:53:30Z",
            "sha256": "9f7a507f59348115b4a92ab77584130cbbae2b627b241d8d1aecb46a81a33ba1",
            "id": "pypi/GENERIC-standard-pypi-install-pentest/testospkg",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T22:30:56.443767877Z"
        },
        {
            "source": "kam193",
            "modified_time": "2024-07-26T16:53:30Z",
            "sha256": "9e465f1b8689bea6b370d4daf187498e073715c051bea18b33f8e20f15b03e02",
            "id": "pypi/GENERIC-standard-pypi-install-pentest/testospkg",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T23:07:19.627983917Z"
        },
        {
            "versions": [
                "0.0.1",
                "0.0.2",
                "0.0.3"
            ],
            "modified_time": "2024-07-26T16:53:30Z",
            "sha256": "78a3b5dfea1aec0f6dca8f6b815cd15f98a1e78b1830c4743cb05cf060156ef8",
            "id": "pypi/GENERIC-standard-pypi-install-pentest/testospkg",
            "source": "kam193",
            "import_time": "2025-12-10T21:38:58.731572633Z"
        },
        {
            "modified_time": "2026-03-18T12:19:21Z",
            "sha256": "9c9266b5bf0d3392fc9c3fd28195a5f228ceb83a736e4245ba728846206b46d5",
            "id": "RLUA-2026-00808",
            "source": "reversing-labs",
            "import_time": "2026-03-19T12:20:32.34159763Z"
        }
    ]
}
References
Credits

Affected packages

PyPI / testospkg

Package

Affected ranges

Affected versions

0.*
0.0.1
0.0.2
0.0.3

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/testospkg/MAL-2025-1997.json"