/security-audit
Multi-agent security audit with findings saved to timestamped report.
Usage
/security-audit yourbench # Full security review
/security-audit coordinatr # Audit specific project
Audit Dimensions
Five security-auditor agents run in parallel:
| Agent |
Focus Area |
Checks |
| Agent 1: Auth & Access |
Authentication, Authorization |
JWT handling, session management, RBAC, privilege escalation |
| Agent 2: Input & Data |
Injection, Validation |
SQL injection, XSS, command injection, input sanitization |
| Agent 3: Crypto & Secrets |
Cryptography, Secrets |
Hardcoded credentials, weak crypto, key management, PII |
| Agent 4: Config & Deploy |
Configuration, Infrastructure |
CORS, CSRF, security headers, exposed endpoints, debug mode |
| Agent 5: Dependencies |
Supply Chain, Libraries |
Vulnerable packages, outdated deps, license issues |
OWASP Top 10 Coverage
| OWASP Risk |
Coverage |
| A01 Broken Access Control |
Agent 1 |
| A02 Cryptographic Failures |
Agent 3 |
| A03 Injection |
Agent 2 |
| A04 Insecure Design |
Agents 1, 4 |
| A05 Security Misconfiguration |
Agent 4 |
| A06 Vulnerable Components |
Agent 5 |
| A07 Auth Failures |
Agent 1 |
| A08 Data Integrity Failures |
Agents 2, 3 |
| A09 Logging Failures |
Agent 4 |
| A10 SSRF |
Agent 2 |
Execution Flow
1. Validate Project
ls spaces/[project]/
2. Launch Parallel Audits
5 security-auditor agents run concurrently with focused prompts.
3. Consolidate Findings
Aggregate by:
- Severity: Critical, High, Medium, Low, Info
- Category: OWASP classification
- Location: File path + line number
- Remediation: Specific fix guidance
4. Generate Report
Write: .claude/temp/security-audit-[project]-[timestamp].md
Report Structure
# Security Audit: [Project Name]
**Date**: YYYY-MM-DD HH:MM:SS
## Executive Summary
- Critical issues: X
- High severity: Y
- Total findings: Z
## Critical Issues
### [Issue Title]
- **Severity**: Critical
- **Category**: SQL Injection (CWE-89)
- **Location**: src/api/users.py:42
- **Description**: [What's wrong]
- **Impact**: [What could happen]
- **Remediation**: [How to fix]
## High Severity Issues
[...]
## Recommendations
- Priority actions
- Long-term improvements
## Scan Coverage
- Files scanned: X
- Technologies: Z
When to Use
- Before production deployments
- After major feature additions
- Monthly security reviews
- Before external security audits
- After dependency updates
Output Location
.claude/temp/security-audit-yourbench-2026-01-08-143022.md
Reports saved to .claude/temp/ (gitignored) for review.
Notes
- Read-only: No code changes made
- Non-blocking: Doesn't prevent commits
- Parallel execution: Agents run concurrently
- False positives possible: Manual review recommended
Integration
Implement security feature → /security-audit → Fix issues → /commit
1---2name: security-audit-163description: Comprehensive security audit of codebase using multiple security-auditor agents. Use before production deployments or after major features.4---5
6# /security-audit
7
8Multi-agent security audit with findings saved to timestamped report.
9
10## Usage
11
12```bash
13/security-audit yourbench # Full security review
14/security-audit coordinatr # Audit specific project
15```
16
17## Audit Dimensions
18
19Five security-auditor agents run in parallel:
20
21| Agent | Focus Area | Checks |
22|-------|------------|--------|
23| **Agent 1: Auth & Access** | Authentication, Authorization | JWT handling, session management, RBAC, privilege escalation |
24| **Agent 2: Input & Data** | Injection, Validation | SQL injection, XSS, command injection, input sanitization |
25| **Agent 3: Crypto & Secrets** | Cryptography, Secrets | Hardcoded credentials, weak crypto, key management, PII |
26| **Agent 4: Config & Deploy** | Configuration, Infrastructure | CORS, CSRF, security headers, exposed endpoints, debug mode |
27| **Agent 5: Dependencies** | Supply Chain, Libraries | Vulnerable packages, outdated deps, license issues |
28
29## OWASP Top 10 Coverage
30
31| OWASP Risk | Coverage |
32|------------|----------|
33| A01 Broken Access Control | Agent 1 |
34| A02 Cryptographic Failures | Agent 3 |
35| A03 Injection | Agent 2 |
36| A04 Insecure Design | Agents 1, 4 |
37| A05 Security Misconfiguration | Agent 4 |
38| A06 Vulnerable Components | Agent 5 |
39| A07 Auth Failures | Agent 1 |
40| A08 Data Integrity Failures | Agents 2, 3 |
41| A09 Logging Failures | Agent 4 |
42| A10 SSRF | Agent 2 |
43
44## Execution Flow
45
46### 1. Validate Project
47```bash
48ls spaces/[project]/
49```
50
51### 2. Launch Parallel Audits
525 security-auditor agents run concurrently with focused prompts.
53
54### 3. Consolidate Findings
55Aggregate by:
56- **Severity**: Critical, High, Medium, Low, Info
57- **Category**: OWASP classification
58- **Location**: File path + line number
59- **Remediation**: Specific fix guidance
60
61### 4. Generate Report
62```bash
63Write: .claude/temp/security-audit-[project]-[timestamp].md
64```
65
66## Report Structure
67
68```markdown
69# Security Audit: [Project Name]
70**Date**: YYYY-MM-DD HH:MM:SS
71
72## Executive Summary
73- Critical issues: X
74- High severity: Y
75- Total findings: Z
76
77## Critical Issues
78### [Issue Title]
79- **Severity**: Critical
80- **Category**: SQL Injection (CWE-89)
81- **Location**: src/api/users.py:42
82- **Description**: [What's wrong]
83- **Impact**: [What could happen]
84- **Remediation**: [How to fix]
85
86## High Severity Issues
87[...]
88
89## Recommendations
90- Priority actions
91- Long-term improvements
92
93## Scan Coverage
94- Files scanned: X
95- Technologies: Z
96```
97
98## When to Use
99
100- Before production deployments
101- After major feature additions
102- Monthly security reviews
103- Before external security audits
104- After dependency updates
105
106## Output Location
107
108```
109.claude/temp/security-audit-yourbench-2026-01-08-143022.md
110```
111
112Reports saved to `.claude/temp/` (gitignored) for review.
113
114## Notes
115
116- **Read-only**: No code changes made
117- **Non-blocking**: Doesn't prevent commits
118- **Parallel execution**: Agents run concurrently
119- **False positives possible**: Manual review recommended
120
121## Integration
122
123```
124Implement security feature → /security-audit → Fix issues → /commit
125```