Secrets discovery and remediation tool for developers.
Find secrets. Store them safely. Never commit them again.
go install github.com/tinkthemaker/sigil@latestRequires Go 1.24+.
sigil scan [path] # Scan directory, print findings
sigil scan [path] --json file # Output JSON report
sigil scan [path] --md file # Output Markdown report
sigil scan [path] --exit-code # Exit non-zero if critical findings
sigil hook install # Install git pre-commit hook
sigil hook uninstall # Remove git pre-commit hookSigil detects these secret types:
| Pattern | Severity |
|---|---|
| AWS Access Key ID | Critical |
| AWS Secret Access Key | Critical |
| GitHub PAT (classic / fine-grained) | Critical |
| OpenAI API Key | Critical |
| Private Key | Critical |
| Generic API Key | High |
| Generic Secret / Password | High |
| Bearer Token | High |
| Slack Token | High |
Block commits with critical secrets:
sigil hook installThe hook scans staged files and exits non-zero if any Critical severity findings are found.
Sigil can remediate findings by storing them in locket:
echo "SECRET" | locket add aws_prod_key --stdinMIT