{"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":{"iocs":{"domains":["files.pythonhosted.ru","pythonhosted.ru","files.inostage.ru"],"urls":["http://files.pythonhosted.ru/56788.txt","http://files.pythonhosted.ru/56789.txt"]},"malicious-packages-origins":[{"sha256":"db7f459d8d864985656f06a8c8d163dfcf5679b1ce388f1cb3108395328671a0","source":"kam193","id":"pypi/2024-10-innostage/ptsecurity","import_time":"2025-12-02T22:30:55.449367005Z","modified_time":"2024-10-07T13:23:16Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}]},{"sha256":"a67d1a04a247e897d3da239f3ff95a95284282eb6bb38c266273167e4419b9c1","source":"kam193","id":"pypi/2024-10-innostage/ptsecurity","import_time":"2025-12-02T23:07:18.472348001Z","modified_time":"2024-10-07T13:23:16Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}]},{"source":"kam193","versions":["7.0.6"],"id":"pypi/2024-10-innostage/ptsecurity","import_time":"2025-12-10T21:38:57.68971193Z","modified_time":"2024-10-07T13:23:16Z","sha256":"2dc12db211fb9943a1e406e939aaabf211a1c864fc017b55aedd6e40f08e2b0b"}]},"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"}]}