Developed with 🧠 by Shoaib Alam (AI Engineer at JPMC | NLP Researcher @ IIT Gandhinagar | Hybrid RAG Pioneer)
A powerful tool to scan Git repositories for exposed secrets, tokens, passwords, and confidential values. Offers two scanning modes for flexibility!
| Mode | Description | Use Case |
|---|---|---|
| 🔥 Full Mode | Python backend, clones repo, scans 500 commits | Deep scanning, deleted files, complete history |
| ⚡ Lite Mode | Browser-only, GitHub API | Quick scans, no backend needed |
- 📚 Scans up to 500 commits
- 🗑️ Finds secrets in deleted files
- 🌿 Scans all branches
- 🔐 50+ secret patterns
- 🔗 Supports GitHub, GitLab, Bitbucket, any Git URL
- ⚡ Fast - no backend needed
- 🌐 Runs entirely in browser
- 📜 Scans 20 commits via GitHub API
- 🔐 40+ secret patterns
- 🔒 Privacy-first - no data leaves your browser
- 👁️ Reveal/Mask Toggle - View full secrets when needed
- 🔗 Clickable GitHub Links - Click to open exact file & line on GitHub
- 🎨 Cyberpunk Theme - Beautiful dark UI with neon accents
- 📊 Severity Classification - Critical, High, Medium, Low
- 🔍 Filter by Severity/Type - Find what matters
Terminal 1 - Backend:
cd backend
python3 -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
python app.pyTerminal 2 - Frontend:
npm install
npm run devOpen http://localhost:3000 and select 🔥 Full Mode!
npm install
npm run devOpen http://localhost:3000 and select ⚡ Lite Mode - no backend needed!
Try scanning this test repository with intentional secrets:
https://github.com/alamshoaib134/MY-TOKENS
npm run build
# Deploy dist/ folder to VercelSet environment variable: VITE_BACKEND_URL=https://your-backend.railway.app
- Create new Railway project
- Connect GitHub repo, select
backend/folder - Deploy!
| Category | Examples |
|---|---|
| Cloud Provider Keys | AWS Access Keys, Azure Storage Keys, GCP API Keys |
| API Tokens | GitHub, Slack, Stripe, SendGrid, Twilio, Discord |
| Private Keys | RSA, OpenSSH, DSA, EC, PGP private keys |
| Database Credentials | MongoDB, PostgreSQL, MySQL, Redis URIs |
| Generic Secrets | Passwords, API keys, tokens, auth headers, JWTs |
git-secret-scanner/
├── src/ # React frontend
│ ├── App.tsx # Main component with mode selector
│ ├── scanner.ts # Lite mode (browser) scanner
│ └── ...
├── backend/ # Python backend (Full Mode)
│ ├── app.py # FastAPI server
│ ├── requirements.txt
│ └── Procfile # Railway deployment
├── architecture/ # Design documents
│ ├── HLD.md # High-Level Design
│ └── LLD.md # Low-Level Design
├── screenshots/ # Demo screenshots
├── package.json
├── vercel.json
└── README.md
For detailed technical documentation, see:
- High-Level Design (HLD) - System overview, data flows, deployment
- Low-Level Design (LLD) - Module details, algorithms, API specs
- Full Mode: Clones repos to temp directory, deleted after scan
- Lite Mode: All data stays in browser, no external servers
- Secrets are masked by default with reveal toggle
- Only scan repos you own or have permission to audit
MIT License - Feel free to use, modify, and distribute.
This tool is for educational and authorized security testing purposes only. Always obtain proper authorization before scanning repositories.





