Packages and Binaries:
gitleaks
Protect and discover secrets using Gitleaks 🔑 (program)
Gitleaks is a SAST tool for detecting and preventing hardcoded
secrets like passwords, API keys, and tokens in git repos. Gitleaks is
an easy-to-use, all-in-one solution for detecting secrets, past or
present, in your code.
This package contains the command-line tool ‘gitleaks’.
Installed size: 9.88 MB
How to install: sudo apt install gitleaks
Dependencies:
- libc6
gitleaks
root@kali:~# gitleaks -h
Gitleaks scans code, past or present, for secrets
Usage:
gitleaks [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
dir scan directories or files for secrets
git scan git repositories for secrets
help Help about any command
stdin detect secrets from stdin
version display gitleaks version
Flags:
-b, --baseline-path string path to baseline with issues that can be ignored
-c, --config string config file path
order of precedence:
1. --config/-c
2. env var GITLEAKS_CONFIG
3. env var GITLEAKS_CONFIG_TOML with the file content
4. (target path)/.gitleaks.toml
If none of the four options are used, then gitleaks will use the default config
--enable-rule strings only enable specific rules by id
--exit-code int exit code when leaks have been encountered (default 1)
-i, --gitleaks-ignore-path string path to .gitleaksignore file or folder containing one (default ".")
-h, --help help for gitleaks
--ignore-gitleaks-allow ignore gitleaks:allow comments
-l, --log-level string log level (trace, debug, info, warn, error, fatal) (default "info")
--max-decode-depth int allow recursive decoding up to this depth (default "0", no decoding is done)
--max-target-megabytes int files larger than this will be skipped
--no-banner suppress banner
--no-color turn off color for verbose output
--redact uint[=100] redact secrets from logs and stdout. To redact only parts of the secret just apply a percent value from 0..100. For example --redact=20 (default 100%)
-f, --report-format string output format (json, csv, junit, sarif, template)
-r, --report-path string report file
--report-template string template file used to generate the report (implies --report-format=template)
-v, --verbose show verbose output from scan
--version version for gitleaks
Use "gitleaks [command] --help" for more information about a command.
golang-github-gitleaks-gitleaks-dev
Protect and discover secrets using Gitleaks 🔑 (Go library)
Gitleaks is a SAST tool for detecting and preventing hardcoded
secrets like passwords, API keys, and tokens in git repos. Gitleaks is
an easy-to-use, all-in-one solution for detecting secrets, past or
present, in your code.
This package contains the Go source code.
Installed size: 701 KB
How to install: sudo apt install golang-github-gitleaks-gitleaks-dev
Dependencies:
- golang-github-bobusumisu-aho-corasick-dev
- golang-github-charmbracelet-lipgloss-dev
- golang-github-fatih-semgroup-dev
- golang-github-gitleaks-go-gitdiff-dev
- golang-github-google-go-cmp-dev
- golang-github-masterminds-sprig-dev
- golang-github-rs-zerolog-dev
- golang-github-spf13-cobra-dev
- golang-github-spf13-viper-dev
- golang-github-stretchr-testify-dev
- golang-golang-x-exp-dev
- golang-gopkg-h2non-filetype.v1-dev
Updated on: 2026-May-25