Shai-Hulud Supply Chain Attack Hits Maven After Npm, Compromising Thousands of Packages

Listen to this Post

Featured Image
The cybersecurity world faces a new wave of alarm as the Shai-Hulud supply chain attack spreads from npm to the Maven ecosystem. Over 830 npm packages have already been compromised, and the malware has now infiltrated Maven Central, raising concerns over the security of software dependencies that millions of developers rely on daily. This latest surge of attacks demonstrates both the sophistication of modern supply chain threats and the fragility of software distribution pipelines in open-source ecosystems.

Malware Crosses from Npm to Maven

Security researchers from Socket identified a Maven package, org.mvnpm:posthog-node:4.18.1, containing components linked to Shai-Hulud: the setup_bun.js loader and bun_environment.js payload. The compromised package is not published by PostHog directly; it originates from an automated mvnpm process that converts npm packages into Maven artifacts. Maven Central has removed all mirrored copies as of November 25, 2025, and is implementing additional protections against rebundled compromised components.

Second Wave Targets Developers Globally

This attack is not just a repeat; it’s an escalation. Shai-Hulud v2 is designed to steal sensitive data such as API keys, cloud credentials, and GitHub or npm tokens, while enabling worm-like propagation across the supply chain. By taking over npm maintainer accounts, attackers can publish trojanized versions of popular packages. When developers install these libraries, their systems are backdoored, secrets exfiltrated, and the malware spreads autonomously.

How the Attack Works

The malware injects two rogue GitHub workflows: one registers the victim machine as a self-hosted runner for arbitrary code execution, and the other systematically harvests secrets. Over 28,000 repositories have been affected. The latest variant hides its logic using the Bun runtime and scales up infection caps from 20 to 100 packages. Stolen data is now sent to randomly named public GitHub repositories, making detection more difficult.

Exploiting GitHub Misconfigurations

Aikido researchers found that the attackers exploited CI misconfigurations in pull_request_target and workflow_run triggers in repositories like AsyncAPI, PostHog, and Postman. Misconfigured CI pipelines allowed malicious code in pull requests to execute during automated workflows, effectively turning single repositories into launching points for widespread compromise.

Impact on the Software Ecosystem

This wave of attacks continues the broader S1ngularity campaign from August 2025, which targeted Nx packages on npm. Analysts describe Shai-Hulud v2 as one of the most aggressive supply chain attacks of the year due to its stealth, credential harvesting, and potential destructive fallback behavior. Hundreds of GitHub access tokens and cloud credentials were leaked, with over 5,000 files uploaded to public GitHub repositories containing exfiltrated secrets.

Developer Advisory

Experts urge developers to rotate all keys and tokens, audit dependencies, remove compromised packages, reinstall clean versions, and strengthen CI/CD pipelines with secret scanning, least-privilege access, and automated policy enforcement. Shai-Hulud exemplifies how a single compromised maintainer can ripple through thousands of downstream projects in hours.

What Undercode Say:

Shai-Hulud v2 highlights the fragility of modern software supply chains. Unlike zero-day attacks, this malware exploits procedural gaps in open-source publishing and CI/CD workflows, emphasizing that security in software development is only as strong as its weakest link. One of the most alarming aspects is its self-replication capability. Once a maintainer’s account is compromised, malware can propagate automatically, infecting downstream projects without human intervention, effectively turning popular libraries into vectors for global cyber espionage.

The use of the Bun runtime to obfuscate core logic and the randomization of exfiltration endpoints indicates a shift toward stealth-first malware. Attackers are now prioritizing invisibility alongside scale, ensuring they can remain undetected while maximizing credential theft. The combination of evasion, widespread access, and automation makes mitigation highly complex for organizations and independent developers alike.

Another key takeaway is the exploitation of CI misconfigurations. GitHub Actions, widely used for automated testing and deployment, can be weaponized if pipelines are not correctly set up. The pull_request_target and workflow_run triggers, intended to streamline collaboration, inadvertently open the door to supply chain compromise. This underscores a larger truth: developer convenience often conflicts with security, and balancing both is an urgent challenge.

The broader ecosystem impact is also notable. By targeting popular packages, attackers exploit trust networks embedded in the software development lifecycle. This attack proves that malicious actors can achieve maximum damage without targeting high-profile individual users—targeting the libraries themselves is far more effective.

Moreover, this incident reinforces that automated safeguards alone are insufficient. While secret scanning and dependency audits help, they cannot completely prevent abuse of systemic trust vulnerabilities. Developers and organizations must combine technical solutions with procedural changes, such as least-privilege access models, tighter CI/CD governance, and continuous monitoring of package activity.

Shai-Hulud v2 is not an isolated event but a continuation of a trend in supply chain attacks that are stealthy, automated, and self-amplifying. With cloud infrastructure increasingly tied to development workflows, stolen credentials now have cascading consequences across multiple platforms, including AWS, Azure, and Google Cloud. This amplifies both financial and operational risks, demonstrating that supply chain security is inseparable from broader enterprise security posture.

In essence, this attack serves as a case study of how malicious actors adapt, scale, and innovate against conventional defenses. It’s a reminder that software supply chains remain one of the most vulnerable and underprotected aspects of modern computing. Organizations and developers must treat trust in dependencies not as a given, but as a risk vector to be continuously assessed and mitigated.

Fact Checker Results:

✅ Shai-Hulud v2 has impacted over 830 npm packages and Maven artifacts.
✅ Exfiltrated secrets include AWS, Azure, and Google Cloud credentials.
❌ The compromised Maven package was not published by PostHog itself.

Prediction:

🚨 The Shai-Hulud supply chain attack is likely to inspire more sophisticated multi-ecosystem malware. We can expect attackers to increasingly leverage automated dependency rebundling, CI misconfigurations, and runtime obfuscation to scale attacks. Organizations that ignore supply chain hygiene will face rising exposure to data theft, credential compromise, and operational disruption in 2026.

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

References:

Reported By: thehackernews.com
Extra Source Hub (Possible Sources for article):
https://www.reddit.com/r/AskReddit
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