{"id":"MAL-2025-6540","summary":"Malicious code in mainx (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (6a77aad2f42165ec9582f04fffab948f6a1125564e34f4d09c8d089b2708d8d2)\nWhile described as educational package to simulate post-exploitation environment, the malware is active and once started, automatically attempts to exfiltrate sensitive data (credentials, cookies, etc.) and places a Discord implant. The remote target is hard coded in the code.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2025-06-mainx\n\n\nReasons (based on the campaign):\n\n\n - obfuscation\n\n\n - infostealer\n\n\n - files-exfiltration\n\n\n - exfiltration-credentials\n\n\n - exfiltration-browser-data\n\n\n - peristence-autorun\n\n\n - The package contains code to detect if it is running in a sandbox environment.\n","modified":"2026-03-19T12:54:38.117834Z","published":"2025-06-24T15:56:56Z","database_specific":{"malicious-packages-origins":[{"sha256":"c47485e969c40c9ce7c118d971f25ff7bbcf66f6d961a28ffa39d7bf497957d3","versions":["0.1","0.4","0.5","0.6","0.7","0.8","0.9","1"],"source":"reversing-labs","modified_time":"2025-07-31T19:15:35Z","id":"RLMA-2025-03634","import_time":"2025-08-01T10:07:12.360069312Z"},{"sha256":"7f7a6cb96cd1bab4f33b465ea33076403d7c65d54b346d865a57eb11ee2fd712","source":"reversing-labs","modified_time":"2025-08-28T07:11:20Z","id":"RLUA-2025-04194","import_time":"2025-08-29T06:42:44.431005562Z"},{"sha256":"e24c50cb97b2294bf6202850b4bc869265cf991422d480d67db0e89f807fa45e","source":"kam193","modified_time":"2025-06-24T15:56:56Z","id":"pypi/2025-06-mainx/mainx","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"import_time":"2025-12-02T22:30:55.321256609Z"},{"sha256":"6a77aad2f42165ec9582f04fffab948f6a1125564e34f4d09c8d089b2708d8d2","source":"kam193","modified_time":"2025-06-24T15:56:56Z","id":"pypi/2025-06-mainx/mainx","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"import_time":"2025-12-02T23:07:18.348686015Z"},{"sha256":"6f37d98ee668c0690e6163289206307f8b89b3af36f23b6245eaa22b141110f7","versions":["0.1","0.4","0.5","0.6","0.7","0.8","0.9","1.0"],"source":"kam193","modified_time":"2025-06-24T15:56:56Z","id":"pypi/2025-06-mainx/mainx","import_time":"2025-12-10T21:38:57.581695761Z"},{"sha256":"0e2991d8b172137fed549d6f6671dfd4a38ef4c0e6e09a906908c0232e28e33e","source":"reversing-labs","modified_time":"2026-03-18T12:15:47Z","id":"RLUA-2026-00487","import_time":"2026-03-19T12:20:00.949831165Z"}]},"references":[{"type":"WEB","url":"https://www.sonatype.com/blog/sonatype-uncovers-global-espionage-campaign-in-open-source-ecosystems"},{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/mainx"}],"affected":[{"package":{"name":"mainx","ecosystem":"PyPI","purl":"pkg:pypi/mainx"},"versions":["0.1","0.4","0.5","0.6","0.7","0.8","0.9","1","1.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/mainx/MAL-2025-6540.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"}]}