{"id":"MAL-2024-12281","summary":"Malicious code in hack-test (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (bedfa0b9b013ca3de0418ac30c7192adef27902eee78ae8bdf2d74afe652c3e2)\nPackages that might be part of testing for pentesting / malicious activity / joy, with suspicious activity that does not present any real harm.\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-simple-tests\n\n\nReasons (based on the campaign):\n\n\n - The package overrides the install command in setup.py to execute malicious code during installation.\n","modified":"2025-12-31T02:54:03.017958Z","published":"2024-08-23T22:55:41Z","database_specific":{"malicious-packages-origins":[{"import_time":"2025-12-02T22:30:56.082415459Z","modified_time":"2025-11-23T15:11:02.968104Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"69727976e464122a8453f300a53e246882e4c266f302a9e44389aeefb0fd028d","source":"kam193","id":"pypi/GENERIC-simple-tests/hack-test"},{"import_time":"2025-12-02T23:07:19.272252411Z","modified_time":"2025-11-23T15:11:02.968104Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"bedfa0b9b013ca3de0418ac30c7192adef27902eee78ae8bdf2d74afe652c3e2","source":"kam193","id":"pypi/GENERIC-simple-tests/hack-test"},{"id":"pypi/GENERIC-simple-tests/hack-test","import_time":"2025-12-12T12:11:30.652577033Z","modified_time":"2025-11-23T15:11:02.968104Z","sha256":"712cb96dca55e5b55be43eb1a2f7e436acf74c4d55e5aa37caa0f64245caa648","source":"kam193","versions":["0.1.1","0.1.0"]},{"id":"pypi/GENERIC-simple-tests/hack-test","import_time":"2025-12-30T22:39:04.292999707Z","modified_time":"2025-11-23T15:11:02.968104Z","sha256":"291f7292bdbb1b11223d3b6b72da35a931e2a5f2b89e1ea63234dacafff01aef","source":"kam193","versions":["0.1.0","0.1.1"]}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/hack-test"}],"affected":[{"package":{"name":"hack-test","ecosystem":"PyPI","purl":"pkg:pypi/hack-test"},"versions":["0.1.1","0.1.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/hack-test/MAL-2024-12281.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":"ANALYST"}]}