Threats · 16h ago

PyPI malware waits for real Python projects to unlock

Island reported on December 2 that DevGating, a PyPI campaign active since September 25, ran in four waves of eight packages. Each wave split the malicious chain between two packages from separate accounts. The packages had at most a few hundred downloads by November 16; Island did not know whether the latest pair had executed.

The payload is encrypted and uses the name of a Python module already loaded by the victim’s running process as its key. An isolated package test never loads that project module, so the payload stays hidden until the packages reach a real developer environment. Once run, the chain installs a Python startup hook that survives package removal. Island said the current payload was a harmless placeholder, while an earlier wave delivered a remote access trojan.

For teams whose development and CI jobs share a Python installation, removing the package may leave the hook able to reach later jobs or services with source-code and cloud-secret access. Island has not established whether any latest-wave install triggered.

Package checks run in isolation may miss payloads that unlock only when real projects load the module used as the decryption key.

Timeline

Sources

2 sources covering this story

Vendor digest: Microsoft

Part of the PlainSec briefing for 2026-12-04

Editions

Related stories