{"id":"MAL-2025-2981","summary":"Malicious code in opengrep (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (8de001a262d51e9750f84bfa2f6d30f5798aca9d0614b5feb95215ed1ced0507)\nInstalling the package or importing the module exfiltrates basic information about the host, and the package has no other purpose.\n\n\n---\n\nCategory: 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.\n\n\nCampaign: GENERIC-standard-pypi-install-pentest\n\n\nReasons (based on the campaign):\n\n\n - The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.\n\n\n - The package overrides the install command in setup.py to execute malicious code during installation.\n","modified":"2026-03-19T12:36:32.295731Z","published":"2024-07-26T16:53:30Z","database_specific":{"malicious-packages-origins":[{"sha256":"12fb5927afd9ba0a8bc1d2b0f72af5e2eb2f0d8202e999da6f401ac3cca7f1b8","source":"reversing-labs","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":"RLMA-2025-01979","import_time":"2025-03-31T07:07:06.085278504Z","modified_time":"2025-03-28T13:05:56Z"},{"import_time":"2025-12-02T22:30:56.274776127Z","modified_time":"2024-07-26T16:53:30Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"9454f71a434109877ff922804db2d081c4f08af5b047b0ee7a651ea21a0cf0fd","source":"kam193","id":"pypi/GENERIC-standard-pypi-install-pentest/opengrep"},{"id":"pypi/GENERIC-standard-pypi-install-pentest/opengrep","import_time":"2025-12-02T23:07:19.461687632Z","modified_time":"2024-07-26T16:53:30Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"8de001a262d51e9750f84bfa2f6d30f5798aca9d0614b5feb95215ed1ced0507","source":"kam193"},{"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","import_time":"2025-12-10T21:38:58.575150501Z","modified_time":"2024-07-26T16:53:30Z","sha256":"ff192c815669701bedb4d6ee5c22adacb91a9be0db1204710cd3e83b871cb9fd","source":"kam193"},{"id":"RLUA-2026-00568","import_time":"2026-03-19T12:20:09.499800287Z","modified_time":"2026-03-18T12:16:37Z","sha256":"a7c4bbde4e0371dc055b22ffc8f525625c91f804b2f9aa9cb7af8d803efdd46c","source":"reversing-labs"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/opengrep"}],"affected":[{"package":{"name":"opengrep","ecosystem":"PyPI","purl":"pkg:pypi/opengrep"},"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"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/opengrep/MAL-2025-2981.json"}}],"schema_version":"1.7.5","credits":[{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"]},{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"},{"name":"ReversingLabs","contact":["https://www.reversinglabs.com"],"type":"FINDER"}]}