Shai-Hulud Infostealer Supply Chain Attack on npm Ecosystem
Supply Chain Risk · 2 sources · Updated 5mo ago · First seen Nov 5, 2025

A major supply chain attack targeted the npm ecosystem in September 2025, where an infostealer with worm-like characteristics, dubbed Shai-Hulud, compromised over 500 npm packages. The attack leveraged a previous compromise of the s1ngularity/nx project, exploiting CI/CD pipeline credentials and propagating through both direct and indirect dependencies. Security researchers confirmed that attackers exfiltrated GitHub and npm tokens, enabling them to inject malicious code into widely used packages and potentially access internal networks, move laterally, or tamper with software releases.
The incident highlighted the persistent risks associated with CI/CD pipeline security, as attackers exploited overlooked access to secrets such as API keys and deployment tokens. The scale of the attack forced engineering and security teams worldwide to spend significant resources cleaning compromised environments and assessing exposure, even though the direct financial impact was limited. The event underscored the need for enhanced runtime security monitoring, such as eBPF-based sensors, and stricter controls on package publishing and consumption to defend against similar threats in the future.
Why it matters
Impact assessment
Shai-Hulud was a high-impact software supply-chain incident affecting organizations that consume npm packages, maintain JavaScript/Node.js applications, or operate CI/CD pipelines tied to GitHub and npm publishing. The primary risk was not just malicious package installation, but downstream credential theft, unauthorized package publication, internal network access, lateral movement, and software release tampering.
The scope was broad rather than narrowly targeted: researchers reported compromise of more than 500 npm packages after initial propagation from the previously compromised s1ngularity/nx project and other maintainer-linked assets. Public reporting describes significant operational disruption across engineering, IT, and security teams due to emergency package review, IOC scanning, token rotation, and environment cleanup; direct attacker profit appears limited, but enterprise response costs and trust impact were substantial.
Supporting facts
- A September 2025 supply-chain attack targeted the npm ecosystem with an infostealer dubbed Shai-Hulud.
- Researchers reported compromise of 40+ legitimate packages initially, including packages from CrowdStrike’s npm account.
- StepSecurity reporting cited in the story states the campaign spread to 187 packages within one to two days and eventually exceeded 500 packages.
- The attack exfiltrated GitHub and npm tokens, creating risk of further package hijacking and unauthorized code publication.
- The incident forced widespread exposure assessment and remediation even for organizations that could not immediately confirm direct compromise.
- The story states attackers could potentially access internal networks, move laterally, and tamper with software releases after stealing CI/CD and publishing credentials.
- Related ecosystem incidents in the same period included hijacks of Chalk, Debug, and DuckDB-related npm packages, increasing overall exposure and response burden.
- Known exploitation in the wild is established by the observed package compromises and propagation across the npm ecosystem.


