MAL-2026-21148: Malicious code in mailreader (PyPI)
--- -= Per source details. Do not edit below this line.=-
Source: kam193 (5cdfaf571cba92190dcd6c161fd64c59164dab6466a541e20d0abc7be7533f99) n 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.
This package has been 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 required for the malicious payload to execute?
The campaign uses paired packages: a frontend package hides malicious code in a pickle presented as configuration data, while a related loader dependency loads it. When that pickle is unpickled, the embedded code executes automatically.
What can the malware do after execution?
It establishes persistence through a PTH file, downloads a next-stage payload, and operates as a remote-access trojan. The reported capabilities include file exfiltration and remote code execution.
How is persistence established?
The malicious code creates a PTH file, which can cause code to run through the Python environment during subsequent interpreter startup.