| 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. |
| origin | ECC |
Security Review Skill
This skill ensures all code follows security best practices and identifies potential vulnerabilities.
Detailed code examples (FAIL/PASS patterns) for every category below live in
reference.md. This file holds the decision criteria: when to activate, the
checklist of categories, and the verification steps to check off.
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
For each category, run through the verification steps below. See
reference.md for the corresponding FAIL/PASS code examples.
1. Secrets Management
See reference.md#1-secrets-management for examples.
2. Input Validation
See reference.md#2-input-validation for schema validation and file upload examples.
3. SQL Injection Prevention
See reference.md#3-sql-injection-prevention for examples.
4. Authentication & Authorization
See reference.md#4-authentication--authorization for JWT handling, authorization checks, and Supabase RLS examples.
5. XSS Prevention
See reference.md#5-xss-prevention for sanitization and CSP examples.
6. CSRF Protection
See reference.md#6-csrf-protection for examples.
7. Rate Limiting
See reference.md#7-rate-limiting for examples.
8. Sensitive Data Exposure
See reference.md#8-sensitive-data-exposure for logging and error-message examples.
9. Blockchain Security (Solana)
See reference.md#9-blockchain-security-solana for wallet and transaction verification examples.
10. Dependency Security
See reference.md#10-dependency-security for examples.
Security Testing
Cover authentication, authorization, input validation, and rate limiting with
automated tests. See reference.md#security-testing for example test cases.
Pre-Deployment Security Checklist
Before ANY production deployment:
Resources
Remember: Security is not optional. One vulnerability can compromise the entire platform. When in doubt, err on the side of caution.