/ops-appsec:secret-scanfrom ops-appsec
Scans repositories and codebases for exposed secrets using trufflehog, gitleaks, and grep. Supports GitHub repos, orgs, users, dork searches, and local files with plan/execute modes.
Ships in ops-appsec. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Identify exposed secrets and sensitive material in approved targets.
Accept input as: ACTION TARGET [MODE]
Actions:
repo <owner/repo>org <org-name>user <username>dork <search phrase>local <path>Modes:
plan: recommendations + command set onlyexecute (default, preferred): run commands and report evidenceIf mode is omitted, default to execute.
Examples:
$secret-scan repo owner/repo$secret-scan org acme-corp execute$secret-scan local ./src execute$secret-scan dork "Acme Corp"execute mode, run routine in-scope command batches autonomously.trufflehog (preferred)gitleaksCheck availability:
which trufflehog
which gitleaks
which gh
mkdir -p recon/secret-scan/execute mode:
recon/secret-scan/<target-slug>-report.md# Preferred
trufflehog github --repo=https://github.com/<owner/repo> --only-verified --json
# Alternative
git clone --mirror https://github.com/<owner/repo> /tmp/secret-scan-target
gitleaks detect --source /tmp/secret-scan-target --report-format json --report-path recon/secret-scan/gitleaks.json
gh repo list <org> --public --limit 200 --json name,url,pushedAt
trufflehog github --org=<org> --only-verified --json
gh repo list <user> --public --limit 100 --json name,url,pushedAt
gh search code "<query>" --limit 20 --json repository,path,textMatches
trufflehog filesystem <path> --json
# or
gitleaks detect --source <path> --report-format json --report-path recon/secret-scan/gitleaks-local.json
grep -RInE 'AKIA[0-9A-Z]{16}|BEGIN [A-Z ]*PRIVATE KEY|api[_-]?key|token|password\\s*[:=]' <path>
grep -RInE 'mongodb(\\+srv)?://|postgres(ql)?://|mysql://|redis://|amqp://' <path>
# Secret Scan Report ? <target>
## Action: <repo|org|user|dork|local>
## Mode: <plan|execute>
## Executive Summary
- High-level findings and risk.
## Commands
- exact command
- execution status
## Findings
- secret type
- location (file/path/repo + line)
- confidence
- impact
- recommended response (rotate/revoke/remove/history rewrite)
## Next Steps
1. immediate containment
2. cleanup and hardening
3. verification rerun
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
secret-scanning, credential-leak, security-audit, trufflehog, gitleaks
3 skills in this plugin
/security-reviewPerform a security-focused review of current git changes. Use when reviewing staged/unstaged diffs, checking for vulnerabilities, and deciding merge readiness./webapp-reviewWeb application security testing workflow and checklist generation. Use when planning or executing web app assessment steps, including auth, API, injection, and configuration testing.npx claudepluginhub specterops/skills --plugin ops-appsecOther plugins' skills for the same job