Skip to content

MAL-2025-191738 Malicious code in getpublicip (PyPI)

Unknown
Published
Updated
Exploit status
No public exploit known

Description


-= 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

Upgrade path

1 package: 0 fixed.

PackageAffectedFixed inStatus
pypi getpublicip(PyPI) = 1.0.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi getpublicip(PyPI) = 1.0.1 No fix listed

References