Shai-Hulud npm Supply Chain Attack Compromises Hundreds of Packages Including Nx Build System
3 sources · Updated 5mo ago · First seen Sep 25, 2025

The Cybersecurity and Infrastructure Security Agency (CISA) has issued an urgent advisory following the discovery of a widespread supply chain attack targeting the npm package ecosystem, known as the Shai-Hulud intrusion. Security researchers from StepSecurity identified that over 500 npm packages were compromised with self-replicating malware, significantly increasing the risk to organizations relying on open-source dependencies. The attack involved the injection of malicious code into popular packages, including the Nx build system and its related plugins, which are widely used for managing monorepos and automating development workflows. The malicious code, developed using a large language model according to Palo Alto Networks, was designed to execute immediately after package installation via a post-install hook, specifically targeting non-Windows systems. Once executed, the malware, named telemetry.js, collected sensitive host information, cryptocurrency wallets, and development credentials from affected developer machines. The stolen data was then triple-base64 encoded and exfiltrated to a public GitHub repository created using compromised GitHub tokens, under the name s1ngularity-repository. In addition to data theft, the malware attempted to disrupt developer operations by causing new terminal sessions to trigger immediate system shutdowns, resulting in denial-of-service conditions. CISA has recommended that all organizations using npm packages conduct immediate dependency reviews and thoroughly examine cached versions of affected dependencies to prevent further compromise. GitHub responded by removing the more than 500 impacted packages and implementing a ban on new uploads containing Shai-Hulud indicators of compromise. Security teams are also advised to rotate developer account credentials and enforce phishing-resistant multi-factor authentication to mitigate the risk of further account takeovers. The affected Nx packages include nx/devkit, nx/enterprise, nx/eslint, nx/js, nx/key, nx/node, and nx/workspace, with specific versions listed as vulnerable. The attack highlights the growing sophistication of supply chain threats, particularly those leveraging AI-generated code to evade detection and maximize impact. Organizations are urged to remain vigilant, update their security controls, and monitor for signs of compromise related to the Shai-Hulud malware. The incident underscores the critical importance of securing the software development lifecycle and maintaining robust monitoring of third-party dependencies. CISA's alert emphasizes the need for immediate action to prevent further exploitation and data loss. The coordinated response from security vendors, government agencies, and the open-source community demonstrates the seriousness of the threat and the necessity for ongoing vigilance in the face of evolving supply chain attacks.
Why it matters
Impact Assessment
- Affected population: Organizations and developers consuming npm packages, especially teams using the Nx build system and related plugins in CI/CD pipelines, monorepos, and developer workstations. Impact is highest for software vendors, SaaS providers, enterprises with large JavaScript/TypeScript estates, and any environment with broad developer token access.
- Severity: High. This is a supply chain compromise with both credential theft and operational disruption potential. Reported malware behavior includes theft of host data, development credentials, and cryptocurrency wallets, plus denial-of-service behavior that can disrupt developer endpoints.
- Business risk:
- Exposure of developer credentials and GitHub tokens can lead to follow-on compromise of source code, CI/CD systems, package publishing pipelines, and private repositories.
- Leakage of sensitive development environment data creates risk of intellectual property loss, source code exposure, and downstream software tampering.
- Developer workstation disruption can slow engineering operations and incident response.
- Scope: Widespread. Reporting indicates 500+ npm packages were compromised, including widely used Nx-related packages. This is not a narrowly targeted intrusion; it is ecosystem-level exposure with potentially broad downstream impact.
- Exploitation status: Yes. The story describes an active, in-the-wild supply chain attack with confirmed malicious package publication, data exfiltration, and use of compromised GitHub tokens. GitHub reportedly removed impacted packages, indicating a live incident response rather than a theoretical risk.


