
Shai-Hulud copycat campaign targets Python developers through PyPI typosquatting
6/9/2026
This post details the discovery and analysis of a coordinated supply chain attack on PyPI, involving five malicious Python packages impersonating popular libraries like Flask, Requests, and NumPy. The attack leverages Python's `.pth` file mechanism for initial execution and deploys a copy of the Shai-Hulud worm, which harvests credentials from CI/CD environments and major cloud providers. The post provides a deep technical dive into the infection vector, payload obfuscation (ROT-N cipher, AES-128-GCM encryption), credential harvesting targets, self-propagation mechanisms (committing malicious files to GitHub repos, publishing poisoned packages), and attacker attribution. It also outlines indicators of compromise and remediation steps for affected users, and highlights how GitLab's Dependency Scanning and Security Analyst Agent can help detect these threats.






























