MAL-2025-191738

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/getpublicip/MAL-2025-191738.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2025-191738
Published
2025-01-26T18:01:08Z
Modified
2025-12-12T20:39:41.986947Z
Summary
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

Database specific
{
    "malicious-packages-origins": [
        {
            "modified_time": "2025-01-26T18:01:08Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "ECOSYSTEM"
                }
            ],
            "sha256": "f56c896975dfa2769430b4217399151d147441d726f3fdb50ee2002928c4b1e7",
            "id": "pypi/2025-01-markitanalysis/getpublicip",
            "source": "kam193",
            "import_time": "2025-12-02T22:30:55.220467146Z"
        },
        {
            "modified_time": "2025-01-26T18:01:08Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "ECOSYSTEM"
                }
            ],
            "sha256": "041ba7130d1460fe6480d062c61c78db3b88cc5c6d060913d0501fdbdc7c35b0",
            "id": "pypi/2025-01-markitanalysis/getpublicip",
            "source": "kam193",
            "import_time": "2025-12-02T23:07:18.241364856Z"
        },
        {
            "modified_time": "2025-01-26T18:01:08Z",
            "versions": [
                "1.0.1"
            ],
            "sha256": "d000d4ab026e0f4e28815b274d16385177ebf1131d0a55acaddd790387a6ecf3",
            "id": "pypi/2025-01-markitanalysis/getpublicip",
            "source": "kam193",
            "import_time": "2025-12-10T21:38:57.507559789Z"
        }
    ]
}
References
Credits

Affected packages

PyPI / getpublicip

Package

Affected ranges

Affected versions

1.*
1.0.1

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/getpublicip/MAL-2025-191738.json"