AIToday
Hacker NewsPublished: May 12, 2026, 13:00 JST

Shai-Hulud npm worm targets TanStack packages by exploiting GitHub Actions; steals credentials and self-propagates to maintainers' other packages

Shai-Hulud npm worm targets TanStack packages by exploiting GitHub Actions; steals credentials and self-propagates to maintainers' other packages

3 Key Points

  1. On 2026-05-11 between 19:20 and 19:26 UTC, an attacker published 84 malicious versions across 42 @tanstack/* npm packages using a pull_request_target pattern combined with GitHub Actions cache poisoning and runtime extraction of an OIDC token from the GitHub Actions runner process. The malicious versions were detected publicly within 20 minutes and have since been deprecated.

  2. The payload harvests credentials from AWS IMDS / Secrets Manager, GCP metadata, Kubernetes service-account tokens, Vault tokens, ~/.npmrc, GitHub tokens, and SSH private keys. It then self-propagates by enumerating other npm packages the victim maintains via the registry and republishing them with the same injection. The stolen data is encrypted with AES-256-GCM and RSA-OAEP-SHA-256 (4096-bit), then published as public GitHub repositories under the victim's account.

  3. Anyone whose machine or CI runner installed an affected @tanstack/* version during the ~26-minute active window should assume their npm maintainer tokens and other credentials are compromised. TanStack recommends rotating AWS, GCP, Kubernetes, Vault, GitHub, npm, and SSH credentials reachable from any install host, and pinning affected packages to versions published before the incident.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Next articleGeneral Motors laid off more than 10% of its IT department (about 600 employees) and is hiring replacements with AI-focused skills