Skip to content
Compare

Evaluate

Gitleaks

Gitleaks scans Git history, files, directories, and streamed text for potential secrets. Version v8.30.1 includes 222 built-in rules for credentials such as API keys, passwords, and tokens.

What a finding tells you

A finding names the rule that matched and points to the evidence, such as a file and line or a commit in Git history. These built-in rules do not contact the provider to verify the credential or look up its permissions.

Default Gitleaks configuration · Pulled Nov 17, 2026 · 83d9cd6 (17 days ago)

Using Gitleaks in a workflow

Jump to rules
What you can scan
Git changes and history, local files and directories, and streamed text.
What you configure
Start with the bundled detection rules. Tune patterns, entropy thresholds, or allowlists in your configuration. Save an earlier report as a baseline to focus on new findings.
What you review
Review the finding location and rule ID. Reports include formats such as JSON and SARIF for review or CI.

Gitleaks usage guide

Illustrative example

Review new findings against a baseline

A Git history audit reports an older finding already recorded in a baseline. A later scan finds that same entry and a new candidate in another file. With the baseline applied, Gitleaks reports the new candidate for review.

Example documentation

How you can use Gitleaks

Understand why a rule matched
A rule can check a pattern, restrict file paths, or require a minimum score in the matched text. exclude known exceptions. Custom can require another match nearby. Rule configuration
Review new findings in CI
Compare a scan against a to surface new findings. Export results as JSON, SARIF, CSV, or JUnit. Baselines · Report formats

Built-in Gitleaks rules

Jump to comparison

Showing rules 1–6 of 222

  • 1password-secret-key

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

  • 1password-service-account-token

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

  • adafruit-api-key

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

  • adobe-client-id

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

  • adobe-client-secret

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

  • age-secret-key

    Discovered a potential Age encryption tool secret key, risking data decryption and unauthorized access to sensitive information.

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
GitleaksSearch Git history for a candidate in a past commit.
TruffleHogSearch Git history for a candidate in a past commit.
Detection
Gitleaksgithub-pat
TruffleHoggithub
Validation
GitleaksThe rule reports a candidate finding.
TruffleHogThe matched detector has a recorded verifier.
Impact and response
GitleaksAtlas 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
GitleaksReview 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
GitleaksShipped rule and usage documentation.
TruffleHogReviewed mapping and detector catalog.

Gitleaks usage guideGitleaks rule sourceTruffleHog usage guideTruffleHog github detector

Coverage at a glance

Every Gitleaks rule has a reviewed decision.

222 Gitleaks rules, matched against TruffleHog

789 TruffleHog detectors of 894 have no mapped Gitleaks rule.

Among 125 rules with matched TruffleHog detectors

Match a detector that can verify
125
Match a detector with an analyzer
42

Gitleaks and TruffleHog matches

How to read this

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.

1 of 222 rules match

Gitleaks rules, sorted by Provider descending
Provider, sort ascendingRule, sort ascendingMatched TruffleHog detectors, sort ascending
Grafanagrafana-service-account-token (opens the Gitleaks rule source at 83d9cd6 in a new tab)

Discovered a Grafana service account token, posing a risk of compromised monitoring services and data integrity.

Reviewed

Context and method

TruffleHog detectors with no mapped Gitleaks rule789 of 894 detectors

No confirmed rule and no unreviewed candidate names these detectors. Gitleaks 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
Gitleaks rules have no validation step.
Rule link
Each rule id opens its definition in the Gitleaks 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/gitleaks-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 release. Regexes are not stored.
  • Gitleaks rules have no validation step, so no rule claims to check a credential live.
  • Custom or extended configs a team adds are not included.

Source: config/gitleaks.toml at v8.30.1. Built-in rules only; custom configs are not included.