Shai-Hulud npm Worm Expanded Into Cross-Ecosystem Supply Chain Attacks
Supply Chain Risk · 7 sources · Updated 5mo ago · First seen Apr 8, 2026

A supply-chain malware campaign known as Shai-Hulud compromised hundreds of packages in the npm ecosystem and later spread into both npm and PyPI, using stolen maintainer credentials and trusted publishing workflows to push trojanized releases. Early reporting said the worm affected more than 500 npm packages, searched infected developer and CI/CD environments for GitHub Personal Access Tokens, cloud API keys, and other secrets, and exfiltrated them to attacker-controlled infrastructure and public GitHub repositories. GitHub removed hundreds of malicious packages, while CISA urged organizations to review dependencies, check for cached malicious packages, rotate credentials, and enforce phishing-resistant MFA for developer accounts.
Later waves became more aggressive and broader in scope. Researchers said a second campaign hit hundreds more npm packages and had a blast radius exceeding 27,000 repositories, abusing preinstall and other lifecycle hooks to steal secrets, hijack GitHub Actions, self-propagate into additional packages, and in some cases deploy a conditional wiper-like payload. A subsequent Mini Shai-Hulud wave affected more than 170 packages across npm and PyPI, including packages tied to TanStack, Mistral AI, OpenSearch, Guardrails AI, UiPath, and others; it used files such as router_init.js, invoked Bun through malicious package scripts, targeted npm, GitHub, cloud, Kubernetes, Vault, and CI/CD credentials, and demonstrated that provenance and OIDC-based trusted publishing can still be abused when attacker-controlled code runs inside legitimate release workflows.
Why it matters
Impact assessment
Shai-Hulud is a high-severity cross-ecosystem supply-chain threat affecting organizations that consume or publish npm and PyPI packages, especially software vendors, cloud-native teams, CI/CD-heavy engineering organizations, and open-source maintainers. The impact includes credential theft, unauthorized package publication, GitHub Actions compromise, downstream software poisoning, and in some cases destructive behavior that can wipe user home directories.
Exposure is broad rather than narrowly targeted. Reporting across the references describes more than 500 compromised npm packages in earlier waves, a later blast radius exceeding 27,000 repositories across about 350 users, and a Mini Shai-Hulud wave affecting more than 170 packages across npm and PyPI; exploitation in the wild is established.
Affected populations
- Organizations consuming npm or PyPI dependencies in developer workstations, CI runners, release pipelines, and internal build systems
- Package maintainers and publishers using GitHub Actions, OIDC trusted publishing, or stored npm/GitHub credentials
- Cloud-native environments exposing AWS, Azure, GCP, Kubernetes, Vault, Docker, and CI/CD secrets to build jobs
- Projects and organizations named in reporting include TanStack, OpenSearch, Mistral AI, Guardrails AI, UiPath, Squawk, Zapier, ENS Domains, PostHog, Postman, SAP, Microsoft, Aqua Security, Checkmarx, CrowdStrike, Bitwarden, Red Hat, LiteLLM, Axios, Telnyx, PyTorch Lightning, Draftlab, Draftauth, TallyUI, and Beproduct
Severity and business consequences
- Credential theft can lead to source-code compromise, cloud account abuse, package takeover, and lateral movement into production delivery pipelines
- Trusted package compromise creates downstream customer exposure and reputational damage for affected vendors and maintainers
- Self-propagation through legitimate publishing workflows increases operational disruption and incident scope
- Conditional wiper-like behavior raises the risk of destructive impact on developer endpoints and build hosts
- Persistence via GitHub Actions, self-hosted runners, IDEs, and coding agents complicates eradication
Scope and exploitation status
- Known active exploitation across multiple waves from at least September 2025 through May 2026 and beyond
- Hundreds of malicious package-version entries and hundreds of compromised package names reported
- Cross-ecosystem spread from npm into PyPI demonstrates expanding attacker tradecraft and broader dependency risk
- GitHub reportedly removed hundreds of malicious packages, confirming registry-level response to active abuse


