Security Review
Installation
SKILL.md
Security Review
Workflow
- Map assets and trust boundaries: what data, who can reach it, where it crosses a boundary (browser→API, service→DB, webhook→handler, admin→tenant).
- STRIDE per boundary: Spoofing, Tampering, Repudiation, Information disclosure, DoS, Elevation. One line per credible threat.
- Rate each threat by impact × likelihood; fix high items before ship, log accepted risks with an owner and expiry.
- Verify with evidence: a test, a request/response, or a config line — not an opinion.
Checklist by area
AuthN/AuthZ
- Session tokens httpOnly + Secure + SameSite; rotation on privilege change; short TTL with refresh.
- Authorization checked on the object, in the data layer (policy/RLS), not only in the router.
- No IDOR: enumerate
/api/orders/{id}with another tenant's ID. - Role escalation paths tested (self-upgrade, mass assignment of
role). - MFA available for admin; brute-force throttling on login and reset.