Doprax Logo
An npm Worm Is Spreading. Here's What to Do If You Run Node on Doprax

May 12, 2026

5 min Read

An npm Worm Is Spreading. Here's What to Do If You Run Node on Doprax

by Swetlana A

cybersecurity

npm

If you ran npm install in the last two days and any of those packages are in your tree (directly or transitively), assume your install environment is compromised. That includes any Doprax ProVM where you built or deployed a Node.js app.

What Happened?

On May 11, the Mini Shai-Hulud worm hit npm again. By May 12, security researchers had counted 373 malicious package versions across 169 package names. TanStack Router (12 million weekly downloads), the UiPath SDKs, Mistral AI's TypeScript client, Guardrails AI, and a long tail of enterprise and AI tooling are all on the list.

This is not a Doprax breach. Our platform, our Django stack, our App Market vetted templates: all clean. But your VM is your VM. The worm runs with whatever privileges your install process has, and the blast radius stops where your ProVM stops, which is exactly why we built isolated VMs in the first place.

Here's what's happening and what to do.

What the worm actually does

It poisons CI/CD pipelines, mostly through a chain of three GitHub Actions weaknesses (cache poisoning plus OIDC token theft from runner process memory). Once it has publish access, it pushes new malicious versions of packages the victim maintains. Those versions even carry valid SLSA provenance, because the worm hijacked the legitimate build pipeline.

On install, the payload:

  • Uses the Bun runtime to evade Node-based security tools.
  • Steals GitHub PATs, npm tokens, cloud IAM credentials, CI secrets, and crypto wallet files.
  • Exfiltrates to a typosquat domain, the Session messaging network, and GitHub dead-drop repos named "A Mini Shai-Hulud has Appeared".
  • Installs a persistent daemon (gh-token-monitor) that polls GitHub every 60 seconds.

The daemon is the part that demands attention. If it detects that a stolen token has been revoked, it runs rm -rf ~/ on the host. Revoke your tokens before you remove the daemon and you wipe your home directory.

Order matters here.

Check if you're affected

SSH into your VM and look for anything from the compromised namespaces in your dependency tree:

npm ls 2>/dev/null | grep -E '@tanstack|@uipath|@mistralai|@squawk|@tallyui|@beproduct|@draftlab|@draftauth|@taskflow-corp|@tolka|guardrails'

Check your lockfile for the orphan commit the worm uses for injection:

grep -r "79ac49eedf774dd4b0cfa308722bc463cfe5885c" package-lock.json pnpm-lock.yaml yarn.lock 2>/dev/null

Any hit means you have a confirmed infection. No hit is not a clean bill of health (the list is still growing), so also run:

npm audit

And if you want a deeper look, point Socket Security or Snyk at the repo.

Clean up, in the right order

1. Kill the dead-man's switch first

systemctl --user stop gh-token-monitor 2>/dev/null || true
rm -f ~/.config/systemd/user/gh-token-monitor.service ~/.local/bin/gh-token-monitor.sh
systemctl --user daemon-reload

Do this before anything else. Do not rotate tokens yet.

2. Check for other persistence

ls -la ~/.claude/ ~/.vscode/ ~/.npm/ /tmp/ 2>/dev/null | grep -E 'setup|router|execution'

Delete anything suspicious you find.

3. Wipe and reinstall cleanly

rm -rf node_modules package-lock.json yarn.lock pnpm-lock.yaml
npm install --ignore-scripts

--ignore-scripts is the safer reinstall mode. Re-enable lifecycle scripts only after you've verified the versions you're pulling are clean. (pnpm 11+ blocks build scripts by default, so a clean pnpm install is already safer here. More on that below.)

4. Now rotate everything

Only after the daemon is gone. Rotate:

  • GitHub PATs at github.com/settings/tokens
  • npm tokens at npmjs.com/account/tokens
  • Any cloud provider keys (AWS, GCP, DigitalOcean, Hetzner, etc.) that lived on the VM
  • SSH keys used from the VM
  • Any service tokens stored in your app's env vars

If you used GitHub Actions OIDC, audit recent workflow runs and recent npm publishes from your account.

5. Redeploy

Push a clean build and watch logs for anything strange in the first few hours.

If any of this gets weird, send us your ProVM ID. We'll take a look.

The pnpm angle

If you're not already using pnpm, this attack is a good reason to look at it. pnpm 11 (released April 28, 2026) turned three supply-chain defaults on out of the box:

  • minimumReleaseAge: 1440 (24 hours). pnpm won't install a package version until it's at least a day old. Mini Shai-Hulud's malicious TanStack versions were detected by Socket within six minutes of publication and pulled within hours. A 24-hour cooldown would have blocked the install entirely.
  • blockExoticSubdeps: true. Blocks transitive dependencies that resolve from git URLs or arbitrary tarballs instead of the registry. This worm used exactly that path (an orphan commit at github:tanstack/router#79ac49ee...) to drop the second-stage payload.
  • allowBuilds. Lifecycle scripts (preinstall, postinstall, prepare) don't run unless you've explicitly allowed the package. The worm depends on those scripts firing.

Three defaults, three of this attack's main mechanisms shut down.

You can set the same release-age window in pnpm's config (or .npmrc):

# pnpm-workspace.yaml

minimumReleaseAge: 1440 # 1 day, or 10080 for a week

blockExoticSubdeps: true

pnpm is also a drop-in replacement for npm. Same package.json, same registry, faster installs, less disk. Switching usually means running pnpm install instead of npm install and committing pnpm-lock.yaml. If you live in a monorepo, the workspace support alone is worth the move.

This isn't a silver bullet. A patient attacker can wait 25 hours. But most npm compromises get caught in the first few hours, and a 24-hour delay closes the window where almost all the damage happens.

What this means going forward

Supply-chain attacks are the new normal, and npm install is now a privileged operation that you should treat like one. A few habits worth picking up:

  • Pin exact versions and commit lockfiles. Always.
  • Run installs with --ignore-scripts (npm) or allowBuilds (pnpm) in CI and any sensitive environment.
  • Take a ProVM snapshot before major dependency upgrades. Rollback is cheap.
  • Prefer App Market deploys for things we've already vetted.
  • Consider a private registry or SBOM scanning if your project is large enough to justify it.

The reason isolated VMs and per-app boundaries matter is precisely this: when (not if) one of your dependencies gets weaponized, the damage stops at one VM. You rebuild that one, rotate its secrets, and move on. You don't get a multi-tenant nightmare or a platform-wide incident.

That's the trade we built for.

Questions, run into something odd, or want a hand checking a specific app: support.