Malicious code in confext (PyPI)
- MAL-2026-21147
Summary
The malicious PyPI package confext is part of a campaign where packages are published in pairs: a frontend package carrying a pickle disguised as a config file, and a related loader dependency that unpickles it. Unpickling automatically executes the embedded malicious code, which establishes persistence through a PTH file and downloads a second-stage payload. The result behaves like a remote access trojan, enabling file exfiltration and remote command execution. The package was first reported by Island.io. It is classified as clearly malicious and is not listed in the CISA known exploited vulnerabilities catalog. No CVSS score is assigned.
AI summary · verify against the vendor advisory
Description
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
Text from the OSV record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
confextPyPI
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.