security
Apply security best practices to code, architecture, and workflows. Trigger whenever the user mentions authentication, authorization, API keys, secrets, encryption, vulnerabilities, OWASP, SQL injecti
SKILL.mdskills/security/SKILL.md
GitHubSecurity Skill
When reviewing code or architecture, always check:
Secrets & Credentials
- No hardcoded API keys, passwords, or tokens in source code
- Secrets loaded from environment variables or secret managers (Vault, AWS Secrets Manager, etc.)
.envfiles in.gitignore
Authentication & Authorization
- Verify JWT/session token validation on every protected route
- Check for broken object-level authorization (BOLA/IDOR)
- Enforce least-privilege principles
- MFA recommended for sensitive operations
Input Validation
- Sanitize and validate all user inputs server-side
- Parameterized queries / ORM to prevent SQL injection
- Encode outputs to prevent XSS
- CSRF tokens on state-changing requests
API Security
- Rate limiting on all public endpoints
- CORS configured restrictively
- HTTPS enforced everywhere
- Sensitive data not exposed in URLs or logs
Dependency Security
- Flag outdated or CVE-listed packages
- Recommend
npm audit,pip-audit,snyk, or equivalent
Data Protection
- PII encrypted at rest and in transit
- Minimal data collection principle
- Proper error messages (no stack traces to users)
Output Format
Always provide:
- Findings — list of issues by severity (Critical / High / Medium / Low)
- Recommended Fix — concrete code or config change for each finding
- Quick Wins — top 3 things to fix immediately