pypi · Malicious package advisory
Malwarepython3-shodan
GHSA-prff-jqwc-89h9
Malicious code in python3-shodan (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 0.0.1` ## Source: kam193 (b4fca245262ff8de532efc88e1941697e6994786e09eca8a9cbcdbf9faff5cca) Packages 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). --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2025-05-sl4x01 Reasons (based on the campaign): - The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk. - exfiltration-env-variables - impersonation --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/python3-shodan/MAL-2025-191845.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/python3-shodan - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/python3-shodan/MAL-2025-191845.json - https://github.com/sl4x0 - https://github.com/advisories/GHSA-prff-jqwc-89h9
Compromised versions (1)
- = 0.0.1
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.