[{"data":1,"prerenderedAt":71},["ShallowReactive",2],{"blog-post-an-npm-worm-is-spreading-heres-what-to-do-if-you-run-node-on-doprax":3},{"id":4,"meta":5,"title":21,"author":22,"body":26,"introduction":64,"date":65,"tags":66,"category":69,"blog_image":70,"intro":64,"featured":10},1248,{"type":6,"detail_url":7,"html_url":8,"slug":9,"show_in_menus":10,"seo_title":11,"search_description":11,"first_published_at":12,"alias_of":13,"parent":14},"blog.BlogPage","https:\u002F\u002Fwww.staging.doprax.rocks\u002Fd\u002Fapi\u002Fv2\u002Fpages\u002F1248\u002F","https:\u002F\u002Fwww.staging.doprax.rocks\u002Fd\u002Fdoprax-blogs\u002Fan-npm-worm-is-spreading-heres-what-to-do-if-you-run-node-on-doprax\u002F","an-npm-worm-is-spreading-heres-what-to-do-if-you-run-node-on-doprax",false,"","2026-05-12T10:01:16.211980Z",null,{"id":15,"meta":16,"title":20},109,{"type":17,"detail_url":18,"html_url":19},"blog.BlogIndexPage","https:\u002F\u002Fwww.staging.doprax.rocks\u002Fd\u002Fapi\u002Fv2\u002Fpages\u002F109\u002F","https:\u002F\u002Fwww.staging.doprax.rocks\u002Fd\u002Fdoprax-blogs\u002F","Doprax Blogs","An npm Worm Is Spreading. Here's What to Do If You Run Node on Doprax",{"id":23,"username":24,"full_name":25},5,"Swetlana","Swetlana A",[27,34,40,46,52,58],{"type":28,"value":29,"id":33},"section",{"title":30,"content":31,"subsections":32},"What Happened?","\u003Cp data-block-key=\"crpek\">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.\u003C\u002Fp>\u003Cp data-block-key=\"ej1e7\">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.\u003C\u002Fp>\u003Cp data-block-key=\"b6mvl\">Here's what's happening and what to do.\u003C\u002Fp>",[],"81f61ce2-3e06-404a-82e8-4036b4cc3a27",{"type":28,"value":35,"id":39},{"title":36,"content":37,"subsections":38},"What the worm actually does","\u003Cp data-block-key=\"m3mdk\">It poisons CI\u002FCD 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.\u003C\u002Fp>\u003Cp data-block-key=\"4il10\">On install, the payload:\u003C\u002Fp>\u003Cul>\u003Cli data-block-key=\"1ijah\">Uses the Bun runtime to evade Node-based security tools.\u003C\u002Fli>\u003Cli data-block-key=\"blsev\">Steals GitHub PATs, npm tokens, cloud IAM credentials, CI secrets, and crypto wallet files.\u003C\u002Fli>\u003Cli data-block-key=\"66eu9\">Exfiltrates to a typosquat domain, the Session messaging network, and GitHub dead-drop repos named \"A Mini Shai-Hulud has Appeared\".\u003C\u002Fli>\u003Cli data-block-key=\"anvlk\">Installs a persistent daemon (gh-token-monitor) that polls GitHub every 60 seconds.\u003C\u002Fli>\u003C\u002Ful>\u003Cp data-block-key=\"5mh5\">The daemon is the part that demands attention. If it detects that a stolen token has been revoked, it runs rm -rf ~\u002F on the host. Revoke your tokens before you remove the daemon and you wipe your home directory.\u003C\u002Fp>\u003Cp data-block-key=\"dnbfv\">Order matters here.\u003C\u002Fp>",[],"4dbdc342-6b28-466b-b40e-d60d5bfbab52",{"type":28,"value":41,"id":45},{"title":42,"content":43,"subsections":44},"Check if you're affected","\u003Cp data-block-key=\"g53u2\">SSH into your VM and look for anything from the compromised namespaces in your dependency tree:\u003C\u002Fp>\u003Cp data-block-key=\"ji27\">\u003Ci>npm ls 2&gt;\u002Fdev\u002Fnull | grep -E '@tanstack|@uipath|@mistralai|@squawk|@tallyui|@beproduct|@draftlab|@draftauth|@taskflow-corp|@tolka|guardrails'\u003C\u002Fi>\u003C\u002Fp>\u003Cp data-block-key=\"89nis\">Check your lockfile for the orphan commit the worm uses for injection:\u003C\u002Fp>\u003Cp data-block-key=\"2sohf\">\u003Ci>grep -r \"79ac49eedf774dd4b0cfa308722bc463cfe5885c\" package-lock.json pnpm-lock.yaml yarn.lock 2&gt;\u002Fdev\u002Fnull\u003C\u002Fi>\u003C\u002Fp>\u003Cp data-block-key=\"aauu3\">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:\u003C\u002Fp>\u003Cp data-block-key=\"e538v\">\u003Ci>npm audit\u003C\u002Fi>\u003C\u002Fp>\u003Cp data-block-key=\"bd66\">And if you want a deeper look, point Socket Security or Snyk at the repo.\u003C\u002Fp>",[],"eca23138-9a65-4928-9f89-a4ac8b3ffd7c",{"type":28,"value":47,"id":51},{"title":48,"content":49,"subsections":50},"Clean up, in the right order","\u003Ch3 data-block-key=\"g53u2\">1. Kill the dead-man's switch first\u003C\u002Fh3>\u003Cp data-block-key=\"97mne\">\u003Ci>systemctl --user stop gh-token-monitor\u003C\u002Fi> \u003Cb>\u003Ci>2\u003C\u002Fi>\u003C\u002Fb>\u003Ci>&gt;\u002Fdev\u002Fnull || true\u003Cbr\u002F>rm -f ~\u002F.config\u002Fsystemd\u002Fuser\u002Fgh-token-monitor.service ~\u002F.local\u002Fbin\u002Fgh-token-monitor.sh\u003Cbr\u002F>systemctl --user daemon-reload\u003C\u002Fi>\u003C\u002Fp>\u003Cp data-block-key=\"9otou\">Do this before anything else. Do not rotate tokens yet.\u003C\u002Fp>\u003Ch3 data-block-key=\"2k4qq\">2. Check for other persistence\u003C\u002Fh3>\u003Cp data-block-key=\"aetv\">\u003Ci>ls -la ~\u002F.claude\u002F ~\u002F.vscode\u002F ~\u002F.npm\u002F \u002Ftmp\u002F\u003C\u002Fi> \u003Cb>\u003Ci>2\u003C\u002Fi>\u003C\u002Fb>\u003Ci>&gt;\u002Fdev\u002Fnull | grep -E 'setup|router|execution'\u003C\u002Fi>\u003C\u002Fp>\u003Cp data-block-key=\"1e34o\">Delete anything suspicious you find.\u003C\u002Fp>\u003Ch3 data-block-key=\"d3oi0\">3. Wipe and reinstall cleanly\u003C\u002Fh3>\u003Cp data-block-key=\"npuv\">\u003Ci>rm -rf node_modules package-lock.json yarn.lock pnpm-lock.yaml\u003Cbr\u002F>npm install --ignore-scripts\u003C\u002Fi>\u003C\u002Fp>\u003Cp data-block-key=\"an3lb\">\u003Ci>--ignore-scripts\u003C\u002Fi> 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.)\u003C\u002Fp>\u003Ch3 data-block-key=\"fuclt\">4. Now rotate everything\u003C\u002Fh3>\u003Cp data-block-key=\"abvfb\">Only after the daemon is gone. Rotate:\u003C\u002Fp>\u003Cul>\u003Cli data-block-key=\"bgdke\">GitHub PATs at github.com\u002Fsettings\u002Ftokens\u003C\u002Fli>\u003Cli data-block-key=\"dh1qj\">npm tokens at npmjs.com\u002Faccount\u002Ftokens\u003C\u002Fli>\u003Cli data-block-key=\"29vu4\">Any cloud provider keys (AWS, GCP, DigitalOcean, Hetzner, etc.) that lived on the VM\u003C\u002Fli>\u003Cli data-block-key=\"f4vhf\">SSH keys used from the VM\u003C\u002Fli>\u003Cli data-block-key=\"doqn8\">Any service tokens stored in your app's env vars\u003C\u002Fli>\u003C\u002Ful>\u003Cp data-block-key=\"54fs6\">If you used GitHub Actions OIDC, audit recent workflow runs and recent npm publishes from your account.\u003C\u002Fp>\u003Ch3 data-block-key=\"f0at1\">5. Redeploy\u003C\u002Fh3>\u003Cp data-block-key=\"5lfl6\">Push a clean build and watch logs for anything strange in the first few hours.\u003C\u002Fp>\u003Cp data-block-key=\"a9i59\">If any of this gets weird, send us your ProVM ID. We'll take a look.\u003C\u002Fp>",[],"669ae4a1-d5c4-4071-bf75-1f429440dbd5",{"type":28,"value":53,"id":57},{"title":54,"content":55,"subsections":56},"The pnpm angle","\u003Cp data-block-key=\"g53u2\">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:\u003C\u002Fp>\u003Cul>\u003Cli data-block-key=\"9m0vq\">\u003Ci>minimumReleaseAge: 1440\u003C\u002Fi> (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.\u003C\u002Fli>\u003Cli data-block-key=\"364os\">\u003Ci>blockExoticSubdeps: true\u003C\u002Fi>. 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 \u003Ci>github:tanstack\u002Frouter#79ac49ee...\u003C\u002Fi>) to drop the second-stage payload.\u003C\u002Fli>\u003Cli data-block-key=\"5gq57\">\u003Ci>allowBuilds\u003C\u002Fi>. Lifecycle scripts (\u003Ci>preinstall, postinstall, prepare\u003C\u002Fi>) don't run unless you've explicitly allowed the package. The worm depends on those scripts firing.\u003C\u002Fli>\u003C\u002Ful>\u003Cp data-block-key=\"v8ok\">Three defaults, three of this attack's main mechanisms shut down.\u003C\u002Fp>\u003Cp data-block-key=\"98gf6\">You can set the same release-age window in pnpm's config (or .npmrc):\u003C\u002Fp>\u003Cp data-block-key=\"3704f\">\u003Ci># pnpm-workspace.yaml\u003C\u002Fi>\u003C\u002Fp>\u003Cp data-block-key=\"89db\">\u003Ci>minimumReleaseAge: 1440 # 1 day, or 10080 for a week\u003C\u002Fi>\u003C\u002Fp>\u003Cp data-block-key=\"erad4\">\u003Ci>blockExoticSubdeps: true\u003C\u002Fi>\u003C\u002Fp>\u003Cp data-block-key=\"j8f7\">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.\u003C\u002Fp>\u003Cp data-block-key=\"4ct7q\">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.\u003C\u002Fp>",[],"f4a9f601-2104-4117-8fc0-2d3bd219e933",{"type":28,"value":59,"id":63},{"title":60,"content":61,"subsections":62},"What this means going forward","\u003Cp data-block-key=\"3fgg3\">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:\u003C\u002Fp>\u003Cul>\u003Cli data-block-key=\"durag\">Pin exact versions and commit lockfiles. Always.\u003C\u002Fli>\u003Cli data-block-key=\"1c3pr\">Run installs with --ignore-scripts (npm) or allowBuilds (pnpm) in CI and any sensitive environment.\u003C\u002Fli>\u003Cli data-block-key=\"b9gf6\">Take a ProVM snapshot before major dependency upgrades. Rollback is cheap.\u003C\u002Fli>\u003Cli data-block-key=\"2i9dn\">Prefer App Market deploys for things we've already vetted.\u003C\u002Fli>\u003Cli data-block-key=\"bmf98\">Consider a private registry or SBOM scanning if your project is large enough to justify it.\u003C\u002Fli>\u003C\u002Ful>\u003Cp data-block-key=\"fdp7q\">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.\u003C\u002Fp>\u003Cp data-block-key=\"2evcg\">That's the trade we built for.\u003C\u002Fp>\u003Cp data-block-key=\"4vqgr\">Questions, run into something odd, or want a hand checking a specific app: \u003Ca href=\"https:\u002F\u002Fwww.doprax.com\u002Fcontact-us\">support\u003C\u002Fa>.\u003C\u002Fp>",[],"0f035723-0b93-4c1f-9818-411622f8d52f","\u003Cp data-block-key=\"wxpuj\">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.\u003C\u002Fp>","2026-05-12",[67,68],"cybersecurity","npm","updates","\u002Fd\u002Fmedia\u002Foriginal_images\u002FNPM_Worm___doprax.png",1795300126448]