I'm a senior cybersecurity analyst, and I still almost shipped a live Stripe key in a test repo. Not because I'm careless — because secret leaks don't come from carelessness. They come from speed. You paste a key into a config to test something, commit, push, and the key is public before your coffee cools.

That's why I built SecretDex, and why I just released a free Lite version you can try in about a minute.

The test I ran on myself

I planted three fake-but-realistic secrets in a throwaway repo — an AWS access key, a Stripe live secret, and a GitHub token — then ran the scanner:

  • All three were caught as CRITICAL findings
  • Every value was masked in the report (you see enough to identify the key, never the full secret)
  • The full version exited with code 1 under --fail-on HIGH, which is what makes it work as a pre-commit hook or CI gate: the commit simply doesn't happen

That last part is the whole point. A report you read after the push is archaeology. A hook that blocks the commit is prevention.

How detection works

Three layers, tuned to keep false positives low:

  1. Pattern matching for known credential shapes (AWS, Stripe, GitHub, and other common providers)
  2. Entropy analysis to catch high-randomness strings that don't match a known pattern
  3. Context rules — a 40-character hex string next to the word "example" is treated differently from one assigned to STRIPE_SECRET_KEY

No single layer is trustworthy alone. Patterns miss novel formats, entropy flags hashes and UUIDs, context can be gamed. Together they cover each other's blind spots.

Why offline?

Most secret scanners want an account, a cloud upload, or a subscription. Think about that for a second: to check whether you've leaked credentials, you upload your codebase to someone else's server.

SecretDex makes zero network calls. No account, no telemetry, no phone-home license check — it works on an air-gapped machine, which matters for the defense and healthcare environments I come from. License validation is local and cryptographic, not a server round-trip.

The build is deliberately boring: Python standard library only, no dependency tree to audit, one file you can read end to end if you want to verify there's no phone-home code. I think a security tool should be auditable by the people who rely on it.

Try the free version

SecretDex Lite is free: scans up to 25 files, shows the first 5 findings, console output. It's the same detection engine — the full version ($29 one-time, 3 machines) adds unlimited scans, HTML reports, git-history scanning, and the pre-commit hook.

I'm a Navy veteran (BM3) building these tools solo in West Virginia — local-first, pay-once, no subscriptions. If you run Lite against your own repo and it flags something weird, or misses something it shouldn't, I genuinely want to hear about it. False-positive tuning is where scanners live or die, and real-world reports beat my test repos every time.