VYPR

pypi · Malicious package advisory

Malware

py-sock2

GHSA-mrm7-9jxf-vx65

Malicious code in py-sock2 (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 0.1.0`

## Source: kam193 (317abc5a9c1b535f3db6fd260a2f77eaaceb45745cd93deea7e9b3dd1d0cb933)
The package installs a persistent job that allows the attacker for exfiltrating files and executing remote code on the victim's machine.


---

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


Campaign: 2026-10-agentaix


Reasons (based on the campaign):


 - files-exfiltration


 - peristence-autorun


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


 - rat


 - persistence


 - Downloads and executes a remote malicious script.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/d0821fca288649f45ab1c287b3a699737f03f0c3/osv/malicious/pypi/py-sock2/MAL-2026-17881.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/py-sock2
- https://github.com/ossf/malicious-packages/blob/d0821fca288649f45ab1c287b3a699737f03f0c3/osv/malicious/pypi/py-sock2/MAL-2026-17881.json
- https://files.pythonhosted.org/packages/8c/9d/48e134eca0816e30e162c34f28cbd14e5e5edd1d5a684b461a559a5af5b7/py_sock2-0.1.0-py3-none-any.whl
- https://github.com/anonrider404/pypl/blob/9395c5802b11bc088925d7adf6e2f66b8b0709fd/readme.txt
- https://github.com/ossf/malicious-packages/blob/798551e0aadf962c762dca53ac219e33e463dc17/osv/malicious/pypi/py-sock2/MAL-2026-17881.json
- https://osv.dev/vulnerability/MAL-2026-17752
- https://github.com/advisories/GHSA-mrm7-9jxf-vx65

Compromised versions (1)

  • = 0.1.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.