{"id":"MAL-2025-1997","summary":"Malicious code in testospkg (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (9e465f1b8689bea6b370d4daf187498e073715c051bea18b33f8e20f15b03e02)\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:57:09.651899Z","published":"2024-07-26T16:53:30Z","database_specific":{"malicious-packages-origins":[{"import_time":"2025-03-03T15:07:17.604572056Z","versions":["0.0.2","0.0.3"],"sha256":"8037754b80149b6d2d3be95e1867d4f5b8401637539733006147968cd9920f75","modified_time":"2025-03-03T13:45:23Z","id":"RLMA-2025-01240","source":"reversing-labs"},{"import_time":"2025-12-02T22:30:56.443767877Z","sha256":"9f7a507f59348115b4a92ab77584130cbbae2b627b241d8d1aecb46a81a33ba1","modified_time":"2024-07-26T16:53:30Z","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"id":"pypi/GENERIC-standard-pypi-install-pentest/testospkg","source":"kam193"},{"import_time":"2025-12-02T23:07:19.627983917Z","sha256":"9e465f1b8689bea6b370d4daf187498e073715c051bea18b33f8e20f15b03e02","modified_time":"2024-07-26T16:53:30Z","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"id":"pypi/GENERIC-standard-pypi-install-pentest/testospkg","source":"kam193"},{"import_time":"2025-12-10T21:38:58.731572633Z","versions":["0.0.1","0.0.2","0.0.3"],"sha256":"78a3b5dfea1aec0f6dca8f6b815cd15f98a1e78b1830c4743cb05cf060156ef8","modified_time":"2024-07-26T16:53:30Z","id":"pypi/GENERIC-standard-pypi-install-pentest/testospkg","source":"kam193"},{"import_time":"2026-03-19T12:20:32.34159763Z","sha256":"9c9266b5bf0d3392fc9c3fd28195a5f228ceb83a736e4245ba728846206b46d5","modified_time":"2026-03-18T12:19:21Z","id":"RLUA-2026-00808","source":"reversing-labs"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/testospkg"}],"affected":[{"package":{"name":"testospkg","ecosystem":"PyPI","purl":"pkg:pypi/testospkg"},"versions":["0.0.2","0.0.3","0.0.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/testospkg/MAL-2025-1997.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":"ANALYST"},{"name":"ReversingLabs","contact":["https://www.reversinglabs.com"],"type":"FINDER"}]}