It steals credentials and access tokens from developer and build accounts, then uses them to publish infected package versions. CISA reported over 500 npm packages compromised in September 2025.
What it does
The worm runs when an infected package is installed. It looks for tokens and keys on the machine, then uses them to push the same code into more packages that the victim account can publish.
GitHub describes a multi-wave campaign. The second wave, called Shai-Hulud 2.0, added destructive functionality and a stronger focus on build environments. CERT-EU describes the ChainDrop malware in the Keyv npm maintainer account takeover as based on Shai-Hulud.
Names
Public sources use several names for this malware.
What it can do
The ATT&CK techniques the cited sources map to this tool, by tactic. Each id opens our technique page where one exists, otherwise MITRE.
Initial Access
Execution
Privilege Escalation
Credential Access
Steal Application Access Token T1528
It steals access and API tokens from CI/CD tools and code repositories.[1, 2]
Unsecured Credentials: Credentials In Files T1552.001
It reads environment variables, cloud credential files and npm and GitHub configuration files to collect secrets.[1]
Credentials from Password Stores: Cloud Secrets Management Stores T1555.006
It collects secrets from AWS Secrets Manager, GCP Secret Manager and Azure Key Vault.[1]
Lateral Movement
Exfiltration
Stealth
Command And Control
How it spreads
Shai-Hulud spreads by installing malicious code in npm packages. When a package is installed, the code runs, collects tokens, and uses them to log in to the npm registry as the compromised developer and publish infected versions of other packages. GitHub also says the attacker can hold stolen tokens and start a new campaign weeks or months later. A different worm, GlassWorm, spreads through code editor extensions and GitHub projects instead, according to MITRE ATT&CK.
Timeline
- September 2025
First reported
MITRE describes Shai-Hulud as a supply chain worm first reported in September 2025.[1]
- 14 September 2025
GitHub is notified
GitHub says it was notified of the Shai-Hulud attack, a worm spreading through compromised npm maintainer accounts.[3]
- 22 September 2025
GitHub removes packages and sets a plan
GitHub says it removed over 500 compromised packages and blocked uploads of packages containing the malware indicators. It also announced changes to npm publishing.[3]
- 23 September 2025
CISA alert
CISA released an alert on the supply chain compromise, reporting over 500 compromised packages and giving recommendations.[2]
- 23 December 2025
GitHub review of the waves
GitHub describes a multi-wave campaign and says the second wave, Shai-Hulud 2.0, added destructive functionality and a focus on build environments.[4]
Seen in
Detection and defense
What Brandefense can do
- Scan your domain in Brandefense Atlas, free
Atlas checks public sources for leaked credentials, phishing domains, dark web mentions and data sales, then gives your domain a risk grade. Free, no sign-up.
- Cyber Threat Intelligence
Brandefense Cyber Threat Intelligence tracks malware families and the infrastructure they use, and shares indicators your team can check against its own systems.
Frequently Asked Questions
What is Shai-Hulud?
MITRE describes it as a supply chain worm, first reported in September 2025, that spreads through code repositories including GitHub and npm packages.
How many packages did it hit in September 2025?
CISA reported that the worm compromised over 500 packages on the npm registry.
What does it steal?
CISA says it targeted GitHub personal access tokens and API keys for AWS, GCP and Azure.
Which group is behind it?
No source used here names a group. MITRE lists no group for Shai-Hulud.
How should I respond?
CISA advises a dependency review, pinning to versions from before 16 September 2025, rotating all developer credentials and requiring phishing-resistant MFA.
Sources
- Shai-Hulud, Software S9008MITRE ATT&CK · Supports: Description, platforms and techniques of Shai-Hulud
- Widespread Supply Chain Compromise Impacting npm EcosystemCISA · Supports: Over 500 packages compromised, what the worm did, recommended actions
- Our plan for a more secure npm supply chainGitHub (npm registry operator) · Supports: GitHub notified on 14 September 2025, packages removed, npm publishing changes
- Strengthening supply chain security: Preparing for the next malware campaignGitHub (npm registry operator) · Supports: The multi-wave campaign, Shai-Hulud 2.0 and maintainer advice
