Cyber — 2026-05-13

TanStack Supply Chain Attack Compromises 170 npm and PyPI Packages Including Major AI and Enterprise Tools

On May 11, according to TanStack's published postmortem, TeamPCP chained pull_request_target abuse, GitHub Actions cache poisoning, and OIDC token memory extraction to publish 84 malicious versions across 42 npm packages. Aikido Security identified 373 malicious package-version entries across 169 namespaces in the broader worm campaign, which reached Mistral AI's npm and PyPI SDK packages and the Guardrails AI's PyPI package. The Mini Shai-Hulud payload harvests cloud, GitHub, Kubernetes, and SSH credentials, exfiltrates via Session messenger infrastructure, and installs a dead man's switch that destroys the victim's home directory upon token revocation. StepSecurity researcher Ashish Kurmi detected the compromise within 20 minutes; TanStack confirms no npm tokens were stolen and all affected versions have been deprecated.

Analysis
TeamPCP's shift to worm-driven propagation through CI/CD trust infrastructure represents a structural break from earlier supply chain campaigns, not an incremental escalation. The attack is the first documented instance of an npm worm producing validly attested SLSA Build Level 3 packages, directly invalidating provenance as a cleanliness signal for any organization that treats attestation as a security gate. Three successive monthly campaigns (Aqua Security's Trivy in March, Bitwarden CLI in April, and TanStack with Mistral AI in May) show an actor iterating rapidly on published research rather than developing novel techniques, compressing the lag between public vulnerability disclosure and weaponization. Mistral AI's confirmation that a developer device was involved validates the self-propagation logic beyond the initial TanStack's breach. With 400 attacker-controlled repositories already seeded with stolen credentials and the worm confirmed to have reached cloud, Kubernetes, and CI/CD environments, we assess it is likely within 30 days that TeamPCP will leverage harvested credentials to conduct secondary intrusions into downstream cloud or enterprise infrastructure. The dead man's switch, a shell script that executes rm -rf ~/ upon GitHub token revocation, marks a deliberate deterrence of incident response, complicating containment and raising the operational cost of remediation for any organization whose developers installed affected versions before deprecation.
4 sources
  1. Mistral AI SDK TanStack Router hit in npm software supply chain attack - CSO Online
  2. Postmortem: TanStack npm supply-chain compromise
  3. Mini Shai-Hulud Is Back: npm Worm Hits over 160 Packages, including Mistral and Tanstack - Aikido Security
  4. Mini Shai-Hulud Worm Compromises TanStack, Mistral AI, Guardrails AI & More Packages - The Hacker News

View in full brief →

UNCLASSIFIED // OPEN SOURCE