| name | security-review |
| description | Use this skill when adding authentication, handling user input, working with secrets, creating API endpoints, or implementing payment/sensitive features. Provides comprehensive security checklist and patterns. |
| when_to_use | Use when code touches authentication, secrets, user input, file uploads, payments, third-party APIs, or other sensitive surfaces. |
Security Review Skill
Ensures all code follows security best practices and identifies potential vulnerabilities.
When to Activate
- Implementing authentication or authorization
- Handling user input or file uploads
- Creating new API endpoints
- Working with secrets or credentials
- Implementing payment features
- Storing or transmitting sensitive data
- Integrating third-party APIs
Security Checklist Categories
Review each category. See references/vulnerability-patterns.md for WRONG/CORRECT code examples.
- Secrets Management -- No hardcoded secrets; all in env vars;
.env* gitignored
- Input Validation -- Schema validation; file upload size/type/extension checks
- SQL Injection -- Parameterized queries only; no string concatenation
- Auth & Authorization -- httpOnly cookies; RBAC; row-level/object-level authorization where needed
- XSS Prevention -- DOMPurify for user HTML; CSP headers configured
- CSRF Protection -- CSRF tokens on state-changing ops; SameSite=Strict cookies
- Rate Limiting -- All endpoints rate-limited; stricter on expensive operations
- Data Exposure -- No secrets in logs; generic error messages to users
- High-Risk Integrations -- Payments, wallets, third-party APIs, and webhooks validated when present
- Dependencies --
npm audit clean; lock files committed; Dependabot enabled
Full checkbox checklist: assets/security-checklist.md
Pre-Deployment Checklist
Before ANY production deployment, confirm ALL of the following:
References
Security is not optional. One vulnerability can compromise the entire platform. When in doubt, err on the side of caution.