# LeakWatch vs TruffleHog — LeakWatch

> TruffleHog is an open-source CLI you run yourself. LeakWatch is a hosted service that watches public git and alerts you. Where each fits and how to use both.

Source: https://leakwatch.net/blog/leakwatch-vs-trufflehog

---

[← Blog](/blog)

# LeakWatch vs TruffleHog: an honest comparison

November 10, 2026 · 0xCr0c0 · 10 min read

![LeakWatch logo](/brand/mark-on-dark.svg)

LeakWatch

vs

![Truffle Security logo](/blog/compare/trufflesecurity.png)

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

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](https://github.com/trufflesecurity/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](/blog/leak-data-report-october-2026). There is a [revocation guide for each credential type](/secrets), and the public numbers are in the [leak data by provider](/leaks/trends) view.

*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](/docs?tab=ci) 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](/product), 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](/blog/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 `security@leakwatch.net`.

![Gabriel Diyan, founder of LeakWatch](/brand/Photo-Gabriel-Diyan.webp)

Gabriel Diyan (0xCr0c0)

Cybersecurity student, founder of LeakWatch. I built and run the scanner described here — the detection patterns, the false-positive classifier and the provider validators are mine. [More about who I am](/about).

[GitHub](https://github.com/Leakwatch-Scan) · [X](https://x.com/LeakwatchScan) · [LinkedIn](https://www.linkedin.com/in/gabriel-diyan-80a378375) · [GitHub (personal)](https://github.com/crocogab)

Are your own keys in public repositories? Type a GitHub, GitLab or Codeberg username and see in seconds — free, read-only, nothing stored.

[Check your account](/)

LeakWatch

Secrets leak into public commits every minute. This watches the forges for yours. Built and run by [Gabriel Diyan](/about), a cybersecurity student — [why LeakWatch exists](/about).

Scan

-   [Product](/product)
-   [Live feed](/leaks)
-   [Trends](/leaks/trends)
-   [API docs](/docs)
-   [CI/CD](/docs?tab=ci)

Read

-   [Blog](/blog)
-   [Secret guides](/secrets)
-   [Changelog](/changelog)
-   [About](/about)

Verify

-   [Security](/security)
-   [Privacy](/privacy)
-   [Terms](/terms)
-   [Legal](/legal)
-   [Contact](/contact)
-   [Status](https://status.leakwatch.net)

© 2026 LeakWatch

[GitHub](https://github.com/Leakwatch-Scan)[X](https://x.com/LeakwatchScan)
