/security-toolkit:secret-scanning-investigatorfrom security-toolkit
Investigate GitHub secret scanning alerts to trace provenance, gather context, assess risk, and produce a structured report for security professionals. Handles one or more alerts in a single investigation using only open-source tools.
Ships in security-toolkit. 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.
DO NOT make assumptions or guesses. All reported information must be:
When providing estimates or possibilities (e.g., in risk assessment):
Any action that modifies state requires explicit safeguards:
Actions requiring double-confirmation:
Permitted without confirmation:
/tmpThis skill uses parallel sub-agents to accelerate investigation:
Phase 0: Tool Check (sequential)
|
Phase 0.5: Permission Pre-Approval (sequential - user interaction)
|
Phase 1: Mode Selection (sequential - user interaction)
|
+-----------------------------------------------------------+
| PARALLEL BLOCK A |
| Agent A1: Alert Acquisition -> Full alert + locations |
| Agent A2: Repository Clone -> Clone + file history |
| Agent A3: Commit/PR Context -> Author, PR, issues |
+-----------------------------------------------------------+
| (wait for all)
+-----------------------------------------------------------+
| PARALLEL BLOCK B |
| Agent B1: TruffleHog Scan -> Detection + verify |
| Agent B2: Gitleaks Scan -> Cross-validate + SARIF |
| Agent B3: Entropy Analysis -> Shannon entropy |
| Agent B4: Service Analysis -> GitHub App / token |
+-----------------------------------------------------------+
| (wait for all)
Phase 6.2: Active Verification (requires confirmation)
|
Phase 7: Risk Assessment (synthesis)
|
Phase 8: Report & Actions (user interaction)
Use the Task tool to launch parallel agents:
# Launch Parallel Block A (all three in single message)
<Task tool call 1: subagent_type="Explore", prompt="...", run_in_background=true>
<Task tool call 2: subagent_type="Explore", prompt="...", run_in_background=true>
<Task tool call 3: subagent_type="Explore", prompt="...", run_in_background=true>
READ: references/sub-agents/block-a.md for Agent A1-A3 prompts.
READ: references/sub-agents/block-b.md for Agent B1-B4 prompts and coordinator.
All agents write findings to /tmp/secret-scan-{alert_number}/:
alert.json (Agent A1)
provenance.json (Agent A2)
context.json (Agent A3)
trufflehog.json (Agent B1)
gitleaks.json (Agent B2)
entropy.json (Agent B3)
service.json (Agent B4)
The coordinator reads all artifacts ONCE during synthesis phase.
Verify required tools (gh, git) and offer to install optional tools (trufflehog, gitleaks, ggshield).
READ: references/phases/phase-0-setup.md for tool check details and installation commands.
Present all read-only commands upfront for batch approval to minimize interruptions.
READ: references/phases/phase-0.5-permissions.md for permission request format.
Fetch basic alert details and require user to select PASSIVE or ACTIVE mode.
READ: references/phases/phase-1-triage.md for mode selection prompts.
Deep investigation including alert acquisition, multi-tool scanning, provenance tracing, and secret-specific analysis.
READ: references/phases/phases-2-6-investigation.md for detailed procedures.
Evaluate risk factors and produce overall rating (CRITICAL/HIGH/MEDIUM/LOW).
READ: references/phases/phase-7-risk.md for risk criteria and assessment format.
After investigation completes, generate comprehensive report.
READ: references/report-template.md for the full report structure.
===============================================================
INVESTIGATION COMPLETE
===============================================================
Investigation Mode: {ACTIVE/PASSIVE}
Alerts Analyzed: {count}
Risk Rating: {CRITICAL/HIGH/MEDIUM/LOW}
OUTPUT OPTIONS:
1. Display report here
2. Save report to local file
3. Display and save
ADDITIONAL ACTIONS AVAILABLE:
4. Resolve alert(s) on GitHub
5. Generate SARIF output for security dashboard
6. Generate history cleanup commands
7. Generate prevention recommendations (pre-commit hooks, CI/CD)
8. Check for public leaks (requires ggshield)
9. Create GitHub issue with findings
10. Export timeline as CSV
11. Generate permanent permissions (settings.json)
Which options would you like? (comma-separated, e.g., "1,4,6"):
Each action has detailed implementation guidance:
| Option | Action | Reference |
|---|---|---|
| 4 | Resolve Alert | references/actions/resolve-alert.md |
| 5 | SARIF Output | references/actions/sarif-output.md |
| 6 | History Cleanup | references/actions/history-cleanup.md |
| 7 | Prevention | references/actions/prevention.md |
| 8 | Public Leak Check | Uses ggshield (inline) |
| 9 | GitHub Issue | references/actions/github-issue.md |
| 10 | Timeline CSV | references/actions/timeline-csv.md |
| 11 | Permissions | references/actions/permissions.md |
READ: references/actions/rotation-guides.md for credential rotation instructions.
When multiple alerts are provided:
| Error | Handling |
|---|---|
| Alert not found | Report error, continue with other alerts if batch |
| Insufficient permissions | Document limitation, use available data, note in report |
| Clone fails | Fall back to API-based history, note limitation |
| Tool not available | Skip that analysis, note in report what was missed |
| Rate limiting | Wait and retry with backoff, or document incomplete analysis |
| Active verification refused | Fall back to passive analysis for that secret |
| Tool | Required | Purpose | License | Install |
|---|---|---|---|---|
gh | Yes | GitHub API access | MIT | brew install gh |
git | Yes | History analysis | GPL-2.0 | Pre-installed |
trufflehog | No | Verification, analysis | Apache-2.0 | brew install trufflehog |
gitleaks | No | Cross-validation, SARIF | MIT | brew install gitleaks |
ggshield | No | Public leak check | MIT | pip install ggshield |
python3 | No | Entropy calculation | PSF | Pre-installed |
All optional tools are free and open-source.
# Single alert by URL
"Investigate https://github.com/org/repo/security/secret-scanning/19"
# Single alert by components
"Investigate secret scanning alert #19 in org/repo"
# Multiple alerts
"Investigate secret scanning alerts #19, #20, #21 in org/repo"
# All open alerts in repo
"Investigate all open secret scanning alerts in org/repo"
# Organization-wide
"Investigate all critical secret scanning alerts in the org organization"
LICENSE (opens in a new tab)README.md (opens in a new tab)references/actions/github-issue.md (opens in a new tab)references/actions/history-cleanup.md (opens in a new tab)references/actions/permissions.md (opens in a new tab)references/actions/prevention.md (opens in a new tab)references/actions/resolve-alert.md (opens in a new tab)references/actions/rotation-guides.md (opens in a new tab)references/actions/sarif-output.md (opens in a new tab)references/actions/timeline-csv.md (opens in a new tab)references/phases/phase-0-setup.md (opens in a new tab)references/phases/phase-0.5-permissions.md (opens in a new tab)references/phases/phase-1-triage.md (opens in a new tab)references/phases/phase-7-risk.md (opens in a new tab)references/phases/phases-2-6-investigation.md (opens in a new tab)references/report-template.md (opens in a new tab)references/sub-agents/block-a.md (opens in a new tab)references/sub-agents/block-b.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub swannysec/robot-tools --plugin security-toolkit5 skills in this plugin
/gha-hardeningGitHub Actions security hardening, configuration best practices, and
vulnerability detection. Covers workflow syntax, trigger security,
permission management, secrets handling, OIDC federation, supply chain
protection, self-hosted runner hardening, attack pattern recognition,
and security scanning tool rules.
60% security/hardening content, 40% implementation/configuration guidance.
Use this skill when users need to:
(1) Harden GitHub Actions workflows against injection, supply chain, or
privilege escalation attacks
(2) Configure workflow permissions, secrets, OIDC, or environment
protection rules securely
(3) Understand dangerous workflow patterns (pull_request_target + checkout,
workflow_run artifact poisoning, script injection via ${{ }})
(4) Choose or configure security scanning tools (zizmor, scorecard,
actionlint, poutine, harden-runner, Raven)
(5) Respond to supply chain incidents (tj-actions, reviewdog, compromised
action tags)
(6) Audit workflows for OWASP CI/CD risks, CIS benchmark compliance, or
OpenSSF Scorecard checks
(7) Write or review workflow YAML (triggers, matrix, reusable workflows,
composite actions, caching, artifacts, environments)
(8) Secure self-hosted runners (ephemeral patterns, network egress,
persistence detection, runner groups)
/security-vuln-analyzerEvidence-led security vulnerability analysis, fix verification, and guarded fix development for source repositories. Use for reported or suspected vulnerabilities, primary-control weaknesses, secure-code review, cross-model verification, remediation verification, and candidate security fixes. Supports Claude Code and Codex/ChatGPT Desktop with mandatory cold cross-provider verification for security claims./vantaVanta compliance platform operations — posture analysis, audit readiness,
vulnerability management, personnel compliance, and flexible reporting.
Complements the official vanta-mcp-plugin with analysis workflows,
direct API access for write operations, and reporting capabilities
not available in the Vanta UI.
50% compliance analysis/reporting, 30% API operations, 20% workflow orchestration.
Use this skill when users need to:
(1) Assess compliance posture across frameworks (gap analysis, control coverage,
cross-framework overlap)
(2) Prepare for audits (readiness checklist, missing evidence, policy expiry,
personnel compliance)
(3) Track and triage vulnerabilities with SLA awareness (approaching deadlines,
missed SLAs, severity breakdown)
(4) Monitor personnel compliance (overdue training, policy acceptance,
deactivated personnel in scope)
(5) Generate compliance reports and executive summaries (posture, readiness,
vulnerability SLA, personnel, custom)
(6) Perform bulk low-risk operations (set control owners, acknowledge SLA
misses, reactivate test entities, update person metadata)
(7) Understand risk and vendor impact on audit readiness (unmitigated risks,
stale vendor reviews, risk-control linkage)
(8) Query Vanta data that is hard to surface in the Vanta UI (cross-framework
control overlap, integration resource inventory, historical test status)
/vercel-forensicsPreservation-first forensic evidence collection and analysis for Vercel
security incidents (OAuth supply-chain compromise, env-var exposure,
audit-log triage). Produces a frozen evidence directory, an 8-section
findings report, and a rotation-worklist CSV for downstream rotation
tooling.
Strictly read-only. Never rotates, revokes, deletes, or redeploys. The
banned-ops list is absolute. Rotation is handed off to
subinium/vercel-incident-toolkit Flow C or codyhxyz/metapod-harden
`/rotate-vercel-env <KEY>` using this skill's CSV as input.
Use this skill when:
(1) Vercel publishes a security incident and you need to assess exposure
across your team / account / linked GitHub org.
(2) A customer suspects env-var exposure and wants an evidence bundle
plus prioritized rotation worklist by lunch Monday.
(3) Audit-log triage across Vercel activity + GitHub audit log is needed
without contaminating the very log under investigation.
(4) Forensic handoff to a rotation tool is required — this skill produces
the input, another tool performs the rotation.
Evidentiary bar: engineering-triage grade (SHA-256 manifest + software
WORM via `chmod -R a-w`). NOT court-admissible. For legally admissible
exhibits, use Velociraptor / KAPE / Magnet AXIOM, or wait for v2 which
adds GPG signing + dual-location manifests + RFC 3161 time-stamping.
Other plugins' skills for the same job