{"id":"MAL-2024-12329","summary":"Malicious code in pwnstar-lib (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (0b5a94b7cc47cb91bf552abe43f1a0d078ed5c6e668c5ff4caa8c4d9f6d14177)\nGeneric campaign for all (likely) research / pentests, where the amount or art of collected data raises questions about the privacy, security and ethical side.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: GENERIC-questionable-pentest\n\n\nReasons (based on the campaign):\n\n\n - exfiltration-env-variables\n\n\n - exfiltration-generic\n\n\n - The package overrides the install command in setup.py to execute malicious code during installation.\n\n\n - typosquatting\n","modified":"2025-12-12T20:41:50.880502Z","published":"2024-09-06T11:29:16Z","database_specific":{"malicious-packages-origins":[{"id":"pypi/GENERIC-questionable-pentest/pwnstar-lib","import_time":"2025-12-02T22:30:55.451529597Z","modified_time":"2024-09-06T11:29:16Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"b3dac5dfd9f2bf5f95ad7a7588b51d247f703eb4e881afd67bc6f53b046be708","source":"kam193"},{"id":"pypi/GENERIC-questionable-pentest/pwnstar-lib","import_time":"2025-12-02T23:07:18.474820214Z","modified_time":"2024-09-06T11:29:16Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"0b5a94b7cc47cb91bf552abe43f1a0d078ed5c6e668c5ff4caa8c4d9f6d14177","source":"kam193"},{"versions":["1.5","1.6","1.7","1.8","1.9","2.0","2.1","2.3","2.4"],"id":"pypi/GENERIC-questionable-pentest/pwnstar-lib","import_time":"2025-12-10T21:38:57.691316501Z","modified_time":"2024-09-06T11:29:16Z","sha256":"ea6fc7d7146c4ac70dab83c40b4d4095fdba3bd615db80fba2860d655083940b","source":"kam193"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/pwnstar-lib"}],"affected":[{"package":{"name":"pwnstar-lib","ecosystem":"PyPI","purl":"pkg:pypi/pwnstar-lib"},"versions":["1.5","1.6","1.7","1.8","1.9","2.0","2.1","2.3","2.4"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/pwnstar-lib/MAL-2024-12329.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"}]}