Threat Modeling and Attack Surface Analysis Questions

Systematically identifying how a system can be attacked and where its exposure lies. Covers structured methodologies (STRIDE, PASTA, DREAD, OCTAVE, attack trees), enumerating and reducing attack surface, mapping trust boundaries and data flows via DFDs, profiling likely threat actors, and prioritizing identified threats by likelihood and impact during design. Includes applying this methodology to specific architectural substrates (cloud-native and serverless, microservices, ML/AI systems, IoT, CI/CD pipelines, cryptographic subsystems) and operationalizing it as a recurring program (SDLC integration, governance, tooling, KPIs). The proactive 'think like an attacker before you build' discipline: distinct from live penetration testing (the adversarial validation of a built system), from runtime detection/monitoring (recognizing an attack already in progress), and from implementing the resulting security controls (a separate design-and-build discipline).

HardTechnical
36 practiced

During an architecture review you discover several chained weaknesses that together enable privilege escalation: an exposed admin endpoint (high exposure), a weak auth policy (medium), and an outdated library with a remote code execution bug (low). Discuss how you would prioritize mitigations, propose immediate and medium-term actions, and explain what residual risk (if any) you would accept and why.

HardTechnical
38 practiced

Write clear pseudocode for a prioritization algorithm that accepts a list of vulnerabilities where each entry includes: cvss (0-10), exploitability_index (0-1), asset_value (1-10), and threat_intel_score (0-1). The algorithm should compute a weighted risk score, normalize results to 0-100, and assign remediation windows (Immediate, 1 week, 1 month, 3 months) based on configurable thresholds and confidence. Describe how uncertainty or low confidence should affect remediation assignment.

MediumTechnical
43 practiced

Scenario: You're threat-modeling a REST API that uses OAuth2 authorization code flow with refresh tokens. Identify key threats specific to token handling, list potential attack paths (token theft, CSRF, redirect-uri manipulation, refresh-token misuse), and recommend mitigations and detection strategies for each threat.

MediumTechnical
32 practiced

Create a sample risk register entry for a web-facing customer-database breach. Include the following fields: risk-id, description, affected-asset(s), likelihood (1-5), impact (1-5), risk-score, existing-controls, proposed-mitigations, residual-risk, owner, and target-mitigation-date. Explain the values you chose and the rationale behind them.

HardTechnical
39 practiced

Propose a schema for a 'threat-model-as-code' representation that includes components, data flows, trust boundaries, threats (with metadata like likelihood, impact, mitigations), mitigations (with owners and estimated effort), and test cases. Provide short example snippets in YAML for a payment API component and explain how this schema supports automated analysis, versioning, and CI integration.

Unlock Full Question Bank

Get access to all Threat Modeling and Attack Surface Analysis interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.