惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
IT之家
IT之家
博客园_首页
博客园 - 【当耐特】
V
V2EX
Apple Machine Learning Research
Apple Machine Learning Research
G
Google Developers Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
GbyAI
GbyAI
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
I
InfoQ
H
Help Net Security
T
Tailwind CSS Blog
B
Blog RSS Feed
Martin Fowler
Martin Fowler
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
博客园 - 叶小钗
雷峰网
雷峰网
量子位

2024 Sonatype Blog

Reduce AI Token Waste by Getting Decisions Right Earlier Optimising Out the Waste in Open Source Publishing The CRA Reporting Deadline Is Almost Here Hugging Face Security Incident: A New Class of Threat Is Here The AI Productivity Paradox: More Code, Not More Delivery A Reported Log4j RCE Is More Complicated Than It Looks Why Financial Services Is the Canary in the Code Mine 91 Spring CVEs: The AI Vulnerability Consumption Problem An Air Gap Doesn Securing Software at the Speed of AI: What Four Years of Data Reveal Major Themes at Black Hat 2026 Six npm Packages Use Ethereum Transactions to Retrieve Malicious Payloads Flooding Dropper Hits npm With 850 Malicious Packages Mini Shai-Hulud npm Attack: More Than 2,200 Components Impacted 5 Reasons Developers Still Download Malicious Packages Defining Community Open Source Is Harder Than It Looks Walking the Walk on Package Registry Sustainability AI Changes the Software Supply Chain and How We Secure It The Hugging Face Incident Changes the Vulnerability Equation What Is Grounding? Why AI Coding Assistants Need Better Intelligence Open Source, Open Infrastructure, and the Space Between Request for Comments: CARE and Maven Central Q2 2026 Open Source Malware Index AI Is Forcing a New Open Source Security Model Vulnerability Prioritization Is Missing the AI-Era Point The Hidden National Security Threat Inside AI-Driven Software Miasma Returns: Leo Platform Compromise in npm The Rise of Collective Defense for Open Source Signal Over Noise: Reachability Analysis Is the Reality Check SCA Has Been Missing Software Security Has to Start at Assembly
Shai-Hulud is Back: Maintainer Accounts Are Still the Sof...
Sonatype Security Research Team · 2026-05-20 · via 2024 Sonatype Blog

Why bother hunting for a CVE when you can just publish malicious code straight into the software supply chain? That's the story behind the latest wave of Shai-Hulud-related npm compromises, which recently hit the Ant Design (AntV) ecosystem and potentially exposed downstream developers to credential theft and remote code execution through trusted packages. Again.

The newest campaign (tracked as sonatype-2026-003200), compromised npm packages that used install-time hooks to steal developer and CI/CD secrets, then used publishing access to spread into more packages. This attack didn't rely on typo-squatting or sketchy package names, just trusted packages suddenly shipping malicious code to unsuspecting developers.

When attackers compromise real maintainers and publish malware under real package names, traditional trust signals are obsolete.

The package looks safe because yesterday it was.

What Happened in the AntV Ecosystem?

According to industry reporting, attackers compromised maintainers connected to the AntV visualization ecosystem and pushed malicious versions of multiple npm packages.

The payload reportedly attempted to:

  • Steal environment variables and developer secrets.

  • Harvest npm tokens.

  • Exfiltrate credentials from CI/CD systems.

  • Establish remote command execution capabilities.

Shai-Hulud Isn't One Package. It's a Playbook.

This is not just bad code in a package. It's exploiting normal ecosystem behavior. Compromise one maintainer account, infect trusted packages, harvest more credentials, compromise more publishers, and repeat until the ecosystem catches fire.

This loop keeps working because modern software delivery pipelines are built on inherited trust. If a package update comes from the right maintainer account, it's easy to assume it's legitimate by default.

Recent Shai-Hulud-linked or adjacent campaigns follow a clear pattern:

The AntV incident is the latest reminder that package ecosystems are now active attack surfaces, not passive dependency repositories.

"Malicious code can execute the moment a package is installed, so detecting it only minutes later will simply confirm the damage has already happened," said Ilkka Turunen, Sonatype's Field CTO. "The priority has to be prevention: suspicious packages should be quarantined before they ever reach a developer machine, build system, or CI pipeline."

CI/CD Secrets Are the Real Prize

The objective of this malware is even more concerning. Most modern npm supply chain attacks are really credential acquisition campaigns disguised as package compromises. Attackers want tokens, credentials, signing keys, or other sensitive information. Once they get those, the blast radius expands fast. One compromised developer laptop becomes a compromised CI pipeline, which then becomes a compromised package, and ultimately thousands of downstream infections.

This is why software supply chain attacks increasingly look more like identity attacks than traditional malware campaigns. The dependency is just the delivery mechanism.

Why Do Malicious npm Packages Keep Working?

Attackers continue to leverage hijacked npm accounts because they know that most organizations still trust package updates far too implicitly once a dependency makes it into an approved project.

Security reviews often happen at initial adoption, not continuously across every update. That worked reasonably well when the primary risk was known vulnerabilities. It works much less well when attackers are actively hijacking trusted publishers in real time.

A malicious update published under a legitimate maintainer account can bypass:

  • Allowlists.

  • Reputation assumptions.

  • Developer intuition.

  • Sometimes even security tooling.

Especially if the malicious version only lives briefly before being pulled. That's why many modern npm campaigns are fast, opportunistic, and automated. But a malicious package's removal cannot be treated as a sign of security.

Any successful download of a package in this campaign means credentials were stolen and can be used to launch another wave at any time.

How Did Shai-Hulud Infect Additional Ecosystems?

Cross-ecosystem infection happens when attackers use trust in one ecosystem to spread into others, treating package managers, source-control platforms, CI/CD tools, and IDE extensions as correlated targets. In this latest example, compromised @antv npm packages and GitHub Actions formed a shared infection path.

Malicious installs fetched additional payloads from GitHub-hosted infrastructure, stole developer credentials, and attempted to establish persistent access on infected systems. That makes the incident especially dangerous because a single poisoned dependency or tool can become a bridge into repositories, build pipelines, and cloud environments at once.

What Developers Should Check Right Now

If your organization consumes npm packages, especially frontend or JavaScript-heavy environments, this is a good time to verify a few things:

  1. Review recently updated dependencies: Especially transitive dependencies tied to visualization, frontend tooling, or the AntV ecosystem.

  2. Audit npm publishing tokens: Rotate tokens that may have been exposed in CI logs, environment variables, or developer machines.

  3. Check CI/CD secret exposure: Many of these campaigns specifically target build systems because that's where the high-value credentials live.

  4. Look for unusual install scripts: Postinstall and preinstall hooks remain popular malware delivery mechanisms.

  5. Verify maintainer and release anomalies: Unexpected maintainers, rushed patch releases, odd publish timing, or sudden dependency changes can all be indicators.

  6. Reduce implicit trust in package updates: "Trusted yesterday" is no longer sufficient validation logic.

Treat this as a credential incident, not just a dependency cleanup exercise. That means rotating exposed tokens, reviewing publish permissions, inspecting CI runners, and auditing recent npm publishes and GitHub Actions activity. Developer workstations and AI coding tools are now part of the software supply chain, so remediation should also include IDE and AI-tool configurations such as .vscode/tasks.json and .claude/settings.json, not just lockfiles.

Sonatype Guide can help teams understand their exposure, identify where compromised components may have been used, and prioritize the response steps that matter most. It can help assess impact, rotate potentially compromised credentials, audit recent publishing and CI activity, and check IDE or AI-tool configurations for persistence. To stop malicious packages before they are downloaded, use Sonatype Firewall to enforce package age and quarantine suspicious versions.

The New Reality of Open Source Risk

While the industry spent years focusing primarily on vulnerabilities, attackers shifted toward malicious packages, maintainer compromise, and credential theft because those attacks are often faster, cheaper, and harder to detect.

That's the operational reality behind Shai-Hulud and the growing wave of compromises in the npm ecosystem. And unfortunately, it's probably not the last one.

Because as long as developer credentials unlock distribution at internet scale, maintainers will remain one of the most valuable targets in software security.

And every npm install becomes, at least partially, an exercise in inherited trust.

Tags

security research supply chain attacks Malware Analysis Malware open source malware sonatype intelligence