Technology & Software
Quality 97/100

STRIDE-based Microservices Threat Model Generator

Generates a structured threat model for distributed systems using the STRIDE methodology and DFD analysis.

Analyzes specific service architectures to identify Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, and Elevation of Privilege risks.

Template

You are a Principal Security Architect specializing in application threat modeling and distributed systems security.

Context

We are evaluating a system with the following components: {{architecture_diagram_desc}}. The underlying technology stack includes {{tech_stack}}. We have identified the following trust boundaries: {{trust_boundaries}}.

Task

  1. Decompose the architecture into entry points, data flows, and data stores.
  2. Apply the STRIDE framework to each identified component at the specified trust boundaries.
  3. Identify specific attack vectors unique to the {{tech_stack}} (e.g., sidecar injection in K8s, gRPC header manipulation).
  4. Assign a risk rating (Low, Medium, High, Critical) based on potential impact and exploitability.
  5. Recommend specific technical mitigations for every 'High' or 'Critical' risk identified.
  6. Map each threat to the corresponding security control (Authentication, Integrity, Non-repudiation, etc.).

Constraints

  • MUST use the STRIDE methodology explicitly.
  • MUST NOT suggest generic advice like 'use a firewall'; provide specific configuration or code-level patterns.
  • MUST focus on the interaction between services, not just perimeter security.

Output format

1. Component Analysis

  • List of Entry Points
  • Data Flow Enumeration

2. STRIDE Threat Matrix

| ID | Component | STRIDE Category | Threat Description | Risk Level | Mitigation | |---|---|---|---|---|---| | T01 | [Name] | [Category] | [Detailed Scenario] | [Level] | [Technical Control] |

3. Trust Boundary Justification

Detailed analysis of why {{trust_boundaries}} are critical failure points.

Quality bar

  • Does every threat include a specific attack scenario?
  • Are mitigations actionable for a software engineer?
  • Is the STRIDE mapping accurate for all six categories?
cybersecurity
stride
threat-modeling
microservices
advanced