InterviewStack.io LogoInterviewStack.io

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).

MediumTechnical
43 practiced

Given an attack tree for 'Gain account access' with leaf nodes such as 'phishing credentials', 'token theft via XSS', and 'password reset abuse', analyze which leaf nodes provide the best ROI for mitigation. Explain the factors you consider (likelihood, cost to mitigate, detection capability, user impact) and propose concrete controls prioritized by ROI.

MediumTechnical
43 practiced

Construct an attack tree for the 'password reset' feature of a SaaS application. Include at least three high-level branches (for example: social engineering, system-level exploit, third-party dependency abuse). For one branch, drill down to leaf steps and propose mitigations and detection requirements for those leaf steps.

MediumTechnical
46 practiced

Construct an attack tree for a payment authorization endpoint in an e-commerce system. Include branches for credential compromise, API abuse, man-in-the-middle, database tampering, and supply-chain compromise. For each major branch provide at least two leaf nodes describing specific attack steps and propose mitigations targeted at the highest-probability leaf nodes.

EasyTechnical
40 practiced

Given the following simplified web application architecture, identify the top six assets, list attack-surface components, and name three high-priority threats.

Architecture:

Client -> CDN -> Load Balancer -> Web Tier -> App Tier -> Database
            |-> S3 Object Storage
            |-> Auth (OIDC)
            |-> CI/CD Pipeline

Explain your reasoning and the initial mitigations you would propose for the high-priority threats.

HardSystem Design
34 practiced

Design an annual attack-simulation program that combines red-team campaigns and purple-team exercises to validate detection coverage derived from your threat models. Include scoping principles, how you derive hypotheses from attack trees, required telemetry and detection analytics, success metrics (KPIs), and the process for feeding findings back to detection engineering and threat models.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.