MAL-2025-3440

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/codeoptimizer/MAL-2025-3440.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2025-3440
Published
2025-03-23T21:03:35Z
Modified
2026-03-19T12:51:54.608695Z
Summary
Malicious code in codeoptimizer (PyPI)
Details

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

Source: kam193 (7ae236bbeace8d7b056d4827059bc1f4b6314e57e75827ce5a980ac9dfb991c2)

On importing the module, there is an automated start of a Telegram bot capable of exfiltrating passwords from browsers, executing arbitrary commands and so on. While the description states it's a monitoring tool, the automated start, capabilities targeting secret values suggest malicious intentions.


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

Campaign: 2025-03-yolov8mini

Reasons (based on the campaign):

  • infostealer

  • exfiltration-generic

  • dependency-confusion

  • exfiltration-browser-data

  • The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.

Database specific
{
    "malicious-packages-origins": [
        {
            "versions": [
                "4.1.1",
                "4.2.1"
            ],
            "modified_time": "2025-04-23T16:06:19Z",
            "sha256": "281f13da30ea268d50afd993f2dad871df4049a094bd7fcaa2b3edc41078e08d",
            "id": "RLMA-2025-02501",
            "source": "reversing-labs",
            "import_time": "2025-04-25T09:36:45.77538608Z"
        },
        {
            "source": "kam193",
            "modified_time": "2025-03-23T21:03:35Z",
            "sha256": "d834811e5a8d0cdd2fd4516991460ba7a19480bcb624b73a9d9de33444d43406",
            "id": "pypi/2025-03-yolov8mini/codeoptimizer",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T22:30:55.047943956Z"
        },
        {
            "source": "kam193",
            "modified_time": "2025-03-23T21:03:35Z",
            "sha256": "7ae236bbeace8d7b056d4827059bc1f4b6314e57e75827ce5a980ac9dfb991c2",
            "id": "pypi/2025-03-yolov8mini/codeoptimizer",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T23:07:18.055986045Z"
        },
        {
            "versions": [
                "4.1.1",
                "4.2.1"
            ],
            "modified_time": "2025-03-23T21:03:35Z",
            "sha256": "f0bdf1f12dc20242ebe73df650e6973f1e7d6421be7052088f509e8eb5fdb5ab",
            "id": "pypi/2025-03-yolov8mini/codeoptimizer",
            "source": "kam193",
            "import_time": "2025-12-10T21:38:57.3464584Z"
        },
        {
            "modified_time": "2026-03-18T12:12:31Z",
            "sha256": "b2b1732cd729492e0c5617a4f940ae2ce97a8157207a456e1cb2894787688504",
            "id": "RLUA-2026-00203",
            "source": "reversing-labs",
            "import_time": "2026-03-19T12:19:34.299413528Z"
        }
    ]
}
References
Credits

Affected packages

PyPI / codeoptimizer

Package

Affected ranges

Affected versions

4.*
4.1.1
4.2.1

Database specific

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