MAL-2026-21147: Malicious code in confext (PyPI)
--- -= Per source details. Do not edit below this line.=-
Source: kam193 (6112b9028d45611aa5b7c497f41efe0c711a762ab58df0077aafaeea03c667d9) In this campaign, malicious packages are published in pairs. One package ("frontend" one) carries malicious code hidden in a pickle disguised as a config. A related dependency (a loader package) contains code to load the pickle. During unpickling, malicious code embeded in the pickle file is automatically executed. It then establishes persistence via a PTH file and downloads the next stage payload. It finally acts like a RAT, allowing remote exfiltration and code execution.
Package first discovered by Island.io
---
Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.
Campaign: 2026-10-webreader
Reasons (based on the campaign):
- files-exfiltration
- obfuscation
- The malicious code is intentionally included in a dependency of the package
- Downloads and executes a remote malicious script.
- The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.
- rat
- persistence
- abuses-pth
Affected Software
Event History
Frequently Asked Questions
What conditions are needed for the malicious payload to run?
The campaign uses a paired-package design: the frontend package contains a pickle disguised as configuration data, and a related loader dependency loads it. Malicious code executes automatically when that pickle is unpickled.
What can happen after execution?
The code establishes persistence through a PTH file, downloads a next-stage payload, and functions as a remote-access trojan. The reported capabilities include remote code execution and data exfiltration.