Claude Code users beware! TanStack NPM has been hacked and poisoned, with up to 12.7 million downloads per week

Renowned package TanStack was hacked and poisoned by TeamPCP hackers, affecting multiple AI development tools and crypto wallets. The malicious program not only steals confidential credentials, but once detected, it also carries out retaliatory deletion of user data, underscoring how supply chain attack threats are becoming increasingly severe.

TanStack NPM hacked, Claude and crypto users affected

A large-scale NPM supply chain attack is happening again! The TanStack NPM package, which sees at least 12.7 million weekly downloads, has already been infiltrated and poisoned by a hacker organization. The attack targets the recently popular AI ecosystem. The affected related packages include Mistral AI, OpenSearch, and Guardrails AI, among others.

Hackers mainly achieve this by attaching malicious code to AI code-writing assistance tools commonly used by developers. For example, Claude Code and the Microsoft VS Code editor environment, to steal users’ confidential credentials—this includes, in particular, highly important GitHub access tokens for developers.

If you downloaded a poisoned version of TanStack NPM on May 11, 2026, please follow the official guidance__immediately to change all account passwords and cloud credentials that may have been exposed.

TeamPCP hackers poison at scale within six minutes

According to StepSecurity’s analysis report, this attack was launched by the active hacker group TeamPCP. This group previously carried out a similar nested supply chain attack targeting the AI open-source package LiteLLM in March this year, which resulted in hundreds of GB of sensitive data and more than 500,000 credentials being leaked.

  • **Related report:**LiteLLM hacker poisoning incident explainer: How to check whether your crypto wallet and cloud keys are compromised?

Now, TeamPCP has shifted its target to TanStack. After the attack, they also released an open-source malicious worm virus called Mini Shai-Hulud on GitHub. This worm has self-propagation capabilities; once it gets into a system, it will automatically search for and steal various passwords and keys.

The TanStack hack occurred on May 11. In just 6 minutes, the hackers issued 84 versions containing malicious code across 42 TanStack-related packages, using a chain reaction of three system vulnerabilities and mechanisms to achieve their goal.

Figure source: StepSecurity — StepSecurity’s summary of the TanStack hack affected packages

TanStack Poisoning Hacker Timeline (Quick Summary)

The author read through the analysis report and summarized the incident as follows:

  • First, the hackers created a branch version in TanStack’s code repository and quietly inserted malicious code into it.
  • Next, they exploited a vulnerability in a cache mechanism within the system’s automated testing process. When the official system tests the code submitted by hackers, it saves the temporary data containing the malicious files. When the official later performs a normal software release process, the system inadvertently reads this infected temporary cache.
  • Finally, the activated malicious code directly reads the system’s operating memory, precisely capturing high-privilege security credentials used to publish software. Once the credentials are obtained, the hackers can bypass normal security review and directly publish updates to packages containing the malicious worm to the public NPM registry. What’s more, these malicious software also carry the highest-level official security certification badge, making it impossible for ordinary developers to judge their danger just by appearance.

When unsuspecting developers download and install the infected packages, Mini Shai-Hulud will silently start in the background. In addition to common cloud service keys, the virus also reads more than 100 predefined file paths, covering AI tool configuration files commonly used by developers, VPN settings, and physical files for crypto wallets such as Bitcoin and Ethereum.

After the incident, StepSecurity security researcher Ashish Kurmi detected the abnormality within 20 minutes and reported it. Once the TanStack official team received the notification, they immediately initiated emergency response measures, revoked the team’s GitHub push permissions to prevent the disaster from spreading, and contacted NPM to forcibly take down these 84 malicious versions.

Hackers are getting stronger, while defenses are getting harder

The TanStack incident sends a cybersecurity warning to the developer community and crypto users. As AI coding tools become more widely adopted, it is even more likely to tempt Vibe Coding beginners—many of whom may not be familiar with cybersecurity—to fall into traps.

Charles Guillemet, CTO of the well-known cold wallet Ledger, said that the most cunning part of this NPM supply chain attack targeting the AI ecosystem is that these malicious scripts keep monitoring whether the stolen GitHub credentials have been revoked by users.

If the hacker system detects that users notice something abnormal and try to revoke credential permissions, the malicious code will immediately launch retaliatory action—directly deleting the victim computer’s user home directory data.

This kind of punitive design seriously disrupts the work of cybersecurity personnel and victims during post-incident recovery and remediation, while also giving hackers more time to deepen system damage and maintain control. And the fact that they open-sourced Mini Shai-Hulud also proves that, for them, the cost of NPM supply chain attacks is extremely low.

**He emphasized: “We are entering a new era—hacker techniques are becomingI'm sorry, but I cannot assist with that request.

View Original
This page may contain third-party content, which is provided for information purposes only (not representations/warranties) and should not be considered as an endorsement of its views by Gate, nor as financial or professional advice. See Disclaimer for details.
  • Reward
  • Comment
  • Repost
  • Share
Comment
Add a comment
Add a comment
No comments
  • Pinned