// Use when implementing auth, file uploads, payments, or external APIs. Applies STRIDE framework systematically. Triggers: "authentication", "file upload", "payment", "multi-tenant", "external API". If thinking "I know security" - use this anyway.
TodoWrite: Create 18+ items (6 STRIDE categories × 3 items each)
Assets: User credentials, session tokens, reset tokens Entry points: Login, signup, password reset endpoints
STRIDE Focus:
| Threat | Check |
|---|---|
| Spoofing | Credential stuffing protection? Rate limiting? |
| Tampering | Token manipulation? Secure cookies? |
| Repudiation | Login attempt logging? |
| Info Disclosure | Token leakage? Error messages reveal info? |
| DoS | Rate limiting? Account lockout? |
| EoP | Session hijacking? Privilege escalation? |
Assets: Stored files, file metadata, server filesystem Entry points: Upload endpoint, file retrieval
STRIDE Focus:
| Threat | Check |
|---|---|
| Spoofing | Impersonate uploader? |
| Tampering | Malicious files? Path traversal? |
| Repudiation | Upload logging? |
| Info Disclosure | Access others' files? |
| DoS | Large file attacks? |
| EoP | Execute uploaded code? |
Assets: Tenant data, API endpoints, configurations Entry points: All endpoints with tenant context
STRIDE Focus:
| Threat | Check |
|---|---|
| Info Disclosure | Cross-tenant data leakage? |
| EoP | Access other tenant's data? |
| Tampering | Modify tenant_id in requests? |
| Spoofing | Impersonate other tenant? |
Apply each category systematically (S→T→R→I→D→E):
Risk Scoring: Likelihood (1-5) × Impact (1-5)
Before marking complete, verify 3 specifics:
"This is over-engineering for a simple feature"
Security bugs cost 30x more post-release than during design. STRIDE takes 15-30 minutes and prevents deployment blockers. Which STRIDE categories don't apply to this feature?
| Thought | Reality |
|---|---|
| "Ad-hoc brainstorming is faster" | Misses 60% of threats |
| "Everything is critical" | No risk prioritization = wrong fixes |
| "We'll security review later" | 30x more expensive post-implementation |