Skip to content

A worm in 754 npm packages dumped 33,185 secrets into public repos

On 24 November 2025 the Shai-Hulud worm spread through malicious npm updates. It stole credentials and used stolen GitHub tokens to publish them in new repositories.2

754 npm packages infected; 33,185 unique secrets exposed, 3,760 still valid when analyzed.2

Get 30 minutes free every day, forever.3SOC 2 Type II499.9% uptime SLA on Pro4
Shai-Hulud 2.0 wormNovember 2025Asks first

33 of 50

Stopped Limited: the payment went out through the bank’s own system This case: Shai-Hulud 2.0 worm. The gate asks first.

What happened

The worm stole credentials and published them in new GitHub repositories.

  1. 24 November 2025. A new wave of the Shai-Hulud worm spread through npm updates that ran during install or build.

  2. The theft. It stole credentials on developer machines and CI runners, then used GitHub tokens to publish them.

  3. 26 November. 754 npm packages were infected. GitGuardian counted 33,185 unique secrets, 3,760 still valid.2

How the gate handles it

With the sealed gate, the new public repos would have had to wait for approval.

On SealedBox machines no real secret would have sat on disk, and a new public repo would have waited for a person. Press Play to watch the same call.5

Create a public repo with a stolen tokenSample6
  1. requestPOST /orgs/acme/repos {"name":"shai-hulud-dump","private":false}Asks first428
How easy

An engineering team could hold every new public repo for approval in three steps.

Sample
Seal a keygithub
GitHub token
Paste your GitHub token
Builds and agents never see the token.
GitHub rulesgithub
Reads and clones
New public repos
Pushes to main
Applies to every key in Engineering.
Where approvals goAsk first
Slack
Microsoft Teams
Telegram
Email
A person approves or denies each call that asks first.

Approvals and signed records come with Pro, Gate only and Custom. On Free, a rule that asks first refuses instead.7

In code

Or in four lines of code.

The same three steps, from the terminal.

Sample
What each line does
1Seal the keysealedbox keys sealBuilds get sbk_live_1Ns6…v5.
2Set the rulessealedbox rules addNew public repos wait; no pushes to main.
3Connect approvalssealedbox approvals connectAsk-first calls go to #eng-leads.
Try it

Put the gate in front of your agent today.

Run three practice calls in five minutes, then check their records on your own computer. Test mode, on every plan.

Start free$ sealedbox try5-minute practice run9
Scope

What the gate doesn’t change, and three failures like this one.

Related cases
Answers11

Questions about this case and the gate.

Still have a question?Book a callAll questions
The worm ran on the machine itself. Would sealing the token have helped?

On a SealedBox machine, yes: no real secret sits on disk, and every call leaves through the gate. A new public repo waits for a person on Pro, Gate only and Custom, and is refused on Free.

What about laptops and CI runners that are not SealedBox machines?

Secrets kept there stay outside the gate. It governs only keys sealed with SealedBox and the calls that pass through it.

Could the worm send secrets to its own server instead?

Not from a SealedBox machine. Every call leaves through the gate, which refuses unlisted places and raw IP addresses.