Iron Law: NO ARCHITECTURE REVIEW WITHOUT THREAT MODELING FIRST
Every new feature, service, or architectural change requires a threat model before implementation begins.
When to Use
- New feature or service design → STRIDE analysis + DFD
- Architecture change → full DFD analysis of affected components
- Production security incident → post-incident threat review
- Security audit preparation → staleness check on all threat models
Process
- Load methodology — Read
references/stride-methodology.mdfor STRIDE matrix, DFD element mapping, risk scoring, and output template - Load control library — Read
references/threat-mitigation-mapping.mdfor control categories, the 16-control lookup table, and coverage scoring - Model the system — Identify assets, trust boundaries, DFD elements, and interactions
- Run STRIDE — Apply per-element and per-interaction analysis using the methodology reference
- Map mitigations — Select controls from the library; verify defense-in-depth across layers
- Score and report — Calculate
risk = impact × likelihood, document residual risks
References
| File | Content | Load When |
|------|---------|-----------|
| references/stride-methodology.md | STRIDE matrix, DFD mapping, risk scoring formula, output template | STRIDE analysis, DFD mapping, risk scoring |
| references/threat-mitigation-mapping.md | Control library (16 controls), coverage scoring, budget prioritization | Selecting security controls, budget prioritization |
Error Handling
If architecture documents are missing, reconstruct system topology from the codebase using Grep/Glob.
If a component lacks context for threat analysis, flag it explicitly rather than guessing.