Illustration for: The npm Worm Passed a Real Security Check, Not a Fake One

The npm Worm Passed a Real Security Check, Not a Fake One

New analysis of the Shai-Hulud npm worm finds it did not forge its provenance attestation -- it earned a legitimate one by running inside a compromised maintainer's own CI pipeline, which is worse.

TC
By the AI Desk
Edited by Trace Cohen · Early-stage VC & angel · Founder, New York Venture Partners
1 min read
ShareXLinkedInEmail

THE RUNDOWN

1

The attestation was accurate, the build was authentic, and the code inside was hostile -- Sigstore provenance and SLSA levels answer where an artifact came from, and Shai-Hulud answered that question honestly on its way into downstream installs.

2

The attack path is the one every organization with automated publishing already shares: a stolen maintainer token, a pushed commit, and a CI pipeline that builds, signs and publishes the result with a valid chain of custody attached.

3

GitHub, npm and the OpenSSF have spent three years selling provenance as the answer, so the remediation here is not a patch but a repricing of what a green attestation is actually worth as a release gate.

4

The falsifiable test is whether npm adds publish-time behavioral analysis rather than origin verification alone, and whether registries require two-person review on high-download packages -- until then this is repeatable, not a one-off.

TC

The VC Read · Trace's Take

Trace Cohen

Provenance proves origin, never intent -- and an entire security category has been sold on the implication that the two are the same. If you're a CISO, the action item is scoping: a publish token that can also reach production secrets is the whole blast radius. If you're funding supply-chain security, the wedge just moved from "verify where this came from" to "decide whether this build should ship," and almost nobody is selling the second one yet.

Analysis

VentureBeat reported that the Shai-Hulud npm worm did not counterfeit the supply-chain provenance signals defenders rely on. It obtained genuine ones, because the malicious publish executed inside a legitimate maintainer's CI pipeline using that maintainer's real credentials.

This inverts the defensive model most engineering organizations adopted after the 2021-2024 wave of npm attacks. Sigstore-backed provenance attestations, SLSA levels and signed builds all answer one question: did this artifact come from the repository and pipeline it claims to come from? Shai-Hulud's answer is yes. The attestation is accurate. The build was authentic. The code inside it was hostile.

This inverts the defensive model most engineering organizations adopted after the 2021-2024 wave of npm attacks.

The attack path is the one every organization with automated publishing shares. A maintainer token is stolen, the attacker pushes a commit, CI builds and signs and publishes it, and the resulting package arrives in downstream installs carrying a valid chain of custody. Provenance proves origin; it was never designed to prove intent, and treating a green attestation as a safety verdict is the mistake being exposed here.

Practical consequences for engineering teams: attestation checks belong in the pipeline but cannot be the last gate. Pinned versions with integrity hashes, delayed adoption windows for new releases of critical dependencies, and CI credentials scoped so a publish token cannot also reach production secrets all matter more than the badge. GitHub, npm and the OpenSSF have all pushed provenance as the answer for three years; this is the case that shows what it does not cover.

What to watch: whether npm introduces publish-time behavioral analysis rather than origin verification alone, and whether the major package registries adopt mandatory two-person review for releases of high-download packages. Until then, an authentic signature on a hostile package is a repeatable attack, not a one-off.

ShareXLinkedInEmail

Key Sources

2 sources

Reported by VentureBeat · Analysis by Value Add Pulse.

← Back to Pulse

THE WIRE in your inbox— Tech, startup & VC news with Trace's take. Free, no spam.