UpTrajectory Review

Safeguard Your Business from Shai-Hulud Worm and npm Vulnerability

worm burrowing through code stack
Photo: Nicolas Foster / Pexels

UpTrajectory Review

On May 11, a supply-chain attack known as the Mini Shai-Hulud worm poisoned 172 packages across npm and PyPI, amassing 518 million cumulative downloads. The attackers moved fast: 84 malicious versions appeared across 42 @tanstack packages in six minutes. Any development environment that installed or imported one of these packages since May 11 should be treated as compromised. The worm harvests credentials from over 100 file paths, including AWS keys, SSH private keys, npm tokens, GitHub PATs, HashiCorp Vault tokens, Kubernetes service accounts, Docker configs, shell history, and cryptocurrency wallets. It now targets password managers including 1Password and Bitwarden, and steals Claude and Kiro AI agent configurations, including MCP server auth tokens for every external service an agent connects.

For a small-business operator, this is not an abstract threat. If your team builds software, runs CI pipelines, or uses AI coding agents, your secrets are exposed. The worm reads runner process memory directly via /proc/pid/mem to extract secrets, including masked ones, on Linux-based CI runners. It installs persistence in Claude Code (.claude/settings.json) and VS Code (.vscode/tasks.json with runOn: folderOpen) that re-executes every project open, plus a system daemon that survives reboots. These artifacts live in the project tree, not in node_modules. Uninstalling the package does not remove them. If you revoke tokens before isolating the machine, Wiz found a destructive daemon wipes your home directory—a nasty contingency built into the malware.

The genuinely alarming detail is the provenance. Every malicious version carried a valid SLSA Build Level 3 provenance attestation. The provenance was real. The packages were poisoned. TanStack had the right setup on paper: OIDC trusted publishing, signed provenance, 2FA. The attackers bypassed it anyway. This is the first time a TeamPCP campaign has targeted password managers. The worm persists even after the package is removed. The scale is unprecedented: @tanstack/react-router alone receives 12.7 million weekly downloads. CVE-2026-45321 carries a CVSS score of 9.6. Supply-chain security theater has just met its match.

The downstream effects demand immediate action. Developers face a critical sequence: isolate affected machines first, then revoke tokens, or risk losing their home directory to the destructive daemon. Teams must audit every project opened since May 11, check for persistence files in .claude and .vscode directories, and scan for system daemons. CI runners need memory inspection and secret rotation. AI agent configurations require a full audit of MCP server tokens. The operational cost is severe—rebuilding trust in your build pipeline, auditing downstream systems, and rotating every secret that touched an affected environment.

If you run a development team, act now. Isolate affected machines before revoking tokens. Audit your CI runners and rotate every secret in your environment. Check whether your development staff installed any @tanstack packages or used PyPI packages since May 11. Mend and OX Security continue tracking the campaign; SecurityWeek and Wiz have published detailed analyses. The lesson is brutal: signed provenance and OIDC trusted publishing are no longer sufficient defenses. Attackers have learned to poison the build, not just the package. Small businesses that rely on open-source dependencies must assume compromise and design for rapid detection and recovery.

“Uninstalling the package does not remove them.” — VentureBeat

Takeaway: Isolate affected machines before revoking tokens; rotate all secrets used in your development and CI environments.

Excerpt from the original — VentureBeat

Any development environment that installed or imported one of the 172 compromised npm or PyPI packages published since May 11 should be treated as potentially compromised. On affected developer workstations, the worm harvests credentials from over 100 file paths: AWS keys, SSH private keys, npm tokens, GitHub PATs, HashiCorp Vault tokens, Kubernetes service accounts, Docker configs, shell history, and cryptocurrency wallets. For the first time in a TeamPCP campaign, it targets password managers including 1Password and Bitwarden, according to SecurityWeek. It steals Claude and Kiro AI agent configurations, including MCP server auth tokens for every external service an agent connects to. And it does not leave when the package is removed.The worm installs persistence in Claude Code (.claude/settings.json) and VS Code (.vscode/tasks.json with runOn: folderOpen) that re-execute every project …