{% extends "base.html" %} {% block title %}Audit Results - Counterscarp 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

{% if license_tier == 'pro' or license_tier == 'enterprise' %} 📄 HTML Report {% else %} 📄 HTML Report DEV {% endif %} {% if license_tier == 'pro' or license_tier == 'enterprise' %} {% if pdf_report_exists %} 📑 PDF Report {% else %} 📑 PDF Report N/A {% endif %} {% else %} 📑 PDF Report DEV {% endif %} 📜 Markdown {% if license_tier == 'pro' or license_tier == 'enterprise' %} 💾 SARIF {% else %} 💾 SARIF DEV {% endif %} 📋 JSON {% if license_tier == 'pro' or license_tier == 'enterprise' %} {% if attack_graph_exists %} 📈 Attack Graph {% endif %} {% endif %}

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 license_tier == 'pro' or license_tier == 'enterprise' %} {% if ai_summary %}

AI Audit Copilot Insights

{{ ai_summary }}

{% endif %} {% else %}
🤖

Unlock AI Copilot

PRO

Get AI-powered vulnerability analysis with contextual remediation advice. The AI Copilot understands your contract's logic and provides targeted fix suggestions for every finding.

{% if total_findings and total_findings > 0 %}
💡 Your scan found {{ total_findings }} vulnerabilit{{ 'y' if total_findings == 1 else 'ies' }}. With Pro, the AI Copilot would provide detailed remediation guidance for each finding.
{% endif %} Upgrade to Pro — $149/mo
{% endif %} {% if license_tier == 'pro' or license_tier == 'enterprise' %} {% if attack_graph_exists %}

Attack Graph Visualization

📈 View Attack Graph
{% endif %} {% else %}
📊

Unlock Attack Graph

PRO

Visualize attack paths and exploit chains in your contract. Interactive D3.js graphs reveal how vulnerabilities connect and compound, so you can prioritize the fixes that matter most.

Upgrade to Pro — $149/mo
{% endif %} {% if license_tier != 'pro' and license_tier != 'enterprise' %}

Get More with Pro

🤖
AI Audit Copilot

AI-powered analysis & remediation

📊
Attack Graph Visualization

Interactive exploit chain mapping

💣
Exploit PoC Generator

Auto-generated proof-of-concept exploits

Time-Travel Scanner

Historical vulnerability tracking

🔬
Protocol Fingerprinting

Identify known protocol patterns

📄
HTML & SARIF Reports

Professional branded report formats

🌍
Solana Analyzer

35 Solana-specific security rules

🔒
Web Pro Panels

Full Pro dashboard in your browser

View Pricing Plans — Starting at $49/mo 14-day money-back guarantee • Cancel anytime
{% endif %}
{% endblock %}