<!DOCTYPE html>
<html>
<head></head>
<body>
<div class="header">
<h1>rBAT Threat Intelligence Report</h1>
<p>Automated Binary Triage & Risk Assessment</p>
</div>
<div class="executive-summary">
<h2 class="exec-title">Executive Summary</h2>
<div class="exec-item">
<strong>Target File:</strong>
<span>{{ target_file }}</span>
</div>
<div class="exec-item">
<strong>Analysis Date:</strong>
<span>{{ analysis_date }}</span>
</div>
<div class="exec-item">
<strong>Risk Score:</strong>
<span class="risk-score {{ severity_class }}">{{ score }}/100 ({{ severity }})</span>
</div>
</div>
<div class="recommendations">
<h3>Recommendations</h3>
<ul>
{% for rec in recommendations %}
<li>{{ rec }}</li>
{% endfor %}
</ul>
</div>
{% if has_heatmap %}
<div class="section-title">Section Entropy Analysis</div>
<div class="image-container">
{{ heatmap_svg|safe }}
</div>
{% endif %}
<div class="section-title">Technical Indicators of Compromise (IOCs)</div>
<table>
<thead>
<tr>
<th>INDICATOR</th>
<th>CONFIDENCE</th>
<th>DESCRIPTION</th>
</tr>
</thead>
<tbody>
{% for finding in findings %}
<tr>
<td><strong>{{ finding.indicator }}</strong></td>
<td><span class="badge {{ finding.confidence_class }}">{{ finding.confidence }}</span></td>
<td>{{ finding.description }}</td>
</tr>
{% endfor %}
{% if findings.is_empty() %}
<tr>
<td colspan="3">No significant indicators detected.</td>
</tr>
{% endif %}
</tbody>
</table>
<div class="section-title" style=" margin-top: 20px;">Deep Technical Analysis</div>
<div style="margin-bottom: 20px;">
<h3>Binary Metadata</h3>
<table style="width: auto; min-width: 300px;">
<tr>
<th style="width: 150px;">Property</th>
<th>Value</th>
</tr>
<tr>
<td><strong>Binary Type</strong></td>
<td>{{ binary_type }}</td>
</tr>
<tr>
<td><strong>Entry Point</strong></td>
<td><code>{{ entry_point }}</code></td>
</tr>
<tr>
<td><strong>Architecture</strong></td>
<td>{{ architecture }}</td>
</tr>
</table>
</div>
<div style="margin-bottom: 20px;">
<h3>Detected Capabilities</h3>
{% if capabilities.is_empty() %}
<p>No specific suspicious capabilities detected.</p>
{% else %}
<table>
<thead>
<tr>
<th style="width: 200px;">Category</th>
<th>Details</th>
</tr>
</thead>
<tbody>
{% for cap in capabilities %}
<tr>
<td><strong>{{ cap.category }}</strong></td>
<td>{{ cap.details }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</div>
<div style="margin-bottom: 20px;">
<h3>Signature Matches</h3>
{% if signatures.is_empty() %}
<p>No signature matches (Packers/YARA) detected.</p>
{% else %}
<table>
<thead>
<tr>
<th style="width: 200px;">Type</th>
<th>Match Details</th>
</tr>
</thead>
<tbody>
{% for sig in signatures %}
<tr>
<td><strong>{{ sig.category }}</strong></td>
<td>{{ sig.details }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</div>
</body>
</html>