mal-2025-3014
Vulnerability from ossf_malicious_packages
Published
2025-02-17 10:36
Modified
2025-12-11 09:27
Summary
Malicious code in w3socket (PyPI)
Details
-= Per source details. Do not edit below this line.=-
Source: kam193 (729a8001d69369db2b822c1a13ba9363d3dad46299a6ced4e52ab604c3261ec4)
web3socket: In the class there is a hidden code that loads a binary Python code from a remote location impersonating PyPI Github account web3node: The package is used to download and run remote code by other packages. Files darwin.py, gnu.py and win32.py contain code that adds executing remote code to the crontab as well as an attempt to escalate privileges. w3socket: It uses web3node to start remote code in config.py
Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.
Campaign: 2025-02-web3socket
Reasons (based on the campaign):
-
dependency-confusion
-
impersonation
-
Downloads and executes a remote malicious script.
Credits
ReversingLabs
www.reversinglabs.com
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "w3socket",
"purl": "pkg:pypi/w3socket"
},
"versions": [
"0.1.1",
"0.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": {
"iocs": {
"domains": [
"saboreysecretos.com"
],
"urls": [
"https://raw.githubusercontent.com/pypi-org/DynamicLibs/refs/heads/main/web3config.pyc",
"https://github.com/pypi-org/web3sockcet",
"https://saboreysecretos.com/wp-includes/assets/script-modules-packages.win.php?u=2"
]
},
"malicious-packages-origins": [
{
"id": "RLMA-2025-02013",
"import_time": "2025-03-31T07:07:07.304757137Z",
"modified_time": "2025-03-28T13:06:29Z",
"sha256": "02827c7665179ae3b0de814e4e26d33e46361e6c3d470277311e814d1545be07",
"source": "reversing-labs",
"versions": [
"0.1.1"
]
},
{
"id": "pypi/2025-02-web3socket/w3socket",
"import_time": "2025-12-02T22:30:55.723096371Z",
"modified_time": "2025-02-17T10:36:37Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"sha256": "c037b4c528e4a66879f4f1963660065ea4ca715f4b52d60ee31f7e067b496cf5",
"source": "kam193"
},
{
"id": "pypi/2025-02-web3socket/w3socket",
"import_time": "2025-12-02T23:07:18.762984767Z",
"modified_time": "2025-02-17T10:36:37Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"sha256": "729a8001d69369db2b822c1a13ba9363d3dad46299a6ced4e52ab604c3261ec4",
"source": "kam193"
},
{
"id": "pypi/2025-02-web3socket/w3socket",
"import_time": "2025-12-10T21:38:57.932331863Z",
"modified_time": "2025-02-17T10:36:37Z",
"sha256": "f9af39000e0310c4e2fef4a66b3a6ccfafbf4b77dea51d89c4f32e5912765bd7",
"source": "kam193",
"versions": [
"0.1.0",
"0.1.1"
]
}
]
},
"details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (729a8001d69369db2b822c1a13ba9363d3dad46299a6ced4e52ab604c3261ec4)\nweb3socket: In the class there is a hidden code that loads a binary Python code from a remote location impersonating PyPI Github account\nweb3node: The package is used to download and run remote code by other packages. Files darwin.py, gnu.py and win32.py contain code that adds executing remote code to the crontab as well as an attempt to escalate privileges.\nw3socket: It uses web3node to start remote code in config.py\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2025-02-web3socket\n\n\nReasons (based on the campaign):\n\n\n - dependency-confusion\n\n\n - impersonation\n\n\n - Downloads and executes a remote malicious script.\n",
"id": "MAL-2025-3014",
"modified": "2025-12-11T09:27:54Z",
"published": "2025-02-17T10:36:37Z",
"references": [
{
"type": "EVIDENCE",
"url": "https://www.virustotal.com/gui/file/237d1bca6e056df5bb16a1216a434634109478f882d3b1d58344c801d184f95d"
},
{
"type": "WEB",
"url": "https://bad-packages.kam193.eu/pypi/package/w3socket"
}
],
"schema_version": "1.7.4",
"summary": "Malicious code in w3socket (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…