Files

27 KiB

◂ Back to README

Interface

Urutau 1.6.0. The dashboard is embedded in the binary: plain HTML, CSS and JavaScript, no build step and no external request (fonts, scripts and styles are all served by Urutau, which the Content-Security-Policy enforces). It follows the system light or dark theme, can be switched by hand, speaks English or Portuguese (button in the header; the choice is remembered in the browser) and has a phone layout. 23 pages, listed below.

Login

Open the address of the instance. Without a session you are sent to /login: paste URUTAU_TOKEN. The session lasts 12 hours (urutau_session cookie, HttpOnly, SameSite=Strict) and is revocable: it holds a random id kept in memory, Log out revokes it (and closes its live stream), and a restart of the daemon invalidates every session. Login and logout reject cross-site requests. After 5 failures from the same address (IPv6 counted per /64) in 10 minutes the login answers 429, and a correct token is still accepted but after a 1 second delay, so the limiter cannot lock the owner out. Wrong bearer tokens on the API count as failures too. The address is the real client behind the proxies listed in --trusted-proxy.

Login page
Login: paste the access token.

Navigation

A side rail (a tab bar on phones, with a "More" menu that scrolls when it is taller than the screen) holds the pages, in five groups. Each page opens with a sentence carrying the number that matters, and the active slice (range, host, domain) is always written under the title. The page lives in the URL hash (#/overview, #/threats, #/geo, #/live, #/replay, #/traffic, #/ips, #/ip/<ip>, #/sources, #/incidents, #/incidents/<id>, #/campaigns/<id>, and so on), so a view can be bookmarked or shared; the Geography page goes deeper, as in #/geo/BR/Pernambuco/Recife (country, state, city). An IP detail drawer opens from any IP. The Incidents item in the rail carries a small counter of open tickets.

Header

  • A live indicator showing whether the event stream (SSE) is connected (an instance serves at most 20 stream clients at once).
  • The host selector: all and every probe of the hub.
  • The period selector: twelve ranges (1h, 2h, 3h, 6h, 12h, 24h, 2d, 3d, 5d, 7d, 15d, 30d) or a custom period (from and to, at most 30 days). It applies to every page.
  • Language, theme and logout buttons.

Page groups

Group Pages
Monitor Overview, Live, Services
Investigate IPs, Sessions, Campaigns, Replay, Event search, Incidents, Outbound traffic
Analyze Threats, MITRE ATT&CK, Geography, Evolution, Concentration, Survival, Traffic, Where errors come from, Protocols and TLS
Operate Defense, Sources and hosts, Integrity
Reports Reports

Pages

Monitor

Overview (#/overview): the headline numbers (requests, malicious events, hostile and suspicious IPs, bans, the "monitoring" counter of benign monitor requests kept out of the traffic numbers), the timeline and the top IPs.

Overview page
Overview (demo data).

Live (#/live): attacks drawn as animated arcs from their origin to the server that saw them, on a flat map or a 3D globe, with the rate, categories, servers, recent origins, a metrics column and latest events, filters, pause and full screen. It opens by replaying the latest events (/api/v1/live/recent), so it is not still on a quiet server. It shows the events of every probe. The position of each server is set per probe on the Sources page (--location is the default of the primary probe).

Live page on the flat map
Live: flat map.

Live page on the 3D globe
Live: 3D globe.

Services (#/slo): a plain-language verdict, KPIs with sparklines, and services from worst to best with availability against the 99.5% SLO, error budget left, burn rate (1 h and 6 h), Apdex and latency. A service detail shows requests and errors, how requests were answered, p95 by hour and failing routes split into service errors, blocked attacks and client mistakes. Services come from the Traefik router and service names.

Page: Services
Services: availability and latency of each service.

Investigate

IPs (#/ips): a table with score, level (hostile, suspicious, low), categories, hosts, reverse DNS, country, city and ASN, last seen and ban state, with a search box (IP or reverse DNS), a level filter, a "banned only" filter, sorting and paging. The detail drawer shows first and last seen, per-category counts, sample paths, User-Agents (parsed into browser, OS, device, bot or attack tool), domains, users and jails. Banned addresses carry an Unban button (see Defense).

IPs page: table of addresses with score, level, origin and ban state
IPs: every address with score and level.

IP analysis (#/ip/<ip>, opened from any IP): the verdict with its reasons, recommended actions, attack families and MITRE ATT&CK techniques, network type (VPN, hosting, mobile, residential, Tor, research scanner), cadence (automated, human-like, mixed), sessions with their stage, campaigns, exposure, the event history, an Unban button and a STIX 2.1 download.

IP analysis page for one attacker
IP analysis: verdict, evidence and recommended actions.

Sessions (#/sessions): the stages of each attacker (recon, probe, exploit, access, banned) as a funnel and a list, with a replay link.

Page: Sessions
Sessions: the stages of each attacker, with a replay link.

Campaigns (#/campaigns, and #/campaigns/<id> for one): coordinated groups of addresses doing the same thing, with a Gantt and similarity; the detail page shows members, timeline and shared traits.

Page: Campaigns
Campaigns: coordinated groups of addresses (Gantt and similarity).

Page: Campaign detail
Campaign detail: members, timeline and shared traits.

Replay (#/replay): a period played back on the map with the ordered event list and the incident timeline, from the event registry. It plays threats only by default (every category but ok, so crawlers browsing a public site do not fill the pages): the category filter also offers "All, including legitimate traffic" or a single category, and the choice is kept in the link (cat=all; threats is the absence of cat). The timeline strip and the lead sentence count the same filter. Opening the page costs one events request, one period request and one (shared) summary request.

Replay page: a period replayed on the map with the ordered event list and the incident timeline
Replay: a period played back, with incidents on the timeline.

Event search (#/search): filter the event registry by IP, path, family and status, paged by cursor.

Page: Search
Search: filter the event registry by IP, path, family and status.

Incidents (#/incidents, #/incidents/<id>): every outbound-traffic finding above info severity becomes a ticket INC-<n>, keyed by host|kind|workload|dst|dport|proto. The list is a dense table with status tabs (open, investigating, true_positive, false_positive, benign, resolved), filters, sorting (updated, severity, last seen), paging and CSV export; ?status= in the link opens it filtered. A ticket page has a sticky header with quick actions, a summary with a unified timeline of comments and changes, and a sidebar with inline-saved properties (severity, assignee, tags, verdict) and compact technical data. A ticket in false_positive or benign can suppress findings with exactly its key, which then leave the Outbound traffic page. A resolved ticket reopens when the finding reappears; you can also open a ticket by hand. Stored in <data-dir>/incidents.json.

Page: Incidents
Incidents: tickets for outbound-traffic findings.

Page: Incident ticket
Incident ticket: summary, activity timeline and properties.

Outbound traffic (#/egress, needs URUTAU_EGRESS and the host kit in deploy/host on a probe): the new outbound connections of the host and containers, logged by nftables, analysed for beaconing (regular conversations with one destination, with the interval histogram), mining, IRC and SMTP ports, contact with addresses that attacked the server or Tor relays, DNS outside the allowed resolvers, unauthorised outbound scans and new countries. It shows a plain-language verdict, evidence cards, a destination map, activity by hour, compact workloads (by network or container name, URUTAU_EGRESS_WORKLOADS; a scanner workload has only its scan-shaped traffic summarised) and the timeline of authorised scans. Servers themselves, probes and the host's own provider never raise findings; regular connections to large CDNs and clouds are low severity, and they never raise a new country (anycast).

Page: Outbound traffic
Outbound traffic: scan bursts, beacons and mining from containers.

Analyze

Threats (#/threats): stacked counters per category, the live feed of the latest events (log fields are shown as text, never as markup) and the top attacked paths, domains, User-Agents and targeted users.

Threats page
Threats: categories over time, KPIs and the latest events.

MITRE ATT&CK (#/mitre): the techniques seen, by tactic, and when each was first seen. Probes of unserved ports reported by the host kit are port-scan (T1046).

Page: MITRE ATT&CK
MITRE ATT&CK: techniques observed, by tactic.

Geography (#/geo): a world map by attacker country. Select a country to see its states or regions and its cities (drawn as circles on the zoomed country), the categories and the top IPs; select a region to narrow cities and IPs. The view is #/geo/<CC>/<region>.

Geography page: world map by attacker country
Geography: the world by attacker country.

Geography page zoomed on Brazil, by state
Geography: a country, by state and city.

Geography page zoomed on the state of Pernambuco, with its city
Geography: a region, with its cities and top IPs.

Evolution (#/evolution): how attacks change over time.

Page: Evolution
Evolution: how attacks change over time.

Concentration (#/concentration): how much of the hostility a few IPs or ASNs account for.

Page: Concentration
Concentration: how much of the hostility a few sources or networks account for.

Survival (#/survival): time to ban and Kaplan-Meier survival curves over attack episodes, with who blocked and how fast (the host fail2ban jails apart from the Urutau second firewall).

Page: Survival
Survival: how long attackers keep coming back.

Traffic (#/traffic): privacy-friendly web analytics for legitimate traffic, built from the same Traefik log: unique visitors, pages, referrers, countries, browsers, operating systems, devices, response latency (p50 and p95), bytes sent and a world map of visitor countries, per domain. A unique visitor is a person with a real browser (a successful GET of a document by a browser User-Agent, one per IP per day, deduplicated globally); bots, tools and unknown clients are counted apart as "non-human clients". Visitors are counted by a hash with a daily salt; the IP of a legitimate visitor is never stored. See SECURITY.md. A section at the bottom, "Own infrastructure and trusted origins", shows the web requests of --trusted and private (--ignore) origins (your servers, probes, CI runners, the Docker gateway) that are kept out of every other number: totals per class, a timeline, status classes, a table by origin (address, class, requests), and top domains and paths. They never score an IP or enter threats, maps, visitors or the blocklist.

Traffic page: web analytics of legitimate visitors
Traffic: privacy-friendly web analytics.

Where errors come from (#/errors): errors split into the classes app, proxy, blocked, attack, bot, client and unknown, so a 5xx from your app is told apart from a broken link or a scanner; response classes, targets and hosts.

Page: Errors
Errors: response classes, targets and hosts.

Protocols and TLS (#/protocol): HTTP versions, TLS versions and cipher suites in use, with the methods and the breakdown by class.

Page: Protocols and TLS
Protocols and TLS: HTTP and TLS versions by class.

Operate

Defense (#/defense): coverage and leaks of bans and of the blocklist. An attacker counts as protected when it is listed or banned by any jail; the API also splits one-shot from repeat attackers (one_shot, repeat_ips). It also holds the second firewall section (URUTAU_ENFORCE=off|observe|on): the mode, recent decisions with their reason (for example known-attacker, port-scan, neighbor-campaign), coverage, and the operator releases. Below it, Firewall: inbound attempts shows what reaches the host before any ban drops it (host kit --ingress): exact totals and an hourly chart from the kit counters, the share that went to closed ports, the share from sources banned at that moment (estimated from the sample), and the top destination ports, origin networks and countries, all labelled as sampled. A cloud provider firewall blocks some ports before the host, so it is what reaches the host. Urutau only decides and writes the decisions to a file; the host fail2ban (jail urutau) applies them, and in observe mode it shows what would be blocked. It never blocks trusted addresses, private ranges, CDN and public resolver ranges, probes, the server itself or crawlers verified by forward-confirmed reverse DNS (Googlebot, Bingbot, Applebot). An Unban button on recent decisions and on the address page asks the host to lift the block (through unban.log next to --enforce-log) and can keep the second firewall from banning the address again for 1 h, 24 h or 7 days. With URUTAU_ENFORCE_SHARE the nodes of the probes exchange decisions, each node applying its own exclusions.

Page: Defense, with the second firewall
Defense: coverage of the host fail2ban and the second firewall (observe mode).

Sources and hosts (#/sources): every probe with its state (connected, last line, lag, version, lines dropped by a full spool, spool size and command errors) and a form to create one (the token is shown once, with a ready compose snippet), edit its location and egress settings, or revoke it; for each probe, every log source with its state (following, waiting, backfill, error, and degraded when more than 20% of the last 1000 lines are unreadable), lines read, malformed lines and last event (file paths are not shown), and the blocklist: pick a minimum score (default 50), copy or download it. It only lists hostile, globally routable addresses (never --ignore or --trusted ranges, never an IP with a successful SSH login, never an address whose only evidence is a ban by the urutau or recidive jails); IPv6 appears as its /64, written x:x:x:x::/64.

Sources and hosts page: instances, log sources and blocklist
Sources and hosts.

Integrity (#/integrity): health of the data: log sources, event registry and snapshot.

Page: Integrity
Integrity: health of the log sources and the registry.

Reports

Reports (#/reports): a preview of the HTML report itself (GET /api/v1/report?format=html), always an A4 sheet scaled to the screen, with only Download and Print; language, period and server come from the header. The report has a cover, an executive summary in plain language, rule-based recommendations, threats, geography, errors and health, visitors, defense, second firewall and outbound traffic, printable on A4.

Page: Reports
Reports: the exportable report.

Themes and phones

Overview in the light theme Overview on a phone
The light theme on a desktop and the phone layout (a tab bar replaces the side rail).

Defense in the light theme Defense on a phone
Defense in the light theme and on a phone.

Outbound traffic in the light theme Outbound traffic on a phone
Outbound traffic in the light theme and on a phone.

On phones, plain data tables (concentration ranking, error routes, MITRE techniques, Defense, Integrity sources) turn into stacked cards with the column name as a label, and nothing scrolls sideways.

Glossary and tooltips

A small "?" button sits next to metrics, categories and column titles. It is keyboard focusable and opens a short explanation (what the figure means) and a "what to do" line, in English or Portuguese. The text comes from one central glossary, so the same term reads the same on every page.

Attribution

State and city boundaries on the Geography page are from Natural Earth, public domain. IP geolocation data by DB-IP, licensed under CC BY 4.0. The credit also appears in the footer of the dashboard.

HTTP routes

Route Auth Purpose
GET /api/health none {"status":"ok"}
GET /login, POST /login, POST /logout none session
GET / and the static files session the dashboard
GET /api/v1/summary session or bearer everything the dashboard shows. Query: range (any named range) or from and to, host (all, a name)
GET /api/v1/traffic session or bearer web analytics of legitimate traffic. Query: range, domain (all or one domain), host. Returns visitors, pages, requests, bots, bytes, status classes, p50_ms, p95_ms, a timeline, top pages, referrers, countries, cities, browsers, operating systems, devices and bot names
GET /api/v1/geo session or URUTAU_TOKEN attacker geography. Without cc: {"countries":[{"cc","events","ips","hostile","suspicious","cats"}]} (up to 250). With cc=XX (and optionally region): {"cc","events","ips","hostile","suspicious","cats","regions":[...],"cities":[{"name","region","lat","lon","events","ips"}],"top_ips":[...]} (64 regions, 200 cities, 50 IPs). Query: range, host. Cached for 5 s
GET /api/v1/live/recent session or URUTAU_TOKEN {"events":[...]}: the latest malicious events of every probe, newest first, in the stream format. Query: limit (default 200, at most 500)
GET /api/v1/events session or bearer events of the registry, newest first. Query: range or from/to, host, ip, cat (a list; a leading ! excludes instead, so cat=!ok is every threat), fam, q, order, limit, cursor
GET /api/v1/events/sessions session or bearer sessions (bursts with a stage) of the period, optionally for one ip
GET /api/v1/period session or bearer the study of a period: sessions, campaigns, first-seen techniques, escalations, spikes, new vs returning, top targets, families, techniques, users and ASNs. Query: range or from/to, host, gap (seconds between sessions, 30 to 86400)
GET /api/v1/period/events session or bearer the events of a period in the stream format, for replay
GET /api/v1/metrics session or bearer stable metrics (see architecture.md). Query: range or from/to, host
GET /api/v1/ip/{ip}/stix session or bearer STIX 2.1 bundle of one IP
GET /api/v1/techniques session or bearer MITRE ATT&CK techniques seen in the period
GET /api/v1/evolution, /concentration, /survival session or bearer analytics of the period: change over time, concentration by IP and ASN, and time to ban with the Kaplan-Meier curve
GET /api/v1/sessions/funnel session or bearer sessions by stage (recon, probe, exploit, access, banned)
GET /api/v1/campaigns, /api/v1/campaigns/{id} session or bearer campaigns of the period, and one campaign with its IPs
GET /api/v1/defense session or bearer ban and blocklist coverage and leaks
GET /api/v1/ingress session or bearer firewall telemetry: inbound attempts (totals exact, sample, ports, asns, countries sampled, hourly). Query: range, host
GET /api/v1/errors session or bearer errors by class (app, proxy, blocked, attack, bot, client, unknown)
GET /api/v1/integrity session or bearer health of the data: sources, registry, snapshot
GET /api/v1/report session or bearer summary of a period (format=html returns the printable A4 report, with lang) (requests, attacks, hostile IPs, bans, visitors, non-human clients, page views, top IPs)
GET /api/v1/services, /api/v1/services/{svc} session or bearer per-service SLI, SLO, error budget, burn rate and Apdex
GET /api/v1/protocols session or bearer HTTP and TLS versions in use
GET /api/v1/ips session or bearer IP table. Query: range, host, min_score, level, q, banned=1, sort (score, last, first, events, ip), order=asc, per (1 to 200, default 50), page
GET /api/v1/ip/{ip} session or bearer summarized analysis of one IP: verdict with reasons, actions, families, techniques, network type, cadence, sessions and exposure; merged with the probes. Query: range or from/to (default 30d)
GET /api/v1/events/stream session or bearer Server-Sent Events, event ev, a ping every 20 s. With visits=1 it also sends anonymous visit events (no address, at most 20 per second)
GET /api/v1/blocklist.txt session or bearer one IP per line. Query: min_score (default 50), range (default 7d), host, family (4, 6; default both; 4 suits ipset hash:ip), download=1
GET /api/v1/blocklist.json session or bearer {"generated","min_score","count","ips":[{"ip","score","last","hosts"}]}; the ip of an IPv6 entry is a /64 prefix
GET /api/v1/incidents session or bearer incident tickets (no comments or history, with comment_count). Query: status (comma list), severity, host, q, sort (updated, severity, last_seen), page, per_page (max 200). Returns {items,total,counts}
GET /api/v1/incidents/{id} session or bearer full ticket with comments and history
GET /api/v1/incidents/export.csv session or bearer the filtered list as CSV
POST /api/v1/incidents session or bearer opens a manual ticket {title,detail,severity,host,tags,author} (body up to 64 KiB, unknown fields refused; cross-site refused)
PATCH /api/v1/incidents/{id} session or bearer partial update {status,severity,assignee,tags,title,verdict,suppress,author}; each change is a history entry. suppress only in false_positive or benign, and hides findings with the exact same key in /api/v1/egress (add suppressed=1 to see them)
POST /api/v1/incidents/{id}/comments session or bearer adds a comment {text,author}
GET /api/v1/egress session or bearer outbound-traffic analysis: verdict, findings (with samples, ticket_id, ticket_status, suppressed), workloads, by_country, suppressed_count. Query: range, host, suppressed=1
GET /api/v1/enforce session or bearer second firewall: mode, recent decisions, coverage and operator releases (allows)
POST /api/v1/enforce/unban session or bearer asks the host to lift a block and, optionally, keeps the address from being banned again for 1 h, 24 h or 7 days (cross-site refused)
DELETE /api/v1/enforce/allow session or bearer ends an operator release
GET /api/v1/probes, POST /api/v1/probes, PUT /api/v1/probes/{name}, DELETE /api/v1/probes/{name} session or bearer probe registry behind the Sources page: list with state, lag and counters, create ({"name"} answers {"token"}, shown once), edit location and egress, revoke (keeps the data)
POST /api/v1/probe/hello, POST /api/v1/probe/push, GET /api/v1/probe/commands probe token only the probe protocol (architecture.md); every other route answers 401 or 403 to a probe token

An invalid range or period answers 400, and range in the responses is an object {name,from,to,step,clipped} (step is the timeline granularity in seconds).

API clients send Authorization: Bearer <URUTAU_TOKEN>. A probe token is accepted only by the three /api/v1/probe/* routes (with the X-Urutau-Probe header); every other route refuses it. The 1.x /api/v1/peer/* routes are gone (404).