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. Four Malicious npm Packages Deliver Infostealers and Phantom Bot DDoS Malware
Four Malicious npm Packages Deliver Infostealers and Phantom Bot DDoS Malware
NEWS

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...

Dylan H.

News Desk

May 18, 2026
5 min read

Cybersecurity researchers have discovered four malicious npm packages embedding infostealer malware and a Phantom Bot DDoS payload — one of which is a direct clone of the Shai-Hulud worm open-sourced by the TeamPCP threat group. The discovery underscores the immediate real-world consequences of releasing self-replicating worm source code into the open: within days, copycat variants began appearing in public package registries.

The Four Malicious Packages

Package NameDownloadsPayload
chalk-tempalte~825Infostealer
@deadcode09284814/axios-util~284Shai-Hulud clone / DDoS
(additional packages)—Infostealer / DDoS
(additional packages)—Infostealer / DDoS

The typosquatted package names — most notably chalk-tempalte (a misspelling of the legitimate chalk-template with over 7 million weekly downloads) — are designed to trick developers into installing malicious code through confusion with trusted libraries.

What the Malware Does

Infostealer Payload

The infostealer component targets developer workstations and CI/CD environments, extracting:

  • Browser credentials — saved passwords, session cookies, and autofill data from Chrome, Firefox, and Edge
  • Environment variables — API keys, cloud credentials (AWS_ACCESS_KEY_ID, GITHUB_TOKEN, etc.) stored in .env files
  • SSH keys — private keys from ~/.ssh/ directories
  • npm tokens — authentication tokens stored in .npmrc that could be used to publish malicious packages under the victim's identity
  • Git configuration — remote repository URLs and cached credentials

Phantom Bot DDoS Component

The Phantom Bot payload establishes a persistent backdoor that registers the compromised system as a node in a distributed botnet capable of launching volumetric DDoS attacks. The bot:

  • Connects to a command-and-control (C2) server over encrypted channels
  • Awaits instructions to participate in flood attacks against specified targets
  • Maintains persistence via cron jobs or startup scripts

Shai-Hulud Clone Behavior

The Shai-Hulud clone replicates the self-spreading mechanism originally developed by TeamPCP: upon installation, it scans the victim's npm project for package.json files, injects itself as a dependency, and — if the victim has npm publish permissions — automatically publishes infected versions of the victim's packages to the npm registry, continuing the chain of infection.

The TeamPCP Open-Source Gambit

On May 15, 2026, TeamPCP released the full Shai-Hulud source code publicly — ostensibly as a demonstration of capability after weeks of attacks targeting Tanstack, Mistral AI, Guardrails AI, and others. The move was widely interpreted as an attempt to:

  1. Amplify damage without directly attributing future attacks to the group
  2. Overwhelm incident response capacity by flooding the npm registry with copycat variants
  3. Establish a reputation in the threat actor community for audacious tactics

The appearance of worm clones within days of the source code release confirms that the gambit succeeded in spawning derivative campaigns.

Affected Developers and Organizations

The malicious packages primarily threaten:

  • JavaScript/Node.js developers who install packages from npm without verifying checksums or publisher identity
  • CI/CD pipeline environments where npm install runs automatically on dependency updates
  • Organizations with weak secret management that store credentials in environment variables accessible to build processes
  • Open-source maintainers whose npm tokens could be harvested to publish further malicious packages

Immediate Mitigations

  1. Audit your node_modules — check installed packages against their expected checksums using npm audit and tools like socket.dev
  2. Rotate npm tokens — revoke and reissue all npm authentication tokens, especially if you run automated publish workflows
  3. Inspect package-lock.json — verify that no unexpected packages were added to your lock file
  4. Enable npm two-factor authentication — require 2FA for all npm publish operations on your packages
  5. Review .npmrc files — ensure no authentication tokens are committed to repositories or accessible to build environments
  6. Monitor for typosquatting — use npm install --dry-run before executing installs in new environments and verify package names character-by-character

The Broader npm Typosquatting Threat

This campaign is the latest in a sustained wave of npm supply chain attacks:

CampaignDatePackagesTargets
Shai-Hulud originalMar–May 2026Tanstack, Mistral AI, SAPDeveloper credentials
Axios npm compromiseApr 2026axiosNode.js credential theft
SAP npm packagesApr 2026SAP-related packagesEnterprise credentials
This campaignMay 2026chalk-tempalte, axios-utilInfostealers + DDoS

The npm registry's open publication model makes it an attractive attack surface. Organizations should treat the software supply chain as a first-class security boundary — applying the same scrutiny to npm packages as to any other third-party software.

References

  • The Hacker News — Four Malicious npm Packages Deliver Infostealers and Phantom Bot DDoS Malware
  • CosmicBytez Labs — Shai-Hulud Worm Clones Spread After Code Release
  • CosmicBytez Labs — TeamPCP Releases Shai-Hulud Source Code
  • CosmicBytez Labs — Mini Shai-Hulud Worm Compromises TanStack, Mistral AI
#Malware#npm#Supply Chain#Infostealer#DDoS#Shai-Hulud#TeamPCP

Related Articles

TeamPCP Ups the Game, Releases Shai-Hulud Worm's Source Code

The hacking group TeamPCP has publicly released the source code for its Shai-Hulud supply chain worm, actively encouraging other threat actors to...

5 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

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...

6 min read
Back to all News