Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
tanstack-shield — 🛡️ One-command scanner for CVE-2026-45321 — TanStack npm supply-chain attack | Kitploit
Tools/GitHubGitHub/caixa-git/tanstack-shield
Vulnerability ScannersMalware AnalysisSecret DetectionThreat IntelligenceSupply Chain SecurityIncident Response
GitHubcaixa-git/tanstack-shield

tanstack-shield

🛡️ One-command scanner for CVE-2026-45321 — TanStack npm supply-chain attack

View Repository
43 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

🛡️ tanstack-shield

One-command supply-chain attack scanner for CVE-2026-45321 / GHSA-g7cv-rxg3-hmpx

Detects the "Mini Shai-Hulud" worm that compromised 42 @tanstack/* npm packages (84 malicious versions) on May 11, 2026.

root@kitploit:~
# One line — scan your project
curl -fsSL https://raw.githubusercontent.com/Caixa-git/tanstack-shield/main/tanstack-shield.sh | bash

# Scan specific directory
curl -fsSL https://raw.githubusercontent.com/Caixa-git/tanstack-shield/main/tanstack-shield.sh | bash -s -- /path/to/project

# Download and use directly
git clone https://github.com/Caixa-git/tanstack-shield.git
cd tanstack-shield
python3 tanstack-shield.py .

Background

On May 11, 2026, an attacker chained three known vulnerability classes — pull_request_target (Pwn Request) misconfiguration, GitHub Actions cache poisoning, and OIDC token memory extraction — to publish 84 malicious versions across 42 @tanstack/* packages under TanStack's trusted npm identity.

The malware harvested credentials (GitHub tokens, npm tokens, SSH keys, AWS/GCP/Kubernetes/Vault), exfiltrated them over Session messenger, and self-propagated to other packages the victim maintained.

The same campaign also hit Mistral AI (npm + PyPI), UiPath (65 packages), OpenSearch (1.3M weekly npm downloads), and 170+ total npm packages plus 2 PyPI packages.

  • CVE: CVE-2026-45321
  • Advisory: GHSA-g7cv-rxg3-hmpx
  • Postmortem: tanstack.com/blog/npm-supply-chain-compromise-postmortem
  • Attacker: TeamPCP ("Mini Shai-Hulud" worm)
  • StepSecurity analysis: stepsecurity.io/blog/mini-shai-hulud

What it does

Read-only scanner that checks your project for:

WhatFilesResult
npm lockfilepackage-lock.json, npm-shrinkwrap.json🔴 Exact malicious version match
pnpm lockfilepnpm-lock.yaml🔴 Exact malicious version match
yarn lockfileyarn.lock🔴 Exact malicious version match
manifest depspackage.json (root + workspaces)🟡 Package presence warning
malware fingerprint@tanstack/setup in optionalDependencies🔴 Confirmed malware
suspicious git depsgithub:tanstack/router#<commit>🔴 Confirmed malware
lifecycle scriptsprepare with bun + router_init🔴 Confirmed malware
node_modulesnode_modules/@tanstack/* (fallback)🔴 Exact version match

Note: Lockfiles are only scanned at the project root. If you're using a monorepo with lockfiles in subdirectories (e.g. packages/web/package-lock.json), run the scanner inside each workspace, or from the monorepo root where the top-level lockfile lives.

Output

  • 🔴 CRITICAL — Malware detected. Follow the remediation guide (printed automatically).
  • 🟡 WARNING — @tanstack/* found in package.json. Check your lockfile.
  • 🟢 SAFE — No known malicious packages detected.

⚠️ Crucial: this malware is a CREDENTIAL STEALER, not a PC-destroying virus. If 🔴 is detected:

  • Your files and system are not damaged
  • But credentials accessible from that machine may have been stolen
  • Rotate GitHub tokens, npm tokens, SSH keys, and cloud credentials immediately

JSON output

root@kitploit:~
curl -fsSL https://raw.githubusercontent.com/Caixa-git/tanstack-shield/main/tanstack-shield.sh | bash -s -- --json

Safety

This tool is read-only. It never creates, modifies, or deletes files on your system.

Requirements

  • Python 3.8+
  • curl (for one-liner mode)

License

MIT

Download Tool