Skip to main content
Mallory
← Back to News

Shai-Hulud npm Supply Chain Attack Compromises Hundreds of Packages Including Nx Build System

3 sources · Updated 5mo ago · First seen Sep 25, 2025

Shai-Hulud npm Supply Chain Attack Compromises Hundreds of Packages Including Nx Build System

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.
Do you run this?See affected versions and whether adversaries are exploiting it against assets like yours.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

3 events · Sep 25, 2025 – Sep 26, 2025
  1. Sep 26, 20251y ago

    Reports indicate about 800 private repositories were exposed in the Shai-Hulud attack

    Subsequent reporting linked the compromise to the 'Shai-Hulud' attack and stated that roughly 800 private repositories had been made public, showing broader downstream impact from the stolen credentials and package compromise.

  2. Sep 25, 20251y ago

    CISA and CIS warn organizations to immediately audit dependencies for the Nx compromise

    U.S. cybersecurity authorities and CIS published advisories warning that the Nx package issue represented an extensive supply-chain compromise and urged organizations to immediately check dependencies, rotate exposed credentials, and assess affected environments.

  3. Sep 25, 20251y ago

    Malicious Nx package compromise exposes CI/CD secrets and repository data

    A supply-chain compromise involving the Nx build system package enabled sensitive data exfiltration from developer and CI/CD environments, including tokens and other secrets that could be used to access source code repositories.

Do you run this?See affected versions and whether adversaries are exploiting it against assets like yours.
Check your exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.