{"id":"MAL-2025-3440","summary":"Malicious code in codeoptimizer (PyPI)","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's 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's machine.\n","modified":"2026-03-19T12:51:54.608695Z","published":"2025-03-23T21:03:35Z","database_specific":{"malicious-packages-origins":[{"id":"RLMA-2025-02501","modified_time":"2025-04-23T16:06:19Z","versions":["4.1.1","4.2.1"],"source":"reversing-labs","import_time":"2025-04-25T09:36:45.77538608Z","sha256":"281f13da30ea268d50afd993f2dad871df4049a094bd7fcaa2b3edc41078e08d"},{"id":"pypi/2025-03-yolov8mini/codeoptimizer","modified_time":"2025-03-23T21:03:35Z","source":"kam193","import_time":"2025-12-02T22:30:55.047943956Z","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"sha256":"d834811e5a8d0cdd2fd4516991460ba7a19480bcb624b73a9d9de33444d43406"},{"id":"pypi/2025-03-yolov8mini/codeoptimizer","modified_time":"2025-03-23T21:03:35Z","source":"kam193","import_time":"2025-12-02T23:07:18.055986045Z","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"sha256":"7ae236bbeace8d7b056d4827059bc1f4b6314e57e75827ce5a980ac9dfb991c2"},{"id":"pypi/2025-03-yolov8mini/codeoptimizer","modified_time":"2025-03-23T21:03:35Z","versions":["4.1.1","4.2.1"],"source":"kam193","import_time":"2025-12-10T21:38:57.3464584Z","sha256":"f0bdf1f12dc20242ebe73df650e6973f1e7d6421be7052088f509e8eb5fdb5ab"},{"id":"RLUA-2026-00203","modified_time":"2026-03-18T12:12:31Z","source":"reversing-labs","import_time":"2026-03-19T12:19:34.299413528Z","sha256":"b2b1732cd729492e0c5617a4f940ae2ce97a8157207a456e1cb2894787688504"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/codeoptimizer"}],"affected":[{"package":{"name":"codeoptimizer","ecosystem":"PyPI","purl":"pkg:pypi/codeoptimizer"},"versions":["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"}}],"schema_version":"1.7.5","credits":[{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"]},{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"},{"name":"ReversingLabs","contact":["https://www.reversinglabs.com"],"type":"FINDER"}]}