secret-scanning

Installation
SKILL.md

Secret Scanning

Overview

Detect hardcoded secrets — API keys, tokens, passwords, PEM private keys, AWS access keys, GitHub PATs, JWTs, Slack tokens, OpenAI keys — before they land in commits, pushes, or production. This skill wraps three layered tools:

Tool Speed False-positive rate Live-verify? Use case
gitleaks Fast (regex-based) Medium No Pre-commit / pre-push hooks; CI quick gate
trufflehog Slower (verifies via API calls) Low (--only-verified) Yes CI deeper scan; reduce triage noise
in-house scripts/secrets-scan.sh Fast (regex catalog of ~18 patterns) Medium-high (curated allowlist) No Defense-in-depth; covers patterns gitleaks may miss; offline-safe; POSIX shells (Linux/macOS/Git Bash)
in-house scripts/secrets-scan.py Fast (same catalog — stdlib-only Python port of the .sh, full parity) Medium-high (same curated allowlist) No Cross-platform (Linux/macOS/Windows, Python 3.10+); enterprise Windows where bash/PowerShell are blocked

The recommended posture in 2026 is layered: gitleaks at pre-commit for speed, trufflehog with --only-verified in CI to eliminate triage burden, in-house regex as a backstop.

Installs
2
GitHub Stars
6
First Seen
Sep 28, 2026