PyPI Malware Hides Pickle Payloads and Gates Execution on Developer Environments
Supply Chain Risk · 6 sources · Updated 7h ago · First seen Dec 2, 2026

Malicious Python Package Index (PyPI) campaigns are concealing executable Pickle payloads inside apparently legitimate development packages. Island researchers identified four package pairs beginning September 25, 2026, that combine working utilities with separate malicious helpers. The latest pair, mailreader and confext, hides executable Pickle data in a configuration file and decrypts a subsequent stage only when a particular requests module is already loaded—a technique researchers call DevGating. The malware establishes persistence through Python .pth files and uses platform-specific launch methods, including memory-backed execution on Linux, to retrieve operator-controlled code. A related pair, colook and basic-crypt, implements similar behavior in a compiled extension and disguises persistence as setuptools components. Researchers validated the mailreader chain on Linux; publicly accessible payload endpoints currently serve placeholders, limiting visibility into final payloads despite the operation’s demonstrated ability to deliver a remote-access trojan.
A separate campaign disclosed by ReversingLabs in May 2025 used three packages impersonating Alibaba AI Labs SDKs to load a PyTorch model containing information-stealing code. The packages collected user, network and organization details, along with .gitconfig contents. They were available for less than 24 hours and recorded approximately 1,600 downloads, primarily targeting developers in China; downloads do not establish successful infections. Both campaigns highlight the risk of treating model files, configuration assets and package dependencies as inert data. Security teams should inspect these assets alongside source code, investigate unexpected .pth persistence, and isolate package and model evaluation from credentials and sensitive development environments.
Why it matters
Developers exposed to malicious PyPI packages risk persistent attacker-controlled code execution and information theft, with potential downstream exposure of source code and cloud secrets.
DevGating persistence can affect subsequent processes using the same Python installation, including CI jobs and services. An earlier wave delivered a remote-access trojan, but the latest observed remote payload was a harmless placeholder. Island could not confirm whether installations of the latest pair had activated; download counts and package availability do not establish successful compromise. Each DevGating package had at most a few hundred downloads as of November 16, 2026. Infosecurity Magazine
The separate May 2025 campaign used three Alibaba AI Labs impersonators to steal user, network, organization, and Git configuration information. The packages recorded approximately 1,600 downloads during less than 24 hours of availability; these figures do not establish infection totals. ReversingLabs
Industry-specific impact is not established. The evidence identifies developers, Python environments, and CI systems, but does not identify affected organizations or targeting tied to a particular industry.
Geography-specific impact: China is supported as apparent targeting in the separate ReversingLabs campaign, based on Alibaba SDK impersonation and collection of organization information from AliMeeting configuration. This is targeting evidence, not a confirmed geographic infection count. Geographic specificity is not established for DevGating. ReversingLabs


