Shai-Hulud Worm Supply Chain Attack on npm Packages
2 sources · Updated 5mo ago · First seen Sep 25, 2025

A self-replicating worm known as Shai-Hulud was used to compromise over 500 npm packages, enabling attackers to steal sensitive credentials such as GitHub Personal Access Tokens and API keys for major cloud services. The malware spread by injecting itself into additional packages, leveraging stolen credentials to propagate further. GitHub responded by removing the compromised packages from the npm registry and working with open source maintainers to contain the attack. The Cybersecurity and Infrastructure Security Agency (CISA) issued a warning urging organizations to review their software for signs of compromise, rotate developer credentials, and monitor for anomalous network activity. The incident highlights the risks of supply chain attacks in the open source ecosystem and the importance of rapid response and credential hygiene.
Why it matters
Impact Assessment
- Affected population: Organizations and developers that build, install, or depend on npm packages are directly exposed, especially software vendors, SaaS providers, cloud-native engineering teams, and CI/CD environments that consume open source JavaScript dependencies.
- Primary impact: The campaign enabled credential theft and supply chain compromise. Stolen secrets reportedly included GitHub Personal Access Tokens (PATs) and API keys for major cloud services, creating risk of source code compromise, package tampering, cloud account abuse, and downstream customer impact.
- Severity: High. This is not a single-package incident; it involved more than 500 npm packages and a self-replicating worm, increasing both speed and scale of propagation. Consequences can include unauthorized code publication, malicious package updates, data exposure, service disruption, and reputational damage.
- Scope: Widespread ecosystem exposure rather than a narrowly targeted intrusion. Any environment that installed affected packages or used compromised maintainer credentials may be at risk.
- Observed activity: The story describes active malicious use in the wild. GitHub removed compromised packages from the npm registry and coordinated containment with maintainers, while CISA issued a warning urging immediate review and credential rotation.
- Business risk: Organizations may face:
- Compromised software builds and developer workstations
- Unauthorized access to source repositories and package publishing pipelines
- Cloud resource abuse using stolen API keys
- Potential downstream compromise of customers consuming poisoned dependencies

