Gitleaks
Metrics as of , from the GitHub or GitLab API of each repository. Refreshed monthly.
What Gitleaks is
Gitleaks is a secret scanner that detects passwords, API keys and tokens. It scans git repositories, directories, files and input piped through stdin. Detection rules are defined in a TOML configuration file. Allowlists in that file suppress known false positives. A baseline report lets later scans show only new findings. Reports can be written as JSON, CSV, JUnit, SARIF or a custom template. It runs from the command line, as a pre-commit hook, or as a GitHub Action. Installation options include Homebrew, Docker images and building from Go source. The maintainer describes the project as feature complete. Future releases are limited to security patches.
Written from the project's README, read .
- Category
- Security testing
- License
- MIT
- Language
- Go
- Changelog
- Releases on GitHub
Repository metrics
Status
activeLast commit within 90 days of the fetch date.Computed from the last commit date and the archive flag on the fetch date. See the status rules.
Alternatives
Listed security testing tools, same primary language first, then by GitHub stars. Each line gives one fact from the tool's documentation where it differs from Gitleaks's, with its source. See also Gitleaks alternatives.
Trivy: Scan targets: Container images, filesystems, remote Git repositories, virtual machine images, Kubernetes. source: README
Nuclei: Scan targets: Target URLs and hosts, from a single target or a list file. source: README
ffuf: Scan targets: Web servers: content paths, virtual hosts, GET parameters and POST data. source: README
OSV-Scanner: Scan targets: Project dependencies, checked against the OSV database. source: README
sqlmap: Scan targets: Web application parameters: GET, POST, cookie, User-Agent and Referer values. source: Docs: Features
Promptfoo: Scan targets: LLM apps, through red teaming and vulnerability scanning. source: README
ZAP: Scan targets: Web applications. source: README
Nikto: Scan targets: Web servers: potentially dangerous files or programs, outdated server components. source: Docs: Overview & Description
Comparisons
How to install
brew install gitleaksQuestions
Is Gitleaks open source?
Yes. Gitleaks is released under MIT, an OSI-approved license, as reported by the GitHub API on 2026-09-22.
Is Gitleaks maintained?
On 2026-09-22, the last commit to the default branch was on 2026-07-22, so the listed status is active. Rule: Last commit within 90 days of the fetch date.
How many GitHub stars does Gitleaks have?
29,428 stars on 2026-09-22, from the GitHub API. The number is refreshed at each monthly update.
What language is Gitleaks written in?
The repository's primary language, as reported by the GitHub API, is Go.
How do I install Gitleaks?
The README gives this command: brew install gitleaks
Sources
- GitHub REST API: repository, read
- GitHub REST API: commits, read
- GitHub REST API: latest release, read
- GitHub REST API: contributors, read
- README, read