Skip to content

Latest commit

Β 

History

History
65 lines (51 loc) Β· 2.16 KB

File metadata and controls

65 lines (51 loc) Β· 2.16 KB

GitScout πŸ›‘οΈ

Know before you clone. Change github.com/owner/repo β†’ gitscout.meadityazzzz.in/owner/repo β€” instant pre-clone security verdict.

What It Does

GitScout scans any public GitHub repository before you clone or install β€” detecting 63 attack patterns across 9 threat categories in under 30 seconds.

Tech Stack

  • Backend: Go (Chi router) β€” goroutine-based concurrent scanning engine
  • Frontend: SvelteKit β€” real-time SSE streaming results UI
  • AST Parsing: tree-sitter β€” multi-language static analysis

Attack Categories Detected

Category Threat Level Examples
PostInstall Scripts πŸ”΄ CRITICAL curl | bash in lifecycle hooks
Credential Harvesting πŸ”΄ CRITICAL Reading ~/.ssh, ~/.aws, process.env
Typosquatting πŸ”΄ HIGH crossenv instead of cross-env
Dependency Confusion πŸ”΄ HIGH Public package overriding private scope
Code Obfuscation πŸ”΄ HIGH Base64 eval chains, hex strings
Unicode/Trojan Source πŸ”΄ HIGH Bidirectional override characters
Logic Bombs 🟠 HIGH Geo-triggered, time-triggered payloads
Supply Chain Hijacking 🟠 HIGH Maintainer account takeover
CI/CD Workflow Attacks 🟑 MEDIUM Malicious GitHub Actions
Network Exfiltration 🟑 MEDIUM DNS tunneling, webhook beacons
Crypto Mining 🟑 MEDIUM Embedded XMRig miners
Fake Metadata 🟒 LOW Inflated stars, fake downloads

Project Structure

GitScout/
β”œβ”€β”€ backend/           # Go backend (Chi + goroutines)
β”‚   β”œβ”€β”€ cmd/server/    # Entry point
β”‚   β”œβ”€β”€ internal/
β”‚   β”‚   β”œβ”€β”€ api/       # HTTP handlers + SSE
β”‚   β”‚   β”œβ”€β”€ scanner/   # Scan orchestrator
β”‚   β”‚   β”œβ”€β”€ checks/    # One file per attack category
β”‚   β”‚   β”œβ”€β”€ ast/       # tree-sitter wrapper
β”‚   β”‚   └── models/    # Data types
β”‚   └── go.mod
β”œβ”€β”€ frontend/          # SvelteKit
└── docs/              # Implementation plan + attack taxonomy

Running Locally

# Backend
cd backend
go run ./cmd/server

# Frontend
cd frontend
npm install
npm run dev

License

MIT