Infosecurity
Island exposes PyPI malware that activates in real projects
Security firm Island has disclosed a Python Package Index (PyPI) software supply chain campaign, dubbed “DevGating”, that keeps its malicious payload dormant until it reaches a real development environment. The activity, active since 25 September in four waves of eight packages (four of which were previously unreported), uses two separate packages per wave so that no single package reveals the full chain during checks.
The payload is encrypted and keyed by a module name taken from the victim’s running Python process. If a sandbox merely imports the package in isolation, the key module is not present and nothing harmful occurs; a live project typically would load it, enabling execution. Island described eight evasion layers aimed at bypassing code review, functional testing, sandboxing, endpoint scanning and domain reputation checks.
In a later update, one package gained features while preserving the malicious chain; each package had only a few hundred downloads as of 16 November, and it is unclear who installed the latest pair or whether the triggering module loaded during execution. The persistence mechanism—a Python startup hook—survives package removal and can run Python from memory, potentially accessing CI jobs and cloud secrets.
Island urged defenders to scrutinise new packages and their dependencies, beware bundled pickle files and compiled modules, and watch for startup scripts or interpreters invoked from memory. Ofek Ronen confirmed the packages remained on PyPI as of 2 December 2026.