{% extends "base.html" %} {% block title %}Audit Results - Sentinel Engine{% endblock %} {% block content %}

{{ scan_meta.project_name | default('Audit Results') }}

{% if scan_meta.timestamp %} {{ scan_meta.timestamp[:19] | replace('T', ' ') }} UTC {% endif %}
{% if pass_fail == 'PASS' %}✓ PASS {% elif pass_fail == 'WARNING' %}⚠ WARNING {% else %}✗ FAIL{% endif %}

Scan Coverage

{{ scan_meta.files_scanned | default('?') }} Files Analyzed
{{ scan_meta.total_source_lines | default('?') }} Source Lines
{% if scan_meta.analyzers %} {{ scan_meta.analyzers[0].patterns_checked | default('?') }} {% else %}?{% endif %} Patterns
{{ total_findings }} Findings
{% for analyzer in (scan_meta.analyzers or []) %}
{% if analyzer.status == 'completed' %}✓ {% elif analyzer.status == 'not_installed' %}⚠ {% elif analyzer.status == 'skipped' %}◯ {% elif analyzer.status == 'timeout' %}⏲ {% else %}◯{% endif %} {{ analyzer.name }} {% if analyzer.patterns_checked is defined %} {{ analyzer.patterns_checked }} patterns {% elif analyzer.status == 'not_installed' %} Not installed {% elif analyzer.status == 'timeout' %} Timed out {% elif analyzer.status == 'error' %} Error {% elif analyzer.status == 'completed' %} Generated {% elif analyzer.status == 'not_configured' %} Not configured {% else %} Skipped {% endif %} {{ analyzer.findings_count }} found {% if analyzer.categories is defined %} {% endif %}
{% if analyzer.categories is defined %} {% endif %}
{% endfor %} {% if scan_meta.analyzers %} {% for a in scan_meta.analyzers %} {% if a.name == 'Slither Static Analysis' and a.status == 'not_installed' %}
Install Slither on the server for enhanced static analysis results (installation guide)
{% endif %} {% endfor %} {% endif %}
Risk Score
{{ risk_score }}/100
{{ severity_counts.CRITICAL }} Critical
{{ severity_counts.HIGH }} High
{{ severity_counts.MEDIUM }} Medium
{{ severity_counts.LOW }} Low
{{ severity_counts.INFO }} Info

Download Reports

Findings ({{ total_findings }})

{% if findings %}
{% for finding in findings %}
{{ finding.severity }} {{ finding.title }}
{{ finding.file.split('/')[-1] }}:{{ finding.line_no }}

{{ finding.description }}

{% if finding.code_snippet %}
{{ finding.code_snippet }}
{% endif %} {% if finding.remediation %}

Remediation

{{ finding.remediation }}

{% endif %}
Rule: {{ finding.rule_id }} Category: {{ finding.category }} {% if finding.cwe %} CWE: {{ finding.cwe }} {% endif %}
{% endfor %}
{% else %}

No findings detected. This does not guarantee complete security.

{% endif %}
{% if ai_summary %}

AI Audit Copilot Insights

{{ ai_summary }}

{% endif %}
{% endblock %}