GitLab discovers widespread npm supply chain attack
Nov 24, 2025Michael Henriksen

Summary
This post details the discovery and technical analysis of a widespread npm supply chain attack. It describes the malware's multi-stage loading process via `setup_bun.js`, credential harvesting techniques (GitHub, npm, AWS, GCP, Azure), data exfiltration network using attacker-controlled GitHub repositories, and supply chain propagation by injecting malicious code into other packages. Crucially, it details the 'dead man's switch' mechanism that triggers data destruction if access to exfiltration and propagation channels is lost. Indicators of compromise and how GitLab's Dependency Scanning can help detect this campaign are also provided.
More from the Security Control Framework trail
- Track organization-wide security risk in one dashboard
- Dependency Firewall: Block risky packages before the build
- Two front doors: Module-level access in a Django GRC app
- How GitLab tracks vulnerabilities through refactors and reformatting
- Shai-Hulud copycat campaign targets Python developers through PyPI typosquatting