Eight malicious PyPI packages use Python dependencies to unlock hidden malware
A malware campaign targeting PyPI involved eight packages. The attackers used Python dependencies already loaded by victims to generate decryption keys, bypassing static analysis and sandbox detection. The malicious code could be concealed by splitting it across packages and achieve persistence through .pth files, then execute subsequent code from memory on Linux. The article also mentions a recent campaign that used stolen GitHub tokens to implant credential stealers in large numbers of code repositories.
Why it matters: The article examines how DevGating uses dependencies in real development environments to trigger layered payloads, and explains the blind spots in PyPI supply-chain detection through cross-package splitting and persistence mechanisms.






