www.elastic.co DevGating PyPI Malware Hides Payload Until It Reaches Developer Environments
Article Content
- •A PyPI campaign tagged DevGating keeps payloads encrypted until a real developer environment loads a specific module.
- •Malicious code was split across two packages from separate accounts so neither showed the full chain alone.
- •The chain installs a persistent Python startup hook that survives package removal and can reach CI jobs and cloud secrets.
- •The current payload is a harmless placeholder, though an earlier wave delivered a remote access trojan.
- •Packages were still listed on PyPI at reporting time, and Island's reports had not received a response.
Security firm Island reported on 2 December 2026 a malware campaign on the Python Package Index using a technique it calls DevGating, which keeps payloads encrypted until they run in a real developer environment.
Island said the activity ran in four waves of eight packages since 25 September, four of them previously unreported.
The malicious code was split between two packages from separate accounts, and the decryption key was a module name taken from the victim's running Python process, so sandboxes importing a package in isolation saw nothing.
Island counted eight evasion layers aimed at code review, testing, sandboxing, endpoint scanning and domain reputation. Once run, the chain planted a Python startup hook that survived uninstalling the package and could fetch later code from an operator-editable web service.
The current payload is a harmless placeholder, though an earlier wave delivered a remote access trojan. An updated package was published on 1 December with the malicious chain retained.
Each package had at most a few hundred downloads as of 16 November, and Island said it did not know who installed the latest pair. Island's Ofek Ronen told Infosecurity the packages remained on PyPI and that Island had reported all still-listed packages without response.
Ask AI about this cluster
Answers cite the sources they use
Timeline
More articles in this cluster (6)
Following this threat?
Track GhostMap and AWS in your own feed — you're alerted when they show up in new reporting, leak sites or exploitation.
Free account · no card needed
Common questions
Am I affected if I installed one of these packages?
How urgent is this for defenders?
What should defenders do first?
Continue Reading
GhostMap Rootkit Hides IronWorm Malware on Linux Systems Hackers are leveraging a Linux rootkit named GhostMap to conceal IronWorm malware from security tools. The rootkit allows selected processes, files, and network sockets to disappear from standard listings without actually removing them. In tests, a malware listener was hidden from /proc/net/tcp but remained visible to…
GhostMap Android Flaw Triggers Persistent Crash Loops Bitdefender Labs has identified a vulnerability in Android, dubbed GhostMap, which allows a specially crafted app to crash devices into an endless boot loop upon installation. This flaw affects all Android versions from 10 and above, requiring a factory reset to recover, which erases all local data. The vulnerability…