{"id":"MAL-2026-17881","title":"Malicious code in py-sock2 (PyPI)","summary":"Malicious code in py-sock2 (PyPI)","severity":"critical","exploited":true,"vendor":"py-sock2","product":"py-sock2","ecosystem":"pip","affected":["py-sock2"],"published":"2026-10-15","updated":"2026-10-16","sourceUpdated":"2026-10-16T04:15:22.684729944Z","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/MAL-2026-17881","references":[{"url":"https://bad-packages.kam193.eu/pypi/package/py-sock2"},{"url":"https://files.pythonhosted.org/packages/8c/9d/48e134eca0816e30e162c34f28cbd14e5e5edd1d5a684b461a559a5af5b7/py_sock2-0.1.0-py3-none-any.whl"},{"url":"https://github.com/anonrider404/pypl/blob/9395c5802b11bc088925d7adf6e2f66b8b0709fd/readme.txt"},{"url":"https://osv.dev/vulnerability/MAL-2026-17752"}],"tags":["osv","pip","malware"],"ingestedAt":"2026-10-15T11:47:08.222Z","slug":"MAL-2026-17881","body":"## Overview\n\nImporting py-sock2's `agentaix` module downloads a mutable Python file from `https://raw.githubusercontent.com/anonrider404/pypl/refs/heads/main/readme.txt` to a temporary `.py` file and launches it without a visible console on Windows. Its `agentaix` console entry point imports the module. The remote file's Git history contains a Windows remote file management client that registers persistence through an HKCU Run entry, polls `https://googleforum.pythonanywhere.com` for commands, and supports file upload, download, deletion, and command execution. An earlier remote-file revision is byte-identical to the `readme.txt` payload reported in MAL-2026-17752 (`agentaix`); the 39,931-byte `agentaix/gui.py` is also byte-identical across that package and py-sock2. The remote file is mutable; its contents at the time of any particular victim import and actual execution on victim systems have not been established.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (317abc5a9c1b535f3db6fd260a2f77eaaceb45745cd93deea7e9b3dd1d0cb933)\nThe package installs a persistent job that allows the attacker for exfiltrating files and executing remote code on the victim's machine.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-10-agentaix\n\n\nReasons (based on the campaign):\n\n\n - files-exfiltration\n\n\n - peristence-autorun\n\n\n - The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.\n\n\n - rat\n\n\n - persistence\n\n\n - Downloads and executes a remote malicious script.\n\n\n## Affected packages\n\n- `py-sock2`\n\n## Remediation\n\nRefer to the advisory for the patched release.","depth":"abyssal","depthScore":70,"depthScoreParts":{"impact":52.3,"likelihood":0,"exploitation":18,"ransomware":0},"changes":[]}