PyPI Package Compromised in Supply Chain Attack
Essential information
- Published
- 30/04/2026 21:11
- Modified
- 04/05/2026 14:01
- Source / Author
- AlienVault
- Confidence
- 100/100
- Report type(s)
- threat-report
- Labels / Tags
- ci/cd targeting github poisoning npm worm pypi shai-hulud supply chain attack
- Tags
- 2026-04-30 ci/cd targeting github poisoning npm worm pypi shai-hulud supply chain attack
- Related entities
- 1 indicators, 1 observables, 1 intrusion sets (apt), 1 malware, 1 others
Description
The popular PyPI package lightning experienced a supply chain attack affecting versions 2.6.2 and 2.6.3, published on April 30, 2026. The compromise introduced malicious code that executes automatically upon module import, downloading Bun JavaScript runtime and executing an 11MB obfuscated payload. The attack harvests credentials including GitHub tokens, npm tokens, cloud credentials from AWS, Azure, and Google Cloud, while targeting CI/CD environments. The malicious code poisons GitHub repositories by injecting backdoored files impersonating Claude Code commits and infects local npm packages through tarball manipulation. The attack shows similarities to previous Shai-Hulud campaigns in terms of credential targeting and obfuscation methods. Evidence suggests the maintainer's GitHub account (pl-ghost) was compromised, with suspicious branch operations and disclosure suppression indicating ongoing attacker control. The incident affects a widely-used deep learning framework receiving millions of monthly downl...