Files
urutau/CHANGELOG.md
Lucas Rayan 6738876893
CI / Format and vet (pull_request) Successful in 38s
CI / Dependency audit (pull_request) Successful in 17s
CI / Tests (Linux, race detector) (pull_request) Successful in 1m38s
chore(release): 2.3.1
2026-11-23 10:16:20 -03:00

43 KiB

Changelog

English · Português

Format based on Keep a Changelog; versions follow SemVer.

Unreleased

2.3.1 - 2026-11-23

Changed

  • Replay plays threats only by default. 96% of the events the page downloaded were ok (legitimate traffic, such as crawlers browsing a Git forge), so a 2000-event page covered about 44 minutes and 24 h took about 21 pages. The events API accepts a negated category list (cat=!ok, a leading ! excludes), the Replay category filter has "Threats (default)" and "All, including legitimate traffic" (cat=all in the link), and the timeline strip and lead sentence count the same filter.

Fixed

  • Opening Replay no longer downloads the same first events page twice (the page was rebuilt when the period study arrived; loaded events are now annotated in place, and a campaign link or "Only incidents" still rebuild) and no longer requests the summary twice (it reuses the shell's request).

2.3.0 - 2026-11-23

Added

  • Firewall telemetry (inbound attempts): the application logs cannot see connection attempts to ports where nothing listens, nor packets from addresses that are already banned (the firewall drops them silently), so the panel understated the real scale and SSH attacks seemed to fall only because bans work. New host kit option install.sh --ingress adds an observation-only nftables table (inet urutau_ingress, prerouting priority -150, before Docker's DNAT; counters and a rate-limited log, it never drops, accepts, marks or rewrites anything) and a timer that writes exact counters to /var/log/urutau/ingress.counters, plus a sample of the attempts in /var/log/urutau/ingress.log. The probe tails both (URUTAU_INGRESS_LOG, URUTAU_INGRESS_COUNTERS), the hub aggregates per host in hourly buckets for 30 days, and Defense gets a "Firewall: inbound attempts" section: exact totals and attempts per hour, share to closed ports, share from currently banned sources (estimated from the sample), and top ports, networks and countries labelled as sampled. New endpoint GET /api/v1/ingress; urutau doctor reports whether the source is present and fresh. The attempts are telemetry only: they never become events or evidence, so there is no ban feedback loop. To upgrade: update the hub and the probes, then on each host run sudo sh deploy/host/install.sh --ingress (add --probe and --enforce as that host already uses). The sources show as waiting until then. A cloud provider firewall (for example an Oracle Cloud security list) blocks some ports before the host, so the metric is what reaches the host.

Changed

  • Own and trusted traffic is recorded instead of dropped. Web requests from URUTAU_TRUSTED (class trusted) and from the URUTAU_IGNORE ranges, private networks by default (class internal), used to vanish at ingestion, which hid about half of the real requests on a busy host (the other server, a CI runner, the Docker gateway). They are now counted in aggregates only (no event record each, kept in the snapshot) and never score an IP or enter threats, campaigns, sessions, maps, the blocklist, ban evidence, egress logic or visitor analytics. API: totals.trusted, totals.internal, totals.requests_all (requests plus both classes), totals.counts.trusted and .internal, and own in /api/v1/summary (status classes, timeline series, origins, domains, paths). The Traffic page has a new section "Own infrastructure and trusted origins". Probes need no change: the hub classifies. Tests TestOwnTrafficIsCountedNeverAnalysed and TestOwnTrafficThroughFeed.

Fixed

  • Long-range studies (15 and 30 days) no longer time out: with about 25,000 events a day over 30 days, period, report, campaigns, funnel and metrics took 6 to 19 s and came back truncated with partial families, techniques and campaigns. Closed days of the event registry are now decoded once and kept in memory (96 MB cap, invalidated by file size and modification time), the live day is read from the file, sessions are built in parallel and shared by period, funnel and metrics, and path normalisation is memoised. On the synthetic 30-day set (750,000 events, 2 hosts) all three views together went from 7.5 s cold and 5.1 s warm (about 16 s with a 256 MiB memory limit, truncated) to 3.7 s cold and 1.5 s warm under GOMEMLIMIT 256MiB, not truncated, about 200 MB heap. The dashboard shows a note when a study really hits a limit. Top targets with equal counts are now ordered by host too, so results are deterministic. Tests TestDayCacheEqualsFullScan, TestDayCacheInvalidatesOnChange and BenchmarkStudy30d.

[2.2.2] - 2026-11-19

Fixed

  • Outbound traffic: a redeploy that swapped addresses between containers (LambdaMail's rspamd and clamav traded 172.19.0.2 and .5) was judged with the previous minute's containers.map, so findings landed on the wrong workload (rspamd's SURBL and DNS traffic as clamav, freshclam as dns). The host kit now also runs urutau-containers-watch, which rewrites the map on every container start or network attach, and the probe checks the file every 2 seconds instead of 10. Reinstall the host kit (deploy/host/install.sh) and update the probes.
  • Outbound traffic: new_geo no longer fires for large CDNs and clouds (Cloudflare, Google, AWS, Azure, Akamai, Fastly, Telegram): their addresses are anycast or global, and the database country (1.1.1.1 in Australia, a Cloudflare edge in Canada) says nothing about where the traffic goes. Test TestNewGeoSkipsAnycastCDN.

[2.2.1] - 2026-11-16

Fixed

  • Traffic on probe-fed hosts kept disappearing after Traefik's copytruncate rotation even with 2.2.0: the head fingerprint covered only 64 bytes, and Traefik's first line of every generation starts with the same keep-alive client address and port, so every generation looked like the same file and the hub dropped every line below the previous high-water mark. The fingerprint now covers up to 1024 bytes (the whole first line, with its nanosecond timestamp), and the hub treats fingerprints of different lengths as different generations. Update the probes too. Tests TestHeadCoversFirstLine and TestSameHeadCopytruncate.

[2.2.0] - 2026-11-16

Added

  • IP analysis: an address that never attacked but is an egress destination (for example the IP of an egress incident) now opens a "Destination" view: which hosts and workloads connected to it, ports, connections, ASN/country, findings and linked incidents. New endpoint GET /api/v1/ip/{ip}/egress. When nothing exists the page says definitively that the IP was never seen; if it was seen inbound outside the period it shows the last date and a 30-day button.
  • Global host filter: several probes can be selected at once (host=oracle,hostinger in the URL and the API); selecting all of them, or "All hosts", means every probe.

Fixed

  • Traffic: the hub dropped Traefik lines after every copytruncate rotation of access.log (it compared only inode and offset and ignored the head fingerprint the probe sends), so legitimate traffic on the Oracle host vanished for hours after each rotation. Regression test TestSameHeadCopytruncate.
  • Global host filter: going back to "All hosts" did nothing, because the URL without host= kept the previous host.

[2.1.2] - 2026-11-16

Fixed

  • Egress, false dns_bypass right after a hub restart: the files a probe sends (resolv.conf, containers.map) lived only in the hub's memory, so after a restart the egress lines the probe replayed on reconnect were judged before the probe sent them again (Hostinger coolify-sentinel → its upstream resolver 153.92.2.6, hostinger/INC-8). The hub now keeps the last copy of each file in the node's data directory (probe-resolv.conf, probe-containers.map) and loads it at start. Regression test TestProbeFilesSurviveRestart.
  • Phone layout: the global filter sheet (period and host) opens above the bottom tab bar instead of covering it, tapping the tab bar closes it, and the sticky filter bar no longer sits on top of the "More" menu.

2.1.1 - 2026-11-16

Fixed

  • Incidents: the status tabs (Active, All, Open, False positive and so on) no longer show a tiny vertical scrollbar; the active tab's underline no longer overflows the scroll area by one pixel, and the focus ring is drawn inside the tab so it is not clipped.

2.1.0 - 2026-11-16

Fixed

  • Egress, false dns_bypass on probes: the hub judged the egress lines of a batch before applying the resolv.conf (and containers.map) sent in the same batch, and rebuilding a probe's egress engine (a configuration change) dropped those files. The hub now keeps the last files of each probe, applies them before the lines and to every rebuilt engine; the probe queues them before it starts reading logs. Regression test TestEgressFilesAppliedBeforeLines.
  • Replay: the Repeat control is a regular toggle in the transport bar, styled and behaving like Compress, Only incidents and Select.
  • IP analysis: long domains wrap at their dots instead of mid-label.

Changed

  • Incidents page redesigned: severity in words, host-qualified IDs that no longer overlap the title, occurrences and comment counts in the list, phone cards, a clear detail header, a timeline for activity, and a dedicated suppression block that shows the end date, lets you pick 7, 30 or 90 days, and explains why it is disabled (non-egress, high/critical, or status).
  • Global filter bar redesigned: one period control (relative presets and an exact window with date pickers, validated against the 30-day retention), visible time zone, previous/next window, a host picker with probe status, a live/fixed indicator, Clear filters and Copy link, sticky and compact while scrolling, bottom sheets on phones, full keyboard and screen reader support. Its classes no longer collide with the replay page.
  • IP analysis page rebuilt: identity header, a four-answer summary (what, when, against what, blocked?), a sticky section bar, per-host defense status with unban, ban history table, raw events in their own section with a category filter, and no truncated text at any width.

2.0.0 - 2026-11-15

Breaking release: read docs/migration-2.0.md before upgrading.

Added

  • Ultra-light probe: urutau probe with its own image (urutau-probe, FROM scratch, under 15 MB, about 20 MB of memory, no open port). It follows the Traefik, sshd, fail2ban, port-probe and egress logs of its server and sends them to the hub.
  • Ingestion over plain HTTPS (/api/v1/probe/hello, push, commands) with a disk spool, gzip, idempotent batches and offset-based deduplication, so a hub outage or a restart loses and duplicates nothing. When the spool is full the oldest batches are dropped and the loss is counted and shown.
  • Probe management: urutau probes create|list|revoke, GET/POST/PUT/DELETE /api/v1/probes and the Sources page. The token (urp_...) is shown once and the hub stores only its SHA-256.
  • Location and egress settings (workloads, resolvers, allowed destinations) configured per probe on the hub.
  • urutau import brings a 1.x data directory into the hub as a probe (copy, SHA-256 and count verification, idempotent, --dry-run, --verify, --count), with no loss.
  • Incidents qualified by host (host/INC-n); a bare INC-n means the primary probe.
  • Two images from one Dockerfile (targets hub and probe), both multi-arch, built and published together; deploy/probe/docker-compose.yml and deploy/host/install.sh --probe.

Changed

  • The hub no longer reads local files: the server of the hub runs a probe like any other. The primary probe (the one named like URUTAU_NAME) keeps its data in the data-dir root, unchanged from 1.x.
  • Second firewall: the hub queues ban and unban commands for each probe, which validates them (wire.ValidCmdLine) and appends them to decisions.log and unban.log; the fail2ban jail is unchanged.
  • Sources shows the state of every probe and of each of its sources.
  • The hub image no longer sets the log path variables.
  • Docs, README and screenshots updated to 2.0.0.

Removed

  • Breaking: the peer federation: URUTAU_PEERS, URUTAU_PEER_TOKEN*, URUTAU_PEER_ALLOW, URUTAU_PEER_BLOCKLIST and every /api/v1/peer/* route (now 404). The hub refuses to start when one of these variables is set.
  • Breaking: the log path variables of the hub (URUTAU_TRAEFIK_LOG, URUTAU_AUTH_LOG, URUTAU_FAIL2BAN_LOG, URUTAU_PROBE_LOG, URUTAU_EGRESS_LOG, URUTAU_EGRESS_CONTAINERS, URUTAU_ENFORCE_LOG, URUTAU_ENFORCE_UNBAN_LOG) now belong to the probe. The old image defaults only produce a warning. See docs/migration-2.0.md.

1.6.0 - 2026-11-15

Fixed

  • Code forge browsing is no longer an attack: crawlers (a Alibaba range and Googlebot) reading /owner/repo/src/commit/<sha>/.gitignore, /raw/commit/..., /blame/..., /commits/..., .env.example and similar repository files on a public Gitea (also GitHub and GitLab style blob/tree/raw paths) were classified as scanner, env-probe and vcs-probe, about 58% of the "attackers". Real probes (/.env, /.git/config, /app/.env, traversal) are unchanged.
  • The second firewall excluded crawlers only when the User-Agent claimed to be one, so a verified Googlebot ("GoogleOther") got banned. A forward-confirmed reverse DNS (googlebot.com, google.com, search.msn.com, applebot.apple.com) now excludes the address whatever the User-Agent says; more crawler User-Agents (GoogleOther, Google-InspectionTool, AdsBot, Apple) are recognized.
  • Feedback loop: bans of the urutau jail (our own decisions) and of recidive (which only repeats bans) no longer count as evidence: no score, no strong signal, no blocklist listing. Bans of independent jails (sshd, traefik...) still count.
  • The blocklist coverage was misleading (3%): it counted only listed attackers.

Changed

  • Coverage (blocklist.coverage_pct, blocklist_coverage) now counts an attacker as protected when it is listed or banned by any jail. New fields, additive: blocklist.attackers, covered, one_shot, repeat_ips, repeat_covered, repeat_coverage_pct in /api/v1/defense, and one_shot, repeat_ips, repeat_unblocked in the enforce coverage.
  • Enforce policy for slow attackers: ssh-probe events count half a failure in the SSH rules; a 7-day window bans at 10 SSH failures (probes count half) or 10 web scan/exploit events without a legitimate visit (bounded memory); new reason neighbor-campaign: when 3 or more distinct addresses of a /24 (IPv4) or /64 (IPv6) were banned in the last 24 h, one attack event of another address of the prefix is enough. All exclusions (trusted, private, crawler, infrastructure, legitimate visitor, operator) still apply, and peers accept the new reason.

1.5.8 - 2026-11-15

Not published on its own: there is no v1.5.8 tag. This change (commit bc3ce09) was merged into the same release as 1.6.0 and shipped with it.

Fixed

  • Phones: plain data tables (Concentration ranking, Errors routes, MITRE techniques, Defense, Integrity sources, and any other table without its own phone layout) rendered as squeezed columns with IPs broken letter by letter or sideways scrolling. Under 768 px their rows now become stacked cards with the column name as label, right-aligned numbers and long text wrapping; desktop is unchanged. One shared rule in style.css plus cardTables() in app.js covers all of them. TABLES_ONLY=1 scripts/screenshots.sh captures every table page at 375x812 and checks for horizontal overflow.

1.5.7 - 2026-11-15

Fixed

  • Protocols & TLS: the class legend under the stacked bars had no styles (words glued together, no color swatches, overflowing on phones); the Methods panel no longer reserves a fixed 280 px height with empty space; cipher suite names break at underscores instead of mid-word; on phones the per-class breakdown of each method moves under the method name; an invalid CSS selector disabled the page's mobile one-column rule.

1.5.6 - 2026-11-15

Fixed

  • Phones: the hidden accessible data table of the charts (table.sr-only, ~1300 px wide because tables ignore width: 1px) widened the mobile layout viewport on the egress page, dragging the fixed bottom menu sideways. The table is now fixed-layout at 1 px, and html/body use overflow-x: clip so nothing can widen the page again.

1.5.5 - 2026-11-15

Fixed

  • Incidents on phones: quick actions wrap instead of being cut, filters share the row evenly, and the workload line is no longer indented.

1.5.4 - 2026-11-15

Fixed

  • Incidents list: egress tickets show the pattern on the first line and the workload below, instead of a long auto title cut in the middle; the status tabs are compact and fit in one line at 1280 px.

1.5.3 - 2026-11-15

Fixed

  • Incidents: the Copy button of the fingerprint no longer wraps letter by letter; the list shows one tag per row and a wider host/destination column, so titles and IPs stop being cut.

1.5.2 - 2026-11-15

Changed

  • Incidents redesigned after a UX review: ticket page with a sticky header and quick actions, a main column (summary + unified activity timeline of comments and changes) and a sidebar with inline-saved properties and compact technical data; the list is a dense table with one-line underlined tabs, and the empty state offers "See all". No more empty gaps between panels.

1.5.1 - 2026-11-15

Fixed

  • Incidents: the list accepts ?status= in the link (alias of ?s=), so #/incidents?status=benign opens filtered.
  • Incidents: the ticket creation entry in the history reads "urutau opened the ticket (severity: …)" instead of "changed created".

1.5.0 - 2026-11-15

Added

  • Incident management: every egress finding (severity above info) becomes a ticket INC-<n> keyed by host|kind|workload|dst|dport|proto, created by a sync on each merged egress report and every 60 s. Tickets have status (open, investigating, true_positive, false_positive, benign, resolved), severity, assignee, tags, verdict, comments and a change history; a resolved ticket reopens when the finding reappears. Stored in <data-dir>/incidents.json (atomic write, 0600; a corrupt file is moved to .corrupt); limits of 5000 tickets, 200 comments and 500 history entries each. Every write is also logged (id, field, author).
  • A ticket in false_positive or benign can suppress the findings with exactly its key: they leave /api/v1/egress (and the egress report) unless ?suppressed=1. Findings now carry ticket_id, ticket_status and suppressed, and the response has suppressed_count.
  • API: GET /api/v1/incidents, GET /api/v1/incidents/{id}, POST /api/v1/incidents, PATCH /api/v1/incidents/{id}, POST /api/v1/incidents/{id}/comments and GET /api/v1/incidents/export.csv (not open to the peer token; writes refuse cross-site requests).
  • Suppression expires: a ticket suppresses its findings for 30 days by default (90 at most), and a host with more than 300 active tickets has the excess grouped in one flood ticket.

1.4.8 - 2026-11-15

Fixed

  • Egress analysis, false positives: the nftables kit now logs only TCP connection attempts (SYN without ACK), so replies of banned clients (conntrack recreated mid-flow) no longer show up as bad_dst "attacked us". Re-run deploy/host/install.sh --enforce on the host to apply the new nft rules.
  • Hosts with the old kit: the parser drops TCP lines without a pure SYN and counts them as non_syn_dropped in the egress source (not as malformed).
  • Cloud metadata services (169.254.169.254, fd00:c1::a9fe:a9fe, fd00:ec2::254, link-local) polled by the host itself are infra (info), not beacon; a container reaching them stays a finding (SSRF/credential theft).
  • Regular connections to Akamai (AS20940/AS16625 and its main ranges) and Telegram (AS62041, 149.154.160.0/20, 91.108.0.0/16) are low ("large CDN/cloud network"). Hetzner (e.g. SURBL updates) stays medium: there is no name correlation, and no IP is hardcoded.

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).

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.

Fixed

  • 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.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-14

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.
  • API: GET /api/v1/enforce and GET /api/v1/egress (user only), and the federation routes GET /api/v1/peer/egress, GET and POST /api/v1/peer/decisions (decision sharing, only when URUTAU_ENFORCE_SHARE is on), which join the peer token routes.
  • 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.