Release / Gitea release (push) Successful in 5s
Release / Plan (reuse the published image?) (push) Successful in 4s
Release / ci (push) Successful in 1m10s
Release / Build image (amd64) (push) Successful in 23s
Release / Build image (arm64) (push) Successful in 1m20s
Release / Publish tags (push) Successful in 19s
CI / Format and vet (push) Successful in 33s
CI / Tests (Linux, race detector) (push) Successful in 37s
CI / Dependency audit (push) Successful in 37s
CI / Docker image (build and smoke test) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
179 lines
21 KiB
Markdown
179 lines
21 KiB
Markdown
# Changelog
|
|
|
|
**English** · [Português](CHANGELOG.pt-BR.md)
|
|
|
|
Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow SemVer.
|
|
|
|
## [Unreleased]
|
|
|
|
## [1.4.7] - 2026-11-15
|
|
|
|
### Fixed
|
|
|
|
- The unban file now defaults to `unban.log` next to `--enforce-log` (the default was lost, so the Unban button reported the file as not writable).
|
|
- Second firewall: the 24 h rules also count from the persistent day counters, so they work when the event registry does not cover the whole day (after a reset or upgrade).
|
|
|
|
## [1.4.6] - 2026-11-15
|
|
|
|
### Added
|
|
|
|
- Unban from the interface: an "Unban" button on recent decisions and on the address page asks the host (through `unban.log` next to `--enforce-log`, flag `--enforce-unban-log`) to lift the fail2ban block, and can keep the second firewall from banning the address again for 1 h, 24 h or 7 days (operator releases, listed and endable in Defense; shared with peers when sharing is on). API: `POST /api/v1/enforce/unban`, `DELETE /api/v1/enforce/allow`, `allows` in `GET /api/v1/enforce`.
|
|
|
|
## [1.4.5] - 2026-11-15
|
|
|
|
### Fixed
|
|
|
|
- Second firewall: it now uses the history. An address whose verdict is hostile (or suspicious with score 100 or more) is banned on its first new malicious event (`known-attacker`); 10 SSH failures or 20 web scan/exploit events in 24 h also ban (slow attackers); a sweep every 10 minutes (and after the start-up backfill) bans the addresses active in the last 24 h that nothing blocks yet, at most `--enforce-max-per-min` per minute, with every exclusion kept. Coverage in `/api/v1/enforce` is computed from the store, so it survives restarts.
|
|
|
|
## [1.4.4] - 2026-11-15
|
|
|
|
### Fixed
|
|
|
|
- Traefik access logs in the default text format are now read too (fewer fields than JSON: no host or service), so a proxy that loses its JSON setting no longer silently drops the web traffic.
|
|
- A source with more than 20% unreadable lines in its last 1000 is shown as degraded (red) in Integrity and Sources, logged once an hour, and checked by `urutau doctor`.
|
|
- Mobile: the More menu scrolls when it is taller than the screen.
|
|
|
|
## [1.4.3] - 2026-11-15
|
|
|
|
### Added
|
|
|
|
- Tor network: the official exit and relay lists are downloaded every 6 hours (`URUTAU_TOR_AUTO`, cached in the data directory). Requests from Tor exits are marked `tor`; a workload talking to a Tor relay is a high outbound finding.
|
|
|
|
### Fixed
|
|
|
|
- Outbound traffic: the servers themselves (trusted addresses, peers, local public addresses) never raise findings; regular connections of the host to its own provider (`URUTAU_EGRESS_PROVIDER_ASN` or the provider of its address) are shown as provider services, outside the verdict; regular connections to large CDNs and clouds are low severity unless the destination attacked the server.
|
|
|
|
## [1.4.2] - 2026-11-15
|
|
|
|
### Changed
|
|
|
|
- Services page redesigned: plain-language verdict, KPIs with sparklines, services from worst to best with availability against the 99.5% SLO, error budget left, burn rate, Apdex and latency, and a service detail with requests and errors, how requests were answered, p95 by hour and failing routes split into service errors, blocked attacks and client mistakes. API: `err_spark` in `/api/v1/services`.
|
|
|
|
## [1.4.1] - 2026-11-15
|
|
|
|
### Added
|
|
|
|
- Network probes source (`URUTAU_PROBE_LOG`, default `/logs/host/probe.log`): the host kit logs new inbound connections to ports nobody listens on; each becomes a `port-scan` event (MITRE T1046), and 10 distinct ports in 10 minutes make the second firewall ban the address (reason `port-scan`).
|
|
- Survival: who blocked and how fast, the host fail2ban jails apart from the Urutau second firewall.
|
|
- Pagination in the backend for sessions, IPs, campaigns and the events of an address, with one pager for every list; event search pages by cursor.
|
|
|
|
### Changed
|
|
|
|
- Outbound traffic page redesigned: plain-language verdict, evidence cards (beacon rhythm and interval histogram), destination map, activity by hour, compact workloads and the timeline of authorised scans. API: `findings[].samples`, `by_country`.
|
|
- Reports page: a preview of the HTML report itself, always an A4 sheet scaled to the screen, with only Download and Print; language selector, period and server from the header.
|
|
- Report: sharp logo (the repository logo at 800 px) and the cover drawing is now the urutau's call, five descending notes.
|
|
|
|
## [1.4.0] - 2026-11-15
|
|
|
|
### Added
|
|
|
|
- Second firewall (optional, `URUTAU_ENFORCE=off|observe|on`): Urutau decides which attacking addresses to block and writes the decisions to a file; the host fail2ban (jail `urutau`) applies them. Urutau gets no privileges. Observe mode shows what would be blocked. Optional decision sharing between hub and peers (`URUTAU_ENFORCE_SHARE`), applied only when the receiving server also saw the address attack. Never blocks trusted addresses, private ranges, CDN (Cloudflare) and public resolver ranges, peers or the server itself. The ban only drops connections the address starts, so replies to the server's own connections keep flowing.
|
|
- Egress analysis (`URUTAU_EGRESS`): new outbound connections of the host and containers, logged by nftables, are checked for beaconing (regular conversations with one destination), mining, IRC and SMTP ports, contact with addresses that attacked the server or Tor exits, DNS outside the allowed resolvers, unauthorised outbound scans and new countries. Workloads by network or container name (`URUTAU_EGRESS_WORKLOADS`); a `scanner` workload (an authorised surface scanner) has only its scan-shaped traffic summarised, everything else is judged like any other workload, so its beaconing is still detected.
|
|
- Host kit in `deploy/host` (nftables table, rsyslog, logrotate, container map, fail2ban filter, action and jail, `install.sh`).
|
|
- New page Outbound traffic and a Second firewall section in Defense.
|
|
- HTML report (`/api/v1/report?format=html`): cover, executive summary in plain language, rule-based recommendations, threats, geography, errors and health, visitors, defense, second firewall and outbound traffic, printable on A4. The Reports page downloads or prints it.
|
|
- Screenshot script covers every page.
|
|
|
|
## [1.3.0] - 2026-11-14
|
|
|
|
### Added
|
|
|
|
- **Many more pages**, grouped in the side rail: Monitor (Overview, Live, Services), Investigate (IPs, Sessions, Campaigns, Replay, Event search), Analyze (Threats, MITRE ATT&CK, Geography, Evolution, Concentration, Survival, Traffic, Where errors come from, Protocols and TLS), Operate (Defense, Sources and hosts, Integrity) and Reports. A glossary: a "?" button next to metrics and categories explains what each one means and what to do about it.
|
|
- **Service health:** per-service SLO (target 99.5%), error budget, burn rate (1 h and 6 h) and Apdex, from the Traefik router and service names.
|
|
- **Error classes:** every error is classified as `app`, `proxy`, `blocked`, `attack`, `bot`, `client` or `unknown`, so a 5xx from your app is told apart from a broken link or a scanner. The Traefik fields `OriginStatus`, `OriginDuration`, `Overhead`, `OriginContentSize`, `RetryAttempts`, `RouterName`, `ServiceName`, `RequestProtocol`, `RequestScheme`, `TLSVersion` and `TLSCipher` are read when present.
|
|
- **Episodes and survival:** time to ban and Kaplan-Meier survival curves computed over attack episodes.
|
|
- **New routes** (user only, never the peer token): `GET /api/v1/techniques`, `/evolution`, `/concentration`, `/survival`, `/sessions/funnel`, `/campaigns`, `/campaigns/{id}`, `/defense`, `/errors`, `/integrity`, `/report`, `/services`, `/services/{svc}` and `/protocols`.
|
|
- **Legitimate visits stream:** `GET /api/v1/events/stream?visits=1` also sends anonymous visit events (no address, User-Agent or referrer; city-level position), at most 20 per second, never written to disk.
|
|
- Documentation of the geolocation refresh: Urutau checks every 24 hours (`--geo-update`) while DB-IP publishes once a month.
|
|
|
|
### Changed
|
|
|
|
- **Unique visitors were corrected.** A visitor is now a person with a real browser: a successful GET of a document by a browser User-Agent (not a bot, tool or unknown client, not a prefetch), one per IP per day, deduplicated globally. Bots, tools and unknown clients are counted apart as "non-human clients". The number is lower than before, and lower than Coolify's, which counts every distinct IP with HyperLogLog and no filter.
|
|
- Paths and `Referer` values that contain an e-mail address or a token are normalized to `:id`.
|
|
|
|
## [1.2.0] - 2026-11-14
|
|
|
|
### Added
|
|
|
|
- **Longer memory and any period:** the default and maximum retention is now 30 days (720h). Twelve ranges (`1h`, `2h`, `3h`, `6h`, `12h`, `24h`, `2d`, `3d`, `5d`, `7d`, `15d`, `30d`) and a custom period with `from` and `to` (unix seconds, at most 30 days). An invalid `range` answers 400, and `range` in the responses is now an object `{name,from,to,step,clipped}`; the timeline `step` (granularity) follows the window length.
|
|
- **Event registry** in `<data-dir>/events/`: one JSON line per event (the live-stream format), one file per UTC day, older days gzip compressed, bounded by age (the retention) and size (`--events-max` / `URUTAU_EVENTS_MAX`, default 512 MB, `0` turns it off). It keeps malicious events, ban and unban, successful SSH logins, a 404 to an attack tool, and `ok`/`notfound` answers only for addresses already suspicious or hostile; never a legitimate visitor. A full disk, the size cap or the daily line cap drop events (counted, never fatal), and a corrupted line is skipped.
|
|
- **Investigation API:** `GET /api/v1/events`, `/api/v1/events/sessions`, `/api/v1/period`, `/api/v1/period/events`, `/api/v1/metrics`, the new summarized `GET /api/v1/ip/{ip}` and `GET /api/v1/ip/{ip}/stix`; and the peer route `GET /api/v1/peer/period`, so the peer token now opens three routes (export, stream and period).
|
|
- **Intelligence:** attack families, MITRE ATT&CK techniques, network type (VPN, hosting, mobile, residential, Tor, research scanner; no external API), request cadence (automated, human-like, mixed), sessions with stages (recon, probe, exploit, access, banned), campaigns (several IPs doing the same thing), a verdict with reasons, recommended actions, exposure (a 2xx on a sensitive path), STIX 2.1 export, forward-confirmed reverse DNS for Googlebot and Bingbot, `--tor-exits` / `URUTAU_TOR_EXITS` (a file of Tor exit addresses) and SSH users from `--admin-users` marked as such.
|
|
- **Stable metrics** (no per-minute rates) in `/api/v1/metrics`: attacks per hour, trend, active and new attackers, returning rate, sessions per day, exposure rate, refused exploits, time to ban, ban and blocklist coverage and leak, SSH failures, and concentration by IP and ASN.
|
|
- **Interface:** a period selector (named ranges and a custom period), the IP analysis page (`#/ip/<ip>`), the Replay page (`#/replay`), Geography down to state and city (`#/geo/BR/Pernambuco/Recife`, state boundaries from Natural Earth, public domain) and a metrics column on the Live page.
|
|
|
|
### Changed
|
|
|
|
- The soft memory limit is 256 MiB (worst case measured: about 54 MiB of heap and a snapshot of about 27 MB). In Docker, `mem_limit: 384m` is recommended.
|
|
|
|
## [1.1.1] - 2026-11-14
|
|
|
|
### Fixed
|
|
|
|
- Live page, globe mode: sea and land colors no longer swap while the globe turns. Each country ring is now clipped at the horizon and closed along the edge of the globe, and long edges follow the map projection.
|
|
- World map data: countries crossing the 180th meridian (Russia, Fiji) are closed along the map edge, so the Sea of Okhotsk is no longer filled as land on the flat maps.
|
|
|
|
## [1.1.0] - 2026-11-14
|
|
|
|
### Added
|
|
|
|
- **New interface:** a side rail with seven pages (Overview, Threats, Geography, Live, Traffic, IPs, Sources and hosts), an opening sentence on every page with the number that matters, the active slice (range, host, domain) always written under the title, an IP detail drawer, and light and dark themes from design tokens.
|
|
- **Geography page:** a world map by attacker country; select a country to see its states or regions and cities (cities as circles on the zoomed country), the categories and the top IPs; select a region to narrow cities and IPs. The view lives in the URL (`#/geo/BR/Pernambuco`).
|
|
- **Live page:** attacks drawn as animated arcs from their origin to the server that saw them, on a flat map or a 3D globe, with rate, categories, servers, recent origins and the latest events; filters, pause and full screen. It opens by replaying the latest events, so it is never still on a quiet server.
|
|
- **API:** `GET /api/v1/geo` (countries, or one country with regions, cities and `top_ips`), `GET /api/v1/live/recent`, and `host`, `src` and `dst` on every live event.
|
|
- **Live federation:** the hub keeps `GET /api/v1/peer/stream` open on each peer and relays their live events, bounded and sanitized.
|
|
- **`--location` / `URUTAU_LOCATION`:** the position of the instance on the map.
|
|
- **`--peer-blocklist` / `URUTAU_PEER_BLOCKLIST`** (`on` by default): `off` keeps the hub's blocklist to local observations.
|
|
|
|
### Security
|
|
|
|
- Events and summary rows from peers are rebuilt from validated fields (address, country code, category); `forged` and `unban` flags from peers are ignored.
|
|
- The live relay disconnects a peer that sends more than about 1 MB/s, on top of the event rate cap.
|
|
- Static files are served from the embedded directory by a strict name pattern.
|
|
|
|
## [1.0.0] - 2026-11-14
|
|
|
|
First release.
|
|
|
|
### Added
|
|
- Log collection from the Traefik JSON access log, `/var/log/auth.log` (sshd) and `/var/log/fail2ban.log`, followed through rotation and truncation, with a bounded line size and a backfill of rotated files on the first start.
|
|
- Classification into `ok`, `notfound`, `scanner`, `exploit`, `bruteforce`, `ssh-fail`, `ssh-probe`, `ssh-ok` and `ban`, with percent-decoding (twice) of request paths against evasion.
|
|
- IP scoring by category weight: 50 or more is hostile, 10 or more is suspicious.
|
|
- Rolling state of up to 7 days (minute buckets, top lists, per-IP detail and a live feed), saved to a snapshot file every 60 seconds and on shutdown, restored with the file offsets so a restart never replays a log.
|
|
- Embedded dashboard (English and Portuguese, light and dark) with KPIs, a timeline, an IP table with filters and sorting, an IP detail drawer, a live feed over Server-Sent Events, top paths, domains, User-Agents and users, per-host and per-source status.
|
|
- Token login with a signed `HttpOnly`, `SameSite=Strict` session cookie and a per-IP rate limit; bearer token for the API.
|
|
- JSON API: `/api/health`, `/api/v1/summary`, `/api/v1/ips`, `/api/v1/ip/{ip}`, `/api/v1/events/stream`.
|
|
- Exportable blocklist as `/api/v1/blocklist.txt` and `/api/v1/blocklist.json`.
|
|
- Federation: `--peer name=https://url` aggregates other instances. A hub only calls `GET /api/v1/peer/export?range=1h|24h|7d` (`{"v":1,"summary":...,"traffic":{...}}`, top 500 IPs with detail, cached 5 s) every 15 s, with a 4 s timeout, an 8 MB limit, no redirects, `https` required outside loopback, and sanitized, capped peer data. `--peer-allow` / `URUTAU_PEER_ALLOW` limits the source CIDRs of the export.
|
|
- Offline geolocation (country, city, ASN) from the DB-IP Lite databases (CC BY 4.0), downloaded and refreshed by Urutau (`--geo-dir`, `--geo-update`) and read by a built-in, dependency-free MMDB reader.
|
|
- User-Agent parsing into browser, operating system, device, bots and attack tools.
|
|
- Privacy-friendly web analytics for legitimate traffic (Traffic page): unique visitors by a daily-salted hash, pages, referrers, countries, browsers, devices, latency p50 and p95, bytes and a world map. The IP of a legitimate visitor is never persisted. Threats and Traffic are separate pages.
|
|
- Reverse DNS enrichment of listed IPs.
|
|
- Noise filters: `--trusted` / `URUTAU_TRUSTED` (alias `--ignore`) drops events from trusted CIDRs, and `--monitor-ua` / `URUTAU_MONITOR_UA` keeps benign monitoring requests (such as Uptime-Kuma) out of the traffic numbers.
|
|
- `urutau doctor [--json]` to check the configuration, the sources, the data directory, the geolocation databases and the snapshot; the JSON output carries `geo` and `state`.
|
|
- `--monitor-from` / `URUTAU_MONITOR_FROM` (a monitor User-Agent only counts from those networks; without it only `ok` answers are filtered) and `--domains` / `URUTAU_DOMAINS` (analytics domain allowlist, `*.example.com` accepted).
|
|
- `urutau healthcheck`, the image `HEALTHCHECK` (the image has no `curl`, 28.5 MB).
|
|
- Default `--ignore` widened: `192.168.0.0/16`, `fc00::/7`, `fe80::/10`, `100.64.0.0/10`, `169.254.0.0/16` join the previous ranges.
|
|
- `--admin-users` / `URUTAU_ADMIN_USERS`: admin immunity lasts 24 hours after the last successful SSH login of those users (off unless the list is set; a login in the same second as a strong attack gives no immunity) and a later strong signal cancels it. The blocklist takes `?family=4|6`.
|
|
- Requests framed by another page (`Sec-Fetch-Site` cross-site/same-site or a sub-resource `Sec-Fetch-Dest`) create an IP record like any other but weigh 0.25 per event (at most 30 points per IP from them, never a strong signal; ignored with an attack-tool User-Agent); Traefik must log `Sec-Fetch-Site`, `Sec-Fetch-Dest` and `Referer`.
|
|
- Serialized wrong-login attempts from a blocked client (1 s delay doubling to 30 s, parallel ones get 429 at once); the correct token always gets in.
|
|
- Compose mounts only `/data/coolify/proxy/logs` and the dedicated host directory `/var/log/urutau` (read-only); documented how to prepare it (rsyslog copy of sshd, fail2ban `logtarget`, logrotate), the known `logger -t sshd` limitation, how to point Traefik's access log at `/traefik/logs/access.log` on Coolify and to keep Urutau on a network shared only with Traefik.
|
|
- `--trusted-proxy` / `URUTAU_TRUSTED_PROXY` (default: loopback only; the compose file creates the `urutau-edge` network, `10.250.0.0/24`, and trusts just that): `X-Forwarded-For` is accepted only from these proxies, read right to left, for the login rate limit and `--peer-allow`.
|
|
- Multi-arch container image (`linux/amd64`, `linux/arm64`), `docker-compose.yml` and a Coolify deployment guide.
|
|
- Gitea CI (format, vet, race tests, `govulncheck`, UI translation coverage, image smoke test), a release workflow that reuses an already published image, a weekly audit, local hooks and `scripts/check.sh`.
|
|
- Bilingual documentation (English and Portuguese).
|
|
|
|
### Security
|
|
- `URUTAU_TOKEN` must have at least 32 characters and about 128 bits of estimated entropy (length times Shannon entropy; periodic or sequential tokens are refused) (generate with `openssl rand -base64 48`; `-hex 32` also works). Peer tokens follow the same rule and must differ from `URUTAU_TOKEN`; peers without a token are refused. Secrets can come from `URUTAU_TOKEN_FILE` and `URUTAU_PEER_TOKEN_FILE`, and each peer can have its own client credential, `URUTAU_PEER_TOKEN_<NAME>` (the general one is the fallback). The export accepts only the server token `URUTAU_PEER_TOKEN`; per-peer values never open it, and peer names that collide in the variable (`my-peer`/`my_peer`) are refused. An `admin` flag from a peer is ignored and a peer's `Strong` only counts with a score of 50 or more.
|
|
- Revocable sessions (random in-memory id, logout revokes and closes the live stream, restart invalidates), cross-site login and logout rejected, a blocked login answers 429 while the correct token still gets in after a 1 second delay, failed bearer tokens count, IPv6 limited per /64, `Referrer-Policy: same-origin`.
|
|
- `/api/health` returns only `{"status":"ok"}`; log file paths are never shown in the UI or to peers.
|
|
- Scanner and exploit hits answered with 2xx or 3xx weigh 0.5; a hostile level needs a score of 50 plus a strong signal (attack tool, two or more categories, a ban, or a refused strong exploit); an IP with a successful SSH login is never hostile and never blocklisted; the blocklist only holds globally routable IPs outside `--ignore` and `--trusted`; IPv6 is aggregated by /64 and exported as `x:x:x:x::/64`; up to 20,000 tracked IPs and a 160 MiB soft memory limit.
|
|
- A domain gets an analytics slot only after a 2xx answer; `/.gitignore`, `/.git-credentials` and similar paths are scanner hits; snapshots from earlier versions migrate without losing traffic history and inactive domains are pruned; top pages normalize token-looking segments to `:id`.
|
|
- The peer token only opens `GET /api/v1/peer/export` (other routes answer 403 to it, `URUTAU_TOKEN` gets 401 there, and the export is 404 without a peer token).
|
|
- HTTP server timeouts, `MaxHeaderBytes` of 16 KB, `POST /login` capped at 4 KB and at most 20 live-stream clients (503 with `Retry-After`, 20 s heartbeat).
|
|
- A corrupt snapshot is moved to `urutau-state.gob.corrupt` and the service starts empty, reading the logs again.
|
|
- Built with Go 1.26.11, which fixes five standard library vulnerabilities.
|
|
- The IP address of a legitimate visitor is never persisted; unique visitors use a hash with a daily salt.
|
|
- Hostile log content is limited in length and escaped on output; the dashboard ships a strict Content-Security-Policy and the usual hardening headers.
|
|
- `--insecure-no-auth` is refused unless the bind address is loopback.
|