Skip to main content
Mallory
← Back to News
package-repository-poisoningloader-delivery-mechanismdefense-evasion-methodpersistence-method

PyPI Malware Hides Pickle Payloads and Gates Execution on Developer Environments

Supply Chain Risk · 6 sources · Updated 7h ago · First seen Dec 2, 2026

PyPI Malware Hides Pickle Payloads and Gates Execution on Developer Environments

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

Does this reach your builds?Trace attribution and downstream blast radius.
Trace the chain
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

14 events · May 19, 2025 – Dec 1, 2026
  1. Reported Dec 2, 20262d ago

    Researchers disclose DevGating and link four malicious PyPI package pairs

    Researchers disclosed that the campaign decrypts payloads only when particular requests modules are already loaded, a technique they call DevGating. Their analysis documented persistent Python startup execution, platform-specific launchers, and a related compiled-extension variant in colook/basic-crypt.

    DevGating: The PyPI Malware That Stays Silent Until It Finds a Developer
  2. Dec 1, 20263d ago

    Island reports malicious DevGating packages to PyPI

    Island reported all still-listed campaign packages to PyPI on December 1. On December 2, researcher Ofek Ronen confirmed that the malicious packages remained available, and Island had received no response.

    DevGating PyPI Malware Hides Until it Reaches Developers - Infosecurity Magazine
  3. Dec 1, 20263d ago

    Mailreader 2.7.2 preserves the malware while adding attachment support

    The account nigarash published mailreader 2.7.2 with email attachment-saving functionality. The release retained the malicious mechanism, persistence, and command-and-control endpoint while making a minor Linux launcher modification.

    DevGating: The PyPI Malware That Stays Silent Until It Finds a Developer
  4. Nov 16, 202618d ago

    Researchers validate mailreader's complete execution chain on Linux

    Researchers detonated mailreader 2.7.1 with requests imported first and observed persistence, a 6,809,944-byte memory-backed Python interpreter, and a payload fetcher. The test recorded 5,353 events over 191 seconds.

    DevGating: The PyPI Malware That Stays Silent Until It Finds a Developer
  5. Nov 10, 202624d ago

    Mailreader 2.7.1 is published with a malicious configuration payload

    The PyPI account nigarash published mailreader 2.7.1, a functioning message-parsing package whose default.config carries executable Pickle data. Importing the package invokes confext's loader, initiating the concealed execution chain.

    DevGating: The PyPI Malware That Stays Silent Until It Finds a Developer
  6. Oct 27, 20261mo ago

    Confext 0.7.2 supplies the loader later used by mailreader

    The PyPI account kinishuki published confext 0.7.2. Its configuration loader calls pickle.loads() before validating the result, enabling execution of the malicious configuration subsequently supplied by mailreader.

    DevGating: The PyPI Malware That Stays Silent Until It Finds a Developer
  7. Oct 21, 20261mo ago

    Colook and basic-crypt introduce a compiled-extension campaign variant

    The colook/basic-crypt package pair first appeared on PyPI, associated with accounts gotadijo and simendi. Researchers later found that basic-crypt's compiled extension contained a hidden dropper absent from its accompanying C source.

    DevGating: The PyPI Malware That Stays Silent Until It Finds a Developer
  8. Oct 20, 20262mo ago

    Resion and pafex expand the campaign to a second package pair

    The accounts hositel and redomaitic published resion 22.0.1 and pafex 2.3, respectively. Researchers subsequently linked the pair to the same malicious PyPI campaign.

    DevGating: The PyPI Malware That Stays Silent Until It Finds a Developer
  9. Oct 8, 20262mo ago

    Webreader 2.3.8 is published as the front package paired with pafer

    The PyPI account morichan published webreader 2.3.8. Researchers identified webreader and pafer as one of four package pairs belonging to the same campaign.

    DevGating: The PyPI Malware That Stays Silent Until It Finds a Developer
  10. Oct 2026

    Public scanner captures a campaign endpoint delivering a remote-access trojan

    A public URL scanner captured an earlier campaign endpoint serving a remote-access trojan that sent data to frjmzbjbhwvtdnsuodmu[.]supabase[.]co. The endpoint subsequently served a stub instead.

    DevGating: The PyPI Malware That Stays Silent Until It Finds a Developer
  11. Sep 25, 20262mo ago

    Pafer helper package marks the start of the linked DevGating campaign

    The pafer helper package first appeared on PyPI, with versions 0.9.7 and 0.9.8 associated with the account werson. Researchers later linked it to webreader and three other malicious package pairs.

    DevGating: The PyPI Malware That Stays Silent Until It Finds a Developer
  12. Reported May 23, 20252y ago

    ReversingLabs exposes model-based PyPI infostealers and publishes IOCs

    ReversingLabs disclosed that the fake SDK packages loaded malicious Pickle content to steal user information, network addresses, organization names, and .gitconfig contents. The researchers published indicators of compromise and assessed that developers in China were the likely targets.

    Malicious attack method on hosted ML models now targets PyPI
  13. Reported May 23, 20252y ago

    ReversingLabs detects malicious ML models in the nullifAI campaign

    ReversingLabs previously detected the nullifAI campaign involving malicious machine-learning models hosted on Hugging Face, providing an earlier example of the attack method later observed on PyPI.

    Malicious attack method on hosted ML models now targets PyPI
  14. May 19, 20252y ago

    Three fake Alibaba AI Labs SDK packages appear on PyPI

    Attackers published aliyun-ai-labs-snippets-sdk, ai-labs-snippets-sdk, and aliyun-ai-labs-sdk, hiding an infostealer inside a PyTorch model. The packages were available for less than 24 hours and accumulated approximately 1,600 downloads.

    Malicious attack method on hosted ML models now targets PyPI
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Observables

13 linked

Indicator values are masked on this page. View all 13 in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?See attribution and downstream blast radius, and whether this package or vendor reaches your builds.
Trace the Supply Chain
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.