| name | security-review |
| description | Security audit of the project or specified scope |
Run a security audit on the current project or specified scope: the task/scope the user described when invoking this skill (if none given, ask or infer from context)
Identify vulnerabilities yourself using the process below. Be evidence-based — cite file:line for every finding.
Scan Targets
- Secrets: API keys, passwords, tokens in code or config
- Injection: SQL, NoSQL, command, LDAP, XPath injection
- XSS: Reflected, stored, DOM-based
- Auth: Broken authentication, session management issues
- Access Control: Missing authorization checks, IDOR
- Data Exposure: Sensitive data in logs, errors, responses
- Dependencies: Known vulnerable packages
- Configuration: Debug mode in production, CORS misconfiguration
Process
- Scan for hardcoded secrets (multiple file types in one pass):
grep -rniE "password|secret|api_key|apikey|token|private_key" \
--include="*.js" --include="*.ts" --include="*.jsx" --include="*.tsx" \
--include="*.py" --include="*.go" --include="*.rb" --include="*.env" .
(or rg -ni "password|secret|api_key|apikey|token|private_key" -g '*.{js,ts,jsx,tsx,py,go,rb,env}')
- Check
.env files are gitignored; look for committed credentials.
- Review authentication and session flows.
- Check input validation on API endpoints.
- Review database queries for injection (string-concatenated SQL).
- Check dependency vulnerabilities:
npm audit / pip-audit / govulncheck or equivalent.
- Review CORS and security headers.
Output
Severity scale (canonical): CRITICAL / WARNING / INFO.
- CRITICAL — exploitable now or on deployment (secrets in code, injection, broken auth/access control). Blocks release.
- WARNING — should be fixed soon (weak config, missing hardening, limited-impact data exposure).
- INFO — advisory / hygiene.
## Security Audit Report
### CRITICAL
[Immediate action required — blocks deployment]
### WARNING
[Should be fixed soon]
### INFO
[Advisory / good to fix when convenient]
### Secure Patterns Found
[Positive findings — things done well]
Include remediation steps for each finding.