Gitleaks
Open-source scanner that detects hard-coded secrets such as API keys and passwords in Git history.
Gitleaks scans repositories, commits and files for secrets using regex and entropy-based rules, and runs as a pre-commit hook or CI step to stop credentials from being pushed. Rules are configurable in TOML for organisation-specific patterns.
- Type
- Security
- Category
- Security
- Maintainer
- Truffle Security
- First released
- 2018
- License
- Open source (MIT)
- Pricing
- Open source
- Level
- Beginner
- Technologies
- security, git, secrets
- GitHub stars
- 31,581
- Latest release
- [object Object]
- Last verified
- 26 Nov 2026
What Gitleaks is used for
- Pre-commit secret detection
- Auditing repository history
- CI secret scanning
Strengths
- Fast, single binary
- Configurable rules
- Free
Limitations
- Regex rules produce some false positives
- Detects but does not rotate leaked secrets
How it relates to other tools
- Gitleaks works with Git
- Gitleaks works with GitHub Actions