Island says eight PyPI packages hid a payload keyed to modules a real project loads; four were still listed
Island says a PyPI campaign it calls DevGating keys its encrypted payload to a module already loaded in the victim's Python process, so a sandbox sees nothing. Its tables list eight packages in four waves; the download counts it prints sum to 1,856 (derived).
By Parminder Kumar Sharma · LinkedIn · · 20 min read
Eight packages and 1,856 downloads, with a payload that opens only when the right module is loaded
Island's post of 2 December 2026 lists eight PyPI packages in four waves of two, and prints download counts for each as of 16 November. Added together they come to 1,856 (derived: 332 + 386 + 106 + 117 + 174 + 406 + 137 + 198). The counts are pypistats figures with mirrors excluded, and Island gives the two wave 2b figures as the last 30 days, so the windows differ. For scale, ReversingLabs estimated about 1,600 downloads for three malicious packages that were live for less than a day in May 2025. The small total is the first thing worth setting aside: Island's point is not volume. It is where the payload opens.
Island's post says the payload is encrypted and that the key is a module name taken from the victim's running Python process, so a package imported alone in a sandbox never sees it. Island sells an enterprise browser and says its agentic endpoint product inspects the kinds of files involved; everything below is attributed to it as a vendor's research, checked against its own tables. Infosecurity Magazine reported the research the same day. Here is what the record does not establish:
- Who installed any of the packages. Island: "Who installed the current pair, and what the operator would send them, we have not seen."
- Whether any install ran with the key module loaded. Island: "We do not know who is behind the 137 downloads, or whether any ran with requests loaded." The 137 is the front package of the newest pair.
- That any payload beyond a placeholder is live today. Island says the current bin "returns a placeholder loop that writes hello to a file every five seconds".
- Who runs the campaign. The post names no actor. It says the link between two PyPI accounts "rests on the shared dependency and on the earlier waves, not on account data".
- Any victim. The post names none.
- Whether PyPI has acted since. This site did not request pypi.org. Island's table marks four packages Removed and four Live; Island's researcher told Infosecurity on 2 December that the packages were still available and had been reported the day before.
How the gate works: the key is not in the package
Island says mailreader 2.7.1 appeared on PyPI on 10 November 2026, parses messages, and has a public API that works. The payload is hidden in its configuration file, and the code that loads it sits in its dependency, confext, "published two weeks earlier by a separate account" (14 days 13 minutes, derived from the table's creation times). Island says confext "has exactly one dependent: mailreader", and "Neither package holds the whole story."
The gate is the part Island named. It says the encrypted stage has no key beside it. The code instead looks through the modules already loaded in the running Python process for one whose name matches a stored hash, and uses that name to decrypt the next stage. For mailreader the module comes from the requests library; for colook, Island says, it is a sibling module. Island: "Sandboxes that install the package and import it on its own never load requests, so no name matches." And: "Static analysis finds ciphertext and a hash, with nothing to decrypt it." Its argument for why this reaches developers is a claim about habit, not a measurement: "Real developers trigger it."
On 16 November Island ran mailreader 2.7.1 on Linux with requests imported first. Its words: "Every layer opened in order." The run produced 5,353 events over 191 seconds. That is the only run of the mailreader chain the post describes, and it was a deliberate test with the key supplied.
The table sorts the steps by how Island knows each one. It matters because the headline claim, a chain that survives uninstalling and runs from memory, rests on one Linux run plus reading code for the rest.
Table 1. The mailreader chain, step by step, and how Island says it knows. From Island's post of 2 December 2026.
| Step | What Island says | How it knows |
|---|---|---|
| Import loads the config | A module level call loads a configuration through confext as the package is imported | Read in code, and seen in the Linux run |
| The pickle runs, the XOR stage decrypts | Opened in order once the key module was loaded | Ran: Linux, 16 November |
| The startup file lands | A .pth file and a small package are written into site-packages | Ran: Linux, 16 November |
| Python runs from memory (Linux) | A copy of python3 is run from an anonymous memory file | Ran: Linux, 16 November |
| The macOS and Windows versions | A file posing as a pip update script on macOS; the payload run inside the hidden interpreter on Windows | Read in code only. Island: not run |
| The bin's content | Today a placeholder; the October bins now return a stub or nothing | Island's account of what it saw. The indicator table dates the bin to 16 November |
| colook and basic-crypt | The same keying in a compiled module, with its own endpoint | Analysed statically. Island: not run, C2 content not seen |
Four waves, eight packages: what "four of them previously unreported" can mean
Infosecurity writes that the activity "had run since September 25 in four waves of eight packages, four of them previously unreported". Read alone that could mean 32 packages. Island's own wording does not: "Across four waves and eight packages". Its table lists four pairs, each a front package and a helper, from eight PyPI accounts that each published one project. So the count is eight packages in all, and this briefing uses eight.
Which four are the "previously undisclosed" ones? Island's TL;DR says it "uncovered four previously undisclosed malicious packages". Neither page names them. Island's status column marks four packages Removed (pafer, webreader, resion, pafex) and four Live (basic-crypt, colook, confext, mailreader). Whether the unreported four are the live four is an inference this site does not make.
Table 2. The four waves as Island's tables print them. Downloads are pypistats figures as of 16 November 2026, mirrors excluded; the two wave 2b counts are for the last 30 days.
| Wave | Packages: front, helper | Downloads: front / helper | Status in Island's table |
|---|---|---|---|
| Wave 1 | webreader, pafer | 332 / 386 | Both Removed (pafer on 16 October) |
| Wave 2 | resion, pafex | 106 / 117 | Both Removed |
| Wave 2b | colook, basic-crypt | 174 / 406 | Both Live, reported |
| Wave 3 | mailreader, confext | 137 / 198 | Both Live, reported; mailreader updated 1 December |
Three derived intervals from the table's creation times. The first helper, pafer, went up on 25 September at 04:19 UTC and the newest front package, mailreader 2.7.1, on 10 November at 04:48: 46 days (and 29 minutes). Island's heading says "Four waves in seven weeks". The 2.7.2 update came 21 days after 2.7.1, and 67 days after the first helper. In three of the four pairs the helper went up first; in wave 2 the front package preceded it by 21 minutes.
Island says colook and basic-crypt came before mailreader's pair, "so the operator ran DevGating in compiled code first and shipped it in Python later." That ordering matters: on Island's account the keying appeared on 21 October in a compiled module that Island decrypted offline and did not run, and the pure Python version, the one Island ran, came three weeks later. A small discrepancy in Island's own post: it says two accounts for the colook pair were created "80 minutes apart", and the table's own times, 07:21 and 08:40, are 79 minutes apart (derived). It is rounding, and it is Island's.
Is the key new? Island says so; two older pages say less than it needs them to
Island frames its novelty narrowly. It says "Keying a payload to the victim's environment is not new" and cites MITRE's technique T1480.001. What it says it has not seen documented is "the source of the decryption key: the victim's own loaded Python dependencies."
MITRE's page, last modified 12 May 2026 on the saved copy, describes environmental keying as using cryptography "to constrain execution or actions based on adversary supplied environment specific conditions that are expected to be present on the target", and lists "software/software versions" among the values a key can come from. It does not mention a Python process or loaded modules. So MITRE's page is consistent with Island's claim and does not settle it.
Island's closest earlier case is a May 2025 ReversingLabs post about ai-labs-snippets-sdk and two sister packages. ReversingLabs sells a software supply chain product, Spectra Assure, and its post says that product's improvements made the find possible. The table sets Island's summary of that case against what the post prints.
Table 3. Island's summary of the May 2025 case against ReversingLabs' own post (published 23 May 2025 per its page data).
| Point | Island says | ReversingLabs prints |
|---|---|---|
| Cover | No working SDK code | The packages "contain no SDK functionality" |
| Lifetime | PyPI removed it within a day | Available for download for less than 24 hours; about 1,600 downloads for three packages (RL's estimate) |
| Payload | A pickle inside a PyTorch model file; sent data out on the first run | An infostealer in a PyTorch model; takes basic machine details and a git configuration file |
| Key | None, base64 only | No key mentioned; an extra Base64 layer "in some versions" |
| Packages | One package | Three packages; the model is in two of them |
| Keying and persistence | None seen | The post does not mention either, so it neither confirms nor denies |
Island's summary matches ReversingLabs on cover, lifetime and payload, and simplifies on the package count and the base64 detail. Two judgements follow, both this site's. First, the pickle route on PyPI was reported before: ReversingLabs called hiding a pickle in a model "a novel approach for distribution of malware via the PyPI platform" in 2025, so Island's pickle in a config file is a variation, not a first. Second, the novelty of the key source rests on Island's reading of the literature. Neither page this site read is a search of it, and one older post that is silent about keying cannot show that nobody has done it.
Reassuring signals that did the work of controls
Island's list is eight layers against eight controls. Read the other way, it is eight things a reviewer sees that look like safety. Each is a label standing in for a check that was not made.
Table 4. The eight layers as reassuring signals. Island's list of layers and controls, condensed by this site.
| What the reviewer sees | Control Island says it evades | What stood behind it, per Island |
|---|---|---|
| A working mail library with a generic name | Code review, typosquat checks | No call to exec, no socket, no base64 in its own source; downloads in the low hundreds |
| Each package judged on its own | Scanners that judge one package at a time | The data in one package, the loader in a second from another account |
| No malicious .py file in either wheel | Source-code static analysis | A compressed pickle inside a file named default.config |
| A valid configuration comes back, nothing fails | Functional tests, error logs, the user | A decoy return value; failures end silently |
| A clean run in a sandbox | Static analysis, sandbox detonation | A key taken from module names that are absent when the package is alone |
| No install-time hook | Install-hook monitoring, pip uninstall | A .pth file that belongs to no package and runs on every Python start |
| A trusted interpreter | File-based scanning, path allowlists | Linux: a copy of the system python3 run from an anonymous memory file |
| A trusted developer-service address | Network reputation, point in time analysis | The final stage comes from a free JSON bin the operator can edit |
Three cautions on that table. The "evades" column is Island's reasoning about categories of tool. The post prints no test against any named product, so it does not say which scanners missed what. Second, the name carries an assumption. On Island's own description the gate opens for any process in which the key module is loaded, a developer's or not. The name DevGating bets that a developer's project loads that module and a sandbox does not. Island's 16 November run, with the module imported first, shows the other side of that bet. Third, the file names copy real ones. For the compiled colook build Island says the persistence uses setuptools' own names: "The names are real and most of the contents match." Only extra lines and one extra file differ.
The startup file, the memory launch, and the bin the operator can edit
The startup file. Island says the decrypted stage writes a small package and a one-line .pth file whose content is an import of it, and that "Python runs import lines in .pth files every time it starts." The Python documentation (the saved copy is for Python 3.15.2) agrees on the mechanism: "For backward compatibility, lines starting with import (followed by space or tab) are executed with exec()", and such lines "are always run at Python startup (unless -S is given to disable the site.py module entirely), regardless of whether a particular module is actually going to be used." Island's claim that uninstalling does not remove the hook is reasoning from file ownership: "pip uninstall mailreader removes the library and leaves the attacker's code running in every later Python process." The post does not say Island ran an uninstall and watched the hook survive.
Two details from the documentation, which are this site's context and not Island's. The same page says that from Python 3.15 import lines in .pth files are deprecated: "Changed in version 3.15: .pth file lines starting with import are deprecated." It also describes a newer startup file type, ".start for pre-first-line code execution". The deprecation is not a defence today, and a hunt for startup files should cover both types (this site's inference). The documented -S option skips site initialisation, and with it the hook.
The memory launch. On Linux, Island says, the stager copies the system python3 into an anonymous memory file and runs that copy, so no file on disk holds the interpreter copy or the payload. It says only the small launcher and a lock file stay on disk, and that these "are easy to hunt for". Island says the macOS and Windows variants differ and come from reading code.
The bin. The last stage is fetched from a free JSON bin on a developer service. Island: "Today it returns a placeholder loop that writes hello to a file every five seconds." It adds a speculation, marked as such here: "A stub at this stage also fits an operator who is waiting for the install count to grow before arming the chain".
On the remote access trojan, the post and Infosecurity say an earlier wave "delivered" one. Island's own text is narrower. The October bins still exist; one returns a stub, one an empty string; and "A copy of the first bin captured by a public URL scanner in October shows what it served at the time", a trojan that "sent its data to a Supabase edge function". So the evidence is a third party's snapshot of what a bin served. The post does not say a host received it or that anyone's data arrived.
What Island states, and what it does not
Table 5. What Island's post of 2 December 2026 establishes and what it leaves open.
| Topic | Stated | Not stated |
|---|---|---|
| Size | Eight packages, four waves, eight accounts (derived from the indicator table); downloads 106 to 406 per package as of 16 November | Installs by real developers; how many downloads were scanners or mirrors beyond the exclusion it names |
| Trigger | Opens when a module from the requests library is loaded; opened in its Linux run | Whether any outside install ever had that module loaded |
| Payload today | A placeholder that writes a line to a file every five seconds | Whether the bin has changed since the post; any live payload on any host |
| Earlier payload | A trojan served by an October bin, seen in a public scanner's copy | That any host received it; a victim |
| Persistence | A .pth file and launcher after the decrypted stage runs; uninstalling the library leaves them | A test of uninstalling; any behaviour on macOS or Windows that Island ran |
| The operator | Windows line endings in the bin's script, a public bin, a repeated two package shape | Who, where, or why; Island notes the account link rests on the shared dependency, not account data |
| PyPI | Four packages Removed (pafer on 16 October); four Live, reported | Dates of the other removals or of any report; any reply. This site did not check pypi.org |
| colook and basic-crypt | Analysed statically; keyed in a compiled module | Any run; their endpoint's content; the Windows build |
Where Infosecurity and Island differ
Infosecurity is a trade news site reporting Island's research. It is a secondary source, and in several places it says more than the post this site read.
Table 6. Infosecurity's report of 2 December 2026 (page data 16:00 UTC) against Island's post.
| Topic | Infosecurity | Island's post |
|---|---|---|
| Package count | "four waves of eight packages" | "Across four waves and eight packages": eight in all |
| Which four are new | "four of them previously unreported" | "four previously undisclosed malicious packages"; none named |
| Downloads | At most a few hundred each as of 16 November | 106 to 406 per package; 1,856 summed (derived), mixed windows |
| Advice | Review new packages with their dependencies; treat pickle files and compiled modules in small utilities as code; watch for startup files and interpreters from memory; test with common libraries loaded | Install policies for AI agents; reassess installed packages; restrict CI and production access to paste sites, file sharing and data bins. The four Infosecurity items are not on the page |
| Report to PyPI | Island's researcher: reported "the day before", no reply | Packages marked "Live, reported"; no date |
| The trojan | An earlier wave "delivered" one | A bin's contents as captured by a public scanner in October |
| Unknowns | Did not know who installed the latest pair or whether any ran with the module loaded | The same, with the 137 figure for mailreader only |
The advice difference matters for anyone quoting Island. The four items Infosecurity attributes to Island are good advice, but they are not on the post this site read, so this briefing labels them as Infosecurity's report of Island's advice. They may come from Island's statement to the reporter or a release this site did not read.
What to do, in order
The first items are Island's printed advice, then advice Infosecurity attributes to Island, then this site's suggestions. Where a check could start Python in a suspect environment, read the lesson of brief 737: a startup hook runs on any start, so inspect files without launching the interpreter. A related point from brief 690 is that pinning a top level release did not freeze the dependencies beneath it in Corelight's lab.
Take this with you
Checklist, in order, each item labelled by whose it is
- Island's post: set package installation policies for AI coding agents so they cannot add malicious, high risk or unapproved packages.
- Island's post: keep reassessing installed packages as new intelligence arrives, even when the version has not changed.
- Island's post: restrict CI/CD and production access to public paste sites, anonymous file sharing and hosted data bins where there is no business need.
- Infosecurity reports Island's advice (not on the post this site read): review a new package together with the dependencies it pulls in, and treat pickle files and compiled modules bundled in small utilities as code.
- Infosecurity reports Island's advice (not on the post): run tests with common libraries already loaded, and watch for unexpected Python startup files and interpreters launched from memory.
- This site's suggestion: search lockfiles, images, caches and internal mirrors for the eight package names and the versions Island prints. A match is exposure to investigate, not proof that any payload ran.
- This site's suggestion: on any match, copy the environment's site-packages listing with a tool that does not start Python, or use Python's documented -S option, and look for .pth files with import lines, the folder and file names Island prints, and extra files inside the setuptools hack folder.
- This site's suggestion: rebuild a matched environment from a clean base instead of relying on uninstalling the package, and treat the secrets it could read as exposed as a precaution. Island reports no victim.
- This site's suggestion: allow list new packages in CI, pin direct and indirect dependencies with hashes, and send any small utility that bundles a pickle or compiled module to a person for review.
- This site's suggestion: block outbound traffic from build jobs by default and allow named endpoints. A shared developer-service hostname cannot be blocked by name without breaking legitimate use, so Island's bin identifier is the indicator.
- This site's suggestion: check each package's current status on PyPI before relying on Island's table of 2 December. This site did not request it.
What Island prints for defenders: names, files, hashes and addresses
Island's post ends with an indicator table. This site copied the entries below exactly, defanged the live addresses as Island does, and left out the PyPI account names, a leaked operator build path and every line of code. Island says "The C2 content can change at any time. The bin ID and the file names are the stable indicators." No address here is to be visited, and no package is to be downloaded to test a hash: the hashes are for files a defender already holds.
Block 1 is the package list, with the versions Island prints for the later waves. Island marks all of these Confirmed; for the earlier waves it prints names only.
mailreader 2.7.1, 2.7.2
confext 0.7.2
colook 1.1.3
basic-crypt 1.5.2, 1.5.3
webreader, pafer, resion, pafex (earlier waves)
Block 2 is the on-disk side, where Island says hunting is easiest: "The lock file and the .pth file stay on disk and are easy to hunt for." Island marks the lock file Confirmed on Linux and Probable on Windows, and the macOS file name Probable from code only. The last entry is a file that Island says is not part of real setuptools. Compare any distutils-precedence.pth and _distutils_hack folder against a known clean install, because for the colook build Island says the real names are reused.
py_abi2-log.pth
py_log2/ (__init__.py, __cached__.py)
/tmp/pylog.txt, %TEMP%\pylog.txt
~/pip3-update.py
/tmp/file.txt
_distutils_hack/__base__.py in any site-packages or dist-packages
Block 3 is the file hashes, SHA-256, as Island prints them, for packages a team may already hold in a cache or mirror. The last line is not a file hash: Island prints one MD5, the MD5 of a module name written twice, which it says selects the key. It is a string to search for inside suspect files.
824b3df224c9052ae9c01f4dc6807014eecb37855fc888b16c9098887f962fb0 mailreader-2.7.1-py3-none-any.whl
8b39970f7fc5c58646980092f0114753280ca5ed7df00f3e8d0774f430281631 confext-0.7.2-py3-none-any.whl
8960d524263c8ef189fc8070bb684d6673de5d2e07fda19ec054af82f4eeeb1e colook-1.1.3-py3-none-any.whl
8dc7261e57873c03aaaf17c6cd9301ff3b5c00d42b02827241b9bd9a3875c756 colook-1.1.3.tar.gz
a27b99b6c79a087b5cdf89559f84fb53ca02fa25352ed3112e25e4257346f55d basic_crypt-1.5.3 manylinux1_x86_64 wheel
8dc0fb628fe30146413c46cdad56f9233f43236129d4ccc8ba03b1814300d29e basic_crypt-1.5.3 win_amd64 wheel
a1a30a419699cbdf2b7009f2d82f9f4552c0a6e0eb0068cca36fbf51d9a101b2 basic_crypt-1.5.3.tar.gz
11b4d0b03dba22faddd32c7a4a3e9fd7322661ef1ecb4e1620ba55714f075822 basic_crypt-1.5.2 manylinux1_x86_64 wheel
5a529caaf5daa4be09251d66dea82960f7ce1da0d2368c90e47311461032fd92 basic_crypt-1.5.2 win_amd64 wheel
88c3fe090899c5cd20dff5572b616df30f2749900683801279cf126bd890e123 basic_crypt-1.5.2.tar.gz
c7b794f17288e30aeb665530f7f358887a2861889c53f24fa29b7b8e8a69258b basic_crypt/_native.so in the basic-crypt 1.5.3 Linux wheel
d3927b5df082941274e3774df444ed34e6326045ba18af9ec20127cb8d4932bf Dropped _distutils_hack/__base__.py, the memory loader
6a3221b95503aa1ac28f3469f9073016 MD5 of a module name written twice, selects the XOR key from sys.modules
Block 4 is the network side. These addresses sit on shared developer services, so the full path is the indicator, not the host name (this site's note). Island says the first bin's content has been replaced by a stub, so a past hit may only mean a host asked for the bin, not that it ran a trojan.
hxxps://api.npoint[.]io/df37d3253fff53e2034f/login mailreader C2, public JSON bin
hxxps://frjmzbjbhwvtdnsuodmu[.]supabase[.]co/functions/v1/save wave 1 RAT data endpoint
hxxps://tzqrmubxuluyccmiialf[.]supabase[.]co/functions/v1/register wave 2b C2
The question the post leaves open
If a package can stay silent until your own project supplies the key, what would a test that imports it alone ever tell you, and which of your build jobs, notebooks and services is the first to load the module that opens it?
Key facts
Sources
- PrimaryDevGating: The PyPI Malware That Stays Silent Until It Finds a Developer. Island's research post dated 2 December 2026: eight packages in four waves, the eight layers, package and download tables, research limits and indicators. Read in full by this site on 2 December 2026Islandaccessed 2026-12-02
- PrimaryMalicious attack method on hosted ML models now targets PyPI. Post of 23 May 2025 on ai-labs-snippets-sdk and two sister packages, the earlier case Island compares with. Read in full on 2 December 2026ReversingLabsaccessed 2026-12-02
- PrimaryExecution Guardrails: Environmental Keying, T1480.001, the technique page Island cites. Read on 2 December 2026MITRE ATT&CKaccessed 2026-12-02
- Primarysite: Site-specific configuration hook, Python 3.15.2 documentation, on how .pth files and import lines run at startup. Read on 2 December 2026Python Software Foundationaccessed 2026-12-02
- Reported byDevGating PyPI Malware Hides Until it Reaches Developers. News report, page data 2 December 2026 16:00 UTC, including a statement by an Island researcher on PyPI listings and reports. Secondary source. Read in full on 2 December 2026Infosecurity Magazineaccessed 2026-12-02


