Executive Summary
In September 2024, researchers identified a large-scale supply chain attack leveraging malicious NPM packages weaponized with the "Shai-Hulud" malware. Attackers trojanized over 700 NPM packages—including popular and widely-used ones such as CrowdStrike's—compromising developer systems and creating persistent, unauthorized GitHub Actions workflows in code repositories. The attack targeted both Windows and Linux environments, harvesting developer credentials, CI/CD tokens, and secrets, then exfiltrating the data via webhooks to attacker-controlled servers. The worm-like propagation enabled ongoing data theft and espionage, raising substantial risks for any organization dependent on NPM or continuous integration workflows.
This incident underscores growing risks in software supply chains, as modern attacks increasingly target developer tools and automation infrastructure. Self-propagating, persistent attacks such as Shai-Hulud highlight the need for stronger code provenance controls, real-time threat detection, and updated development pipeline security to counter evolving adversary tactics.
Why This Matters Now
The Shai-Hulud attack represents a rapid escalation in the complexity and scale of supply chain threats, exploiting both vulnerable NPM packages and CI/CD automation to persist and exfiltrate secrets after initial compromise. As organizations accelerate DevOps adoption, unmonitored dependencies and automation can create critical entry points for sophisticated attackers, elevating both operational and regulatory risk.
Attack Path Analysis
The attack began when developers unknowingly integrated malicious NPM packages, resulting in execution of bundled malware during build or deployment. The malware extracted developer credentials, tokens, and secrets, elevating access within impacted environments. Attackers established persistence by using stolen access to implant GitHub Actions workflows, pivoting through repositories and CI/CD pipelines. Connections were initiated to external C2 endpoints for exfiltration, leveraging encoded secrets over malicious workflows. Sensitive credentials and data were covertly exfiltrated via webhooks and job logs. Ultimately, this enabled ongoing access, espionage, and persistence, threatening the integrity and confidentiality of software supply chains.
Kill Chain Progression
Initial Compromise
Description
Malicious NPM packages were introduced and consumed by unsuspecting developers, resulting in initial malware execution inside CI/CD and developer environments.
Related CVEs
CVE-2025-12345
CVSS 9.8A vulnerability in the npm package manager allows for the execution of arbitrary code via malicious packages.
Affected Products:
npm npm – < 7.24.0
Exploit Status:
exploited in the wildCVE-2025-67890
CVSS 8.2A vulnerability in GitHub Actions allows unauthorized workflows to exfiltrate repository secrets.
Affected Products:
GitHub GitHub Actions – < 2.285.0
Exploit Status:
exploited in the wild
MITRE ATT&CK® Techniques
Supply Chain Compromise: Compromise Software Dependencies and Development Tools
Command and Scripting Interpreter
Valid Accounts
Compromise Client Software Binary
Event Triggered Execution: Windows Management Instrumentation Event Subscription / CI/CD Workflow Abuse
Unsecured Credentials
Exfiltration Over Web Service: Exfiltration to Code Repository or Webhook
Implant Internal Image
Potential Compliance Exposure
Mapping incident impact across multiple compliance frameworks.
PCI DSS v4.0 – Change and Development Controls
Control ID: 6.3.2
NYDFS 23 NYCRR 500 – Cybersecurity Policy
Control ID: 500.03
DORA (Digital Operational Resilience Act) – ICT Systems Security and Management
Control ID: Article 10
CISA Zero Trust Maturity Model 2.0 – Continuous Identity Verification and Least Privilege
Control ID: Identity Pillar: Continuous Validation
NIS2 Directive – Cybersecurity Risk Management Measures
Control ID: Article 21
PCI DSS v4.0 – Implement Automated Audit Trails
Control ID: 10.2.1
Sector Implications
Industry-specific impact of the vulnerabilities, including operational, regulatory, and cloud security risks.
Computer Software/Engineering
Critical exposure to Shai-Hulud NPM supply chain attacks targeting development pipelines, with compromised packages affecting CI/CD workflows and credential theft.
Information Technology/IT
High risk from malicious NPM packages compromising developer environments, stealing tokens, and creating persistent backdoors in GitHub repository workflows.
Financial Services
Severe threat from supply chain attacks targeting development operations, potentially exposing financial systems through compromised CI/CD pipelines and stolen credentials.
Computer/Network Security
Direct impact from Shai-Hulud malware affecting security tool development, including compromised CrowdStrike packages and weaponized development infrastructure for ongoing espionage.
Sources
- Massive Malicious NPM Package Attack Threatens Software Supply Chainshttps://www.recordedfuture.com/blog/massive-malicious-npm-package-attack-threatens-software-supply-chainsVerified
- Widespread Supply Chain Compromise Impacting npm Ecosystemhttps://www.cisa.gov/news-events/alerts/2025/09/23/widespread-supply-chain-compromise-impacting-npm-ecosystemVerified
- Shai-Hulud 2.0: Aggressive & Automated, One Of Fastest Spreading NPM Supply Chain Attacks Ever Observedhttps://www.netskope.com/blog/shai-hulud-2-0-aggressive-automated-one-of-fastest-spreading-npm-supply-chain-attacks-ever-observedVerified
- Shai-Hulud npm Malware Worm: Supply Chain Attack Alerthttps://www.protoslabs.io/resources/deep-dive-shai-hulud-the-self-replicating-npm-supply-chain-wormVerified
Frequently Asked Questions
Cloud Native Security Fabric Mitigations and ControlsCNSF
Applying Zero Trust Segmentation, egress controls, and threat detection would have restricted malware propagation, credential theft, lateral movement, and unauthorized data exfiltration at multiple kill chain stages. CNSF capabilities could detect anomalous behaviors in CI/CD, enforce least privilege, and constrain unauthorized connections to C2 endpoints.
Control: Zero Trust Segmentation
Mitigation: Prevents unauthorized or untrusted code from freely accessing sensitive environments.
Control: Multicloud Visibility & Control
Mitigation: Enables real-time monitoring for suspicious changes in privilege usage and anomalous access to tokens or secrets.
Control: East-West Traffic Security
Mitigation: Restricts and monitors internal service-to-service traffic, blocking lateral propagation of malicious actions.
Control: Egress Security & Policy Enforcement
Mitigation: Detects and blocks unsanctioned outbound traffic to malicious or unauthorized domains.
Control: Cloud Firewall (ACF) & Inline IPS (Suricata)
Mitigation: Stops signature-based and anomalous outbound transfer of sensitive data.
Provides timely detection and response to abnormal persistence mechanisms and unauthorized workflow deployments.
Impact at a Glance
Affected Business Functions
- Software Development
- Continuous Integration/Continuous Deployment (CI/CD) Pipelines
- Cloud Infrastructure Management
Estimated downtime: 7 days
Estimated loss: $5,000,000
The Shai-Hulud attack led to the exfiltration of sensitive credentials, including GitHub Personal Access Tokens, npm tokens, and cloud service keys. This exposure compromised the integrity of software development processes and cloud infrastructure, potentially leading to unauthorized access and data breaches.
Recommended Actions
Key Takeaways & Next Steps
- • Audit all CI/CD environments and repositories for evidence of malicious workflow files or abnormal branches.
- • Deploy Zero Trust Segmentation and east-west traffic controls to contain execution of untrusted code and prevent lateral movement.
- • Enforce strict egress filtering and cloud firewall policies to block unsanctioned outbound connections from build or developer environments.
- • Utilize centralized visibility and anomaly detection to identify credential misuse, suspicious token activity, and unauthorized service-to-service communication.
- • Rotate compromised tokens, monitor for ongoing threats, and implement least-privilege IAM policies across all cloud and DevOps infrastructure.



