mal-2025-3440
Vulnerability from ossf_malicious_packages
Published
2025-03-23 21:03
Modified
2025-12-11 09:27
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.


{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "codeoptimizer",
        "purl": "pkg:pypi/codeoptimizer"
      },
      "versions": [
        "4.1.1",
        "4.2.1"
      ]
    }
  ],
  "credits": [
    {
      "contact": [
        "https://github.com/kam193",
        "https://bad-packages.kam193.eu/"
      ],
      "name": "Kamil Ma\u0144kowski (kam193)"
    },
    {
      "contact": [
        "https://github.com/kam193",
        "https://bad-packages.kam193.eu/"
      ],
      "name": "Kamil Ma\u0144kowski (kam193)",
      "type": "REPORTER"
    },
    {
      "contact": [
        "https://www.reversinglabs.com"
      ],
      "name": "ReversingLabs",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "RLMA-2025-02501",
        "import_time": "2025-04-25T09:36:45.77538608Z",
        "modified_time": "2025-04-23T16:06:19Z",
        "sha256": "281f13da30ea268d50afd993f2dad871df4049a094bd7fcaa2b3edc41078e08d",
        "source": "reversing-labs",
        "versions": [
          "4.1.1",
          "4.2.1"
        ]
      },
      {
        "id": "pypi/2025-03-yolov8mini/codeoptimizer",
        "import_time": "2025-12-02T22:30:55.047943956Z",
        "modified_time": "2025-03-23T21:03:35Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "d834811e5a8d0cdd2fd4516991460ba7a19480bcb624b73a9d9de33444d43406",
        "source": "kam193"
      },
      {
        "id": "pypi/2025-03-yolov8mini/codeoptimizer",
        "import_time": "2025-12-02T23:07:18.055986045Z",
        "modified_time": "2025-03-23T21:03:35Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "ECOSYSTEM"
          }
        ],
        "sha256": "7ae236bbeace8d7b056d4827059bc1f4b6314e57e75827ce5a980ac9dfb991c2",
        "source": "kam193"
      },
      {
        "id": "pypi/2025-03-yolov8mini/codeoptimizer",
        "import_time": "2025-12-10T21:38:57.3464584Z",
        "modified_time": "2025-03-23T21:03:35Z",
        "sha256": "f0bdf1f12dc20242ebe73df650e6973f1e7d6421be7052088f509e8eb5fdb5ab",
        "source": "kam193",
        "versions": [
          "4.1.1",
          "4.2.1"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (7ae236bbeace8d7b056d4827059bc1f4b6314e57e75827ce5a980ac9dfb991c2)\nOn 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\u0027s a monitoring tool, the automated start, capabilities targeting secret values suggest malicious intentions.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2025-03-yolov8mini\n\n\nReasons (based on the campaign):\n\n\n - infostealer\n\n\n - exfiltration-generic\n\n\n - dependency-confusion\n\n\n - exfiltration-browser-data\n\n\n - The package contains code to execute remote commands (probably limited to a specific set) on the victim\u0027s machine.\n",
  "id": "MAL-2025-3440",
  "modified": "2025-12-11T09:27:52Z",
  "published": "2025-03-23T21:03:35Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://bad-packages.kam193.eu/pypi/package/codeoptimizer"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in codeoptimizer (PyPI)"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…