Threat modeling is a structured process for identifying, quantifying, and mitigating security threats to applications and systems early in the development lifecycle. Key methodologies include STRIDE (mnemonic for threat types), PASTA (risk-centric, 7-stage process), and Attack Trees (adversary-centric diagrams), which help prioritize defenses against potential attacks
Key Threat Modeling Methodologies
- STRIDE (Microsoft): Ideal for design-phase threat identification.
- Spoofing (impersonating a user/system).
- Tampering (modifying data/code).
- Repudiation (denying actions).
- Information disclosure (leaking data).
- Denial of Service (overloading systems).
- Elevation of privilege (unauthorized access).
- PASTA (Process for Attack Simulation and Threat Analysis): A seven-stage, risk-centric approach that aligns technical threats with business impact.
- Define Objectives.
- Define Technical Scope.
- Decompose Application.
- Analyze Threats.
- Vulnerability Analysis.
- Attack Analysis.
- Risk/Impact Analysis.
- Attack Trees: A goal-oriented, hierarchical model representing attacks, where the root is the goal (e.g., “steal database”) and leaf nodes are methods.
Threat Modeling Process
- Decomposition: Create diagrams of the application (e.g., Data Flow Diagrams).
- Threat Identification: Apply STRIDE or similar frameworks to identify potential issues.
- Vulnerability Analysis: Find weaknesses that could enable threats.
- Mitigation: Define security controls to address the risks.
- Validation: Ensure the threat model is updated as the system changes.
Tooling and Automation
- Microsoft Threat Modeling Tool: Free tool that maps to STRIDE.
- OWASP Threat Dragon: Open-source modeling tool.
- IriusRisk: Commercial, automated platform supporting PASTA.
- ThreatModeler: Automated platform to visualize attack surfaces.
Attack-Centric Perspective
Threat modeling uses an attacker’s mindset to anticipate breaches, focusing on:
- Trust Boundaries: Where data moves from low trust (e.g., Internet) to high trust (e.g., Database).
- Adversary Techniques: Leveraging frameworks like MITRE ATT&CK to understand attacker capabilities.
- Attack Trees: Identifying the most likely, not just possible, attack paths.