{"id":"MAL-2025-191878","summary":"Malicious code in statsapi (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (5c59dd2732ec529321670e500c8b732a5641b361029fd435277a6f110d4c5286)\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":"2025-12-31T02:52:36.278673Z","published":"2025-10-25T09:07:56Z","database_specific":{"malicious-packages-origins":[{"id":"pypi/GENERIC-standard-pypi-install-pentest/statsapi","import_time":"2025-12-02T22:30:56.41778437Z","modified_time":"2025-10-25T09:07:56.480045Z","sha256":"04e14cd45bac0a624b8670a6c17581313e44b06dfe9bb093a9669707043b664e","source":"kam193","versions":["1.7.2","0.0.0"]},{"sha256":"5c59dd2732ec529321670e500c8b732a5641b361029fd435277a6f110d4c5286","source":"kam193","versions":["1.7.2","0.0.0"],"id":"pypi/GENERIC-standard-pypi-install-pentest/statsapi","import_time":"2025-12-02T23:07:19.603658845Z","modified_time":"2025-10-25T09:07:56.480045Z"},{"id":"pypi/GENERIC-standard-pypi-install-pentest/statsapi","import_time":"2025-12-30T22:39:04.350540799Z","modified_time":"2025-10-25T09:07:56.480045Z","sha256":"9338efa2d7acf30248aab808d95b13edd309fc32cdec85a6947812df488091d5","source":"kam193","versions":["0.0.0","1.7.2"]}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/statsapi"}],"affected":[{"package":{"name":"statsapi","ecosystem":"PyPI","purl":"pkg:pypi/statsapi"},"versions":["1.7.2","0.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/statsapi/MAL-2025-191878.json"}}],"schema_version":"1.7.3","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"}]}