The Shai-Hulud worm spreads itself through npm

Large-scale supply chain: attack15 September to 24 November 2025

A self-replicating payload in npm packages harvested developers’ secrets, then used their stolen tokens to publish infected versions of their other packages. Hundreds of packages were compromised in September, and a second wave in November reached hundreds more.

Position
Developers’ publishing tokens on the npm registry
Reach
More than 500 packages by September (CISA); about 700 to 800 in the November wave (Wiz)
Category
Open-Source Maintainer Infiltration

What happened

From 15 September 2025, malicious versions of npm packages appeared under compromised maintainer accounts. Their payload harvested secrets such as GitHub tokens and cloud keys, published them to public repositories, and used stolen npm tokens to inject itself into the victim's other packages and publish new tainted versions. CISA said more than 500 packages were compromised and advised pinning dependencies to earlier releases. A second wave, first seen on 24 November, ran during installation and reached about 700 to 800 packages and tens of thousands of repositories, according to Wiz. Trust Wallet later traced the key used to publish its malicious browser extension to secrets exposed in that wave.

The ATG nexus

Each infected developer became the next publisher. The worm needed no new break-in at each step, because each step used a credential the registry already trusted. It shows how far trust in publishers carries once it is automated, and how one exposure feeds the next position.

Limits of the comparison

The payload targeted developer machines and their secrets, not the screens of end users. Package counts grew over time and depend on the date of the report.

On this site

Sources

  1. Widespread Supply Chain Compromise Impacting npm EcosystemCISA, 23 September 2025Primary source
  2. Shai-Hulud: Ongoing Package Supply Chain Worm Delivering Data-Stealing MalwareWiz, 16 September 2025
  3. Shai-Hulud 2.0: Ongoing Supply Chain AttackWiz, 24 November 2025
  4. Shai-Hulud 2.0: Inside The Second Coming, the Most Aggressive NPM Supply Chain Attack of 2025Check Point Research, November 2025

Back to this event on the timeline