MAL-2026-21147: Malicious code in confext (PyPI)

Published Dec 4, 2026
·
Updated

--- -= 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

1 affected component
pip/confext=0.7.2

Event History

Dec 4, 2026
Advisory Published
via OSV·08:36 PM
Data Sourced
via OSV·08:36 PM
DescriptionAffected Software

Frequently Asked Questions

1

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.

2

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203