{"id":"MAL-2024-9270","summary":"Malicious code in ptsecurity (PyPI)","details":"The package contains code to download and execute a reverse shell script.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (a67d1a04a247e897d3da239f3ff95a95284282eb6bb38c266273167e4419b9c1)\nWhen imported, the package download and runs a remote stage - a reverse shell. To mask activity, the remote domain is made to mimic PyPI host: files[.]pythonhosted[.]ru\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2024-10-innostage\n\n\nReasons (based on the campaign):\n\n\n - The package contains code to create a reverse shell, allowing an attacker to execute any commands on the victim's machine.\n","modified":"2025-12-12T20:41:50.105377Z","published":"2024-10-07T13:23:16Z","database_specific":{"malicious-packages-origins":[{"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"sha256":"db7f459d8d864985656f06a8c8d163dfcf5679b1ce388f1cb3108395328671a0","modified_time":"2024-10-07T13:23:16Z","id":"pypi/2024-10-innostage/ptsecurity","source":"kam193","import_time":"2025-12-02T22:30:55.449367005Z"},{"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"sha256":"a67d1a04a247e897d3da239f3ff95a95284282eb6bb38c266273167e4419b9c1","modified_time":"2024-10-07T13:23:16Z","id":"pypi/2024-10-innostage/ptsecurity","source":"kam193","import_time":"2025-12-02T23:07:18.472348001Z"},{"versions":["7.0.6"],"sha256":"2dc12db211fb9943a1e406e939aaabf211a1c864fc017b55aedd6e40f08e2b0b","modified_time":"2024-10-07T13:23:16Z","id":"pypi/2024-10-innostage/ptsecurity","source":"kam193","import_time":"2025-12-10T21:38:57.68971193Z"}],"iocs":{"urls":["http://files.pythonhosted.ru/56788.txt","http://files.pythonhosted.ru/56789.txt"],"domains":["files.pythonhosted.ru","pythonhosted.ru","files.inostage.ru"]}},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/ptsecurity"}],"affected":[{"package":{"name":"ptsecurity","ecosystem":"PyPI","purl":"pkg:pypi/ptsecurity"},"versions":["7.0.6"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/ptsecurity/MAL-2024-9270.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"},{"name":"Stacklok: trustypkg.dev","contact":["https://discord.com/invite/RkzVuTp3WK"],"type":"FINDER"}]}