Skip to content
← Blog

LeakWatch vs TruffleHog: an honest comparison

· 0xCr0c0 · 10 min read

LeakWatch
vs
TruffleHog

Short answer: pick TruffleHog if you want an open-source scanner you run yourself, inside your own pipeline, on the sources you choose, including non-git sources and offline environments. Pick LeakWatch if you want a hosted service that keeps watching public git and your deployed site, and alerts you when a key shows up. Many teams use both: TruffleHog before code leaves the developer’s machine, LeakWatch on public repositories and production.

At a glance

LeakWatch TruffleHog
Type Hosted service Open-source CLI you run
Live validation Yes, a read-only check at the provider Yes, --results=verified reports only verified credentials
Git hosts GitHub, GitLab, Codeberg (public monitoring) Any git host you can clone or reach
Non-git sources (S3, Docker images) No Yes
Continuous monitoring of public git Yes No, it scans what you point it at
Alerts built in Yes: email, Discord, Slack No, you route the results yourself
Scans deployed website Yes, on a domain you have verified No
CI gate without installation Yes, one HTTPS call with curl and jq No, install it in the runner image
Custom patterns Yes, self-service Yes, in a configuration file you own
Works offline or local No, it is hosted Yes, runs locally (verification needs network access)
Price Free tier; Solo from 4.99€/month Free to use
BeforepushCIpipelineYour repos'historyPublic git youdon't controlDeployedwebsiteIs the keystill live?LeakWatchLeakWatch: Before push — alerts afterNoalerts afterLeakWatch: CI pipeline — 1 HTTPS callYes1 HTTPS callLeakWatch: Your repos' history — deep scanYesdeep scanLeakWatch: Public git you don't control — forks, gists…Yesforks, gists…LeakWatch: Deployed website — verified domainYesverified domainLeakWatch: Is the key still live? — read-only checkYesread-only checkTruffleHogTruffleHog: Before push — pre-commitYespre-commitTruffleHog: CI pipeline — installedYesinstalledTruffleHog: Your repos' history — any cloneYesany cloneTruffleHog: Public git you don't control — on demandNoon demandTruffleHog: Deployed website — NoTruffleHog: Is the key still live? — verified modeYesverified mode

LeakWatch covers itTruffleHog covers it

Where each tool acts. Both check whether a key still works; they differ on who has to start the scan.

What TruffleHog does well

TruffleHog is an open-source command-line secret scanner from Truffle Security. You install it and run it yourself. Its README states an AGPL-3.0 license, and it is free to use. Its main strengths are:

  • It works on any git host. You point it at a clone or a URL you choose, so GitLab, Codeberg and self-hosted servers are all in reach. It scans full git history.
  • It verifies credentials. It checks them against the provider and can report only the verified ones, which keeps the output short.
  • It covers more than git. It also scans sources such as S3 buckets and Docker images.
  • It stays local. The code never leaves your machine, and it can run in offline or restricted environments, although verification itself needs network access to the provider.
  • It takes custom rules. You can write your own detectors in a configuration file that you own.

What LeakWatch does differently

It watches public git without being pointed at anything

LeakWatch polls the public GitHub events stream every 10 seconds, and it also watches GitHub Gists, GitLab projects and Codeberg, with an hourly GH Archive backfill. You do not schedule runs or choose repositories. In the first 21 days of October 2026 it confirmed 1,106 credentials in 858 public repositories that were live when we tested them; the method and limits are in the October data report. There is a revocation guide for each credential type, and the public numbers are in the leak data by provider view.

GitHub event stream: 691 live credentials691GitHub event streamGitHub, GH Archive: 303 live credentials303GitHub, GH ArchiveGitLab: 89 live credentials89GitLabGitHub Gists: 23 live credentials23GitHub Gists

Live credentials LeakWatch found in public git, 1–21 October 2026, by source. Nobody pointed a scanner at these repositories.

It checks the site you deployed

On a domain you have verified with a DNS TXT record or a file under /.well-known/, the site scan reads what a browser reads: HTML, JavaScript bundles, inline scripts and published source maps, where hard-coded keys are easy to find. It also flags an exposed /.env, a readable /.git/, SQL dumps, a missing CSP and cookies without Secure or HttpOnly.

It connects a repository to its live domain

LeakWatch groups a repository and its domain in one project. If a secret appears both in git and on the live site, it reports that first. A GitHub App with two read-only permissions triggers a scan within seconds of each push. The same secret across ten commits produces one alert, sent by email, Discord or Slack, with the secret always masked.

Its CI gate needs nothing installed

The 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 onward. Its CI setup is in the docs.

When to choose TruffleHog

  • You want an open-source tool that runs on your own infrastructure, in a pre-commit hook or in a CI runner you control.
  • You need to scan sources beyond git, such as S3 buckets or Docker images.
  • Your code must stay on your machine, or you work in an offline or restricted environment.
  • You want detectors written to your own rules, kept in a configuration file.
  • You already have someone to schedule the runs, store the results and route the alerts.

When to choose LeakWatch

  • You want a hosted service that watches public git and alerts you without you running anything.
  • You want the deployed site checked for keys in JavaScript bundles and source maps, not just the repository.
  • You want a CI gate that needs no installation in the runner.
  • You are an individual developer, a side project, a startup or a team of 3 to 10. The Free plan covers a username check and one deep scan and one site scan every 30 days. The Solo plan is 4.99€ per month, with a 14-day free trial on the monthly plan.

LeakWatch is a young product run by a small team. It is not an enterprise platform: there is no SSO or SAML, no ticketing integration and no large-organisation governance. It does not scan non-git sources such as Slack, S3 or Docker images, it does not block a push before it happens (it alerts within seconds after), and it has no offline mode because it is hosted.

Using both

The two tools cover different points in the lifecycle. Run TruffleHog where code is written and reviewed: in pre-commit hooks and in CI on the internal repositories and sources you own. Run LeakWatch on the public side, watching public git and your production domain, so that a key which slipped past local checks is still caught and reported. A secret that TruffleHog stops before the commit never reaches public git, and LeakWatch covers what gets through anyway. For the mechanics of the pipeline, see how LeakWatch secret scanning works. To try the public side without an account, the free username check shows how many exposed secrets are already tied to a GitHub, GitLab or Codeberg username.

FAQ

Is LeakWatch a replacement for TruffleHog?

No. TruffleHog is a command-line scanner you run on sources you choose, while LeakWatch is a hosted service that monitors public git and alerts you. They address overlapping risks from different angles, so many teams run both.

Is TruffleHog free?

Yes. According to its README it is open source under the AGPL-3.0 license and free to use. LeakWatch has a free tier, and its Solo plan costs 4.99€ per month or 39.99€ per year.

Can LeakWatch scan Slack, S3 buckets or Docker images?

No. LeakWatch covers public git on GitHub, GitLab and Codeberg, plus the websites you verify. TruffleHog can scan S3 buckets and Docker images, so it is the better fit for those sources.

Which one should I use in CI?

Both can gate a pipeline, but differently. TruffleHog must be installed in the runner image and run against your repositories. The LeakWatch CI gate is a single HTTPS call that needs nothing installed, but it does not validate keys against the provider.

Sources and method

This comparison was compiled from each product’s public documentation and pricing pages, checked on 10 November 2026, for generally available offerings. These products change often. If you see something out of date, send a correction to [email protected].