{"id":"MAL-2025-191845","summary":"Malicious code in python3-shodan (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (b4fca245262ff8de532efc88e1941697e6994786e09eca8a9cbcdbf9faff5cca)\nPackages that seem to be created by a legit bug bounty hunter. Designed to look like created by different organisations, they contain a couple of data exfiltration (including all env variables) and potential remote code execution (though the URL seems not to serve any code).\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2025-05-sl4x01\n\n\nReasons (based on the campaign):\n\n\n - The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.\n\n\n - exfiltration-env-variables\n\n\n - impersonation\n","modified":"2025-12-12T20:40:11.387013Z","published":"2025-05-10T17:59:53Z","database_specific":{"iocs":{"domains":["sl4x0.xyz"]},"malicious-packages-origins":[{"modified_time":"2025-05-10T17:59:53Z","import_time":"2025-12-02T22:30:55.496100188Z","id":"pypi/2025-05-sl4x01/python3-shodan","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"422f6521d87f0b265b70862fad840f74d262b48235a70e6db133fa55fa783cfa","source":"kam193"},{"modified_time":"2025-05-10T17:59:53Z","import_time":"2025-12-02T23:07:18.520971405Z","id":"pypi/2025-05-sl4x01/python3-shodan","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"b4fca245262ff8de532efc88e1941697e6994786e09eca8a9cbcdbf9faff5cca","source":"kam193"},{"modified_time":"2025-05-10T17:59:53Z","import_time":"2025-12-10T21:38:57.739347937Z","id":"pypi/2025-05-sl4x01/python3-shodan","versions":["0.0.1"],"sha256":"cffb4935106ce0254db0bb29a553a83006e1bfd48324219984b910041877b0b0","source":"kam193"}]},"references":[{"type":"WEB","url":"https://github.com/sl4x0"},{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/python3-shodan"}],"affected":[{"package":{"name":"python3-shodan","ecosystem":"PyPI","purl":"pkg:pypi/python3-shodan"},"versions":["0.0.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/python3-shodan/MAL-2025-191845.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"}]}