Threat reportSupply ChainTL-2026-7293
DevGating: PyPI Supply-Chain Malware (mailreader/confext, colook/basic-crypt) Withholds Payload Until It Reaches Developer Environments
Island disclosed on 2026-12-02 a PyPI campaign, active since 2026-09-25 across four waves and eight packages, that keys payload decryption to modules already loaded in the victim's Python process (e.g. requests), so sandboxes that import a package alone see nothing.
Key facts
| Identifiers | TL-2026-7293 |
|---|---|
| Also known as | DevGating |
| Severity | HIGH |
| First disclosed | |
| Affected products | Python Package Index (PyPI) mailreader; Python Package Index (PyPI) confext; Python Package Index (PyPI) colook; Python Package Index (PyPI) basic-crypt; Python Package Index (PyPI) webreader, pafer, resion, pafex (removed from PyPI) |
| Weaknesses (CWE) | CWE-502, CWE-506 |
| Malware | Python |
| MITRE ATT&CK techniques | T1027 Obfuscated Files or Information, T1036 Masquerading, T1059.006 Python, T1140 Deobfuscate/Decode Files or Information, T1195.001 Compromise Software Dependencies and Development Tools, T1204.002 Malicious File, T1480.001 Environmental Keying, T1497 Virtualization/Sandbox Evasion, T1546.018 Python Startup Hooks, T1583.006 Web Services, T1620 Reflective Code Loading |
| Motivation | UNKNOWN |
| Target sectors | technology, software development, cloud services |
| Target regions | Global |
| Detection rules | 9 (1 shown free) |
| Sources | 6 cited sources |
Detection coverage
As of 2026-12-02, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-7293 across Splunk SPL, Microsoft KQL and Sigma, covering 35 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: DevGating PyPI Supply Chain - Install of Campaign Packages (mailreader, confext, colook, basic-crypt)
Detects pip, uv, poetry or pipenv command lines that install or add one of the eight packages from the DevGating PyPI campaign (mailreader, confext, colook, basic-crypt, webreader, pafer, resion, pafex). The packages ship an unpickle-on-import loader or a native module and withhold the payload until they run inside a developer Python process that already has requests loaded. Install activity is therefore the earliest reliable signal. Removing the package later does not remove the .pth persistence it drops. Tracked as TL-2026-7293 (T1195.001, T1204.002).
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1195.001, T1204.002
- Data sources: splunk_cim_endpoint_processes, sysmon_process_creation, edr_process_telemetry
- Severity: high
- Confidence: high
Splunk SPL
| tstats summariesonly=false count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process IN ("*mailreader*","*confext*","*colook*","*basic-crypt*","*basic_crypt*","*webreader*","*pafer*","*resion*","*pafex*") by Processes.dest Processes.user Processes.parent_process_name Processes.process_name Processes.process
| rename Processes.* as *
```keep only package-manager invocations that install or add a package```
| regex process="(?i)(^|[^a-z0-9_])(pip[0-9.]*|uv|poetry|pipenv)([^a-z0-9_].*)?[ ](install|add)[ ]"
```keep only whole-token matches of the DevGating package names, including wheel file names such as colook-1.1.3```
| regex process="(?i)(^|[^a-z0-9_.-])(mailreader|confext|colook|basic[-_]crypt|webreader|pafer|resion|pafex)([^a-z0-9_.-]|-[0-9]|$)"
| eval firstTime=strftime(firstTime,"%Y-%m-%dT%H:%M:%SZ"), lastTime=strftime(lastTime,"%Y-%m-%dT%H:%M:%SZ"), threat_id="TL-2026-7293"
| table firstTime lastTime dest user parent_process_name process_name process count threat_idMicrosoft KQL
// TL-2026-7293 DevGating - install of campaign PyPI packages via pip, uv, poetry or pipenv
DeviceProcessEvents
| where Timestamp > ago(24h)
| where ProcessCommandLine matches regex @"(?i)(^|[^a-z0-9_])(pip[0-9.]*|uv|poetry|pipenv)([^a-z0-9_].*)?[ ](install|add)[ ]"
| where ProcessCommandLine matches regex @"(?i)(^|[^a-z0-9_.-])(mailreader|confext|colook|basic[-_]crypt|webreader|pafer|resion|pafex)([^a-z0-9_.-]|-[0-9]|$)"
| project Timestamp, DeviceName, AccountName, FileName, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessCommandLine
| order by Timestamp descSigma
title: DevGating PyPI Supply Chain - Install of Campaign Packages
id: 3f1c7a52-8d4e-4b6a-9a15-2c0e7b9d61a4
status: experimental
description: Detects pip, uv, poetry or pipenv commands that install one of the DevGating campaign packages (mailreader, confext, colook, basic-crypt, webreader, pafer, resion, pafex). The packages withhold their payload until imported inside a developer Python process, so install activity is the earliest reliable signal.
references:
- https://www.island.io/blog/devgating-the-pypi-malware-that-stays-silent-until-it-finds-a-developer
- https://www.infosecurity-magazine.com/news/devgating-pypi-malware-devs/
author: Threadlinqs Team
date: 2026-12-02
tags:
- attack.initial-access
- attack.t1195.001
- attack.execution
- attack.t1204.002
logsource:
category: process_creation
detection:
selection_installer:
CommandLine|contains:
- 'pip install '
- 'pip3 install '
- 'pip.exe install '
- 'pip3.exe install '
- 'uv add '
- 'poetry add '
- 'pipenv install '
selection_pkg:
CommandLine|contains:
- ' mailreader'
- ' confext'
- ' colook'
- ' basic-crypt'
- ' basic_crypt'
- ' webreader'
- ' pafer'
- ' resion'
- ' pafex'
condition: selection_installer and selection_pkg
falsepositives:
- Security researchers or sandbox pipelines intentionally installing the packages for analysis
- Unrelated internal or third-party packages that share a name prefix such as mailreader-utils
level: high
Known false positives:
- Security researchers or sandbox pipelines intentionally installing the packages for analysis
- Unrelated internal packages whose names contain one of the listed names as a token, for example a private mailreader fork
Tuning notes: Requires the CIM Endpoint.Processes datamodel to be accelerated and populated by Sysmon, EDR or auditd process telemetry. Add private mirror hostnames to an allow-list only after confirming they do not proxy the malicious PyPI projects. Also hunt requirements.txt, poetry.lock and uv.lock files in repositories for the same package names, because installs driven by lock files do not always show the package name on the command line. Treat any hit as a developer-host incident and rotate source-control, cloud and CI credentials.
- DevGating - Known Malicious Package Artifact Hash Match (wheels, sdists, _native.so, __base__.py) · unlock with TL Creds
- DevGating - Linux Fileless Launch via memfd_create and execve of /proc/self/fd from Python · unlock with TL Creds
- DevGating - Python Process Connections to Campaign C2 (npoint bin, Supabase edge functions) with Beacon Profile · unlock with TL Creds
- DevGating - Python Loads basic_crypt Native Module (Key-Gated Dropper) · unlock with TL Creds
- DevGating - Python Writes Campaign Lock, Placeholder and Launcher Files (pylog.txt, [indicator], pip3-update.py) · unlock with TL Creds
- DevGating - Proxy Request to Campaign C2 Endpoints (npoint bin df37d3253fff53e2034f, Supabase register/save functions) · unlock with TL Creds
- DevGating - Python .pth Persistence Artifacts ([indicator], fake _distutils_hack __base__.py) · unlock with TL Creds
- DevGating - DNS Lookups of Campaign C2 Hosts (Supabase edge functions, api.npoint.io from Python) · unlock with TL Creds
Indicators of compromise
As of 2026-12-02, Threadlinqs Intelligence tracks 35 indicators of compromise for TL-2026-7293.
Sample indicators (3 of 35)
- Domain:
tzqrmubxuluyccmiialf[.]supabase[.]co - URL:
hxxps://api[.]npoint[.]io/df37d3253fff53e2034f/login - File hash:
824b3df224c9052ae9c01f4dc6807014eecb37855fc888b16c9098887f962fb0
Defanged, TLP:CLEAR. Full set of 35 indicators: unlock with TL Creds.
Technical analysis
Payloads are fetched from operator-editable public services and persist via .pth files; the current payload is a placeholder but the operator can swap in arbitrary code at any time.
DevGating is a PyPI supply-chain campaign documented by Island (researcher Ofek Ronen) on 2026-12-02. Since 2026-09-25 the operator has published paired packages from separate single-use PyPI accounts: a working, generically named 'front' package (e.g. mailreader, webreader, resion, colook) and a 'helper'/'loader' package (confext, pafer, pafex, basic-crypt). Splitting the payload across accounts means neither package looks malicious alone. Island counted four waves and eight packages; downloads as of 2026-11-16 were roughly 332/386 (wave 1 front/helper), 106/117 (wave 2), 174/406 (wave 2b, last 30 days) and 137/198 (wave 3). Victim identity and actual targets are unknown.
In the mailreader/confext chain, mailreader 2.7.1 ships default.config (5,715 bytes, checksum header, zlib) containing a 12,051-byte pickle that calls builtins.eval on import. The confext 0.7.2 loader calls pickle.loads() on it before validating the result. The eval expression runs the next stage and still returns a valid config dict as a decoy, and every malicious branch ends in 'except: pass' so failures are silent. The core evasion, which Island calls DevGating, is that the next stage is a 2,774-byte XOR ciphertext with no embedded key. The code iterates sys.modules, hashes each module name (MD5 of the name written twice) and looks for the selector 6a3221b95503aa1ac28f3469f9073016, which matches the module requests.packages.urllib3.util.connection in mailreader. The 42-byte key is that module name plus one derived byte, and decryption is a repeating-key XOR followed by exec. The colook/basic-crypt variant uses a 68 KB native module (basic_crypt._native, .so/.pyd) that waits for the sibling module requests.packages.urllib3.util.request. A sandbox that imports the package without requests already loaded finds no match and exits cleanly; Island notes that sandbox validation imported requests first, which is why routine functional testing can miss the chain.
Persistence uses Python .pth files that run at every interpreter start and survive pip uninstall: mailreader writes py_abi2-log.pth (importing py_log2) into the user site-packages; colook/basic-crypt writes a fake setuptools _distutils_hack package (with a __base__.py loader appended to __init__.py) and distutils-precedence.pth. A single-instance lock is kept in /tmp/pylog.txt (Linux) or %TEMP%\pylog.txt (Windows). On Linux the loader uses memfd_create to hold a copy of python3 (about 6.8 MB) plus a 156-byte fetcher, forks, and runs the interpreter from /proc/self/fd/ via execve, so nothing is written to a regular file. macOS (writes ~/pip3-update.py, then overwrites it after 3 seconds with a real pip upgrade script) and Windows (exec inside a hidden python.exe) behaviour is inferred from code review only. Command-and-control uses reputable public services: a public JSON bin at api.npoint.io (mailreader) and a Supabase edge function (colook). The operator can edit the returned code at will and every installed host runs it on its next Python start.
The current payload is a placeholder (it writes 'hello' to /tmp/file.txt every five seconds) and no data theft was observed. An earlier wave-1 endpoint was captured in October 2026 serving a remote-access trojan that sent data to a Supabase host; Island assesses such a foothold could reach source code, cloud credentials and CI systems. In Island's Linux detonation of mailreader 2.7.1 with requests loaded, 5,353 events over 191 seconds were recorded, including beaconing. mailreader 2.7.2 (2026-12-01) kept the same mechanism, persistence and C2 with a minor Linux launcher change and added email attachment saving. Island reported all still-listed packages on 2026-12-01 and, per the researcher, had no response as of 2026-12-02. No threat actor attribution is made in the sources.
Limits: only the Linux mailreader branch was executed; colook and basic-crypt were analysed statically. The colook sdist's pyvenv.cfg leaks the operator build path C:\Users\Samsung\Desktop\UIPackage\. Severity HIGH is an analyst estimate, not a source-stated rating.
MITRE ATT&CK techniques by tactic:
Defense Evasion
T1027 Obfuscated Files or Information; T1036 Masquerading; T1140 Deobfuscate/Decode Files or Information; T1480.001 Environmental Keying; T1497 Virtualization/Sandbox Evasion; T1620 Reflective Code Loading
Execution
T1059.006 Python; T1204.002 Malicious File
Initial Access
T1195.001 Compromise Software Dependencies and Development Tools
Persistence
T1546.018 Python Startup Hooks
Resource Development
Remediation
Immediate actions
- Search Python environments, CI runners and build images for the packages mailreader, confext, colook, basic-crypt, webreader, pafer, resion and pafex and remove them
- Hunt for py_abi2-log.pth, distutils-precedence.pth and a _distutils_hack/__base__.py file in any site-packages or dist-packages directory; removing the package does not remove the .pth persistence
- Hunt for /tmp/pylog.txt, %TEMP%\pylog.txt, /tmp/file.txt and ~/pip3-update.py
- Block or alert on egress to api.npoint.io/df37d3253fff53e2034f and the tzqrmubxuluyccmiialf and frjmzbjbhwvtdnsuodmu Supabase hosts
- On hosts that imported the packages, rotate source-control, cloud and CI credentials as a precaution, since the earlier wave-1 payload was a RAT
Workarounds
- Use an internal package mirror or allow-list with hash pinning for developer and CI installs
- Sandbox package analysis with common libraries such as requests pre-imported so key-gated payloads can decrypt
Longer-term hardening
- Review new packages together with the dependencies they pull in
- Treat bundled pickle files, config assets and compiled modules in small utilities as executable code
- Isolate package and model evaluation from credentials and development secrets
- Add runtime detection for memfd_create plus execve from /proc/self/fd and for unexpected .pth files that import modules
Affected and fixed versions
- Python Package Index (PyPI) — mailreader
Vulnerable versions: 2.7.1; 2.7.2 - Python Package Index (PyPI) — confext
Vulnerable versions: 0.7.2 - Python Package Index (PyPI) — colook
Vulnerable versions: 1.1.3 - Python Package Index (PyPI) — basic-crypt
Vulnerable versions: 1.5.2; 1.5.3 - Python Package Index (PyPI) — webreader, pafer, resion, pafex (removed from PyPI)
Vulnerable versions: webreader 2.3.8; pafer 0.9.7; pafer 0.9.8; resion 22.0.1; pafex 2.3
Timeline
- Wave 1 begins: PyPI account werson first appears with the loader package pafer (0.9.7, 0.9.8), per Island.
- webreader 2.3.8 (account morichan), the wave-1 front package that ships a pickle, is published.
- pafer is removed from PyPI.
- Wave 2: resion 22.0.1 (account hositel) and pafex 2.3 (account redomaitic) are published.
- Wave 2b: colook 1.1.3 (account gotadijo) and basic-crypt 1.5.2/1.5.3 (account simendi, native .so/.pyd helper) first appear.
- confext 0.7.2 (account kinishuki), the loader that unpickles config, is published.
- mailreader 2.7.1 (account nigarash) is published with the pickle-bearing [file name withheld].
- Island validates the Linux execution chain by detonating mailreader 2.7.1 with requests loaded: 5,353 events over 191 seconds, including beaconing.
- mailreader 2.7.2 is published with the same mechanism, persistence and C2, a minor Linux launcher change and email attachment saving; Island reports all still-listed packages to PyPI.
- Island publishes the DevGating research; per Island researcher Ofek Ronen, packages are still available on PyPI and the report had received no response.
Sources cited
- DevGating: The PyPI Malware That Stays Silent Until It Finds a Developer - Island island.io · Research · 2026-12-02
- Malicious attack method on hosted ML models now targets PyPI - ReversingLabs (related 2025 pickle-in-PyPI campaign) reversinglabs.com · Research · 2025-05-23
- The Art of Hide and Seek: Making Pickle-Based Model Supply Chain Poisoning Stealthy Again (background on pickle scanner evasion) arxiv.org · Research · 2025-08-27
- PyPI Malware Hides Pickle Payloads and Gates Execution on Developer Environments - Mallory mallory.ai · Blog · 2026-12-02
- DevGating PyPI Malware Hides Until it Reaches Developers - Infosecurity Magazine infosecurity-magazine.com · News · 2026-12-02
- Malicious Machine Learning Model Attack Discovered on PyPI - Infosecurity Magazine (related 2025 campaign) infosecurity-magazine.com · News · 2025-05-23
Further reading
AI-drafted from 6 cited sources; published ; last updated —.