Skip to main content
Mallory
← Back to News
package-repository-poisoningbuild-pipeline-compromisecredential-stealer-activityvendor-distribution-compromise

Shai-Hulud npm Worm Expanded Into Cross-Ecosystem Supply Chain Attacks

Supply Chain Risk · 7 sources · Updated 5mo ago · First seen Apr 8, 2026

Shai-Hulud npm Worm Expanded Into Cross-Ecosystem Supply Chain Attacks

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
Does this reach your builds?Trace attribution and downstream blast radius.
Trace the chain
Event timeline

How this story unfolded

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

14 events · Nov 13, 2024 – Jun 30, 2026
  1. Jun 30, 20265mo ago

    npm v12 security changes slated for July 2026

    OX Security said npm v12 is expected in July 2026 and will disable automatic install scripts, block Git dependencies by default, and require opt-in for remote URL dependencies. The article framed these changes as partial mitigations that would not stop attacks based on maintainer compromise, native builds, or malicious code executed at require() or import() time.

    npm v12 Security: Why It Fails to Stop Shai-Hulud Malware
  2. May 15, 20267mo ago

    Cynet publishes technical analysis and IOCs for Mini Shai-Hulud

    Cynet released a detailed analysis of the latest Mini Shai-Hulud wave, describing JavaScript and Python variants, affected packages, and indicators including malicious hashes and the domain filev2.getsession.org. The report highlighted worm-like propagation, CI/CD targeting, and links to AI-assisted development workflows.

  3. May 12, 20267mo ago

    Aikido reports Mini Shai-Hulud expansion hitting 169 npm packages

    Aikido reported that Mini Shai-Hulud had expanded into a broader npm compromise affecting 373 malicious package-version entries across 169 package names, including TanStack and Mistral-related packages. The report described credential theft, GitHub workflow abuse, and trusted publishing abuse via OIDC-minted npm tokens.

  4. May 11, 20267mo ago

    Mini Shai-Hulud campaign discovered across npm and PyPI

    A new wave of the Shai-Hulud supply-chain campaign was discovered affecting both npm and PyPI, with more than 170 packages reportedly compromised. The malware targeted developer machines, CI/CD runners, and build systems to steal credentials and propagate through legitimate publishing workflows.

  5. Apr 8, 20268mo ago

    ZDI publicly discloses disputed npm and Discord issues

    ZDI published its blog post detailing the disclosure timelines and technical dispute over two Windows-related module resolution and local attack issues involving npm CLI and Discord. The publication framed both as zero-day advisories after the vendors declined to treat them as security vulnerabilities.

  6. Dec 18, 20251y ago

    ZDI tells Discord it will publish 0-day advisory

    Following additional discussions in December 2025, ZDI notified Discord of its intent to publish a zero-day advisory for the disputed issue. Discord had maintained that the reported behavior was out of scope because it involved local attacks.

  7. Dec 18, 20251y ago

    ZDI tells npm vendor it will publish 0-day advisory

    After urging reassessment of the npm CLI issue, ZDI informed the vendor of its intent to publish a zero-day advisory. This followed the vendor's earlier position that the behavior was not a security vulnerability.

  8. Nov 24, 20251y ago

    Researchers report broad impact from Shai-Hulud 2.0

    Researchers said the second wave affected more than 27,000 repositories across about 350 users and included packages linked to organizations such as Zapier, ENS Domains, PostHog, and Postman. They also noted more aggressive capabilities including cross-victim exfiltration, self-healing, Linux privilege escalation, and a conditional destructive payload.

  9. Nov 21, 20251y ago

    Second Shai-Hulud wave compromises npm packages

    A second major campaign, dubbed Sha1-Hulud or Shai-Hulud 2.0, compromised hundreds of npm packages uploaded between November 21 and 23, 2025. Researchers said it abused compromised maintainer accounts and used preinstall execution to steal secrets and spread further.

  10. Sep 24, 20251y ago

    CISA urges dependency reviews after Shai-Hulud attack

    CISA warned organizations to monitor for malicious dependencies and cached packages following the npm ecosystem compromise. The agency recommended credential rotation, dependency checks, and phishing-resistant MFA for developer accounts.

  11. Sep 24, 20251y ago

    GitHub removes malicious npm packages tied to Shai-Hulud

    In response to the Shai-Hulud campaign, GitHub said it removed more than 500 packages from npm and blocked new packages containing the malware's indicators of compromise. This was part of mitigation efforts to contain the supply-chain attack.

  12. Sep 24, 20251y ago

    Shai-Hulud compromises 500+ npm packages

    A major npm supply-chain attack tracked as Shai-Hulud compromised more than 500 packages. The malware stole credentials such as GitHub personal access tokens and cloud API keys and exfiltrated them to attacker-controlled infrastructure and a public repository.

  13. Jul 8, 20251y ago

    ZDI reports Discord local attack issue to vendor

    ZDI notified Discord of a security issue involving behavior the company later classified as out of scope because it required local access. This began the disclosure process for the second disputed case described in the report.

  14. Nov 13, 20242y ago

    ZDI reports npm CLI module-resolution issue to vendor

    ZDI submitted a report about dangerous module resolution behavior involving npm CLI on Windows. The vendor acknowledged the report the same day and responded that the behavior was by design rather than a security issue.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Organizations

2 linked
GitHubnpm, Inc.

Breaches

1 linked
NPM-2026-01

Observables

13 linked

Indicator values are masked on this page. View all 13 in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?See attribution and downstream blast radius, and whether this package or vendor reaches your builds.
Trace the Supply Chain
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.