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

HardTechnical
36 practiced

Create a security and privacy threat model for enabling corporate invoicing and expense features inside a B2B workplace-collaboration platform. Identify critical assets, threat vectors (data leakage, fraud), and propose architectural controls and processes to mitigate the top 5 risks.

HardTechnical
36 practiced

You are the security architect and need to obtain board-level acceptance for a residual-risk posture that allows certain 'medium' risks to remain for six months while mitigations are implemented. Prepare an outline of the briefing to the board: key metrics to present, remediation timeline, compensating controls, expected business impact if accepted, and the explicit 'ask' (budget, timeline, or authority).

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
35 practiced

Scenario: A mobile app stores encrypted user data locally and syncs with a backend when the device is online. Threat-model the offline sync feature: consider local storage, key management, sync protocol security, conflict resolution, and attacker models such as device theft or man-in-the-middle. Propose mitigations and detection approaches.

MediumTechnical
34 practiced

Walk through a threat modeling exercise for a new cloud-native microservice that accepts file uploads and stores them in object storage. Use an explicit framework (e.g., STRIDE) to identify assets, actors, threats, attack paths, and mitigations. List the artifacts you'd produce (data flow diagram, threat list, prioritized mitigations) and one example detection control for a critical threat.

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.