Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsStudyTraining
ProjectsChecklistsAI RankingsNewsletterStatusTagsAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Study
Training
Projects
Checklists
AI Rankings
Newsletter
Status
Tags
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

1154+ Articles
126+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. News
  3. Shai-Hulud Worm Clones Spread After Code Release
Shai-Hulud Worm Clones Spread After Code Release
NEWS

Shai-Hulud Worm Clones Spread After Code Release

The public release of the Shai-Hulud worm source code by TeamPCP has triggered a wave of copycat variants appearing across the npm ecosystem. Security...

Dylan H.

News Desk

May 18, 2026
6 min read

The release of the Shai-Hulud worm source code by the TeamPCP threat group on May 15, 2026 has had immediate and far-reaching consequences: within days, researchers began detecting copycat worm variants spreading through the npm ecosystem, with new malicious packages appearing faster than the registry can remove them. Security teams are warning that the open-source availability of a proven self-replicating supply chain worm could enable exploitation at a scale that surpasses even TeamPCP's own campaign.

Background: What Is Shai-Hulud?

Shai-Hulud is a self-replicating npm worm developed by the TeamPCP threat group — named after the giant sandworms from Frank Herbert's Dune, reflecting the group's flair for dramatic branding. The worm operates by:

  1. Infecting a developer's machine via a malicious npm package (often distributed through typosquatting or dependency confusion)
  2. Scanning the victim's filesystem for package.json files belonging to npm projects
  3. Injecting itself as a dependency in each discovered project
  4. Publishing infected package versions to the npm registry if the victim has publish credentials stored in .npmrc
  5. Propagating recursively — each newly infected package infects the next developer who installs it

This self-spreading mechanism enabled Shai-Hulud to compromise packages belonging to TanStack, Mistral AI, Guardrails AI, and others during TeamPCP's campaign in April–May 2026.

The Source Code Release

On May 15, 2026, TeamPCP published the complete Shai-Hulud source code — posting it publicly in what security researchers described as a calculated escalation. The group had previously been selling data stolen from Mistral AI's GitHub repositories, and the code release appears designed to:

  • Establish status in the threat actor community by demonstrating the quality and capability of their tooling
  • Overwhelm defenses by enabling a flood of derivative campaigns that security teams would struggle to attribute and track
  • Generate plausible deniability — future Shai-Hulud attacks can be attributed to copycat actors rather than TeamPCP directly

The release included the full worm engine, injection payloads, and documentation for adapting the tool to custom targets.

The Clone Proliferation

Within 72 hours of the source code release, researchers detected multiple new Shai-Hulud derivatives appearing in the npm registry. The clones share the core self-replication mechanism but vary in:

  • Additional payloads — some clones deliver infostealers, DDoS bot components, or cryptocurrency miners alongside the spreading mechanism
  • Target selection — some variants scan for specific framework project types (React, Next.js, Express) rather than all package.json files
  • C2 infrastructure — each clone operator maintains their own command-and-control server, making attribution more complex

The four malicious npm packages discovered by researchers on May 18 — including chalk-tempalte and @deadcode09284814/axios-util — represent just the confirmed wave; the total number of derivative packages in circulation is expected to be significantly higher.

Why This Matters for the Entire Ecosystem

The Shai-Hulud release marks a qualitative shift in the npm supply chain threat landscape:

From Targeted to Mass Exploitation

TeamPCP's original campaign required expertise to develop the worm and required identifying high-value targets. With the source code public, any actor — including unsophisticated script kiddies — can now deploy a proven self-replicating supply chain attack.

Exponential Attack Surface

Each infected developer who publishes packages becomes an unwitting distributor of the worm. The npm ecosystem's viral dependency graph means a single popular infected package can cascade through thousands of downstream projects in hours.

Compounding Attribution Challenges

With dozens of independent actors running Shai-Hulud variants, incident responders face a whack-a-mole scenario where removing one malicious package spawns several successors. Traditional attribution — tracking infrastructure, TTPs, and indicators of compromise back to a single group — becomes significantly harder.

Developer Risk Assessment

Developers who:

  • Maintain npm packages with publish credentials stored locally
  • Run npm install in automated CI/CD pipelines without integrity checks
  • Use typosquatted-adjacent package names in their dependencies
  • Work in organizations where npm install is not sandboxed

...are at elevated risk of both being a victim of a Shai-Hulud clone and inadvertently becoming a vector for spreading it to their own package consumers.

Protective Measures

For Individual Developers

  1. Rotate npm authentication tokens immediately — revoke existing tokens and reissue with minimal required scope
  2. Enable 2FA on npm — require two-factor authentication for all publish operations on your packages
  3. Audit .npmrc files — ensure no tokens are stored in project directories or committed to repositories
  4. Use npm audit and tools like Socket.dev or Snyk before installing packages
  5. Verify package names character-by-character before installing — typosquatting exploits are trivial to deploy

For Organizations

  1. Implement npm package allowlisting — use a private npm registry (Artifactory, Verdaccio, GitHub Packages) that vets packages before they enter your environment
  2. Sandboxed CI/CD installs — ensure build environments do not have access to production npm credentials
  3. Monitor npm publish activity — alert on unexpected package publications from organizational npm accounts
  4. Apply dependency pinning — pin all dependencies to exact versions and verify integrity hashes (npm ci vs npm install)

For npm Package Maintainers

  1. Immediately review your published packages for signs of unauthorized modifications to package.json or published tarballs
  2. Unpublish any versions you did not explicitly publish and contact npm security (security@npmjs.com) if you suspect compromise
  3. Revoke all existing publish tokens and generate new ones with short expiration periods
  4. Enable npm package provenance — link published packages to verified source code commits via GitHub Actions attestations

The Bigger Picture: Open-Source Weaponization

The TeamPCP release of Shai-Hulud represents a troubling precedent: sophisticated supply chain attack tooling being deliberately open-sourced to amplify damage. This is not the first time threat actors have released tools publicly — groups like The Shadow Brokers (NSA tools) and Lapsus$ (partial Okta code) have done so before — but the deliberate packaging and documentation of an active, working supply chain worm for broader use is a new tactic.

Security researchers expect this approach to be replicated by other groups as it offers asymmetric leverage: one group's development work enables hundreds of follow-on campaigns with minimal additional effort.

References

  • Dark Reading — Shai-Hulud Worm Clones Spread After Code Release
  • CosmicBytez Labs — TeamPCP Releases Shai-Hulud Source Code
  • CosmicBytez Labs — Four Malicious npm Packages Deliver Infostealers and Phantom Bot
  • CosmicBytez Labs — Mini Shai-Hulud Worm Compromises TanStack, Mistral AI
  • CosmicBytez Labs — OpenAI Confirms Security Breach in TanStack Supply Chain Attack
#Supply Chain#Malware#npm#TeamPCP#Worm#Open Source#Developer Security

Related Articles

Worm Redux: Fresh Mini Shai-Hulud Infections Bite npm Supply Chain

Hundreds of npm packages in the TanStack open source ecosystem have been infected by a fresh wave of Mini Shai-Hulud worm activity from TeamPCP — the same...

6 min read

Mini Shai-Hulud Pushes Malicious AntV npm Packages via Compromised Maintainer Account

Cybersecurity researchers have discovered a fresh Mini Shai-Hulud supply chain attack compromising the @antv npm ecosystem through a hijacked maintainer...

6 min read

Four Malicious npm Packages Deliver Infostealers and Phantom Bot DDoS Malware

Researchers have uncovered four malicious npm packages embedding infostealer malware and a Phantom Bot DDoS payload — one of which is a direct clone of...

5 min read
Back to all News