Skip to content

Threat model (STRIDE on your DFD)

Modulecraft.17 · practice · docs · Pass 11 · 1 to 2 h
You builddocs/THREAT_MODEL.md
Testscourse/tests/craft.17 (named below, with why each exists)
Needsnone
Used byno code call site; this is an independent artifact
MilestoneMS-P11
  • Tie each claim to the exact platform evidence that Threat model (STRIDE on your DFD) produces.
  • State the owner, success condition, and recovery action before declaring the work complete.
  • Record unresolved assumptions so the next review can test them.
Terminal window
ol start craft.17
ol tests craft.17
ol check craft.17

The system crosses user, service, storage, and tool boundaries. A threat model identifies where an attacker can act and which controls must prevent or detect it.

Start from a data-flow diagram. For each boundary, list assets, actors, threats, existing controls, residual risk, and an owner. STRIDE is a prompt for analysis, not a substitute for evidence.

Trace a retrieved web page into the agent tool loop. Consider spoofed source, malicious instructions, disclosure through tool output, and unauthorized state change. Tie mitigations to allowlists, taint-aware gates, audit logs, and tests.

TestKINDChecksWhy it matters downstream
test_artifact_paths_are_declaredartifactConfirms the submitted paths and required evidence exist, so a plausible narrative cannot pass without the reviewable deliverable.
#PitfallSymptomCaught by
1The artifact names a decision without the evidence that supports itReviewers cannot verify the claim against the repository or system.test_artifact_paths_are_declared
2The failure or rollback case is omittedThe happy path passes while an operator has no safe response under failure.test_artifact_paths_are_declared
3The owner, threshold, or scope is implicitTwo reviewers can reach different release or risk decisions from the same evidence.test_artifact_paths_are_declared
DirectionModuleConnection
Backcraft.09Read this declared prerequisite before producing the artifact; use it to verify the relevant contract or evidence.
Backcraft.19Read this declared prerequisite before producing the artifact; use it to verify the relevant contract or evidence.
ResourceWhat to inspect
C4 model and architecture rules, section 2.3Compare the submitted views with the course system boundary and its process/file interfaces.