1---2name: security-audit3description: Perform systematic security audits covering OWASP Top 10, dependency vulnerabilities, and data protection.4---56# Security Audit78## OWASP Top 10 Checklist9- [ ] **Broken Access Control** — verify auth on every endpoint, test role escalation10- [ ] **Cryptographic Failures** — no plaintext secrets, HTTPS everywhere, proper hashing11- [ ] **Injection** — parameterized queries, input sanitization, output encoding12- [ ] **Insecure Design** — rate limiting, proper error messages (no stack traces to users)13- [ ] **Security Misconfiguration** — default creds changed, CORS locked down, debug mode off14- [ ] **Vulnerable Components** — run dependency audit, check CVEs15- [ ] **Auth Failures** — MFA where applicable, session timeout, password policies16- [ ] **Data Integrity Failures** — CSRF tokens, signed cookies, integrity checks17- [ ] **Logging Failures** — audit log of sensitive actions, no secrets in logs18- [ ] **SSRF** — validate/restrict outbound URLs, don't forward internal responses1920## Process211. Map the attack surface (all entry points: API, UI, files, queues)222. Threat model each entry point (who can access, what can go wrong)233. Test controls (auth, validation, encryption)244. Scan dependencies for CVEs255. Review secrets management (env vars, vault, no hardcoded keys)266. Document findings with severity, reproduction steps, and fix guidance