DevGating PyPI Malware Hides Until it Reaches Developers

A malware campaign on the Python Package Index (PyPI) keeps its payload locked until it reaches a real developer environment, evading scanners and sandboxes that check packages in isolation.
Security firm Island detailed the software supply chain campaign in research published on December 2, calling the technique "DevGating".
It said the activity had run since September 25 in four waves of eight packages, four of them previously unreported.
The malicious packages were working Python utilities, one of them a mail parser. Each wave divided the harmful code between two packages from separate accounts, so neither showed the full chain when checked alone.
The payload was encrypted, and its key was a module name taken from the victim's running Python process. A sandbox importing the package by itself never had that module loaded and saw nothing, while a real project usually would.
Island said keying malware to its environment was not new, but it had not seen the key drawn from code the victim had already loaded. It counted eight evasion layers, aimed at controls ranging from code review and functional testing to sandboxing, endpoint scanning and domain reputation.
The operator published an updated version of one package on December 1, adding features but keeping the malicious chain. Each package had at most a few hundred downloads as of November 16, and Island said it did not know who installed the latest pair or whether any of those installs ran with the triggering module loaded.
Once run, the chain planted a Python startup hook that survived uninstalling the package. On Linux it could run Python from memory, and it fetched later code from a developer web service the operator could edit at will.
This summary is from Infosecurity, published Dec 2, 2026. NewsFusion links to the original reporting and groups related coverage.





