Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacyΒ© 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
255 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.

# 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

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