feat(report): executive report at /relatorio with a Relatório button
Release / Plan (reuse the published image?) (push) Successful in 4s
CI / Docker image (build and smoke test) (push) Skipped
CI / Format and clippy (push) Successful in 13s
CI / Tests (Linux) (push) Successful in 34s
CI / Dependency audit (push) Successful in 10s
Release / ci (push) Successful in 57s
Release / Build image (arm64) (push) Failing after 28s
Release / Build image (amd64) (push) Successful in 7m14s
Release / Publish tags (push) Skipped
Release / Gitea release (push) Skipped

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-11-03 21:23:57 -03:00
1 parent 6a14c29b97
commit a218111996
13 files changed
+1034 -1

No files matched your search

+15
View File
@@ -38,3 +38,18 @@ The interface communicates with `/api/health` and displays:
Posting a directory path to `/api/analyze` triggers the Zeek ingestion and
analytical detection pipeline.
## Executive report
After an analysis, the **Relatório** button (Report, in English) opens
`GET /relatorio` in a new tab: an A4 executive report of the latest analysis,
paginated in the browser by the vendored Paged.js (`apps/gui/ui/vendor/`), so it
works offline and prints to PDF with the browser's print dialog. It has a cover
with the embedded logo and a motif drawn from the top hosts, a table of
contents, executive summary with KPIs, the host ranking, one section per pillar
(beaconing, persistent sessions, DNS tunnels, evidence fusion), every alert with
its JSON evidence flattened, methodology and glossary, and the analysis scope.
The report is classified `TLP:AMBER` by default; `/relatorio?tlp=GREEN` (or
`CLEAR`, `AMBER+STRICT`, `RED`) changes the label, and unknown values fall back
to AMBER. Every string read from the logs (hosts, domains, summaries) is
HTML-escaped. Without a previous analysis the route answers 404.