News
Malicious PyPI packages unlock their payload with your other dependencies.
Island says eight PyPI packages in a campaign called DevGating stay quiet in a scanner and decrypt their payload only when a developer's other Python modules are already loaded.
Saasment is an early-access AI security platform. Get early access.

Impact
- What was impacted
- Eight packages on the Python Package Index, in four waves since September 25, 2026. The named releases are mailreader 2.7.1 and 2.7.2, confext 0.7.2, webreader, pafer, resion, pafex, colook 1.1.3, and basic-crypt 1.5.2 and 1.5.3. The report gives no version numbers for webreader, pafer, resion, or pafex. The payload is split across two packages from two accounts. In the latest pair, mailreader carries a pickle disguised as default.config, and confext is what unpickles it. The campaign then leaves a .pth file so the code runs on later Python starts even if the package is uninstalled. The stated goal is to run Python from memory on Linux and pull further code from npoint.io. A later sentence in the same report says the .pth file fetches code staged on point.io. An earlier wave is said to have delivered a remote access trojan. No CVE is named.
- Who was impacted
- Python developers and anyone who installs small helper libraries from PyPI, especially projects that already import the requests package. Security scanners that test a package alone, without the dependencies a real project loads, are the gap this campaign uses. Linux machines that run the payload are the stated end target.
- What you need to do
- Remove mailreader 2.7.1 and 2.7.2, confext 0.7.2, webreader, pafer, resion, pafex, colook 1.1.3, and basic-crypt 1.5.2 and 1.5.3 from developer machines and from build environments. The report does not name a safe version of any of those projects, so do not assume a different version of the same name is clean. Search for a leftover .pth file that runs when Python starts. The report does not name that file. Do not import the packages, and do not unpickle default.config. Treat a machine that imported the pair, with requests already loaded, as exposed, and rotate credentials that process could read.
Island researchers Idan Revivo and Ofek Ronen described DevGating, a PyPI campaign active since September 25, 2026, across four waves and eight packages. The operator has been changing the evasion as it goes. One version released earlier this month adds a real feature and keeps the malicious code. The report's list is mailreader 2.7.1 and 2.7.2, confext 0.7.2, webreader, pafer, resion, pafex, colook 1.1.3, and basic-crypt 1.5.2 and 1.5.3. No versions are given for webreader, pafer, resion, or pafex. The earlier waves, in the order the report gives them, are webreader with pafer, resion with pafex, and colook with basic-crypt. The latest pair is mailreader with confext. The packages are small generic utilities, such as a web reader, a mail parser, or a terminal-color library. None of them copies a famous project name. The lure is a developer who searches PyPI and installs the first helper that looks plausible.
The payload is split so that either package, reviewed alone, looks incomplete. Mailreader is a working mail parser, which gets it past a review that only checks whether the library does what it claims and whether the name is a typosquat. The malicious data sits in a pickle file shipped as default.config. Confext, published from a different account, is the code that unpickles whatever file its caller provides. Removing one package leaves the other available to pair with a new front. After it runs, the malware writes a .pth file that executes on every Python start, including after the package is gone. The report says the goal is to run Python directly from memory on Linux and to retrieve code from npoint.io, a JSON store the operator can rewrite. Later in the same report, the .pth file is described as fetching code staged on point.io. An earlier wave is said to have delivered a remote access trojan. The report does not say which wave that was.
DevGating stays dormant until it decides it is on a developer's machine. Mailreader checks whether the process has already loaded requests.packages.urllib3.util.connection, and if so uses that module name as the material for the decryption key. Colook looks for a different module, requests.packages.urllib3.util.request. A scanner that imports mailreader by itself often has not loaded requests first, so the payload does not decrypt and the package looks harmless. A backend project that imports requests and then mailreader can decrypt default.config and run it. Island said a package can pass static analysis, a sandbox detonation, and a functional test, and still run malicious code when it is imported into a real project.
The same report also describes two related supply-chain cases. Aqua said a Linux eBPF rootkit called GhostMap is being spread by IronWorm, which it calls an evolved variant of the Shai-Hulud worm. GhostMap hides processes, files, and network sockets by changing kernel data as user-space programs read it. Aqua researchers Dolev Mizrahi and Ivan Kosarev are named. GhostMap also shares some implementation overlap with a rootkit from a June 2026 campaign called Atomic Arch, which compromised hundreds of orphaned packages in the Arch User Repository and pushed a stealer and a wallet drainer. The report does not say GhostMap and Atomic Arch are the same operation.
Separately, unknown actors have used stolen GitHub tokens since November 10, 2026 to push a credential stealer aimed at GitHub Actions secrets and cloud credentials. The activity reached at least one Packagist package and one Go package through automated publishing. The report says 1,806 repositories are assessed as impacted, and that more than 8,000 repositories received malicious commits between November 10 at 12:46 p.m. UTC and November 12 at 4:35 a.m. UTC. The stealer is meant to run once, either from GitHub Actions or from an npm install postinstall hook. Aikido said 4,837 compromised accounts opened probe pull requests in 61,764 repositories. The pull request title is docs: dependency audit notes, from a branch named wfx-docs. It checks that the token can write, then adds the stealer in one of three ways: a new workflow file the report writes as github/workflows/build-audit-<xxxxxx>.yml that runs on every push, a change to an existing workflow, or an npm postinstall hook in package.json. SafeDep researcher Kunal Singh said that in almost all repositories the attacker then reverts the commit, so the branch looks clean. Stolen data is sent with an HTTP POST to 194.150.166[.]244 or 18.143.168[.]96. The malware also tries to mint new access keys and federated credentials for AWS, Google Cloud, and Microsoft Azure so access outlasts that run. Aikido said the pattern overlaps a campaign called GhostAction, which injects secret-scanning workflows disguised as security audits. The report does not say who is behind it.
For your AI agent
Agent instructions — copy paste to Claude
You are helping me respond to the DevGating campaign on PyPI, described by Island on December 3, 2026, plus two related supply-chain items in the same report: the GhostMap Linux rootkit and a GitHub-token stealer. Do not install the named packages, import them, unpickle default.config, fetch code from npoint.io or point.io, or contact 194.150.166[.]244 or 18.143.168[.]96. Do not write a proof of concept. Ask before you uninstall a package, delete a .pth file, rotate a credential, revoke a GitHub token, or revert a commit. Facts from the report: - Active since September 25, 2026. Four waves, eight packages. One version released earlier this month adds legitimate functionality and keeps the malicious code. The report does not tie that sentence to a single filename beyond the latest pair being a working mail parser. - Named releases: mailreader 2.7.1 and 2.7.2, confext 0.7.2, webreader, pafer, resion, pafex, colook 1.1.3, basic-crypt 1.5.2 and 1.5.3. No version is given for webreader, pafer, resion, or pafex. Do not invent one, and do not treat an unlisted version of the same name as safe. - Earlier waves, in the order given: webreader and pafer; resion and pafex; colook and basic-crypt. Latest pair: mailreader and confext, from two different PyPI accounts. - mailreader ships a working mail parser. The malicious data is a pickle disguised as default.config inside mailreader. confext contains the unpickle logic. A scanner that sees only one package does not see the whole chain. Taking down one leaves the other able to pair with a new front. - After activation, a .pth file runs on every Python start even if the package is uninstalled. The .pth filename is not given. Do not invent it. - Stated goal: execute Python from memory on Linux and retrieve code from npoint.io, a JSON store the operator can rewrite. A later sentence says the .pth file fetches code staged on point.io. Keep both names. An earlier wave is said to have delivered a remote access trojan. Which wave is not specified. - Mailreader derives its decryption key only if requests.packages.urllib3.util.connection is already loaded. Colook looks for requests.packages.urllib3.util.request. A scanner that does not load requests first will not decrypt the payload. A project that imports requests and then mailreader can. - The front packages are generic helpers, not typosquats of famous projects. - Aqua: GhostMap is a Linux eBPF rootkit spread by IronWorm, described as an evolved Shai-Hulud variant. It hides processes, files, and sockets by changing kernel data. Named researchers: Dolev Mizrahi and Ivan Kosarev. It shares some implementation overlap with a rootkit from the June 2026 Atomic Arch campaign, which compromised hundreds of orphaned Arch User Repository packages and pushed a stealer and a wallet drainer. Do not treat them as one confirmed operation. - Stolen GitHub tokens since November 10, 2026 were used to push a one-time credential stealer for GitHub Actions secrets and cloud credentials. At least one Packagist package and one Go package were reached through automated publishing. 1,806 repositories are assessed as impacted. More than 8,000 repositories received malicious commits between November 10 at 12:46 p.m. UTC and November 12 at 4:35 a.m. UTC. - Aikido: 4,837 compromised accounts opened probe pull requests titled docs: dependency audit notes from branch wfx-docs, in 61,764 repositories. The three drop methods are a new workflow file written in the report as github/workflows/build-audit-<xxxxxx>.yml that runs on every push, an edit to an existing workflow, or an npm postinstall hook. SafeDep's Kunal Singh said the commit is then reverted in almost all repositories, so the branch looks clean. Exfiltration is an HTTP POST to 194.150.166[.]244 or 18.143.168[.]96. The stealer also tries to mint AWS, Google Cloud, and Microsoft Azure access keys and federated credentials. Aikido sees overlap with GhostAction. The operator is not named. Context: - What was impacted: developer machines and builds that installed the eight PyPI packages, Linux hosts where the payload ran, and GitHub repositories that accepted a commit from a stolen token. - Who should care: Python developers, CI owners, and anyone who reviews pull requests that claim to be a dependency audit. - What to do: remove the named releases, hunt for a leftover .pth file without executing it, rotate secrets on a machine that imported the pair, and review wfx-docs history even if the branch tip looks clean. Do this in order. Prefer read-only checks. Ask before uninstalling, deleting files, rotating secrets, or revoking tokens. 1. Inventory - Search lockfiles, virtual environments, CI images, and shell history for mailreader, confext, webreader, pafer, resion, pafex, colook, and basic-crypt. Record the version if one is pinned. Flag mailreader 2.7.1 and 2.7.2, confext 0.7.2, colook 1.1.3, and basic-crypt 1.5.2 and 1.5.3 as named malicious releases. For the four names with no version in the report, flag any install and say the report did not limit the version. - Search for .pth files under site-packages that you cannot attribute to a known tool. Do not execute them. Do not open default.config in a way that unpickles it. You may record that a file by that name exists. - Search Git history, not only the current tip, for branch wfx-docs, a pull request titled docs: dependency audit notes, a workflow whose name starts with build-audit-, and a new npm postinstall hook. A clean tip is not proof the branch was clean. - If we maintain Arch packages or run Linux hosts that could have received IronWorm, record that GhostMap was described, and look for unexpected hidden-process behavior only with a normal process listing. Do not load an eBPF program to test the rootkit. 2. Contain - If a named package is installed, propose uninstalling it and cutting that environment off from further installs. Ask before you uninstall. - If a .pth file is unexplained, propose moving it aside rather than running Python in that environment. Ask before you move it. - If a wfx-docs commit or a build-audit workflow appears, propose pausing GitHub Actions on that repo and treating the token that pushed it as stolen. Ask before you revoke the token or disable Actions. 3. Remediate - There is no safe version in this report. Do not upgrade these package names to a newer release unless I bring a separate notice that names a clean version. - If requests was imported in the same process as mailreader or colook, treat credentials that process could read as exposed. Propose rotating them from a clean machine. Ask before you rotate. Do not print secret values. - If a cloud key may have been minted by the GitHub stealer, propose disabling new keys and federated credentials created in that window on AWS, Google Cloud, and Azure. Ask before you disable them. Do not create a replacement key until I agree. - Do not fetch npoint.io or point.io to see the payload. 4. Verify - Report which environments no longer contain the eight names, which .pth files are still unexplained, and which repositories had a reverted audit commit. 5. Report back - What matched, what you changed, and which package names had no version in the report. Say that a scanner which imports a package alone can miss this campaign. Do not invent CVEs, safe versions, .pth filenames, or exploit steps. If a check needs access I have not given you, say what you need and stop.