Skip to content
Tech Interview Prep
Technical interview guide

Threat Modeling & Risk Assessment

Systematically identifying what could go wrong, before it does: frameworks like STRIDE and risk scoring.

Minutes to read
3
Practice MCQs
25
Interview Q&A
25
Edition
v5
Editorial status
Reviewed

Scope: NIST SP 800-30 Rev. 1; NIST CSF 2.0; NIST SP 1303; NIST SP 800-154 initial public draft status noted; ATT&CK and CAPEC accessed 2026-08-31.

Overview

Curated: · Written: · Reviewed:

Threat Modeling & Risk Assessment

In one line

Threat modeling finds what could go wrong with a system before it does, and risk assessment turns each scenario into a likelihood, an impact, a response, and a named owner. Reach for it at design time, before a launch, and whenever a trust boundary, data path, or identity model changes.

Key definitions

  • Threat scenario: a capable source uses a precondition or weakness, through an attack path, to affect an asset or mission outcome.
  • Trust boundary: a point where data or control crosses between parties with different privileges.
  • Inherent vs residual risk: risk before controls vs risk after controls you have verified.
  • Risk acceptance: a decision by the authorized business owner, with scope, rationale, expiry and reopening triggers.
  • Vulnerability vs threat event: the weakness a source can exploit vs the event that exploits it.
  • STRIDE: a prompt for spoofing, tampering, repudiation, information disclosure, denial of service and elevation of privilege. It does not prove completeness and does not score risk.

Formulas and complexity

Annualized loss expectancy, for a quantified scenario:

ALE=SLE×ARO\text{ALE} = \text{SLE} \times \text{ARO}

Residual loss when a control covers a share of exposure and cuts risk on that share (assumes the covered and uncovered portions are independent):

Residual ALE=Covered×(1−Effect)+Uncovered\text{Residual ALE} = \text{Covered} \times (1 - \text{Effect}) + \text{Uncovered}

Hypothetical: inherent ALE $400,000, 75% covered, 90% effect. Residual = 300,000 × 0.10 + 100,000 = $130,000.

How it works

  1. Scope the decision: system boundary, version, environment, owners, dependencies and exclusions.
  2. Draw the flows, including identity, admin paths, CI/CD, backups, observability and third parties, not only the happy path.
  3. Write one causal scenario per attack path: source, precondition, path, asset, outcome.
  4. Score likelihood and impact on stated scales, and record the evidence and the uncertainty behind each score.
  5. Choose a response with an owner, a deadline and a verification step. Re-score the residual risk only after the control is tested.
Scope decision and boundary Data-flow diagram with trust boundaries Causal threat scenarios Likelihood and impact with evidence Response Mitigate, avoid or transfer Accept with named owner Test control, re-score residual

When to use and when not to

SituationRun a full modelLighter pass or skip
New system or new trust boundaryYes: scope, flows, scenarios, ownersNo
Small change inside an existing boundaryOnly if identity or data scope changesUpdate the existing scenarios
Choosing between controlsYes: score scenarios and compare residual riskNo
Sparse evidence about likelihoodYes, but use ordered ranges and flag uncertaintyDo not invent a precise number
Compliance checklist onlyNo: a model answers what could go wrongUse the checklist

Traps interviewers probe

  • Treating STRIDE output as a risk score. Fix: score each scenario and rank by consequence and uncertainty.
  • Counting a deployed control as a mitigation. Fix: test the control against the scenario's precondition and path.
  • Modeling only the request flow. Fix: add admin, support, CI/CD, secrets, backups and third-party paths.
  • Multiplying ordinal labels into false precision. Fix: use ordered categories with observable anchors, and show which assumption would change the response.
  • Accepting risk at engineering level. Fix: the accountable business owner signs, with expiry and reopening triggers.

Interview tips

Open with the decision and the boundary: "We are deciding whether the export API can ship with object-level checks missing, and the model covers the API, its identity provider and the audit store." Then state the scenario, the evidence and the response.

Expected follow-ups:

  • How do you know the control works? Name the test, not the deployment.
  • Who can accept this risk? The business owner the tolerance band names.
  • What would reopen the decision? A material change, an incident, or a failed assumption.
  • How is this different from a pen test? A pen test samples one path; a model decides which paths matter and who owns them.

30-second outline: the decision and boundary; the two or three scenarios that change the design; the evidence behind each likelihood and impact; the response, owner and verification step; the residual risk you are asking someone to accept.

Feedback on this overview

Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.