MAL-2025-6540Malicious code in mainx (PyPI)
| Ecosystem | Package | Version |
|---|---|---|
| PyPI | mainx | 0.1 |
| PyPI | mainx | 0.4 |
| PyPI | mainx | 0.5 |
| PyPI | mainx | 0.6 |
| PyPI | mainx | 0.7 |
| PyPI | mainx | 0.8 |
| PyPI | mainx | 0.9 |
| PyPI | mainx | 1 |
| PyPI | mainx | 1.0 |
{"modified":"2026-03-19T12:23:25Z","published":"2025-06-24T15:56:56Z","schema_version":"1.7.4","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","affected":[{"package":{"ecosystem":"PyPI","name":"mainx","purl":"pkg:pypi/mainx"},"versions":["0.1","0.4","0.5","0.6","0.7","0.8","0.9","1","1.0"]}],"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"}],"credits":[{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"]},{"name":"Kamil Mańkowski (kam193)","type":"REPORTER","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"]},{"name":"ReversingLabs","type":"FINDER","contact":["https://www.reversinglabs.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"reversing-labs","sha256":"c47485e969c40c9ce7c118d971f25ff7bbcf66f6d961a28ffa39d7bf497957d3","import_time":"2025-08-01T10:07:12.360069312Z","id":"RLMA-2025-03634","modified_time":"2025-07-31T19:15:35Z","versions":["0.1","0.4","0.5","0.6","0.7","0.8","0.9","1"]},{"source":"reversing-labs","sha256":"7f7a6cb96cd1bab4f33b465ea33076403d7c65d54b346d865a57eb11ee2fd712","import_time":"2025-08-29T06:42:44.431005562Z","id":"RLUA-2025-04194","modified_time":"2025-08-28T07:11:20Z"},{"source":"kam193","sha256":"e24c50cb97b2294bf6202850b4bc869265cf991422d480d67db0e89f807fa45e","import_time":"2025-12-02T22:30:55.321256609Z","id":"pypi/2025-06-mainx/mainx","modified_time":"2025-06-24T15:56:56Z","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}]},{"source":"kam193","sha256":"6a77aad2f42165ec9582f04fffab948f6a1125564e34f4d09c8d089b2708d8d2","import_time":"2025-12-02T23:07:18.348686015Z","id":"pypi/2025-06-mainx/mainx","modified_time":"2025-06-24T15:56:56Z","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}]},{"source":"kam193","sha256":"6f37d98ee668c0690e6163289206307f8b89b3af36f23b6245eaa22b141110f7","import_time":"2025-12-10T21:38:57.581695761Z","id":"pypi/2025-06-mainx/mainx","modified_time":"2025-06-24T15:56:56Z","versions":["0.1","0.4","0.5","0.6","0.7","0.8","0.9","1.0"]},{"source":"reversing-labs","sha256":"0e2991d8b172137fed549d6f6671dfd4a38ef4c0e6e09a906908c0232e28e33e","import_time":"2026-03-19T12:20:00.949831165Z","id":"RLUA-2026-00487","modified_time":"2026-03-18T12:15:47Z"}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0