mal-2025-6540
Vulnerability from ossf_malicious_packages
Published
2025-06-24 15:56
Modified
2025-12-11 09:27
Summary
Malicious code in mainx (PyPI)
Details
-= Per source details. Do not edit below this line.=-
Source: kam193 (6a77aad2f42165ec9582f04fffab948f6a1125564e34f4d09c8d089b2708d8d2)
While 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.
Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.
Campaign: 2025-06-mainx
Reasons (based on the campaign):
-
obfuscation
-
infostealer
-
files-exfiltration
-
exfiltration-credentials
-
exfiltration-browser-data
-
peristence-autorun
-
The package contains code to detect if it is running in a sandbox environment.
Credits
ReversingLabs
www.reversinglabs.com
{
"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"
]
}
],
"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-03634",
"import_time": "2025-08-01T10:07:12.360069312Z",
"modified_time": "2025-07-31T19:15:35Z",
"sha256": "c47485e969c40c9ce7c118d971f25ff7bbcf66f6d961a28ffa39d7bf497957d3",
"source": "reversing-labs",
"versions": [
"0.1",
"0.4",
"0.5",
"0.6",
"0.7",
"0.8",
"0.9",
"1"
]
},
{
"id": "RLUA-2025-04194",
"import_time": "2025-08-29T06:42:44.431005562Z",
"modified_time": "2025-08-28T07:11:20Z",
"sha256": "7f7a6cb96cd1bab4f33b465ea33076403d7c65d54b346d865a57eb11ee2fd712",
"source": "reversing-labs"
},
{
"id": "pypi/2025-06-mainx/mainx",
"import_time": "2025-12-02T22:30:55.321256609Z",
"modified_time": "2025-06-24T15:56:56Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"sha256": "e24c50cb97b2294bf6202850b4bc869265cf991422d480d67db0e89f807fa45e",
"source": "kam193"
},
{
"id": "pypi/2025-06-mainx/mainx",
"import_time": "2025-12-02T23:07:18.348686015Z",
"modified_time": "2025-06-24T15:56:56Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"sha256": "6a77aad2f42165ec9582f04fffab948f6a1125564e34f4d09c8d089b2708d8d2",
"source": "kam193"
},
{
"id": "pypi/2025-06-mainx/mainx",
"import_time": "2025-12-10T21:38:57.581695761Z",
"modified_time": "2025-06-24T15:56:56Z",
"sha256": "6f37d98ee668c0690e6163289206307f8b89b3af36f23b6245eaa22b141110f7",
"source": "kam193",
"versions": [
"0.1",
"0.4",
"0.5",
"0.6",
"0.7",
"0.8",
"0.9",
"1.0"
]
}
]
},
"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",
"id": "MAL-2025-6540",
"modified": "2025-12-11T09:27:53Z",
"published": "2025-06-24T15:56:56Z",
"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"
}
],
"schema_version": "1.7.4",
"summary": "Malicious code in mainx (PyPI)"
}
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…
Loading…