CVE Index中文
L3 · ShartedPyPI · supply chain · malwaredevgating-pypi

DevGating PyPI malware unlocks inside developer processes and persists after uninstall

Island disclosed eight malicious PyPI packages across four waves. A loaded requests submodule unlocks persistent Python startup hooks; uninstalling the package leaves those hooks behind. Linux execution was reproduced in a lab; affected users and real-world executions are unknown.

Disclosed
Dec 2, 2026
Public disclosure date
Severity
Sharted
No CVE: a breach, not a bug
Splash zone
Python environments importing mailreader/confext or colook/basic-crypt after the specific requests submodule is loaded.
python
In the wild
Unknown
Published malware and lab execution confirmed; no identified victims or field executions.

What happened

Island disclosed DevGating on December 2: eight malicious packages in four paired waves since September 25. The latest pair is a working mail parser, mailreader, plus the confext dependency that unpickles its default.config. Deserialization runs code before validating the apparent configuration. The report identifies mailreader 2.7.1/2.7.2 and confext 0.7.2. Earlier pairs are webreader/pafer, resion/pafex and colook/basic-crypt; these belong to one campaign.

The pure-Python chain decrypts only if requests.packages.urllib3.util.connection is already in sys.modules. The compiled colook 1.1.3 / basic-crypt 1.5.2–1.5.3 chain instead keys on requests.packages.urllib3.util.request. Installing requests alone is not the prerequisite, and this is not a compromise of requests itself. A clean sandbox importing only the suspect utility may miss the payload.

The mailreader chain drops py_abi2-log.pth and py_log2/ under Python’s package directories. Later interpreter starts launch attacker-controlled code; uninstalling the original package leaves this persistence. The native variant impersonates setuptools using _distutils_hack and distutils-precedence.pth. Preserve evidence and compare with trusted installations instead of deleting every file with these legitimate names.

Island reproduced only mailreader’s Linux branch, on November 16: the later Python process used anonymous memory files to run an interpreter and fetch further code. macOS and Windows behavior comes from code inspection. The native pair was decrypted and analyzed statically, not executed; its Windows build and served payload were not analyzed. Registry metadata additionally lists basic-crypt 1.5.4, but the report’s analysis does not establish its behavior. Treat it as untrusted, rather than a fix.

An earlier campaign bin served a remote-access trojan; the current mailreader endpoint returned a placeholder during research. Mutable payloads and surviving hooks remain a risk. Island has not identified current-pair victims, established execution behind its download figures, or confirmed theft of source code or cloud credentials. L3 reflects the publicly demonstrated execution chain and durable developer/CI foothold; field exploitation and a mass compromise are not established. No CVE or verified safe release is supplied.

Crime-scene timeline

  1. Sep 25, 2026

    Campaign begins with the first helper package

    Island traces four waves to pafer, followed by webreader/pafer, resion/pafex, colook/basic-crypt and mailreader/confext.

  2. Nov 16, 2026

    Researchers reproduce the Linux execution chain

    With requests loaded first, mailreader 2.7.1 decrypts its payload, installs a startup hook and executes a memory-backed Python fetcher on the next interpreter start.

  3. Dec 1, 2026

    mailreader 2.7.2 is published

    Island says the new release adds functionality while retaining the malicious payload. PyPI metadata dates its uploads to this day.

  4. Dec 2, 2026

    Island publishes the campaign analysis

    Four current packages are reported as still available at disclosure.

Who said what

We list each claim and who made it. Primary sources (the vendor, the researcher, the registry) are marked. Where reports disagree, we grade by the worst credible case.

  • Island original DevGating research and full indicator tablePrimaryDecember 2 analysis documents four waves/eight packages, environmental prerequisites, Linux lab execution, static-only native analysis, persistence, indicators and unknown field victim scope.
  • PyPI mailreader release metadataPrimaryRegistry metadata identifies 2.7.1 and 2.7.2 uploads; December 1 timestamps for 2.7.2 differ in time of day from the Island table, so the timeline uses the date only.
  • PyPI basic-crypt release metadataPrimaryLists 1.5.2/1.5.3 and a November 30 macOS ARM64 1.5.4 wheel. Metadata does not establish the safety or behavior of that additional build.