Skip to content
OpenAdvisories
Malicious MAL-2025-3440

codeoptimizer

PyPI package · versions 4.1.1, 4.2.1

Reported Mar 23, 2025 · Updated Mar 19, 2026

If this package is installed

Remove it, treat the machine (or CI runner) as compromised, and rotate every secret, token and key it could access — from a different, clean machine.

Details

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.