MAL-2025-909

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/code-suggester/MAL-2025-909.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2025-909
Published
2024-12-16T10:40:50Z
Modified
2026-03-19T12:51:50.691344Z
Summary
Malicious code in code-suggester (PyPI)
Details

-= Per source details. Do not edit below this line.=-

Source: kam193 (e28ce2ce1f759945a6b42ebe9f6f224869ab1f91b85212853e83a20d43a390bd)

During installation, the package collects quite extensive information about the host and has no other purpose. To avoid detection, the real code is put in a ZIP archive and includes also some VM-detection techniques. The malicious code is activated via metaclass set for the "install" command class in setup.py

Over the time, techniques used in packages are slightly changing, including that some of marked packages don't have malicious part, but rather are used only for tests.


Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.

Campaign: 2024-12-langer-updater

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.

  • The package overrides the install command in setup.py to execute malicious code during installation.

  • exfiltration-env-variables

  • The package contains code to detect if it is running in a sandbox environment.

Database specific
{
    "malicious-packages-origins": [
        {
            "modified_time": "2025-02-03T17:07:12Z",
            "sha256": "737bf20c94c575781b4079ba957d10c5f7318d0cc5354be50b8d9e93dac96539",
            "source": "reversing-labs",
            "import_time": "2025-02-03T18:38:05.343233041Z",
            "id": "RLMA-2025-00447",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "modified_time": "2024-12-16T10:40:50Z",
            "sha256": "a8b4769efe93b713fa5a846061665f466dae9400828172841d2692a1073bbb1a",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "source": "kam193",
            "import_time": "2025-12-02T22:30:55.046407354Z",
            "id": "pypi/2024-12-langer-updater/code-suggester"
        },
        {
            "modified_time": "2024-12-16T10:40:50Z",
            "sha256": "e28ce2ce1f759945a6b42ebe9f6f224869ab1f91b85212853e83a20d43a390bd",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "source": "kam193",
            "import_time": "2025-12-02T23:07:18.054480377Z",
            "id": "pypi/2024-12-langer-updater/code-suggester"
        },
        {
            "modified_time": "2024-12-16T10:40:50Z",
            "sha256": "3dc84828483c5ad02170b5f1464d1467d826efc11191d4b0d662c7d62cbd5f2b",
            "source": "kam193",
            "import_time": "2025-12-10T21:38:57.344774932Z",
            "id": "pypi/2024-12-langer-updater/code-suggester",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "modified_time": "2026-03-18T12:12:29Z",
            "sha256": "c579b8091fa84cc2f962f0d3f87f359e483f814bcaf925a9df9b790618852e69",
            "source": "reversing-labs",
            "import_time": "2026-03-19T12:19:34.132796086Z",
            "id": "RLUA-2026-00201"
        }
    ]
}
References
Credits

Affected packages

PyPI / code-suggester

Package

Affected ranges

Affected versions

1.*
1.0.0

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/code-suggester/MAL-2025-909.json"