Gitleaks

Gitleaks

SAST tool that scans git repositories, files, and stdin for hardcoded secrets like passwords, API keys, and tokens.

Category
Security
License
MIT
Platforms
Windows macOS Linux
Released
2018
Path
c:\gitleaks\gitleaks.exe
Benefits
Single static binary with no runtime dependencies. Fast scanning of full git history. Built-in detection rules for common secret formats with custom TOML config support. Outputs JSON, CSV, JUnit, or SARIF for CI integration. Supports baseline files and inline allow comments to suppress known false positives.
Notes
Use 'git' subcommand for repo history scans, 'dir' for directories, and 'stdin' for piped input. Exit code 1 indicates leaks found by default. Configure detection via .gitleaks.toml or GITLEAKS_CONFIG env var. Pre-commit hook available via gitleaks protect.
Used by
GitLab, Trello, 1Password, Mozilla
Version
Latest known: 8.30.1 (2026-03-21)

Try it

Agree to terms to run demos.