Cybersecurity experts have uncovered a new PyPI Package Index attack which uses so-called DevGating to hide malicious code within seemingly benign packages. An attacker can use a victims own python libraries to form the decryption key and release malicious code.
Since September 25 2026, Island has tracked four phases of this attack which have used eight malicious packages – mailreader, confext, webreader, pafer, resion, pafex, colook and basic-crypt.
The most recent phase attacks using mailreader and confext, both published on PyPI under different user names. Mailreader features a legitimate mail processing function and also has malicious code which is hidden within what appears to be a configuration file. Confext includes code to access and run this hidden data.
Consequently, individual analysis of these two packages may not effectively detect the malicious code.
DevGating remains inactive until it identifies a particular python library relating to the widely used ‘requests’ package. It assesses if this module has been previously imported and then uses this to formulate the decryption key. As a result, the malware can evade single point analysis and yet still be deployed within a developer’s project.
Following activation, the malware creates persistence by adding a .pth python file.
This guarantees that the code will run every time the python interpreter is launched, despite the original package no longer being present. The malware is then able to access further code from a JSON data hosting site, npoint.io, which can be edited by the attacker. Previously, this attack phase was said to have deployed a remote access trojan.
Island also found that the colook package utilised a distinct module related to ‘requests’.
The experts highlighted that DevGating emphasises the disparity between how security and development communities respectively analyse packages.
Separately, Aqua discovered a Linux eBPF based rootkit known as GhostMap. This was disseminated using a refined version of the Shai-Hulud worm, called IronWorm. GhostMap alters kernel data so that user space programmes cannot see malicious processes, files or networking activity.
Like the Atomic Arch attack, which infiltrated and distributed malware for data theft and a crypto wallet siphoning tool to hundreds of neglected Arch User Repository packages in June 2026, GhostMap resembles Atomic Arch in its execution methods.
Also since November 10, another exploit-based attack has been targeting repositories. It is thought that a minimum of 1,806 repos have been affected and in just two days, in excess of 8,000 had malicious commits made.
Attackers created ‘dependency review’ pull requests using illegitimately accessed accounts to determine if stolen GitHub access tokens had write access to repositories. Attackers then added malware to either GitHub Actions or npm install processes to steal credentials.
This malicious code then accesses secrets and cloud access details relating to a repository and endeavours to further exploit AWS, Google Cloud and Microsoft Azure.
This data is transmitted to attacker owned servers. Although, as yet, no-one has been identified by researchers as being behind this attack. However, Aikido recognised parallels with a previously seen attack, named GhostAction, which similarly deployed false security processes for the distribution of credential stealing malware.
