Eight malicious PyPI packages hide malware that unlocks only inside real Python projects
Because the trigger depends on modules a victim's own code has already loaded, package scanners that inspect packages alone may miss it.
Island researchers describe an active PyPI campaign, running since September 25, 2026 across four waves and eight packages, that hides its payload behind a technique they call DevGating. The malware derives its decryption key from a Python module the victim's own code has already loaded, so it stays dormant under scanners that inspect packages in isolation. Its main payload is split between two packages published from different accounts, and it installs a .pth file so it runs at every interpreter start. The final stage executes Python from memory on Linux and fetches code from npoint.io, which the operator can change at any time. Island says an earlier wave may have delivered a remote access trojan, though this is not confirmed. For developers, the takeaway is that a package passing static analysis, sandboxing and functional tests can still run malicious code once imported into a real project.
Why it matters
The campaign shows that a PyPI package can pass static analysis, sandboxing and functional tests and still run malicious code once it is imported into a live project. For people who rely on the Python package index, that means a clean scan is not proof that a package is safe to run. The payload's ability to persist across interpreter starts, even after uninstallation, and to pull code the operator can change at any time means the risk does not end when a package is removed. Island's suspicion that an earlier wave delivered a remote access trojan is not confirmed, so the reach of the campaign remains uncertain.
Matters or hype?
Does this story matter, or is it hype? Vote before you see what everyone else said.