Mini Shai-Hulud Supply Chain Worm Strikes npm Again, Targeting AntV Ecosystem in Large-Scale Package Compromise

Listen to this Post

Featured Image

Introduction

A fast-moving supply chain attack has once again shaken the JavaScript ecosystem, as the Mini Shai-Hulud worm resurfaced in a coordinated campaign targeting npm packages. This wave specifically impacted the widely used AntV data visualization ecosystem, compromising hundreds of packages within a short operational window. Security researchers describe the incident as highly automated, stealthy, and designed to maximize credential theft across development and CI/CD environments before defenders could react.

Summary of the Original

The Mini Shai-Hulud worm has reappeared in one of its most concentrated npm registry attacks to date.
Security analysts from Socket’s Threat Research Team reported that the operation began at approximately 01:56 UTC on May 19.
Within roughly one hour, attackers published 639 malicious package versions affecting 323 unique npm packages.
The campaign heavily targeted the AntV data visualization ecosystem, a widely used suite in frontend and analytics development.
Several high-download packages were affected, including echarts-for-react, size-sensor, @antv/scale, and timeago.js.
The compromise originated from a maintainer account named “atool,” which had publishing access to more than 500 packages.
Attackers inserted malicious preinstall scripts inside package.json files to trigger execution during installation.
These scripts launched an obfuscated 498 KB Bun-based payload designed for stealth and automation.
The malware’s primary objective was credential harvesting across developer environments.
It specifically targeted cloud credentials, CI/CD tokens, SSH keys, Kubernetes service account tokens, and local password manager data.
Stolen information was exfiltrated to attacker-controlled GitHub repositories created using compromised tokens.
These repositories were named using Dune-inspired terminology and included a reversed marker referencing “Shai-Hulud.”
Security researchers noted that the attackers demonstrated awareness of defensive tools and analysis methods.
The payload appeared intentionally designed to slow reverse engineering efforts.
Microsoft confirmed ongoing analysis and updated its Defender guidance related to the broader Mini Shai-Hulud campaign.
The attack is part of a broader pattern affecting multiple ecosystems including npm, PyPI, and Composer.
Socket has tracked more than 1055 compromised package versions across 502 unique packages in total.
Security firm StepSecurity reported over 2500 related GitHub repositories tied to campaign artifacts.
Researchers attribute the broader activity to a financially motivated threat cluster known as TeamPCP.
A key technique used involves injecting optionalDependencies pointing to orphan commits in trusted repositories.
In this case, attackers leveraged the antvis/G2 repository to disguise malicious dependency origins.
GitHub’s commit storage behavior and npm’s github resolver allowed exploitation of commit hash trust assumptions.
This enabled attackers to serve malicious commits from seemingly legitimate upstream sources.
Experts warn this reflects a structural weakness in how modern package ecosystems resolve trust.
Security leaders emphasize that long-trusted packages can suddenly become attack vectors without warning.
Snyk advised organizations to assume full credential compromise during affected install windows.
Recommended actions include pinning dependencies prior to May 19 versions and rotating all exposed secrets.
Security teams are also urged to audit GitHub accounts for unauthorized repository creation patterns.
The incident highlights ongoing risks in open-source supply chain dependencies and automated build pipelines.

What Undercode Say:

The Mini Shai-Hulud resurgence is not just another npm incident, it reflects a matured supply chain exploitation model that blends automation, social engineering, and infrastructure abuse into a single operation.
The speed of the attack, completing hundreds of malicious publishes in roughly one hour, indicates a highly automated deployment pipeline controlled by attackers with deep familiarity of npm publishing workflows.
This is not opportunistic malware distribution, but a coordinated campaign designed for maximum reach before detection systems can respond.
The targeting of AntV packages is strategically significant because visualization libraries sit deep in frontend and analytics stacks, giving attackers broad downstream exposure.
By compromising a maintainer account with extensive publishing rights, attackers bypassed traditional perimeter defenses entirely.
This highlights a recurring weakness in open-source ecosystems, where a single credential compromise can cascade into hundreds of downstream infections.
The use of preinstall hooks demonstrates a classic but still highly effective execution vector because it triggers automatically during dependency installation.
What makes this wave more advanced is the use of a large obfuscated Bun payload instead of simpler scripts, showing investment in evasion techniques.
Credential harvesting across CI/CD systems is especially dangerous because it gives attackers persistent access to enterprise development pipelines.
Stolen cloud credentials and Kubernetes tokens can lead to full infrastructure compromise beyond just the npm ecosystem.
Exfiltration via GitHub repositories is a clever abuse of trusted infrastructure, making malicious traffic harder to detect.
The use of Dune-themed repository naming and reversed markers suggests deliberate obfuscation and possible psychological signature design.
It may also serve as a tracking mechanism for attackers to differentiate campaign waves and successful payload executions.
Security researchers noting “defender-aware” behavior implies attackers are actively studying how detection systems operate.
Slowing down analysis is itself a defensive countermeasure from the attacker’s perspective, buying more time for exploitation.
The cross-ecosystem reach across npm, PyPI, and Composer suggests a reusable attack framework rather than a one-off exploit.
This indicates the presence of a scalable malware-as-infrastructure approach rather than isolated compromises.
The attribution to financially motivated actors reinforces the idea that credential theft remains the primary objective, not disruption.
The optionalDependencies abuse via trusted repositories is one of the most concerning aspects because it exploits implicit trust in Git commit histories.
This breaks the traditional mental model developers use when evaluating dependency safety.
Even pinned commits can be misleading if repository trust boundaries are not carefully validated.
The structural weakness lies in how package managers resolve GitHub references without verifying repository provenance.
This incident demonstrates that dependency graphs are now attack surfaces themselves, not just code delivery mechanisms.
Organizations relying on automated builds without strict dependency locking are at elevated risk.
Secret exposure during installation means that even short compromise windows can lead to long-term infrastructure breaches.
Security guidance to rotate all credentials is not precautionary but necessary containment strategy.
Audit requirements for GitHub repositories also suggest attackers may leave persistent artifacts for later reuse.
The broader implication is that open-source ecosystems need stronger identity binding between maintainers and packages.
Without that, supply chain attacks will continue to scale in speed and complexity.
Ultimately, this wave shows that modern malware is evolving toward infrastructure-aware, ecosystem-native threats rather than standalone payloads.

Fact Checker Results

✅ Reported npm compromise affecting AntV ecosystem aligns with documented supply chain attack patterns.
✅ Credential harvesting via preinstall scripts is a known and validated malware technique in JavaScript ecosystems.
❌ Exact attribution to specific threat clusters remains uncertain and should be treated as partially speculative.

Prediction

Future supply chain attacks will likely become faster, more automated, and increasingly multi-ecosystem in scope.
Attackers are expected to refine repository trust exploitation techniques, making Git-based dependencies even more dangerous.
Security defenses will shift toward stricter dependency pinning, runtime isolation, and continuous secret rotation as baseline requirements.

🕵️‍📝Let’s dive deep and fact‑check.

References:

Reported By: www.infosecurity-magazine.com
Extra Source Hub (Possible Sources for article):
https://www.discord.com
Wikipedia
OpenAi & Undercode AI

Image Source:

Unsplash
Undercode AI DI v2
Bing

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow UndercodeNews & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin | 🦋BlueSky | 🐘Mastodon | 📺Youtube