← LeakWatch

Blog

Engineering notes on building LeakWatch: secret scanning, leaked credentials, and keeping your repositories safe.

One rule, one file: 381 self-contained YAML rules, and the false positive that slipped through

How LeakWatch's secret-detection rules moved from five hand-synced Python tables to 381 self-contained YAML files, the test that reads them independently of the loader, and the Sourcegraph false positive that migration just caught.

· 6 min readengineeringsecret-scanningdetection-rulestechnical

Tripling our secret scanner's recall: what the benchmark told us, and what we refused to fix

Recall 0.168 → 0.518 on Samsung's CredData: what the benchmark told us about regex + LLM secret detection, and the one promising idea we refused to ship.

· 29 min readengineeringsecret-scanningbenchmarkllmtechnical

Deep scan: reading your entire git history, not just the last commit

Why real-time monitoring can't see the key you leaked in 2021, and how LeakWatch's deep scan clones your repo, replays every commit on every ref, and does it without ever being able to touch someone else's code.

· 9 min readexplanationdeep-scangitarchitecturetechnical

Consuming the GitHub, GitLab and Codeberg firehose at scale: ETags, rate limits and dedup

How LeakWatch ingests thousands of public commits per minute without knocking over the forges' APIs: ETag caching, a rotating token pool, circuit breakers, and distributed dedup via Redis.

· 6 min readexplanationarchitecturefirehosetechnical

I accidentally pushed an API key to GitHub : here's exactly what to do

A calm, step-by-step guide for when you just leaked a secret to a public repo: rotate first, clean history second, check for abuse third — with the exact commands and provider links.

· 6 min readguidesecret-scanningincident-response

How LeakWatch's secret scanner works

Inside the LeakWatch pipeline: ingesting the public commit firehose, 400+ regex patterns, heuristic and ML false-positive filtering, and strictly read-only secret validation.

· 4 min readexplicationsecret-scanningarchitecture