ワンクリックで
security-audit
Comprehensive Go security audit — OWASP vulnerability scan, govulncheck, secrets detection, and combined severity report.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Comprehensive Go security audit — OWASP vulnerability scan, govulncheck, secrets detection, and combined severity report.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Run a comprehensive code review across architecture, security, testing, naming, and patterns. Invokes relevant reviewer agents in sequence. Use before merging features or at the end of a phase. With --quorum, dispatches multi-model analysis for higher confidence.
Run a comprehensive code review across architecture, security, testing, naming, and patterns. Invokes relevant reviewer agents in sequence. Use before merging features or at the end of a phase. With --quorum, dispatches multi-model analysis for higher confidence.
Guided end-to-end bug-fix workflow for Plan Forge tempering bugs — load → pre-fix review → write failing test → fix → validate → post-fix sweep → close. Composes /code-review, /clean-code-review, /forge-quench, and /test-sweep around the forge_bug_* tool surface so a fix never closes without a regression check.
Guided end-to-end bug-fix workflow for Plan Forge tempering bugs — load → pre-fix review → write failing test → fix → validate → post-fix sweep → close. Composes /code-review, /clean-code-review, /forge-quench, and /test-sweep around the forge_bug_* tool surface so a fix never closes without a regression check.
Plan-Forge-tuned comprehensive code review — runs public-surface diff, forge analysis, architecture / security / testing / patterns checks, plus Plan-Forge-specific gates (ACI compliance, dual-shell parity, branch model). Use before merging features or at the end of a phase. With --quorum, dispatches multi-model analysis.
Stack-agnostic Clean Code audit — module size, function-length/complexity (via your project's existing linter), long parameter lists, TODO/FIXME/HACK markers, commented-out code, debug-print leakage, and optional duplication detection. Produces a structured findings report with optional fix suggestions. Use before merges, at end of a feature, or as a regular hygiene pass.
| name | security-audit |
| description | Comprehensive Go security audit — OWASP vulnerability scan, govulncheck, secrets detection, and combined severity report. |
| argument-hint | [optional: 'full' (default), 'owasp', 'dependencies', 'secrets'] |
| tools | ["run_in_terminal","read_file","grep_search","forge_sweep"] |
"Run a security audit" / "Check for vulnerabilities" / "Scan for secrets" / "OWASP check"
4-phase security audit tailored for Go projects. See presets/shared/.github/skills/security-audit/SKILL.md for the full report format and secrets detection patterns.
"SELECT ... " + variable, fmt.Sprintf("SELECT ... %s", variable)$1 (pgx), ? (database/sql)os/exec.Command() or exec.CommandContext() with user inputtext/template used for HTML output (must use html/template)unsafe package usageInsecureSkipVerify: true)golang.org/x/crypto/bcrypt (not custom hashing)golang-jwt with proper algorithm validationsubtle.ConstantTimeCompare() for tokens/secretsgo.sum is committed (integrity verification)unsafe package usage (type safety bypass)reflect with user inputencoding/gob or encoding/json deserialization of untrusted data without validationgo vet -race check recommendationgovulncheck ./...
If govulncheck is not installed:
go install golang.org/x/vuln/cmd/govulncheck@latest && govulncheck ./...
Check for outdated modules:
go list -u -m all
If govulncheck is not available: Report and continue. Do NOT fail the entire audit.
Use the patterns from the shared skill (presets/shared/.github/skills/security-audit/SKILL.md Phase 3).
Additional Go patterns:
postgres://user:password@host/dbconst or var declarations.env files with real values (check if .env is in .gitignore)Exclude: vendor/, .git/, bin/, testdata/ (unless testdata/ contains real secrets)
Follow the shared skill report format. See presets/shared/.github/skills/security-audit/SKILL.md Phase 4.
***| Shortcut | Why It Breaks |
|---|---|
| "This scan is probably all false positives" | False positives exist, but dismissing findings without investigation misses real vulnerabilities. Verify each finding individually. |
| "We'll fix the medium-severity findings later" | Medium findings compound. An XSS + a missing header + an unvalidated input = a real exploit chain. Fix or explicitly accept the risk with documentation. |
| "Test files don't need security review" | Test files contain connection strings, mock credentials, and API patterns that leak into production via copy-paste. Review them at INFO level. |
| "The dependency scanner isn't installed, skip Phase 2" | Report the missing scanner and continue with other phases. Don't fail the entire audit — partial results are better than none. |
| "This is an internal API, OWASP doesn't apply" | Internal APIs get exposed through misconfiguration. OWASP applies to all HTTP surfaces regardless of intended audience. |
***After completing this skill, confirm:
*** only)search_thoughts("security audit", project: "<YOUR PROJECT NAME>", created_by: "copilot-vscode", type: "bug")capture_thought("Security audit (Go): <summary>", project: "<YOUR PROJECT NAME>", created_by: "copilot-vscode", source: "skill-security-audit", type: "bug")