Skip to content

Gitleaks

by Gitleaks (open-source project)

Free, MIT-licensed command-line tool that finds hardcoded secrets in Git repos, files and stdin.

  • Self-hosted
  • Small business
  • Mid-size
  • Enterprise
  • Open source
  • Free tier

From Gitleaks's own website and public documents, updated 4 Nov 2026. Not a hands-on review: I add a verdict only to products I use myself.

What is Gitleaks?

Gitleaks detects secrets such as passwords, API keys and tokens in Git repositories, in files and in anything piped in through stdin. It can run as a pre-commit hook in your repository and as a GitHub Action through the separate Gitleaks-Action project.

The MIT licence applies and the tool is free. It is a single command-line program with Docker images on Docker Hub, so it fits any CI system that can run a binary or container.

The README now carries a notice. The maintainer says Gitleaks is feature complete, will not accept new features, and that future releases will be security patches only. Attention is moving to a new project called Betterleaks. Teams starting a new rollout should weigh that before choosing it.

Best forTeams that want a free pre-commit and CI secret check

Gitleaks features

  • Git history scanning

    Scans repositories, including past commits, for secrets.

  • File and stdin scanning

    Scans plain files or any text piped in on standard input.

  • Pre-commit hook

    Can run as a pre-commit hook directly in the repository.

  • GitHub Action

    Gitleaks-Action runs scans in GitHub workflows.

  • Docker image

    Official image on Docker Hub for CI and containers.

  • MIT licence

    Free to use and modify.

Gitleaks integrations

  • GitHub Actions
  • pre-commit
  • Docker

From the vendor's own integration list or documentation.

Gitleaks pricing

Starting price

Free

  • Pricing modelFlat fee
  • Free tierYes
  • Free trialNot stated

Checked 4 Nov 2026. Prices change often; the vendor's page wins.

Security and compliance

Certifications
None listed on a public trust page
EU data residency
Not documented

Where it fits (NIST CSF 2.0)

  1. Govern (not covered)
  2. Identify (not covered)
  3. Protect
  4. Detect
  5. Respond (not covered)
  6. Recover (not covered)

Independent audits

No public independent audit found.

Good to know before you buy

  • The README says Gitleaks is feature complete and will get security patches only; the maintainer is moving to Betterleaks.
  • It finds secrets by pattern and does not check whether a credential is still valid.

Gitleaks alternatives

Aikido Security

Aikido Security BV

All-in-one security platform for small teams: code, dependencies, secrets, IaC and cloud with a free plan.

Checkmarx One

Checkmarx Ltd.

Application security platform covering SAST, SCA, API, IaC, secrets and supply chain checks for large teams.

Secrets security platform that monitors code, CI and collaboration tools and manages incident response.

GitHub's built-in code scanning, secret scanning and dependency alerts for repositories hosted on GitHub.

Invicti

Invicti Security Corp.

Application security platform built on proof-based DAST, with SAST, SCA, IaC and secrets add-ons.

Semgrep

Semgrep, Inc.

Static analysis, dependency scanning and secrets detection from one open-source engine and a paid platform.

Gitleaks vs Aikido SecurityGitleaks vs Checkmarx OneGitleaks vs GitGuardian

Frequently asked questions

What is Gitleaks?

Free, MIT-licensed command-line tool that finds hardcoded secrets in Git repos, files and stdin.

How much does Gitleaks cost?

Gitleaks starts at Free, according to its pricing page (checked 4 Nov 2026).

Is there a free version of Gitleaks?

Yes. Gitleaks has a free plan or tier; check the pricing page for its limits.

What are the alternatives to Gitleaks?

Products in the same category include Aikido Security, Checkmarx One, GitGuardian, GitHub Advanced Security, Invicti.

Have you tested Gitleaks?

Not yet. This page lists published facts only. When I test it, my verdict will appear at the top.

Sources (2), checked 4 Nov 2026
  1. github.com/gitleaks/gitleaks
  2. raw.githubusercontent.com/gitleaks/gitleaks/master/README.md

Spotted something out of date? Tell me through the contact page and I will fix it.

By using this site, you agree to the Privacy Policy.