8 Malicious PyPI Packages Use Python Dependencies as Keys to Unlock Hidden Malware
AI-summarised brief · reviewed before publication
A sophisticated campaign targeting the Python Package Index (PyPI) has been active since September 25, 2026, deploying eight malicious packages across four waves. The attackers use a technique called DevGating, where the payload is decrypted only when specific Python dependencies—such as modules loaded with the popular requests package—are present. The malware splits its code between two separate PyPI accounts, evading static analysis. Once activated, it installs a .pth file for persistence, retrieves code from npoint.io, and can execute a remote access trojan.
💡 Why It Matters
- · The attack exploits the gap between isolated package analysis and real‑world dependency usage, revealing that even benign‑looking utilities can become vectors for sophisticated, environment‑specific malware.