Comparatifs

KeySentry vs KeyHunter: Free Secret Scanners for GitHub

Two free MIT tools for leaked credentials: KeySentry scans repos for 25+ key formats, web UI included; KeyHunter verifies which leaked keys are still active. Different jobs, same disaster averted.

Committing an API key to a public GitHub repository is one of the easiest mistakes in software — and one of the most expensive, because bots scrape new commits for credentials within minutes. Secret scanners are the seatbelt: they check code for anything that looks like a password or key before (or after) it goes public. KeySentry and KeyHunter are two free, MIT-licensed takes on that job, and each cites the other as an alternative — but they answer two different questions.

The short version: KeySentry answers “is there a secret in this repository?” — it scans for 25+ API key formats using regex plus entropy detection, and is the only one of the two with a web interface, so you can audit a repo with zero installation. KeyHunter answers the scarier question, “does this leaked key still work?” — a fast Rust CLI that searches GitHub for leaked keys and live-tests each hit against 20+ providers.

KeySentry: audit a repo with zero setup

KeySentry is the digital equivalent of checking your pockets before publishing: point it at a GitHub repository and it hunts for accidentally committed passwords, API keys and sensitive files. Detection covers 25+ key formats and adds entropy analysis on top of regex patterns, which catches high-randomness strings that fixed patterns miss. It runs as a CLI, in Docker, or through a hosted web interface — the zero-install path that sets it apart from most scanners.

The honest limits: its coverage is broadly similar to Gitleaks and TruffleHog, so it adds little if those are already in your CI. It is a niche community tool without long-term maintenance guarantees. And the web UI is hosted on a third party (Netlify) — fine for triaging public repos, but run the CLI locally for anything private.

KeyHunter: does the key still work?

KeyHunter starts where most scanners stop. Finding text that looks like a key produces noise; KeyHunter validates each candidate live against 20+ providers to confirm whether it is still active — turning “possible leak” into “confirmed, revoke now”. Written in Rust, it scans in parallel with token rotation, so it is fast at scale. Like KeySentry, it is MIT-licensed and ships with Docker support. Its natural users are security researchers and teams auditing their own exposure.

The limits: it is CLI-only with no web interface, it assumes command-line comfort, and it is a recent, niche project — expect sharp edges.

Side by side

KeySentryKeyHunter
Core questionIs there a secret in this repo?Is this leaked key still active?
Detection25+ formats, regex + entropyLive validation, 20+ providers
InterfacesCLI, web UI, DockerCLI, Docker
PerformanceStandardRust, parallel scan, token rotation
PriceFree, MITFree, MIT
MaturityNiche community projectRecent niche project

Which one should you pick?

Pick KeySentry for pre-publish checks on your own repositories, for teaching teammates what leaked secrets look like, and for quick zero-install triage when something smells wrong in a repo you have been handed.

Pick KeyHunter for incident response and security research, where the question is not “did something leak” but “is this leak exploitable right now” — live validation cuts straight through false-positive noise and tells you which revocations are urgent.

Context matters here: in a mature pipeline these are companions, not replacements, for the two standards both of them cite — Gitleaks and TruffleHog. If either of those already runs in your CI, KeySentry mostly duplicates it; KeyHunter's live validation remains the genuinely different trick.