thehackernews.com·3 december 2026

8 Malicious PyPI Packages Use Python Dependencies as Keys to Unlock Hidden Malware

Image for the article: 8 Malicious PyPI Packages Use Python Dependencies as Keys to Unlock Hidden Malware
Image via thehackernews.com

An active campaign targeting the Python Package Index (PyPI) repository uses a novel technique called DevGating, which employs victims' Python dependencies as decryption keys for payloads. The campaign, active since September 25, 2026, spans four waves and eight packages, with attackers progressively improving evasion techniques. The malware remains dormant until it detects a developer's machine, using specific dependencies to unlock and execute malicious code. The attack establishes persistence via a .pth file and retrieves code from npoint.io, a one-way JSON store. This campaign highlights a gap between security tool analysis and real-world developer usage of packages.