6.4 KiB
6.4 KiB
Changelog
English · Português
Format based on Keep a Changelog; versions follow SemVer.
[Unreleased]
Added
- Authentication: first-run setup code, login always required, TOTP MFA with recovery codes (mandatory for administrators, optional for analysts), sessions,
read/adminAPI tokens, user management and an audit log. OnlyGET /api/health,GET /api/auth/state,POST /api/auth/{bootstrap,login,mfa,password-change-required}and the login assets (/login.html,/login.js,/app.css,/logo.png,/i18n.js,/i18n-en.js) work without a session or token;/api/analyzeis admin-only. - Login limits per username and client address with decay (IPv6 counted per /48), plus a budget of at most 100 failures in any 24 hours (true rolling window) per username from unknown addresses: once spent, those addresses are refused before Argon2, usernames with no account included. An address with a completed login in the last 30 days skips the budget, stored as a hash, at most 10 per account, replaced by the acting address on a password or MFA change from a session, cleared by promotion to administrator or
acaua auth reset. An attacker can therefore delay login from a new address for a real user for up to the budget window, or longer while they keep spending it; known addresses and open sessions are unaffected. MFA remains recommended for analysts. login.budget_exhaustedaudit event, once per real account per 24 hours. The audit log has no rotation yet.- Security headers on every response: CSP,
X-Frame-Options,X-Content-Type-Options,Referrer-Policy. - Explicit transport modes (
ACAUA_TRANSPORT=local|tls|proxy);localrefuses a port published beyond loopback and, outside a container, a non-loopback--bind. acaua auth reset --username <name>: local recovery for any account that prints a temporary password once and forces a password change (administrators also enroll MFA again). It never starts the daemon.ACAUA_SECRET_KEY_FILEto keep the secret key in a Docker secret.- The image smoke test checks the unauthenticated 401/redirect, the setup code in the log and the
localrefusal.
Changed
/api/healthno longer reports the version.- Documentation no longer presents a reverse proxy as the only protection.
[0.2.0] - 2026-11-04
Added
- Executive report: a Relatório button in the analysis view opens
GET /relatorio, an A4 report of the latest analysis paginated by the vendored Paged.js, with a full-bleed cover (logo, TLP badge, beacon-lane motif drawn from the top hosts), table of contents, KPIs, host ranking, one section per pillar, every alert with its evidence, methodology and glossary. Defaults toTLP:AMBER(?tlp=changes it) and HTML-escapes every string read from the logs.
Changed
- Documentation reviewed; the Xexéu references in this changelog now read Harpia.
Fixed
- The image smoke test piped
curlandacaua doctorintogrep -qunderpipefail;grepexits at the first match, the writer can get SIGPIPE, and the step failed at random (it already broke Harpia's arm64 build). Outputs are now captured before checking.
[0.1.0] - 2026-11-01
Added
- Pillar 1 (v1.2): Rayleigh/Schuster periodogram with grid bounded by the observed span (
T \le \text{span}/3), regularity gating, and infrastructure exclusions (NTP, mDNS/LLMNR/NBNS, SSDP, non-TCP/UDP). - Pillar 2 (v1.0): Persistent TCP session detector with inactivity chaining (gaps $\le 3600$s without SYN), logarithmic duration scoring, and PCR / failed attempt metrics in evidence.
- Pillar 3 (v1.0): DNS subdomain information capacity detector (
I = H \times Cbits/h) to identify high-entropy tunnels, with Jensen-Shannon Divergence (JSD) recorded in evidence. - Pillar 4 (v1.0): Per-host weighted noisy-OR fusion (
w_1=w_2=w_3=0.75) with deterministic evidence linkage, ranking hosts inacaua analyzehuman output via thehosts:section. - Zeek
dns.logingestion: Daily Hive Parquet partitioning for DNS queries with deterministic column mapping by TSV header. - Parquet storage schema (v1.2): 15-column schema for
conn.logsupportingconn_state,history,orig_pkts,resp_pkts,orig_ip_bytes,resp_ip_bytes. - In-memory alert reporting: Web daemon
/api/alertsroute now serves alerts from the most recent analysis run. - Real dashboard UI: Sidebar navigation now switches panels instead of a no-op scroll. New Hosts panel ranks observed hosts by fusion score with per-pillar (P1/P2/P3) drill-down. Alerts panel is filterable/sortable by pillar and score, with full evidence rendered as a formatted table. Overview panel adds KPI tiles and two interactive SVG charts (top hosts by fusion score, alert distribution by pillar).
Changed
- Breaking (0.x): Pillar 1 formula v1.2 modifies scores and changes
Alert.idgeneration to reflect the corrected bounded grid and session-based aggregation. - Distribution pivoted to 100% Docker and docker-compose (server daemon and web dashboard); native binary tarballs and desktop installers are discontinued.
- DuckDB is now a mandatory runtime dependency, dynamically linked against the official prebuilt
libduckdb.so(v1.5.6) with fixed SHA-256 viascripts/fetch-libduckdb.sh. - Upgraded workspace MSRV to Rust 1.88 (required by
duckdb ~1.10506.1). - Upgraded container runtime and base image to Debian 13 trixie.
Fixed
- Fixed critical false positives in short captures where period candidates exceeded the observed span.
- Corrected partition counting in
ingest_dirto take the union of partition dates instead of summing file counts. - DuckDB execution errors are now tracked in
files_failedinstead of miscounted as bad rows. - Updated
doctorcheck status from "skeleton" to "ok" / "degraded". - Graceful shutdown on
SIGTERMwhen running as PID 1 in container environments.
Removed
- Tauri desktop application (
apps/gui/src-tauri) and associated desktop build scripts. - Self-update flag (
acaua update --apply) and in-place binary overwrite. Updates are now handled via image pulls (docker compose pull).
Initial scaffold
- Rust workspace with
acaua-coreandacaua-cli. - CLI skeleton with
serve,analyze,doctorandupdate [--apply]. - Axum API skeleton with health, status, alerts, analyze and update-check routes.
- Embedded vanilla UI (desktop shell since removed; see Removed above).
- English/Portuguese documentation, CI/release workflows and local check script.