{"id":"MAL-2025-3460","summary":"Malicious code in python-socket-test (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (93a8d30e631680bace9b05db1ac189cbcc472895fcfb1db40f4df52f301a6599)\nImporting the package starts a script that takes commands from remote server and executes locally\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2025-03-python-socket-test\n\n\nReasons (based on the campaign):\n\n\n - The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.\n","modified":"2026-03-19T12:56:00.054459Z","published":"2025-03-18T10:22:52Z","database_specific":{"malicious-packages-origins":[{"source":"reversing-labs","versions":["1.0.0","1.0.1","1.1.1","2.0.0","2.0.1"],"id":"RLMA-2025-02524","import_time":"2025-04-25T09:36:47.589754624Z","modified_time":"2025-04-23T16:06:35Z","sha256":"382f73d1e1afdcb53f0f53d1971a55c246aeab8a4b44cb4bd2e8ad450aac24e4"},{"modified_time":"2025-03-18T10:22:52Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"ebda3713b5dc5450e5ab29810baa209491367514409022f5514a592dd2aa43b3","source":"kam193","id":"pypi/2025-03-python-socket-test/python-socket-test","import_time":"2025-12-02T22:30:55.493825504Z"},{"source":"kam193","id":"pypi/2025-03-python-socket-test/python-socket-test","import_time":"2025-12-02T23:07:18.518739202Z","modified_time":"2025-03-18T10:22:52Z","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"sha256":"93a8d30e631680bace9b05db1ac189cbcc472895fcfb1db40f4df52f301a6599"},{"modified_time":"2025-03-18T10:22:52Z","sha256":"84b55a44b9131e861d0ebe1884bed3f6ec52a705ccb96b8a3861e1a50a1fb8d0","source":"kam193","versions":["1.0.0","1.0.1","1.1.1","2.0.0","2.0.1"],"id":"pypi/2025-03-python-socket-test/python-socket-test","import_time":"2025-12-10T21:38:57.737805993Z"},{"sha256":"503a73cf105cfe27c48a3bbfce49f33a4ec01fa39ff27d6ebeeebbbd6f3526ba","source":"reversing-labs","id":"RLUA-2026-00668","import_time":"2026-03-19T12:20:18.807021936Z","modified_time":"2026-03-18T12:17:49Z"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/python-socket-test"}],"affected":[{"package":{"name":"python-socket-test","ecosystem":"PyPI","purl":"pkg:pypi/python-socket-test"},"versions":["1.0.0","1.0.1","1.1.1","2.0.0","2.0.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/python-socket-test/MAL-2025-3460.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"}]}