Secrets are the lifeblood of modern applications. A single leaked AWS credential, Slack token, or Firebase config can cause massive breaches, financial losses, or reputation damage.
That’s exactly why I built KeySentry — a powerful, no-nonsense security tool that detects leaked API keys, tokens, and sensitive files in your GitHub repositories or local projects.
Think of it as your early warning system: before attackers find your secrets, KeySentry flags them.
KeySentry is a dual-mode security scanner:
- 🖥️ Command-line scanner (CLI) → Scan GitHub repos or local directories directly.
- 🌐 Frontend web scanner → Paste any GitHub URL and get instant results in your browser.
It’s built for speed, accuracy, and simplicity — no GitHub tokens required, no complex setup, just results that matter.
👉 Live frontend scanner: https://key-sentry.netlify.app/
👉 GitHub repo: https://github.com/AdityaBhatt3010/KeySentry
👉 DockerHub image: https://hub.docker.com/r/adityabhatt3010/keysentry
- 🔎 Scans 25+ API key formats → AWS, Google, Slack, Stripe, OpenAI, Firebase, Twilio, GitHub, and more.
- 🧠 Regex + entropy-based patterns → to catch both standard and custom secret formats with high accuracy.
- 🗂️ Sensitive file detection →
.env,id_rsa,firebase.json,.aws/credentials,credentials.json, and more. - 💾 Structured JSON outputs → so you can integrate results into pipelines or reports.
- 🧩 Flexible input → works with both GitHub repo URLs and local directories.
- 💻 No GitHub tokens needed → works standalone.
- ⚡ Beautiful CLI experience → colorful logs and styled banners.
- 🌐 Web-based scanner → hosted on Netlify, perfect for instant audits.
- 🐳 Docker support → run anywhere, containerized and portable.
1️⃣ Local Installation
git clone https://github.com/AdityaBhatt3010/KeySentry.git
cd KeySentry
pip install -r requirements.txt2️⃣ GitHub Repository Scan
python KeySentry.py --repo https://github.com/username/repo-name --output results.json3️⃣ Local Directory Scan
python KeySentry.py --local /path/to/codebase --output results_local.json4️⃣ Docker Run (no setup needed)
docker run --rm adityabhatt3010/keysentry --repo https://github.com/username/repo-name --output results.json5️⃣ Or go serverless in your browser 👉 Scan instantly via Web Scanner
Here’s what KeySentry finds when it detects leaked secrets:
[
{
"file": "/tmp/tmpabcd1234/app/settings.py",
"type": "AWS",
"match": "AKIAIOSFODNN7EXAMPLE"
},
{
"file": "/tmp/tmpabcd1234/.env",
"type": "Sensitive File",
"match": ".env"
}
]No noise. Just clean, actionable results.
-
API Keys: AWS, Google, Slack, Stripe, OpenAI, SendGrid, Twilio, GitHub, DigitalOcean, Heroku, Firebase, Cloudflare, JWT, Facebook, Dropbox, Azure, Netlify, Notion, Terraform, CircleCI, BasicAuth, and more.
-
Sensitive Files:
.env,.env.local,.aws/credentials,.dockercfg,credentials.json,firebase.json,id_rsa,.pypirc, etc.
✅ Full local & GitHub scanning
✅ JSON reporting
✅ Docker support
🔜 GitHub org-wide scans
🔜 FastAPI dashboard + SQLite storage
🔜 Discord/Telegram alerts
Attackers don’t hack in anymore. They log in with leaked secrets.
KeySentry gives you:
- ⚡ Prevention → Catch exposures before attackers or bots scrape them.
- 🧪 Audit power → Perfect for DevSecOps teams, bug bounty hunters, and researchers.
- 🔍 Visibility → Find risky files and API keys in seconds.
It’s lightweight, fast, and deadly accurate — built for people who don’t want security theater, only real results.
Made with ❤️ by Aditya Bhatt — Cybersecurity & VAPT Specialist.
👉 GitHub: https://github.com/AdityaBhatt3010/KeySentry
👉 Netlify Frontend: https://key-sentry.netlify.app/
👉 DockerHub: https://hub.docker.com/r/adityabhatt3010/keysentry
📖 Optional deep-dive: Article 1
KeySentry is for educational and auditing use only. Do not use it on repositories you don’t own or lack permission to scan.
🔥 KeySentry isn’t just a scanner — it’s your first line of defense against secret leaks.








