| name | security-audit |
| description | On-demand security audit checklist based on OWASP Top 10. Use before any git push. Reports written to .attacca/audits/latest.md with verdict that unlocks the push gate. |
Security Audit Skill
On-demand security audit before push. Can delegate to security-auditor subagent or run inline.
When to Use
- Before any git push (pre-push gate)
- After implementing authentication or authorization
- When adding new API endpoints
- When handling user input or file uploads
- When adding dependencies
- When user requests a security review
Quick Flow
- Run checks (inline or delegate to security-auditor subagent with file paths only)
- Triage findings into CRITICAL, HIGH, MEDIUM, LOW
- Write report to
.attacca/audits/latest.md
- Verdict:
VERDICT: CLEAN (if zero CRITICAL/HIGH) or VERDICT: FINDINGS
- Push gate: blocked if verdict is FINDINGS; unlocked if CLEAN
Audit Checklist (OWASP Top 10)
A1. Broken Access Control
A2. Cryptographic Failures
A3. Injection
A4. Insecure Design
A5. Security Misconfiguration
A6. Vulnerable Components
A7. Authentication Failures
A8. Data Integrity
A9. Logging & Monitoring
A10. SSRF
Report Format
Write to .attacca/audits/latest.md:
# Security Audit
**Date**: [ISO date] | **Scope**: [what was audited]
## Findings
### CRITICAL (Block Push)
| # | Category | File:Line | Issue | Remediation |
|---|----------|-----------|-------|------------|
| 1 | A3-Injection | app.js:42 | SQL concat | Use parameterized query |
### HIGH (Fix Before Next Push)
| # | Category | File:Line | Issue | Remediation |
|---|----------|-----------|-------|------------|
### MEDIUM (Fix This Sprint)
| # | Category | File:Line | Issue | Remediation |
|---|----------|-----------|-------|------------|
### LOW (Track)
| # | Category | File:Line | Issue | Remediation |
|---|----------|-----------|-------|------------|
## Passed Checks
- [x] [Check that passed]
- [x] [Check that passed]
## Notes
[Any context or recommendations]
VERDICT: CLEAN
Or:
...
VERDICT: FINDINGS
Delegation Option
Optionally invoke security-auditor subagent with file paths only (no implementation details):
Please audit these files for OWASP Top 10 vulnerabilities:
- src/auth/login.ts
- src/api/users.ts
- src/db/queries.ts
Subagent audits and returns findings. You triage and write the final report.
Push Gate
- VERDICT: CLEAN → push is allowed
- VERDICT: FINDINGS → push is blocked until verdict changes to CLEAN
Hook greps for "VERDICT: CLEAN" in .attacca/audits/latest.md before push.