{% extends "base.html" %} {% block title %}Risk Report - {{ evidence.title }}{% endblock %} {% block content %}
Back to Evidence

Risk Report: {{ evidence.title }}

{# Risk level banner #} {% set color_map = {'LOW': 'success', 'MEDIUM': 'warning', 'HIGH': 'danger', 'CRITICAL': 'dark'} %}
{% if report.risk_level == 'LOW' %} {% elif report.risk_level == 'MEDIUM' %} {% elif report.risk_level == 'HIGH' or report.risk_level == 'CRITICAL' %} {% else %} {% endif %}

Forensic Risk Level: {{ report.risk_level }}

Forensic Risk Score: {{ '%.4f' | format(report.final_score) }}

Computed at {{ report.computed_at.strftime('%Y-%m-%d %H:%M:%S utc') }}
{# Score bar #}
Overall Forensic Risk Profile
Compliance Risk (Rule-Based)

Vulnerability rules, integrity checks, and event warnings.

{% set pct = (report.final_score * 100) | int %} {% set bar_color = 'success' if report.risk_level == 'LOW' else 'warning' if report.risk_level == 'MEDIUM' else 'danger' if report.risk_level == 'HIGH' else 'dark' %}
{{ '%.3f' | format(report.final_score) }}
{{ report.risk_level }}
{# Factor breakdown #}
Risk Factor Breakdown
{% for f in report.factors %} {% endfor %}
Factor Raw Value Normalised Score Weight Contribution Explanation
{{ f.name }} {{ f.raw_value }} {% set bar_pct = (f.normalised_score * 100) | int %} {% set bar_col = 'success' if f.normalised_score < 0.25 else 'warning' if f.normalised_score < 0.5 else 'danger' %}
{{ '%.2f' | format(f.normalised_score) }}
{{ '%.2f' | format(f.weight) }} {{ '%.4f' | format(f.contribution) }} {{ f.explanation }}
Base Score (weighted sum): {{ '%.4f' | format(report.base_score) }}
{# Interaction effects #} {% if report.interactions %}
Dangerous Factor Interactions Detected
{% else %}
No dangerous factor interactions detected.
{% endif %} {# Recommendations #}
Recommendations
View Risk Dashboard
{% endblock %}