All tools

OSINT

Gitleaks

SAST tool for detecting secrets in git repos.

beginner
Linux
macOS
Windows
Reconnaissance
Defense

Authorized testing only. Practice on systems you own, isolated labs, or targets with written permission. Unauthorized access is illegal.

When

Preventive scanning of codebases and historical commits.

How

gitleaks detect in repo; add pre-commit hooks.

Why

Shift-left security skill that clients love.

Commands & usage

gitleaks detect -v -s .
gitleaks protect --staged

Commands are educational examples. Adapt hosts, paths, and rates to your authorized scope.

Tags

secrets
git
sast

Related in OSINT