VYPR

pypi · Malicious package advisory

Malware

python-socket-test

GHSA-5jh6-c7j5-jcgx

Malicious code in python-socket-test (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 1.0.0`

## Source: kam193 (93a8d30e631680bace9b05db1ac189cbcc472895fcfb1db40f4df52f301a6599)
Importing the package starts a script that takes commands from remote server and executes locally


---

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.


Campaign: 2025-03-python-socket-test


Reasons (based on the campaign):


 - The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/python-socket-test/MAL-2025-3460.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/python-socket-test
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/python-socket-test/MAL-2025-3460.json
- https://github.com/advisories/GHSA-5jh6-c7j5-jcgx

Compromised versions (1)

  • = 1.0.0

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.