{{ report_title }}

Generated on {{ generation_date }}

Executive Summary

{{ executive_summary }}

{{ total_threats }}
Total Threats
{{ critical_threats }}
Critical
{{ high_threats }}
High
{{ medium_threats }}
Medium
{{ low_threats }}
Low

System Overview

{{ system_description }}

Component Diagram

{{ component_diagram }}
Component
Component with threats
Connection

Threat Analysis

Threat Flow Diagram

{{ threat_flow_diagram }}
Critical
High
Medium
Low
Info

Attack Tree

{{ attack_tree_diagram }}
Critical Threat
High Threat
Medium Threat
Mitigation

Risk Matrix

{{ risk_matrix_diagram }}
High Risk (Q1)
Medium Risk (Q2/Q4)
Low Risk (Q3)
Threat Point

Detailed Threats

{% for threat in threats %}
{{ threat.name }} ({{ threat.severity|upper }})
Description

{{ threat.description }}

Impact

{{ threat.impact_description }}

{% if threat.affected_components %}
Affected Components
    {% for component in threat.affected_components %}
  • {{ component }}
  • {% endfor %}
{% endif %} {% if threat.code_snippets %}
Vulnerable Code
{% for snippet in threat.code_snippets %}

{{ snippet.file_path }}

{{ snippet.code }}
{% endfor %} {% endif %}
Mitigations
    {% for mitigation in threat.mitigations %}
  • {{ mitigation.name }}: {{ mitigation.description }}
  • {% endfor %}
{% endfor %}

Recommendations

    {% for recommendation in recommendations %}
  1. {{ recommendation.title }}: {{ recommendation.description }}
  2. {% endfor %}
{% if commit_history_analysis and commit_history_analysis.has_commit_history %}

Commit History Analysis

{{ commit_history_analysis.security_commit_summary }}

{% if commit_history_analysis.security_commits %}

Security-Related Commits

{% for commit in commit_history_analysis.security_commits %} {% endfor %}
Date Author Subject Security Type Severity
{{ commit.date }} {{ commit.author }} {{ commit.subject }} {{ commit.security_type|capitalize }} {{ commit.severity|capitalize }}
{% endif %}
{% endif %}