Skip to content
Compare

Evaluate

Betterleaks

Betterleaks scans for exposed credentials in Git history, files, and streamed text. It also supports sources such as GitHub, GitLab, and S3. Version v1.10.1 has 422 built-in rules that can report a finding.

What a finding tells you

A finding identifies a possible credential and where it appeared. Validation is optional. With validation enabled, 229 rules can check whether the credential is active. The other 193 rules have no validator.

Default Betterleaks configuration · Pulled Nov 17, 2026 · 39d5bdc (16 days ago)

Using Betterleaks in a workflow

Jump to rules
What you can scan
Git history, files, streamed text, and connected sources such as GitHub, GitLab, and S3.
What you configure
Use the bundled rules or customize detection filters and companion requirements. Enable validation when you want rules with validators to check candidate credentials.
What you review
Review the rule and finding location, then use the reported confidence and any validation outcome your scan produced to prioritize the finding.

Betterleaks usage guide

Illustrative example

Require a companion value

A candidate Algolia API key appears on its own in a scanned fragment. The bundled rule also requires an application ID. A matching application ID in the same fragment satisfies the companion requirement, and an enabled validator can use the pair.

Example documentationRule source

How you can use Betterleaks

Scan code and connected sources
Scan staged Git changes, GitHub and GitLab resources, Hugging Face repositories, or S3 objects. Supported sources
Recheck a known credential
Select a rule with a validator to check a known credential independently of its original source. Standalone validation
Triage and share findings
Use an earlier JSON report as a baseline to suppress known findings. Export scan results as SARIF, JSON, CSV, or JUnit. Reporting options
Understand why a match was reported
Default confidence estimates how likely a match is to be a secret. A required companion must appear in the specified window or, by default, in the same scanned fragment. Optional values add context when found. A rule can also filter a candidate before reporting it. Component windows use L for lines and C for characters. Betterleaks supports to discard ordinary text. See the generic API key rule.

Built-in Betterleaks rules

Jump to comparison

385 of 422 rules declare a filter that can discard a match before it is reported.

Showing rules 1–6 of 422

  • 1password-secret-keyNo validator

    Uncovered a possible 1Password secret key, potentially compromising access to secrets in vaults.

    Default confidence high · Has a rule-level filter

  • 1password-service-account-tokenHas a validator

    Uncovered a possible 1Password service account token, potentially compromising access to secrets in vaults.

    Default confidence high · Has a rule-level filter

  • abuseipdb-api-key.1Has a validator

    AbuseIPDB API key, which may allow access to IP reputation data and abuse-reporting APIs.

    Default confidence high · Has a rule-level filter

  • adafruit-api-keyNo validator

    Identified a potential Adafruit API Key, which could lead to unauthorized access to Adafruit services and sensitive data exposure.

    Default confidence high · Has a rule-level filter

  • adobe-client-idNo validator

    Detected a pattern that resembles an Adobe OAuth Web Client ID, posing a risk of compromised Adobe integrations and data breaches.

    Default confidence high · Has a rule-level filter

  • adobe-client-secretNo validator

    Discovered a potential Adobe Client Secret, which, if exposed, could allow unauthorized Adobe service access and data manipulation.

    Default confidence high · Has a rule-level filter

Compare with TruffleHog

Same scenario in both scanners

Imagine a classic GitHub personal access token was committed to a repository. This walkthrough uses the shipped rule and Atlas’s detector mapping to show what each tool can tell you. Atlas did not run a scan or test a credential for this example.

Scan scope
BetterleaksSearch Git history for a candidate in a past commit.
TruffleHogSearch Git history for a candidate in a past commit.
Detection
Betterleaksgithub-pat
TruffleHoggithub
Validation
BetterleaksThe rule declares a validator.
TruffleHogThe matched detector has a recorded verifier.
Impact and response
BetterleaksAtlas records detection and any declared validation for this rule.
TruffleHogA matched detector has an analyzer. Confirm the scope supported for the credential you investigate.
Triage and rollout
BetterleaksReview the rule, finding location, and report options in the usage guide.
TruffleHogUse the detector and finding location to triage. See the usage guide for filtering and reporting.
Evidence
BetterleaksShipped rule and usage documentation.
TruffleHogReviewed mapping and detector catalog.

Betterleaks usage guideBetterleaks rule sourceTruffleHog usage guideTruffleHog github detector

Coverage at a glance

Every Betterleaks rule has a reviewed decision.

422 Betterleaks rules, matched against TruffleHog

715 TruffleHog detectors of 894 have no mapped Betterleaks rule.

Among 207 rules with matched TruffleHog detectors

Match a detector that can verify
207
Match a detector with an analyzer
57

Betterleaks and TruffleHog matches

How to read this

Betterleaks validation belongs to the rule. Filter by what the matched TruffleHog detectors can do. Verification checks whether a credential works. Analyzers report what it can access. A match can cover only some credential formats.

3 of 422 rules match

Betterleaks rules, sorted by Provider descending
Provider, sort ascendingRule, sort ascendingBetterleaks validation, sort ascendingMatched TruffleHog detectors, sort ascending
GitLabgitlab-oauth-app-secret (opens the Betterleaks rule source at 39d5bdc in a new tab)

Identified a GitLab OIDC Application Secret, risking access to apps using GitLab as authentication provider.

No
Reviewed
GitLabgitlab-pat (opens the Betterleaks rule source at 39d5bdc in a new tab)

Identified a GitLab Personal Access Token, risking unauthorized access to GitLab repositories and codebase exposure.

Yes
Reviewed
GitLabgitlab-pat-routable-versioned (opens the Betterleaks rule source at 39d5bdc in a new tab)

Identified a GitLab Personal Access Token (routable, versioned), risking unauthorized access to GitLab repositories and codebase exposure.

Yes
Reviewed

Context and method

TruffleHog detectors with no mapped Betterleaks rule715 of 894 detectors

No confirmed rule and no unreviewed candidate names these detectors. Betterleaks may still catch some of them under a name the first pass did not match, or with a generic rule.

How to read this pageWhat each label means, and what Atlas does not check.
Validation
The shipped Betterleaks rule declares a validation method. Atlas reads the rule definition.
Rule link
Each rule id opens its definition in the Betterleaks repo at the pinned commit, so a match can be checked against the source.
Provider
Read from the lead words of the rule id and matched to TruffleHog’s provider names.
Same token prefix
The rule and the TruffleHog detector both look for the same token prefix (for example xoxb-), taken from each side’s keywords. Strong evidence, still unreviewed.
Name only
Provider and rule-id words agree, but neither side has a token prefix to compare. Weak evidence; check before counting it.
No match found
No TruffleHog detector shares the token prefix or name, the names agree but the token prefixes differ, or a person rejected the candidate. TruffleHog may still detect it. Hover the label for the reason.
Reviewed
A person confirmed the match in data/reference/betterleaks-match-reviews.json. Hover the label for who and when.
Counts
Rule counts are not detection quality. One provider can have several rules, and rules differ in precision.
  • Rule ids and descriptions from the default config shipped in the newest stable release. Regexes are not stored.
  • Default confidence, companion rules and rule-level filters describe detection before any credential check.
  • Validation means the rule defines a validate expression. Atlas does not run it.
  • Rules marked skipReport are components other rules use and are left out. Kingfisher imports a different Betterleaks revision, so counts can differ.

Source: config/betterleaks.toml at v1.10.1. Built-in rules only; custom configs are not included.

Left out: 44 rules that Betterleaks does not report on its own (skipReport: a component other rules use, never reported on its own).