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.
+15
View File
@@ -38,3 +38,18 @@ A interface comunica-se com `/api/health` e exibe:
Enviar um caminho de diretório para `/api/analyze` dispara a ingestão do Zeek e o
pipeline analítico de detecção.
## Relatório executivo
Depois de uma análise, o botão **Relatório** abre `GET /relatorio` em uma nova
aba: um relatório executivo A4 da última análise, paginado no navegador pelo
Paged.js empacotado no projeto (`apps/gui/ui/vendor/`), então funciona offline e
vira PDF pela janela de impressão do navegador. Ele traz capa com o logo
embutido e um motivo desenhado a partir dos hosts do topo, sumário, sumário
executivo com indicadores, ranking de hosts, uma seção por pilar (beaconing,
sessões persistentes, túneis DNS, fusão de evidências), todos os alertas com a
evidência JSON achatada, metodologia e glossário, e o escopo da análise. A
classificação padrão é `TLP:AMBER`; `/relatorio?tlp=GREEN` (ou `CLEAR`,
`AMBER+STRICT`, `RED`) troca o rótulo, e valores desconhecidos voltam para
AMBER. Todo texto lido dos logs (hosts, domínios, resumos) é escapado em HTML.
Sem uma análise anterior, a rota responde 404.