pypi · Malicious package advisory
Malwaregetpublicip
GHSA-9mv8-cgmm-vgf2
Malicious code in getpublicip (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 1.0.1` ## Source: kam193 (041ba7130d1460fe6480d062c61c78db3b88cc5c6d060913d0501fdbdc7c35b0) If installed using source package, the package collects selected environment variables, including GITHUB_TOKEN if set, and sends to an external service. The package doesn't hide its actions at all, but there are already multiple different packages with the same code. --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2025-01-markitanalysis Reasons (based on the campaign): - The package overrides the install command in setup.py to execute malicious code during installation. - exfiltration-env-variables --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/getpublicip/MAL-2025-191738.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/getpublicip - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/getpublicip/MAL-2025-191738.json - https://github.com/advisories/GHSA-9mv8-cgmm-vgf2
Compromised versions (1)
- = 1.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.