
Short answer: pick gitleaks if you want a free scanner that runs on your own machine and in CI, and that stops a secret before it is pushed. Pick LeakWatch if you want to know whether a key that is already public is still accepted by its provider, and to be told while it still matters. Many teams use both, because they answer different questions at different points in the lifecycle.
At a glance
| LeakWatch | gitleaks | |
|---|---|---|
| Type | Hosted service | Command-line tool you run |
| Live validation | Yes, one read-only request per key | No, pattern matches only |
| Full git history scan | Yes, deep scan of repositories you own | Yes |
| Blocks a commit before push | No, alerts within seconds after | Yes, via a pre-commit hook |
| Continuous monitoring of public git | Yes | No, scans what you point it at |
| Alerts built in | Yes: email, Discord, Slack | No, you route results yourself |
| Scans deployed website | Yes, on a verified domain | No |
| CI gate without installation | Yes, one HTTPS call | No, installed in the runner image |
| Custom patterns | Yes, self-service | Yes, in a config file you own |
| Works offline | No, hosted | Yes, code never leaves your machine |
| Price | Free plan, Solo from 4.99€/month | Free |
LeakWatch covers itgitleaks covers it
Where each tool acts, from the developer’s machine to the live site. gitleaks owns the left side, LeakWatch the right.
What gitleaks does well
Gitleaks is an open-source command-line secret scanner under the MIT license. You install it and run it yourself, and it is free. It detects secrets by matching regular-expression rules, and its regex engine is RE2, which matches without backtracking. It scans full git history. Because you run it against a local clone, it works with any git host, including GitHub, GitLab, Codeberg and self-hosted servers.
It runs locally and offline, so the code never leaves your machine. It is commonly used as a pre-commit hook, which catches a secret before it is pushed, and as a CI step.
We also owe gitleaks a debt. When we moved our own detection rules to one YAML file per rule, we cross-checked our catalogue against the gitleaks rules: 177 rules matched by exact ID, about 17 more by rename, and gitleaks had 14 rules we did not have. We also learned from its patterns while working on recall, as described in one rule, one file and how we tripled our secret scanner recall.
What LeakWatch does differently
It checks whether the key still works
gitleaks answers the question “does this text look like a secret?”. LeakWatch asks a second question: “is this key still accepted?”. Each of our 44 validators makes a single read-only request to the provider. AWS uses sts:GetCallerIdentity, GitHub uses /user, and database validators connect and list schemas without reading any rows. We never write, purchase or delete anything. A pattern match is a guess about shape. A key the provider accepts is an incident, and our revocation guides explain how to rotate it.
LeakWatch, 1–21 October 2026: of 46,023 strings that matched a secret pattern, 6,434 could be tested at the provider and 1,106 were accepted. A pattern match alone cannot tell these apart.
It watches public git continuously
LeakWatch polls the public GitHub events stream every 10 seconds, and also watches GitHub Gists, GitLab projects and Codeberg, with an hourly GH Archive backfill. This covers keys that appear in places you do not control, such as a fork, a contributor’s personal repository or a gist. With a CLI tool, someone has to run it on every repository and clone, store the results and route the alerts.
In the first 21 days of October 2026, LeakWatch confirmed 1,106 credentials in 858 public repositories that were live when we tested them. On re-test, 404 of 938 (43%) had been revoked or rotated. See live leaks by provider and the October 2026 data report.
It scans the site you deployed
On a verified domain, LeakWatch reads what a browser reads: HTML, JavaScript bundles and published source maps, where hard-coded keys are often legible. It also flags an exposed /.env, a readable /.git/ and SQL dumps. A repository and its domain can be grouped in one project, so a secret found in both is reported first. gitleaks reads git and does not scan the website you deployed.
It gates CI without installing anything
A gitleaks CI gate needs the binary in the runner image. The LeakWatch CI gate is one HTTPS call with curl and jq: the job posts its diff and fails on a non-zero count. The diff is scanned in memory and not stored. This endpoint does not validate keys against the provider, because that would mean sending the credential onwards. The Free plan allows 50 scans a day, and Solo has unlimited, batched scans.
When to choose gitleaks
- You want a free tool that runs entirely on your machine, offline, with no account.
- You want to stop secrets before they are pushed, with a pre-commit hook on each developer machine.
- You control your CI runner images and can install a binary in them.
- Your policy does not allow source code, or diffs, to leave your infrastructure.
- You want custom rules in a configuration file that lives in your repository.
- You work across GitHub, GitLab, Codeberg and self-hosted servers, and you are happy to run the scan against each clone.
When to choose LeakWatch
- You have already pushed a secret, or you publish public repositories, and you need to know whether the leaked key is still live.
- You want continuous monitoring of public git, including forks and gists, without running a job yourself.
- You deploy a website and want it checked for exposed
/.envfiles, source maps and hard-coded keys in JavaScript. - You want alerts by email, Discord or Slack without building the routing yourself.
- You are an individual developer, a side project, a startup or a team of three to ten. LeakWatch is not an enterprise platform: it has no SSO/SAML and no ticketing integrations.
Using both
Put gitleaks in a pre-commit hook and a CI step, so secrets can be stopped on the developer’s machine before they are pushed. Use LeakWatch to watch public git and your production site for what still gets through. LeakWatch does not block a push; it alerts within seconds after one, which is why the two complement each other.
To see the public side without an account, the free username check shows how many secrets tied to a GitHub, GitLab or Codeberg username are already public. The product page has the full feature detail, and how LeakWatch secret scanning works describes the pipeline.
FAQ
Is LeakWatch a replacement for gitleaks?
No. gitleaks is a local scanner that helps stop a secret before it is pushed, while LeakWatch is a hosted service that monitors public git and checks whether exposed keys are still accepted. Many teams run both.
Does gitleaks check whether a leaked key still works?
No. gitleaks detects secrets by matching regular-expression rules, and it does not contact the provider. LeakWatch’s validators make one read-only request per key to check whether the provider still accepts it.
Can gitleaks block a bad commit?
Yes, when it runs as a pre-commit hook, which stops a secret before it is pushed. It is also commonly used as a CI step, but it must be installed in the runner image first. LeakWatch does not block a push; it alerts within seconds after the push.
Which should a small team start with?
If accidental commits from developers’ machines are your main risk, start with gitleaks in a pre-commit hook. Add LeakWatch when you publish repositories or a website and need to know whether a leaked key is still live.
Sources and method
This comparison was compiled from each product’s public documentation and pricing pages, checked on 10 November 2026, and covers generally available offerings only. These products change often. If you spot something out of date or wrong, write to [email protected].