Threat Modeling (STRIDE, PASTA, Attack trees)

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.
    1. Define Objectives.
    2. Define Technical Scope.
    3. Decompose Application.
    4. Analyze Threats.
    5. Vulnerability Analysis.
    6. Attack Analysis.
    7. 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

  1. Decomposition: Create diagrams of the application (e.g., Data Flow Diagrams).
  2. Threat Identification: Apply STRIDE or similar frameworks to identify potential issues.
  3. Vulnerability Analysis: Find weaknesses that could enable threats.
  4. Mitigation: Define security controls to address the risks.
  5. 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.