---
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-15'
sourceUpdated: '2026-10-15T09:30:03.447453671Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/MAL-2026-17881'
references:
  - url: 'https://bad-packages.kam193.eu/pypi/package/py-sock2'
tags:
  - osv
  - pip
  - malware
ingestedAt: '2026-10-15T11:47:08.222Z'
---

## Overview


---
_-= Per source details. Do not edit below this line.=-_

## 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.


## Affected packages

- `py-sock2`

## Remediation

Refer to the advisory for the patched release.
