pypi · Malicious package advisory
Malwaregetpublicip
MAL-2025-191738
Malicious code in getpublicip (PyPI)
Details
--- _-= Per source details. Do not edit below this line.=-_ ## 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
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.