MAL-2025-2981

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

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

Source: kam193 (8de001a262d51e9750f84bfa2f6d30f5798aca9d0614b5feb95215ed1ced0507)

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": "RLMA-2025-01979",
            "import_time": "2025-03-31T07:07:06.085278504Z",
            "sha256": "12fb5927afd9ba0a8bc1d2b0f72af5e2eb2f0d8202e999da6f401ac3cca7f1b8",
            "source": "reversing-labs",
            "modified_time": "2025-03-28T13:05:56Z",
            "versions": [
                "0.0.1",
                "0.0.2",
                "0.0.3",
                "0.0.4",
                "0.0.5",
                "0.0.6",
                "0.0.7",
                "0.0.8"
            ]
        },
        {
            "id": "pypi/GENERIC-standard-pypi-install-pentest/opengrep",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T22:30:56.274776127Z",
            "sha256": "9454f71a434109877ff922804db2d081c4f08af5b047b0ee7a651ea21a0cf0fd",
            "source": "kam193",
            "modified_time": "2024-07-26T16:53:30Z"
        },
        {
            "id": "pypi/GENERIC-standard-pypi-install-pentest/opengrep",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T23:07:19.461687632Z",
            "sha256": "8de001a262d51e9750f84bfa2f6d30f5798aca9d0614b5feb95215ed1ced0507",
            "source": "kam193",
            "modified_time": "2024-07-26T16:53:30Z"
        },
        {
            "id": "pypi/GENERIC-standard-pypi-install-pentest/opengrep",
            "import_time": "2025-12-10T21:38:58.575150501Z",
            "sha256": "ff192c815669701bedb4d6ee5c22adacb91a9be0db1204710cd3e83b871cb9fd",
            "source": "kam193",
            "modified_time": "2024-07-26T16:53:30Z",
            "versions": [
                "0.0.1",
                "0.0.2",
                "0.0.3",
                "0.0.4",
                "0.0.5",
                "0.0.6",
                "0.0.7",
                "0.0.8"
            ]
        },
        {
            "id": "RLUA-2026-00568",
            "import_time": "2026-03-19T12:20:09.499800287Z",
            "sha256": "a7c4bbde4e0371dc055b22ffc8f525625c91f804b2f9aa9cb7af8d803efdd46c",
            "source": "reversing-labs",
            "modified_time": "2026-03-18T12:16:37Z"
        }
    ]
}
References
Credits

Affected packages

PyPI / opengrep

Package

Affected ranges

Affected versions

0.*
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.0.7
0.0.8

Database specific

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