security-audit
Runs a focused security hardening audit across API, auth, and dependency surfaces with actionable fixes
SKILL.md.agents/skills/security-audit/SKILL.md
GitHubSecurity Audit
Use this skill before release, after major backend changes, or when new integrations are added.
Scope
- API endpoint protection (auth/role checks, input validation, error leakage)
- OWASP basics (XSS/CSRF/injection exposure patterns)
- Dependency hygiene (vulnerability and outdated package hotspots)
- Security config checks (CORS, headers, token/session handling)
Workflow
- Identify security-critical files and routes in the changed scope.
- Verify auth and permission checks on sensitive endpoints.
- Validate request sanitization/validation and safe defaults.
- Check secrets handling and env usage (no secrets in source).
- Review headers/CORS/session/token handling.
- Summarize findings by severity and remediation priority.
Output Format
- Critical now: must-fix before merge
- Fix next: medium impact / low effort
- Plan: medium impact / medium effort
For each finding include:
- file/path
- risk summary
- recommended fix
- quick validation step
Gotchas
- Avoid broad speculative claims; only report evidence-backed findings.
- Distinguish between real vulnerability and defense-in-depth recommendation.