Weekly caseNovember 26, 2026Security

Published November 26, 2026 · Confidence: high · Complexity 5/10

Shai-Hulud npm Worm Resurfaces After 111 Days: Known Hash Bypasses Publish-Time Malware Scanning

On September 7, 2026, a single npm account published four package versions within one hour — [email protected], [email protected], [email protected], and [email protected] — each carrying a root-level index.js with a preinstall script running `bun run index.js`, byte-identical (SHA-256 e37e3ddeeaaa9e0c4fdbcb829b4895a6521031c80053fc436625b61e6ee5b1a6) to the Shai-Hulud payload from the May 19, 2026 @AntV wave. Aikido's detection history showed 319 package versions carrying that hash, all first seen on May 19, and zero hits between May 20 and September 6 — 111 days of silence, the longest dormancy-to-reactivation gap observed for this worm family. The payload had been fingerprinted by npm, Aikido, and other vendors months earlier, yet it passed npm's publish-time malware scanning, introduced in July 2026 as a 5–15 minute hold, and became installable.

Investigation trace
Part I · Reported facts (Source extraction)

Facts, hypotheses, timeline steps, and evidence reconstructed directly from the public incident record.

01 / Observed failure

Problem statement

On 2026-09-07, four unrelated npm package versions were published within one hour by the same npm account, each carrying the identical Shai-Hulud worm payload first seen in the May 19, 2026 @AntV compromise. The payload is a root-level index.js executed at install time via a preinstall script (`bun run index.js`); it validates stolen npm tokens, downloads package tarballs, injects itself, bumps the version, and republishes, while writing persistence into .vscode/tasks.json and .claude/settings.json. The payload's SHA-256 hash (e37e3ddeeaaa9e0c4fdbcb829b4895a6521031c80053fc436625b61e6ee5b1a6) had been publicly fingerprinted since May, yet the versions passed npm's publish-time malware scanning and became installable.

02 / Starting hypotheses

What investigators first believed

  • The Shai-Hulud payload was dead after the May 19 @AntV wave was cleaned up
  • npm's July 2026 publish-time malware scanning would block any known-malicious artifact
  • A reappearing worm would be a repacked or modified variant designed to evade signature matching
  • Four unrelated small packages indicate four separate compromises rather than one actor
03 / Investigation path

How the diagnosis unfolded

  1. 01

    May 19, 2026 — compromised maintainer account pushes 639 malicious versions of @AntV packages to npm in a single hour

    Payload fingerprinted within hours by npm, Aikido, and other vendors; 319 package versions recorded carrying the hash e37e3dde…b1a6, all first seen that day

  2. 02

    July 2026 — npm rolls out publish-time malware scanning, holding every new package version for 5–15 minutes while automated checks run before it becomes installable

    Registry advertises pre-publish detection of known malware; a hash match is presented as the easiest case the scanner should catch

  3. 03

    May 20 – September 6, 2026 — Aikido's detection history records zero new hits on the hash across every package release scanned

    111 days of complete silence on that hash; the longest dormancy-to-reactivation gap observed for this worm family, and the payload is presumed dead

  4. 04

    September 7, 2026 — Aikido's triage queue flags four new package versions published within one hour by the same npm account, each carrying the byte-identical payload

    [email protected], [email protected], [email protected], and [email protected] confirmed as the same file, same hash, same preinstall behavior, same command-and-control domain t[.]m-kosche[.]com

  5. 05

    September 7, 2026 — Aikido publishes its write-up the same day, with the full hash, package list, and indicators of compromise

    Defenders receive an immediate exact-match IOC set; the four versions are replaced on the registry with 0.0.1-security holding packages the same afternoon (registry records show the original publish at 09:25 UTC and the holding replacement at 13:50 UTC)

04 / Diagnostic evidence

What narrowed the fault domain

protocol native evidence

SHA-256 e37e3ddeeaaa9e0c4fdbcb829b4895a6521031c80053fc436625b61e6ee5b1a6 on the September 7 index.js files, identical to the hash documented for the May 19 @AntV payload

No repacking, obfuscation, or code modification: an exact byte-identical match to a publicly indexed artifact, so signature matching alone should have caught it

time correlated telemetry

Aikido's detection history for the hash: 319 package versions, every one first seen May 19, 2026; zero new hits May 20 – September 6; four new versions September 7

A 111-day dormancy-to-reactivation gap, the longest observed for this payload family — dormancy is not death, and stolen tokens from May remained usable in September

protocol native evidence

All four September versions were published within the same hour by the same npm account, each with a root-level index.js and a preinstall script executing `bun run index.js`

A single actor republishing a known payload, not four independent compromises; the install-time hook is the execution vector

external observation

npm introduced publish-time malware scanning in July 2026, holding new versions 5–15 minutes for automated checks before they become installable, per npm's own changelog

The control existed and was operating, yet a known, already-fingerprinted artifact passed through it — the failure is in the control's coverage, not its absence

protocol native evidence

Payload persistence paths .vscode/tasks.json and .claude/settings.json, plus command-and-control domain t[.]m-kosche[.]com carried over from the May campaign

The worm extends into the developer's editor and AI coding agent configuration, not just the install step — persistence survives a simple package removal

05 / Direction changes

Key turning points

  1. Aikido's triage queue flagging the four September 7 publications on hash match alone — the detection was a lookup, not an investigation
  2. The 111-day dormancy figure: 319 versions on May 19, zero hits for 111 days, then four more — establishing that the payload had been dormant, not eradicated
  3. Recognition that the payload was byte-identical, not a variant — which reframes the incident from 'new worm' to 'known artifact walked through a new scanner'
  4. The July 2026 publish-time scanning rollout as the control that should have caught it — turning a small four-package event into a test of the registry's headline defense
06 / Mechanism

Root cause

The incident has two layers. The proximate cause is the republication itself: a single npm account pushed four versions carrying the known Shai-Hulud payload, which self-propagates by validating stolen npm tokens, downloading tarballs, injecting the payload, bumping the version, and republishing. The systemic cause is the control failure: npm's publish-time malware scanning, introduced in July 2026 with a 5–15 minute hold, did not block a byte-identical artifact whose SHA-256 had been publicly fingerprinted since May. A hash match is a lookup, not a hard detection problem — it requires no behavioral analysis or reasoning about obfuscated code. The payload's 111-day dormancy shows the underlying enabler: credentials stolen in May remained valid in September, so a dormant payload could reactivate without any new compromise.

07 / Restoration

Resolution

Aikido disclosed the resurfacing the same day (September 7, 2026) with the full hash, package list, and IOCs. The four versions were replaced on the registry with 0.0.1-security holding packages the same afternoon. No new payload family was involved, so no new detection research was required — the existing fingerprint was sufficient. The open question Aikido leaves is what a payload that changed a single byte would have done, given that the byte-identical case already passed the scanner.

Lessons from the response

  • Signature matching against known-malicious artifacts is the floor of supply-chain scanning, not the ceiling — if the easy case gets through, harder cases will too
  • A scanner's test corpus must include known worm hashes; an exact hash match to a worm that made international security news four months earlier is the minimum test case
  • Dormancy is not eradication: a payload can sit silent for 111 days and return unchanged, because stolen tokens stay valid for months after the original compromise
  • Persistence via editor and coding-agent configuration (.vscode/tasks.json, .claude/settings.json) means cleanup must cover developer tooling, not just the installed package
  • Small package counts are misleading — the story is the control gap, not the blast radius; four packages exposed a registry-wide scanning failure
Part II · Analyst synthesis (Casebook commentary)

Reusable diagnostic principles, high-value signals, and anti-patterns synthesized from the reported facts above.

08 / Reusable reasoning · Analyst synthesis

Troubleshooting principles

  1. 01

    A known artifact that reappears unchanged is a control test, not a new attack — investigate the control that should have caught it before investigating the payload

  2. 02

    Dormancy gaps are data: the time between last sighting and reactivation measures how long stolen credentials stay useful, which is the real blast radius

  3. 03

    The easiest detection case is the most diagnostic — if an exact hash match to a headline worm gets through, assume harder cases get through too

  4. 04

    Supply-chain persistence now includes developer tooling configuration, so incident response must cover editors and AI coding agents, not just package installs

Effective techniques

  • Hash-based triage: Aikido's queue flagged the four publications on exact SHA-256 match alone, with no behavioral analysis required
  • Detection-history analysis across the full hash record (319 versions, all May 19) established the 111-day dormancy figure and proved reactivation rather than a new variant
  • Publishing the complete IOC set the same day — hash, packages, C2 domain, persistence paths — gave defenders an immediately actionable fingerprint
  • Framing the incident as a regression test of the July scanner rollout, which made a four-package event diagnostically significant

High-value evidence sources

  • The SHA-256 hash e37e3dde…b1a6 as a stable cross-campaign fingerprint — identical across the May and September waves, enabling the dormancy calculation
  • Aikido's per-hash detection history (319 versions May 19, zero May 20–Sep 6, four Sep 7) — the timeline that turns four packages into a 111-day story
  • npm's own changelog for the July 2026 publish-time scanning rollout (5–15 minute hold) — the control claim the incident tests
  • The preinstall hook (`bun run index.js`) plus persistence paths (.vscode/tasks.json, .claude/settings.json) — the mechanism that makes the payload self-propagating and persistent

Common diagnostic traps

  • Treating a dormant payload as a dead payload — 111 days of silence was taken as eradication, while the stolen credentials that power reactivation stayed valid
  • Assuming publish-time scanning covers known artifacts — the scanner's existence was taken as proof of its coverage, with no published evidence that known hashes were in its test corpus
  • Measuring the incident by package count (four) instead of by control failure (a known hash bypassing the registry's headline defense)

Anti-patterns observed

  • Treating the absence of detections as the absence of the threat — 111 days of zero hits was dormancy, and the payload returned unchanged
  • Announcing a scanning control without publishing its test corpus — defenders cannot verify coverage for known artifacts
  • Scoping a supply-chain incident by the number of packages in the latest wave instead of by what the wave proves about the registry's defenses
5/10
Diagnostic complexity

The payload itself is a verbatim replay of a known worm — no novel tradecraft, no new vulnerability, no chained exploit. The diagnostic interest is entirely in the control failure: a byte-identical, publicly fingerprinted artifact passing a scanner introduced specifically to catch it, after 111 days of dormancy. The investigation is a lookup and a timeline, not a reconstruction across systems, which keeps the complexity moderate despite the incident's significance.

09 / Direct answers

Questions answered

What happened in the Shai-Hulud npm Worm Resurfaces After 111 Days: Known Hash Bypasses Publish-Time Malware Scanning incident?

On 2026-09-07, four unrelated npm package versions were published within one hour by the same npm account, each carrying the identical Shai-Hulud worm payload first seen in the May 19, 2026 @AntV compromise. The payload is a root-level index.js executed at install time via a preinstall script (`bun run index.js`); it validates stolen npm tokens, downloads package tarballs, injects itself, bumps the version, and republishes, while writing persistence into .vscode/tasks.json and .claude/settings.json. The payload's SHA-256 hash (e37e3ddeeaaa9e0c4fdbcb829b4895a6521031c80053fc436625b61e6ee5b1a6) had been publicly fingerprinted since May, yet the versions passed npm's publish-time malware scanning and became installable.

What was the root cause?

The incident has two layers. The proximate cause is the republication itself: a single npm account pushed four versions carrying the known Shai-Hulud payload, which self-propagates by validating stolen npm tokens, downloading tarballs, injecting the payload, bumping the version, and republishing. The systemic cause is the control failure: npm's publish-time malware scanning, introduced in July 2026 with a 5–15 minute hold, did not block a byte-identical artifact whose SHA-256 had been publicly fingerprinted since May. A hash match is a lookup, not a hard detection problem — it requires no behavioral analysis or reasoning about obfuscated code. The payload's 111-day dormancy shows the underlying enabler: credentials stolen in May remained valid in September, so a dormant payload could reactivate without any new compromise.

How was the root cause discovered?

Aikido's triage queue flagging the four September 7 publications on hash match alone — the detection was a lookup, not an investigation The 111-day dormancy figure: 319 versions on May 19, zero hits for 111 days, then four more — establishing that the payload had been dormant, not eradicated Recognition that the payload was byte-identical, not a variant — which reframes the incident from 'new worm' to 'known artifact walked through a new scanner' The July 2026 publish-time scanning rollout as the control that should have caught it — turning a small four-package event into a test of the registry's headline defense

What evidence mattered most?

No repacking, obfuscation, or code modification: an exact byte-identical match to a publicly indexed artifact, so signature matching alone should have caught it A 111-day dormancy-to-reactivation gap, the longest observed for this payload family — dormancy is not death, and stolen tokens from May remained usable in September A single actor republishing a known payload, not four independent compromises; the install-time hook is the execution vector

Which assumptions were wrong?

That npm's July 2026 publish-time scanning would block any previously fingerprinted artifact — a hash match is a lookup, yet the lookup did not happen or did not block That the Shai-Hulud family was finished after the May @AntV cleanup — the payload's dormancy was silence, not removal That a returning worm would be a modified variant — this one was byte-identical, which is precisely what made the scanner failure so diagnostic

What delayed recovery?

The approved record describes restoration as follows: Aikido disclosed the resurfacing the same day (September 7, 2026) with the full hash, package list, and IOCs. The four versions were replaced on the registry with 0.0.1-security holding packages the same afternoon. No new payload family was involved, so no new detection research was required — the existing fingerprint was sufficient. The open question Aikido leaves is what a payload that changed a single byte would have done, given that the byte-identical case already passed the scanner. It does not separately quantify a recovery delay unless stated in that account.

What should operators learn from this case?

Signature matching against known-malicious artifacts is the floor of supply-chain scanning, not the ceiling — if the easy case gets through, harder cases will too A scanner's test corpus must include known worm hashes; an exact hash match to a worm that made international security news four months earlier is the minimum test case Dormancy is not eradication: a payload can sit silent for 111 days and return unchanged, because stolen tokens stay valid for months after the original compromise

10 / Provenance

Original incident source

Vendor postmortemA Shai-Hulud npm payload came back 111 days later →

Root Cause Casebook separates reported facts from analyst synthesis. This public record was explicitly approved before export.