sota-threat-modelinglisted
Install: claude install-skill martinholovsky/SOTA-skills
# SOTA Threat Modeling
## Purpose
Threat modeling answers Shostack's four questions with engineering rigor:
1. **What are we working on?** (decompose: DFD, trust boundaries, assets, actors)
2. **What can go wrong?** (enumerate: STRIDE/LINDDUN per element, catalogs, attack trees)
3. **What are we going to do about it?** (treat: mitigate/accept/transfer/avoid, map to requirements and tests)
4. **Did we do a good job?** (verify: abuse-case tests, residual risk review, re-model triggers)
This skill operationalizes those questions in two modes. Never produce a threat
model that is only prose — every threat must land as a tracked requirement, a
test, or an explicitly accepted risk with an owner.
## BUILD Mode — Threat-Model-While-Designing
Run this workflow whenever designing anything that crosses a trust boundary.
Scale effort to risk: a 15-minute "four questions" pass for a small feature; a
full STRIDE-per-interaction model for a new service or auth flow.
### Workflow
1. **Scope the delta.** Model what is new or changed, not the whole system.
List new entry points, new data classes, new dependencies, new actors.
2. **Draw the DFD as text/mermaid** (see `rules/02`). Mark trust boundaries
explicitly. If you cannot draw a boundary, you do not understand the design
yet — stop and ask.
3. **Pick the methodology** (see `rules/01`): STRIDE-per-interaction by
default; add LINDDUN if personal data flows; attack trees for a single
high-value asset; four-questions-only