Settings

Theme

Show HN: API key leak scanner – finds and shows credentials in your codebase

github.com

1 points by JasperBlank2001 2 months ago · 1 comment · 1 min read

Reader

Simple CLI tool, one Python file, no setup. Point it at a repo and it finds leaked API keys (OpenAI, Anthropic, AWS, GitHub, Stripe, etc.) and gives you the direct link to revoke each one.

  Built it because I kept generating code with AI assistants and worrying
  about keys ending up in the wrong place. Its  offbrand TruffleHog.
WalterGR 2 months ago

I believe another approach is to detect high-entropy strings rather than using a hard-coded list of prefixes. I’m curious about the rate of false positives, though: just because there’s - say - a hash or a GUID doesn’t mean it’s credentials. Combining both approaches would potentially work well.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection