# Shai-Hulud (npm): Shai-Hulud: a self-replicating npm worm hit 500+ packages in September and 25,000 repos in November

> **Safety notice:** Read-only lockfile and configuration audit.

- **Incident date:** Sep–Nov 2025
- **Disclosed:** Nov 24, 2025
- **Source disclosure:** https://www.wiz.io/blog/shai-hulud-2-0-ongoing-supply-chain-attack

## Reproduction lab
Cross-check your lockfiles against Wiz’s published Shai-Hulud 2.0 package CSV and verify your CI runners block npm preinstall hooks.

```bash
npm config get ignore-scripts
# Compare installed versions against wiz-sec-public/wiz-research-iocs/reports/shai-hulud-2-packages.csv
```

## Policies and detection rules

### `.npmrc-hardening`
Enforce script-blocking and release-age cooldowns in pnpm/npm so worm waves cannot auto-execute.

```sh
# .npmrc (apply in CI and developer workstations)
ignore-scripts=true
audit=true

# pnpm-workspace.yaml (wait 72 hours before pulling brand-new npm versions)
# minimumReleaseAge: 4320
```

## Indicators of compromise
- **File:** `setup_bun.js / bun_environment.js` (undefined)
- **Description:** `Sha1-Hulud: The Second Coming / The Continued Coming` (undefined)
- **IOC List:** `github.com/wiz-sec-public/wiz-research-iocs` (undefined)
