| name | security-review |
| description | Use when asked to review code for security; before deploying auth, payment, or other sensitive code paths; when handling user input, secrets, or API endpoints; or when the word "security" appears in a task. |
Security Review
Perform a deep security audit of code changes or a specified module.
Workflow
Step 1 — Identify Scope
- If given a file: audit that file
- If given a PR/diff: audit all changed files
- If given a feature name: find all related files first
Step 2 — Run Security Checklist
Authentication & Authorization
Input Validation
Data Exposure
Secrets & Config
Dependencies
Common Vulnerabilities
Step 3 — Report
Output findings grouped by severity:
- 🔴 Critical — exploitable vulnerability, block deploy
- 🟠 High — serious risk, fix this sprint
- 🟡 Medium — should fix, low exploitability
- 🔵 Info — best practice suggestion
For each finding include:
- What the vulnerability is
- Where it exists (file + line)
- How it could be exploited
- The fix with code example