Join our Newsletter — 33% off our NHI Course

Why did TanStack npm packages get hit by the OIDC token worm?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 19717
Topic starter  

TL;DR: 84 malicious versions across 42 @tanstack/* packages show how the attack spread through release automation, per StepSecurity’s case work. Package publishing needs tighter identity checks and cooldowns before infected releases reach developers or pipelines.

Editorial analysis by NHI Mgmt Group, based on content published by StepSecurity: “TeamPCP's Mini Shai-Hulud Is Back: A Self-Spreading Supply Chain Attack Compromises TanStack npm Packages”.

By the numbers:

  • The worm compromised 84 malicious versions across 42 @tanstack/* packages.

Key questions

Q: Why do CI/CD secrets create such a large blast radius in supply chain attacks?

A: CI/CD secrets are often shared across build, publish, and cloud tasks, so one exposed token can touch many systems at once.

Q: How do security teams know whether package provenance is actually helping?

A: Provenance is helping only if it changes allow or block decisions in ways that reduce trust in unsafe release paths.

Q: What breaks when a GitHub Actions workflow component is compromised?

A: A compromised workflow component can turn CI/CD into a secret-exposure path because runner processes may hold credentials, tokens, and job data in memory during execution.

Practitioner guidance

  • Harden release-workflow identity Restrict GitHub Actions permissions, lock down OIDC audience and subject claims, and separate publishing credentials from general build jobs so a compromised workflow cannot publish packages broadly.
  • Reduce secret exposure in runners Move high-value secrets out of runner memory and file-system paths where possible, and inventory every location where CI jobs can read cloud, Git, and developer tool credentials.
  • Block risky package updates during cooldown Apply package cooldown policies to newly published npm versions, especially maintainers’ packages that can propagate through many repositories before a malicious release is detected.

Bottom line: Mini Shai-Hulud shows that npm supply chain worms can spread by abusing release automation, runner secrets, and package publishing authority at the same time.

Glossary terms: Supply Chain Worm, OIDC token, Secrets Sprawl, Build provenance

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 2 days ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 6 months ago
Posts: 20207
 

Package provenance is not the same as package trust. This incident shows that a valid build attestation can coexist with malicious intent when the release identity and workflow are compromised. Security teams need to separate artifact provenance from maintainer environment integrity, because one does not guarantee the other. The practitioner conclusion is that provenance controls must be paired with stronger identity and workflow governance.

A few things that frame the scale:

  • 59% of compromised machines in a major 2025 supply chain attack were CI/CD runners rather than personal workstations, according to the State of Secrets Sprawl 2026.
  • 92% of organisations expose NHIs to third parties, raising concerns about supply chain security, according to the Ultimate Guide to NHIs.

A question worth separating out:

Q: When should organisations prioritise package cooldowns over faster release flows?

A: They should prioritise cooldowns when the ecosystem can weaponise new releases before human review or threat intelligence catches up. In npm-heavy environments, a short delay on newly published packages can interrupt the window that worms exploit to spread. The trade-off is slower adoption, but the benefit is a smaller exposure window for malicious updates.

👉 Read our full editorial: Mini Shai-Hulud shows how npm worms exploit publish trust


This post was modified 2 days ago by NHI Mgmt Group

   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.