🔍 KeySentry: Find leaked API keys & secrets in any GitHub repo or local project. No mercy.
A powerful, no-nonsense tool to detect unsecured API keys, tokens, and sensitive files — either via command-line scan or a beautifully built frontend web scanner.
- 🔎 Scans for 25+ common API key formats (AWS, Slack, Stripe, OpenAI, etc.)
- 🧠 Regex + entropy-inspired patterns for high accuracy
- 🗂️ Flags sensitive files like
.env,id_rsa,firebase.json, etc. - 💾 Outputs structured results to JSON
- 🧩 Supports both GitHub repo URLs and local folder paths
- 💻 No GitHub API tokens needed
- ⚡ Styled terminal banner and colorful terminal logs
- 🌐 Frontend scanner hosted on Netlify for ease of use
We now have a frontend interface (located in project/ folder) for easier scanning.
Paste a GitHub repo URL and instantly view results in your browser.
You can build and run the CLI version via Docker.
A ready-to-use Dockerfile is included.
➡️ https://hub.docker.com/r/adityabhatt3010/keysentry
git clone https://github.com/AdityaBhatt3010/KeySentry.git
cd KeySentry
pip install -r requirements.txtdocker pull adityabhatt3010/keysentrypython KeySentry.py --repo https://github.com/username/repo-name --output results.jsonpython KeySentry.py --local /path/to/codebase --output results_local.jsondocker run --rm adityabhatt3010/keysentry --repo https://github.com/username/repo-name --output results.json[
{
"file": "/tmp/tmpabcd1234/app/settings.py",
"type": "AWS",
"match": "AKIAIOSFODNN7EXAMPLE"
},
{
"file": "/tmp/tmpabcd1234/.env",
"type": "Sensitive File",
"match": ".env"
}
]- AWS, Google, Slack, Stripe, OpenAI, SendGrid, Twilio
- GitHub, DigitalOcean, Heroku, Mailgun, Firebase
- Cloudflare, JWT, Facebook, Dropbox, Azure
- Netlify, Notion, Terraform, CircleCI, BasicAuth
- RSA Private Keys, Base64 blobs, and more
.env,.env.local,.aws/credentials,.dockercfgcredentials.json,firebase.json,id_rsa,.pypirc, etc.
- ✅ Full local & GitHub scanning
- ✅ Structured JSON reporting
- ✅ Docker support
- 🔜 Live token validation (OpenAI/AWS, etc.)
- 🔜 GitHub username/org-wide scan
- 🔜 FastAPI dashboard w/ SQLite visualization
- 🔜 Discord/Telegram alert integrations
Made with ❤️ by Aditya Bhatt — Cybersecurity & VAPT Specialist.
For educational & auditing use only. Do not use this tool on repositories you don't own or lack permission to scan.








