SECURITY AUDIT SKILL
Objective
Identify security weaknesses before implementation or release.
Inspect
Authentication
- login
- logout
- sessions
- tokens
- OAuth
- password handling
- MFA where relevant
Authorization
- roles
- permissions
- ownership
- privilege escalation
- access control
Input
- validation
- sanitization
- injection
- unsafe parsing
- deserialization
Web
- XSS
- CSRF
- CORS
- CSP
- headers
- cookies
- clickjacking
APIs
- authentication
- authorization
- rate limiting
- validation
- excessive data exposure
- error leakage
Database
- access control
- injection
- query safety
- RLS where relevant
- exposed credentials
Secrets
Inspect:
.env configuration source Git history where appropriate
Never print actual secret values.
Dependencies
Use available security audit tools.
Output
Create:
docs/SECURITY_AUDIT.md
Finding:
SEC-001 Severity: Location: Evidence: Impact: Recommendation: Status:
Severity:
CRITICAL HIGH MEDIUM LOW INFO
Rule
Never declare:
"100% secure"
Use evidence-based conclusions.