Compare commits
No files matched your search
@@ -47,3 +47,10 @@ URUTAU_DOMAINS=
|
||||
URUTAU_MONITOR_FROM=
|
||||
# Time zone of the host: fail2ban.log timestamps are local time.
|
||||
TZ=UTC
|
||||
# Event registry size cap in <data-dir>/events (0 turns it off). Not passed by the
|
||||
# compose file as is: add it to the `environment` block to change the 512MB default.
|
||||
URUTAU_EVENTS_MAX=512MB
|
||||
# Retention, up to 720h (30 days); same note as above.
|
||||
URUTAU_RETENTION=720h
|
||||
# File with Tor exit addresses (one per line); same note as above.
|
||||
URUTAU_TOR_EXITS=
|
||||
@@ -22,3 +22,7 @@ __pycache__/
|
||||
/.superpowers
|
||||
/.superset
|
||||
/graphify-out
|
||||
|
||||
# Runtime pid files left by local test scripts
|
||||
*.pid
|
||||
pid
|
||||
@@ -4,7 +4,190 @@
|
||||
|
||||
Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow SemVer.
|
||||
|
||||
## [Unreleased]
|
||||
## [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).
|
||||
|
||||
## [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).
|
||||
- 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
|
||||
|
||||
@@ -22,7 +205,7 @@ First release.
|
||||
- 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 tab): 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 tabs.
|
||||
- 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`.
|
||||
|
||||
@@ -4,7 +4,190 @@
|
||||
|
||||
Formato baseado no [Keep a Changelog](https://keepachangelog.com/pt-BR/1.1.0/); versionamento segue SemVer.
|
||||
|
||||
## [Unreleased]
|
||||
## [1.5.7] - 2026-11-15
|
||||
|
||||
### Corrigido
|
||||
|
||||
- Protocolos e TLS: a legenda das classes sob as barras empilhadas não tinha estilo (palavras grudadas, sem as cores e estourando no celular); o painel Métodos não reserva mais 280 px fixos com espaço vazio; os nomes das suítes de cifra quebram nos sublinhados em vez de no meio da palavra; no celular o detalhamento por classe de cada método vai para baixo do nome; um seletor CSS inválido desligava a regra de uma coluna no celular.
|
||||
|
||||
## [1.5.6] - 2026-11-15
|
||||
|
||||
### Corrigido
|
||||
|
||||
- Celular: a tabela acessível oculta dos gráficos (`table.sr-only`, ~1300 px porque tabelas ignoram `width: 1px`) alargava o layout na página de tráfego de saída e arrastava o menu inferior fixo para o lado. A tabela agora tem layout fixo de 1 px, e `html`/`body` usam `overflow-x: clip`, para nada mais alargar a página.
|
||||
|
||||
## [1.5.5] - 2026-11-15
|
||||
|
||||
### Corrigido
|
||||
|
||||
- Incidentes no celular: as ações rápidas quebram linha em vez de ficarem cortadas, os filtros dividem a linha por igual e a linha da carga de trabalho não fica mais recuada.
|
||||
|
||||
## [1.5.4] - 2026-11-15
|
||||
|
||||
### Corrigido
|
||||
|
||||
- Lista de incidentes: chamados de egress mostram o padrão na primeira linha e a carga de trabalho embaixo, em vez de um título automático longo cortado no meio; as abas de status ficaram compactas e cabem numa linha em 1280 px.
|
||||
|
||||
## [1.5.3] - 2026-11-15
|
||||
|
||||
### Corrigido
|
||||
|
||||
- Incidentes: o botão Copiar da impressão digital não quebra mais letra por letra; a lista mostra uma etiqueta por linha e coluna de servidor/destino mais larga, então títulos e IPs deixam de ser cortados.
|
||||
|
||||
## [1.5.2] - 2026-11-15
|
||||
|
||||
### Alterado
|
||||
|
||||
- Incidentes redesenhados após revisão de UX: página do chamado com cabeçalho fixo e ações rápidas, coluna principal (resumo + linha do tempo única de comentários e alterações) e barra lateral com propriedades salvas na hora e dados técnicos compactos; a lista virou tabela densa com abas numa linha e o estado vazio oferece "Ver todos". Acabaram os vazios entre painéis.
|
||||
|
||||
## [1.5.1] - 2026-11-15
|
||||
|
||||
### Corrigido
|
||||
|
||||
- Incidentes: a lista aceita `?status=` no link (sinônimo de `?s=`), então `#/incidents?status=benign` abre filtrado.
|
||||
- Incidentes: a criação do chamado no histórico aparece como "urutau abriu o chamado (severidade: …)" em vez de "alterou created".
|
||||
|
||||
## [1.5.0] - 2026-11-15
|
||||
|
||||
### Adicionado
|
||||
|
||||
- Gestão de incidentes: cada achado de egress (severidade acima de info) vira um chamado `INC-<n>` com chave `host|kind|workload|dst|dport|proto`, criado por uma sincronização a cada relatório de egress mesclado e a cada 60 s. O chamado tem status (`open`, `investigating`, `true_positive`, `false_positive`, `benign`, `resolved`), severidade, responsável, etiquetas, conclusão, comentários e histórico de mudanças; um chamado resolvido reabre quando o achado reaparece. Fica em `<data-dir>/incidents.json` (escrita atômica, 0600; arquivo corrompido vai para `.corrupt`); limites de 5000 chamados, 200 comentários e 500 entradas de histórico cada. Toda escrita também vai para o log (id, campo, autor).
|
||||
- Um chamado em `false_positive` ou `benign` pode suprimir os achados com exatamente a sua chave: eles saem de `/api/v1/egress` (e do relatório de egress), salvo com `?suppressed=1`. Os achados agora trazem `ticket_id`, `ticket_status` e `suppressed`, e a resposta tem `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` e `GET /api/v1/incidents/export.csv` (fechada ao token de peer; escritas recusam requisições cross-site).
|
||||
|
||||
## [1.4.8] - 2026-11-15
|
||||
|
||||
### Corrigido
|
||||
|
||||
- Análise de egress, falsos positivos: o kit nftables agora registra só tentativas de conexão TCP (SYN sem ACK), então respostas a clientes banidos (conntrack recriado no meio do fluxo) não aparecem mais como `bad_dst` "nos atacou". **Rode `deploy/host/install.sh --enforce` de novo no host para aplicar o nft novo.**
|
||||
- Hosts com o kit antigo: o parser descarta linhas TCP sem SYN puro e as conta como `non_syn_dropped` na fonte de egress (não como `malformed`).
|
||||
- Serviços de metadados de nuvem (169.254.169.254, `fd00:c1::a9fe:a9fe`, `fd00:ec2::254`, link-local) consultados pelo próprio host são `infra` (info), não beacon; container acessando continua alerta (SSRF/roubo de credencial).
|
||||
- Conexões regulares para Akamai (AS20940/AS16625 e faixas principais) e Telegram (AS62041, 149.154.160.0/20, 91.108.0.0/16) ficam `low` ("rede grande de CDN/nuvem"). Hetzner (ex.: atualização do SURBL) continua `medium`: não há correlação por nome e nenhum IP foi fixado no código.
|
||||
|
||||
## [1.4.7] - 2026-11-15
|
||||
|
||||
### Corrigido
|
||||
|
||||
- O arquivo de desban agora tem como padrão `unban.log` ao lado de `--enforce-log` (o padrão se perdia, e o botão Desbanir dizia que o arquivo não era gravável).
|
||||
- Segundo firewall: as regras de 24 h também contam pelos contadores diários persistentes, então funcionam quando o registro de eventos não cobre o dia inteiro (após um reset ou atualização).
|
||||
|
||||
## [1.4.6] - 2026-11-15
|
||||
|
||||
### Adicionado
|
||||
|
||||
- Desbanir pela interface: botão "Desbanir" nas decisões recentes e na página do endereço pede ao host (por `unban.log` ao lado de `--enforce-log`, flag `--enforce-unban-log`) que libere o bloqueio do fail2ban, e pode impedir o segundo firewall de banir de novo por 1 h, 24 h ou 7 dias (liberações do operador, listadas e encerráveis em Defesa; compartilhadas com os parceiros quando o compartilhamento está ligado). API: `POST /api/v1/enforce/unban`, `DELETE /api/v1/enforce/allow`, `allows` em `GET /api/v1/enforce`.
|
||||
|
||||
## [1.4.5] - 2026-11-15
|
||||
|
||||
### Corrigido
|
||||
|
||||
- Segundo firewall: agora usa o histórico. Endereço com veredito hostil (ou suspeito com score 100 ou mais) é banido no primeiro evento malicioso novo (`known-attacker`); 10 falhas SSH ou 20 eventos de varredura/exploração web em 24 h também banem (atacantes lentos); uma varredura a cada 10 minutos (e após o backfill da partida) bane os endereços ativos nas últimas 24 h que nada bloqueia ainda, no máximo `--enforce-max-per-min` por minuto, mantidas todas as exclusões. A cobertura de `/api/v1/enforce` sai do store e sobrevive a reinícios.
|
||||
|
||||
## [1.4.4] - 2026-11-15
|
||||
|
||||
### Corrigido
|
||||
|
||||
- O log de acesso do Traefik no formato texto padrão agora também é lido (menos campos que o JSON: sem host nem serviço), então um proxy que perde a configuração JSON não descarta mais o tráfego web em silêncio.
|
||||
- Uma fonte com mais de 20% de linhas ilegíveis nas últimas 1000 aparece como degradada (vermelho) em Integridade e Fontes, é registrada no log uma vez por hora e é verificada pelo `urutau doctor`.
|
||||
- Celular: o menu Mais rola quando é maior que a tela.
|
||||
|
||||
## [1.4.3] - 2026-11-15
|
||||
|
||||
### Adicionado
|
||||
|
||||
- Rede Tor: as listas oficiais de saídas e relays são baixadas a cada 6 horas (`URUTAU_TOR_AUTO`, com cache no diretório de dados). Requisições vindas de saídas Tor são marcadas `tor`; um workload falando com um relay Tor é um achado de saída de gravidade alta.
|
||||
|
||||
### Corrigido
|
||||
|
||||
- Tráfego de saída: os próprios servidores (endereços confiáveis, peers, endereços públicos locais) nunca geram achados; conexões regulares do host com o próprio provedor (`URUTAU_EGRESS_PROVIDER_ASN` ou o provedor do seu endereço) aparecem como serviços do provedor, fora do veredito; conexões regulares com grandes CDNs e nuvens têm gravidade baixa, salvo se o destino atacou o servidor.
|
||||
|
||||
## [1.4.2] - 2026-11-15
|
||||
|
||||
### Alterado
|
||||
|
||||
- Página Serviços refeita: veredito em linguagem leiga, indicadores com mini gráficos, serviços dos piores para os melhores com disponibilidade contra o SLO de 99,5%, orçamento de erro restante, consumo, Apdex e latência, e detalhe do serviço com requisições e erros, como as requisições foram respondidas, p95 por hora e rotas que falham separadas em erros do serviço, ataques barrados e enganos do cliente. API: `err_spark` em `/api/v1/services`.
|
||||
|
||||
## [1.4.1] - 2026-11-15
|
||||
|
||||
### Adicionado
|
||||
|
||||
- Fonte de sondagens de rede (`URUTAU_PROBE_LOG`, padrão `/logs/host/probe.log`): o kit do host registra conexões novas de entrada para portas em que nada escuta; cada uma vira um evento `port-scan` (MITRE T1046), e 10 portas distintas em 10 minutos fazem o segundo firewall banir o endereço (motivo `port-scan`).
|
||||
- Sobrevivência: quem bloqueou e com que rapidez, os jails do fail2ban do host separados do segundo firewall do Urutau.
|
||||
- Paginação no backend para sessões, IPs, campanhas e eventos de um endereço, com um paginador único em todas as listas; a busca de eventos pagina por cursor.
|
||||
|
||||
### Alterado
|
||||
|
||||
- Página Tráfego de saída refeita: veredito em linguagem leiga, cartões de evidência (ritmo do beacon e histograma dos intervalos), mapa de destinos, atividade por hora, workloads compactos e a linha do tempo das varreduras autorizadas. API: `findings[].samples`, `by_country`.
|
||||
- Página Relatórios: prévia do próprio relatório HTML, sempre uma folha A4 em escala, só com Baixar e Imprimir; seletor de idioma, período e servidor do topo.
|
||||
- Relatório: logo nítida (a logo do repositório em 800 px) e o desenho da capa agora é o canto do urutau, cinco notas descendentes.
|
||||
|
||||
## [1.4.0] - 2026-11-15
|
||||
|
||||
### Adicionado
|
||||
|
||||
- Segundo firewall (opcional, `URUTAU_ENFORCE=off|observe|on`): o Urutau decide quais endereços atacantes bloquear e grava as decisões num arquivo; o fail2ban do host (jail `urutau`) as aplica. O Urutau não ganha privilégios. O modo observação mostra o que seria bloqueado. Compartilhamento opcional de decisões entre hub e peers (`URUTAU_ENFORCE_SHARE`), aplicado só quando o servidor que recebe também viu o endereço atacar. Nunca bloqueia endereços confiáveis, redes privadas, faixas de CDN (Cloudflare) e de resolvedores públicos, peers nem o próprio servidor. O banimento só derruba conexões que o endereço inicia, então as respostas às conexões do próprio servidor continuam passando.
|
||||
- Análise do tráfego de saída (`URUTAU_EGRESS`): as conexões novas de saída do host e dos contêineres, registradas pelo nftables, são analisadas em busca de beaconing (conversa regular com um destino), mineração, portas de IRC e SMTP, contato com endereços que atacaram o servidor ou saídas Tor, DNS fora dos resolvedores permitidos, varreduras de saída não autorizadas e países novos. Workloads por rede ou nome de contêiner (`URUTAU_EGRESS_WORKLOADS`); um workload `scanner` (scanner de superfície autorizado) só tem resumido o tráfego em formato de varredura, todo o resto é julgado como o de qualquer workload, então o beaconing dele continua sendo detectado.
|
||||
- Kit de host em `deploy/host` (tabela nftables, rsyslog, logrotate, mapa de contêineres, filtro, ação e jail do fail2ban, `install.sh`).
|
||||
- Página nova Tráfego de saída e seção Segundo firewall em Defesa.
|
||||
- Relatório HTML (`/api/v1/report?format=html`): capa, sumário executivo em linguagem leiga, recomendações por regras, ameaças, geografia, erros e saúde, visitantes, defesa, segundo firewall e tráfego de saída, imprimível em A4. A página Relatórios baixa ou imprime.
|
||||
- O script de capturas cobre todas as páginas.
|
||||
|
||||
## [1.3.0] - 2026-11-14
|
||||
|
||||
### Adicionado
|
||||
|
||||
- **Muitas páginas novas**, agrupadas na barra lateral: Monitorar (Visão geral, Ao vivo, Serviços), Investigar (IPs, Sessões, Campanhas, Replay, Busca de eventos), Analisar (Ameaças, MITRE ATT&CK, Geografia, Evolução, Concentração, Sobrevivência, Tráfego, De onde vêm os erros, Protocolos e TLS), Operar (Defesa, Fontes e hosts, Integridade) e Relatórios. Um glossário: um botão "?" ao lado de métricas e categorias explica o que cada uma significa e o que fazer.
|
||||
- **Saúde dos serviços:** SLO por serviço (meta de 99,5%), orçamento de erro, burn rate (1 h e 6 h) e Apdex, a partir dos nomes de router e service do Traefik.
|
||||
- **Classes de erro:** todo erro é classificado como `app`, `proxy`, `blocked`, `attack`, `bot`, `client` ou `unknown`, para distinguir um 5xx do seu app de um link quebrado ou de um scanner. Os campos do Traefik `OriginStatus`, `OriginDuration`, `Overhead`, `OriginContentSize`, `RetryAttempts`, `RouterName`, `ServiceName`, `RequestProtocol`, `RequestScheme`, `TLSVersion` e `TLSCipher` são lidos quando presentes.
|
||||
- **Episódios e sobrevivência:** tempo até o ban e curvas de sobrevivência de Kaplan-Meier calculadas sobre episódios de ataque.
|
||||
- **Rotas novas** (só usuário, nunca o token de peer): `GET /api/v1/techniques`, `/evolution`, `/concentration`, `/survival`, `/sessions/funnel`, `/campaigns`, `/campaigns/{id}`, `/defense`, `/errors`, `/integrity`, `/report`, `/services`, `/services/{svc}` e `/protocols`.
|
||||
- **Stream de visitas legítimas:** `GET /api/v1/events/stream?visits=1` também envia eventos anônimos de visita (sem endereço, User-Agent nem referrer; posição no nível da cidade), no máximo 20 por segundo, nunca gravados em disco.
|
||||
- Documentação da atualização da geolocalização: o Urutau confere a cada 24 horas (`--geo-update`), enquanto a DB-IP publica uma vez por mês.
|
||||
|
||||
### Alterado
|
||||
|
||||
- **Os visitantes únicos foram corrigidos.** Um visitante agora é uma pessoa com navegador real: um GET bem-sucedido de um documento por um User-Agent de navegador (não bot, ferramenta nem cliente desconhecido, nem prefetch), um por IP por dia, deduplicado globalmente. Bots, ferramentas e clientes desconhecidos são contados à parte como "clientes não humanos". O número é menor que antes, e menor que o do Coolify, que conta todo IP distinto com HyperLogLog e sem filtro.
|
||||
- Caminhos e valores de `Referer` que contêm e-mail ou token são normalizados para `:id`.
|
||||
|
||||
## [1.2.0] - 2026-11-14
|
||||
|
||||
### Adicionado
|
||||
|
||||
- **Memória maior e qualquer período:** a retenção padrão e máxima agora é 30 dias (720h). Doze intervalos (`1h`, `2h`, `3h`, `6h`, `12h`, `24h`, `2d`, `3d`, `5d`, `7d`, `15d`, `30d`) e um período personalizado com `from` e `to` (segundos unix, no máximo 30 dias). Um `range` inválido responde 400, e `range` nas respostas agora é um objeto `{name,from,to,step,clipped}`; o `step` (granularidade) da linha do tempo acompanha o tamanho da janela.
|
||||
- **Registro de eventos** em `<data-dir>/events/`: uma linha JSON por evento (o formato do stream ao vivo), um arquivo por dia UTC, dias antigos compactados com gzip, limitado por idade (a retenção) e por tamanho (`--events-max` / `URUTAU_EVENTS_MAX`, padrão 512 MB, `0` desliga). Guarda eventos maliciosos, ban e unban, logins SSH bem-sucedidos, um 404 para uma ferramenta de ataque, e respostas `ok`/`notfound` só de endereços já suspeitos ou hostis; nunca um visitante legítimo. Disco cheio, o teto de tamanho ou o teto diário de linhas descartam eventos (contados, nunca fatais), e uma linha corrompida é ignorada.
|
||||
- **API de investigação:** `GET /api/v1/events`, `/api/v1/events/sessions`, `/api/v1/period`, `/api/v1/period/events`, `/api/v1/metrics`, o novo `GET /api/v1/ip/{ip}` resumido e `GET /api/v1/ip/{ip}/stix`; e a rota de peer `GET /api/v1/peer/period`, então o token de peer agora abre três rotas (export, stream e period).
|
||||
- **Inteligência:** famílias de ataque, técnicas MITRE ATT&CK, tipo de rede (VPN, hospedagem, móvel, residencial, Tor, scanner de pesquisa; sem API externa), cadência das requisições (automatizada, humana, mista), sessões com estágios (recon, probe, exploit, access, banned), campanhas (vários IPs fazendo a mesma coisa), um veredito com razões, ações recomendadas, exposição (um 2xx em caminho sensível), exportação STIX 2.1, DNS reverso confirmado para Googlebot e Bingbot, `--tor-exits` / `URUTAU_TOR_EXITS` (um arquivo com endereços de saída do Tor) e usuários SSH de `--admin-users` marcados como tal.
|
||||
- **Métricas estáveis** (sem taxa por minuto) em `/api/v1/metrics`: ataques por hora, tendência, atacantes ativos e novos, taxa de retorno, sessões por dia, taxa de exposição, exploits recusados, tempo até o ban, cobertura e vazamento de ban e blocklist, falhas SSH e concentração por IP e ASN.
|
||||
- **Interface:** seletor de período (intervalos nomeados e período personalizado), página de análise de IP (`#/ip/<ip>`), página Replay (`#/replay`), Geografia até estado e cidade (`#/geo/BR/Pernambuco/Recife`, limites dos estados do Natural Earth, domínio público) e uma coluna de métricas na página Ao vivo.
|
||||
|
||||
### Alterado
|
||||
|
||||
- O limite suave de memória é 256 MiB (pior caso medido: cerca de 54 MiB de heap e um snapshot de cerca de 27 MB). No Docker, recomenda-se `mem_limit: 384m`.
|
||||
|
||||
## [1.1.1] - 2026-11-14
|
||||
|
||||
### Corrigido
|
||||
|
||||
- Página Ao vivo, modo globo: as cores do mar e da terra não se trocam mais enquanto o globo gira. Cada contorno de país agora é recortado no horizonte e fechado ao longo da borda do globo, e as arestas longas seguem a projeção do mapa.
|
||||
- Dados do mapa-múndi: países que cruzam o meridiano 180 (Rússia, Fiji) são fechados ao longo da borda do mapa, então o Mar de Okhotsk não é mais pintado como terra nos mapas planos.
|
||||
|
||||
## [1.1.0] - 2026-11-14
|
||||
|
||||
### Adicionado
|
||||
|
||||
- **Interface nova:** trilho lateral com sete páginas (Visão geral, Ameaças, Geografia, Ao vivo, Tráfego, IPs, Fontes e hosts), uma frase de abertura em cada página com o número que importa, o recorte ativo (intervalo, host, domínio) sempre escrito sob o título, painel de detalhe de IP e temas claro e escuro a partir de tokens de design.
|
||||
- **Página Geografia:** mapa-múndi por país de origem dos ataques; selecione um país para ver estados ou regiões e cidades (cidades como círculos no país ampliado), as categorias e os IPs principais; selecione uma região para filtrar cidades e IPs. A vista fica na URL (`#/geo/BR/Pernambuco`).
|
||||
- **Página Ao vivo:** ataques desenhados como arcos animados da origem até o servidor que os viu, em mapa plano ou globo 3D, com ritmo, categorias, servidores, origens recentes e os últimos eventos; filtros, pausa e tela cheia. Ela abre reproduzindo os últimos eventos, então nunca fica parada num servidor calmo.
|
||||
- **API:** `GET /api/v1/geo` (países, ou um país com regiões, cidades e `top_ips`), `GET /api/v1/live/recent`, e `host`, `src` e `dst` em cada evento ao vivo.
|
||||
- **Federação ao vivo:** o hub mantém `GET /api/v1/peer/stream` aberto em cada peer e repassa os eventos ao vivo deles, com limites e sanitização.
|
||||
- **`--location` / `URUTAU_LOCATION`:** a posição da instância no mapa.
|
||||
- **`--peer-blocklist` / `URUTAU_PEER_BLOCKLIST`** (`on` por padrão): `off` restringe a blocklist do hub às observações locais.
|
||||
|
||||
### Segurança
|
||||
|
||||
- Eventos e linhas de resumo vindos de peers são reconstruídos a partir de campos validados (endereço, código de país, categoria); os sinalizadores `forged` e `unban` vindos de peers são ignorados.
|
||||
- O repasse ao vivo desconecta um peer que mande mais de cerca de 1 MB/s, além do teto de eventos.
|
||||
- Os arquivos estáticos são servidos do diretório embutido por um padrão de nome estrito.
|
||||
|
||||
## [1.0.0] - 2026-11-14
|
||||
|
||||
@@ -22,7 +205,7 @@ Primeira versão.
|
||||
- Federação: `--peer nome=https://url` agrega outras instâncias. Um hub só chama `GET /api/v1/peer/export?range=1h|24h|7d` (`{"v":1,"summary":...,"traffic":{...}}`, 500 IPs principais com detalhe, cache de 5 s) a cada 15 s, com timeout de 4 s, limite de 8 MB, sem redirects, `https` obrigatório fora de loopback e dados do peer sanitizados e limitados. `--peer-allow` / `URUTAU_PEER_ALLOW` limita os CIDRs de origem do export.
|
||||
- Geolocalização offline (país, cidade, ASN) a partir das bases DB-IP Lite (CC BY 4.0), baixadas e atualizadas pelo Urutau (`--geo-dir`, `--geo-update`) e lidas por um leitor MMDB embutido e sem dependências.
|
||||
- Interpretação de User-Agent em navegador, sistema operacional, dispositivo, bots e ferramentas de ataque.
|
||||
- Web analytics amigável à privacidade para o tráfego legítimo (aba Tráfego): visitantes únicos por hash com sal diário, páginas, referrers, países, navegadores, dispositivos, latência p50 e p95, bytes e mapa-múndi. O IP de um visitante legítimo nunca é persistido. Ameaças e Tráfego são abas separadas.
|
||||
- Web analytics amigável à privacidade para o tráfego legítimo (página Tráfego): visitantes únicos por hash com sal diário, páginas, referrers, países, navegadores, dispositivos, latência p50 e p95, bytes e mapa-múndi. O IP de um visitante legítimo nunca é persistido. Ameaças e Tráfego são páginas separadas.
|
||||
- Enriquecimento com DNS reverso dos IPs listados.
|
||||
- Filtros de ruído: `--trusted` / `URUTAU_TRUSTED` (alias `--ignore`) descarta eventos de CIDRs confiáveis, e `--monitor-ua` / `URUTAU_MONITOR_UA` mantém requisições benignas de monitoramento (como o Uptime-Kuma) fora dos números de tráfego.
|
||||
- `urutau doctor [--json]` para conferir a configuração, as fontes, o diretório de dados, as bases de geolocalização e o snapshot; a saída JSON traz `geo` e `state`.
|
||||
|
||||
@@ -8,6 +8,16 @@
|
||||
|
||||
---
|
||||
|
||||
<p align="center"><img src="docs/img/overview-dark.png" width="900" alt="Urutau overview page: headline sentence, KPI cards, activity by category timeline"><br><sub>The Overview page: hostile IPs, attack rate and activity by category (demo data).</sub></p>
|
||||
|
||||
<p align="center"><img src="docs/img/live-globe-dark.png" width="900" alt="Urutau live page on the 3D globe: animated arcs from attacker cities to the servers edge-1 and edge-2"><br><sub>Live: attacks as animated arcs on a 3D globe (demo data, reserved addresses only).</sub></p>
|
||||
|
||||
<p align="center"><img src="docs/img/ip-analysis-dark.png" width="900" alt="Urutau IP analysis page: verdict, score, critical exposure and recommended actions for one attacker"><br><sub>IP analysis: verdict, evidence and recommended actions for one address.</sub></p>
|
||||
|
||||
<p align="center"><img src="docs/img/defense-dark.png" width="900" alt="Urutau defense page with the second firewall section"><br><sub>Defense: the second firewall in observe mode, next to the host fail2ban.</sub></p>
|
||||
|
||||
<p align="center"><img src="docs/img/egress-dark.png" width="900" alt="Egress"><br><sub>Egress: scan bursts, beacons and mining from containers.</sub></p>
|
||||
|
||||
**Status: stable, v1.0.0.** See [CHANGELOG.md](CHANGELOG.md) for exactly what shipped.
|
||||
|
||||
Urutau is a small panel that runs on each of your servers (as a container), reads the logs the server already writes, and answers one question: who is attacking me right now? It classifies hostile activity, scores every source IP, keeps a rolling window on disk and serves an embedded dashboard, a JSON API and an exportable blocklist.
|
||||
@@ -17,11 +27,11 @@ Urutau is a small panel that runs on each of your servers (as a container), read
|
||||
- **Scores IPs:** every event adds weight to its source IP. A score of 10 or more is **suspicious**; **hostile** needs 50 or more **and** a strong signal (an attack tool, two or more attack categories, a ban, or a clear exploit attempt that was refused). Scanner and exploit probes that got a 2xx or 3xx answer weigh only 0.5. An IP with a successful SSH login is never hostile and never reaches the blocklist.
|
||||
- **Geolocation, offline:** country, city and ASN for every IP from the free DB-IP Lite databases, downloaded and refreshed by Urutau itself, read by a built-in MMDB reader with no dependency. Nothing is looked up online.
|
||||
- **Understands User-Agents:** browser, operating system, device, bots and attack tools.
|
||||
- **Web analytics for legitimate traffic:** unique visitors, pages, referrers, countries, browsers, devices, latency (p50 and p95) and bytes, with a world map, replacing your proxy's analytics. Separate **Threats** and **Traffic** tabs.
|
||||
- **Lightweight:** Go standard library only, one static binary, a soft memory limit of 160 MiB, state in a single snapshot file. No database.
|
||||
- **Live dashboard:** embedded vanilla UI (English and Portuguese, light and dark), updated through Server-Sent Events.
|
||||
- **Web analytics for legitimate traffic:** unique visitors, pages, referrers, countries, browsers, devices, latency (p50 and p95) and bytes, with a world map, replacing your proxy's analytics. Separate **Threats** and **Traffic** pages.
|
||||
- **Lightweight:** Go standard library only, one static binary, a soft memory limit of 256 MiB, state in a single snapshot file. No database.
|
||||
- **Live dashboard:** embedded vanilla UI (English and Portuguese, light and dark), updated through Server-Sent Events, with nine pages (see below).
|
||||
- **Blocklist:** hostile, globally routable IPs as plain text or JSON, ready for fail2ban, ipset, nginx or a firewall. IPv6 is aggregated by /64 and exported as `x:x:x:x::/64`.
|
||||
- **Federation:** one instance (the hub) aggregates others with `--peer name=url`, pulling `/api/v1/peer/export`.
|
||||
- **Federation:** one instance (the hub) aggregates others with `--peer name=url`, pulling `/api/v1/peer/export` and relaying their live events through `/api/v1/peer/stream`.
|
||||
|
||||
## How it works
|
||||
|
||||
@@ -39,10 +49,28 @@ Urutau is a small panel that runs on each of your servers (as a container), read
|
||||
dashboard (SSE) /api/v1/* JSON blocklist.txt / .json
|
||||
|
||||
hub ── GET /api/v1/peer/export (peer token) ──► peer A
|
||||
│ ── GET /api/v1/peer/stream (live events) ──► peer A
|
||||
│ ── GET /api/v1/peer/export (peer token) ──► peer B
|
||||
│ ── GET /api/v1/peer/stream (live events) ──► peer B
|
||||
└──► one dashboard for the whole fleet
|
||||
```
|
||||
|
||||
## Investigation
|
||||
|
||||
Beyond live numbers, Urutau remembers and explains. It keeps 30 days of state and an event registry on disk (`<data-dir>/events/`, capped by `--events-max`, 512 MB by default), so you can pick any period (twelve named ranges or a custom `from`/`to`), replay it, and open an IP analysis page with a verdict and its reasons, attack families, MITRE ATT&CK techniques, network type, cadence, sessions, campaigns and recommended actions, with a STIX 2.1 export. The registry holds attackers only: never the address of a legitimate visitor. See [docs/architecture.md](docs/architecture.md).
|
||||
|
||||
## Interface
|
||||
|
||||
Pages are grouped in a side rail, with the view kept in the URL hash. A "?" button next to metrics and categories explains what they mean and what to do.
|
||||
|
||||
- **Monitor:** Overview (headline numbers, timeline, top IPs; a period selector applies everywhere), Live (attacks as animated arcs on a flat map or a 3D globe, including your peers; `--location` sets where this server sits on the map), Services (SLO, error budget and Apdex per service).
|
||||
- **Investigate:** IPs (the scored table and the IP analysis page, `#/ip/<ip>`), Sessions, Campaigns, Replay (a period played back on the map) and Event search.
|
||||
- **Analyze:** Threats, MITRE ATT&CK, Geography (country, state, city, `#/geo/BR/Pernambuco/Recife`), Evolution, Concentration, Survival (time to ban), Traffic (privacy-friendly analytics for legitimate visitors), Where errors come from (app, proxy, blocked, attack, bot, client) and Protocols and TLS.
|
||||
- **Operate:** Defense, Sources and hosts (log sources, peers and the blocklist) and Integrity.
|
||||
- **Reports.**
|
||||
|
||||
See [docs/interface.md](docs/interface.md).
|
||||
|
||||
## Install
|
||||
|
||||
Run it with Docker Compose (recommended):
|
||||
@@ -87,7 +115,7 @@ Your own infrastructure produces events too. Two filters keep it out of the pict
|
||||
- `--trusted` / `URUTAU_TRUSTED`: CIDRs of trusted origins (your office, your monitors, your other servers). Their events are dropped entirely. `--ignore` remains as an alias.
|
||||
- `--monitor-ua` / `URUTAU_MONITOR_UA`: a regular expression matching monitoring User-Agents (the default includes Uptime-Kuma). A request that matches and is benign is not counted as traffic; it feeds a separate "monitoring" counter. If the same request is a `scanner`, `exploit` or `bruteforce`, it counts as an attack, because a User-Agent is trivial to forge.
|
||||
- `--monitor-from` / `URUTAU_MONITOR_FROM`: CIDRs the monitors really come from. When set, the monitoring User-Agent is honored only from those networks. Without it, only `ok` answers are filtered (a `notfound` from a monitor User-Agent still counts), since anyone can forge the header.
|
||||
- `--domains` / `URUTAU_DOMAINS`: an allowlist of domains for the Traffic tab (exact names or `*.example.com`). A domain only gets a slot after a 2xx answer, and inactive domains are pruned, so random `Host` headers cannot fill the analytics.
|
||||
- `--domains` / `URUTAU_DOMAINS`: an allowlist of domains for the Traffic page (exact names or `*.example.com`). A domain only gets a slot after a 2xx answer, and inactive domains are pruned, so random `Host` headers cannot fill the analytics.
|
||||
|
||||
## Geolocation and attribution
|
||||
|
||||
@@ -95,7 +123,7 @@ Urutau shows country, city and ASN for every IP using the free **DB-IP Lite** da
|
||||
|
||||
> IP geolocation data by [DB-IP](https://db-ip.com), licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
|
||||
|
||||
The attribution is also shown in the dashboard. If you redistribute the databases or anything derived from them, keep it.
|
||||
The attribution is also shown in the dashboard. The state and city boundaries drawn on the Geography page come from [Natural Earth](https://www.naturalearthdata.com) (public domain). If you redistribute the databases or anything derived from them, keep it.
|
||||
|
||||
## Privacy
|
||||
|
||||
@@ -161,7 +189,7 @@ See **[CONTRIBUTING.md](CONTRIBUTING.md)** and **[docs/architecture.md](docs/arc
|
||||
## Known limits
|
||||
|
||||
- Only three sources: Traefik JSON access log, sshd lines from `auth.log` (ISO timestamps) and `fail2ban.log`.
|
||||
- State is kept for 7 days at most (`--retention`), with up to 20,000 tracked IPs.
|
||||
- State is kept for 30 days at most (`--retention`), with up to 20,000 tracked IPs; the event registry is capped by `--events-max`.
|
||||
- The dashboard login is a single shared token; there are no user accounts.
|
||||
- Scores are heuristics, not proof of malicious intent.
|
||||
|
||||
@@ -172,8 +200,9 @@ Summary of the [ROADMAP](ROADMAP.md):
|
||||
| | |
|
||||
|---|---|
|
||||
| **Done (1.0.0)** | Log collection, classification and scoring, offline geolocation, User-Agent parsing, privacy-friendly web analytics, snapshot persistence, dashboard with SSE, token login, blocklist, federation, Docker image and CI/CD |
|
||||
| **Done (1.2.0)** | 30-day retention, any period, on-disk event registry, replay, IP analysis with verdict, MITRE ATT&CK, campaigns, STIX 2.1 and stable metrics |
|
||||
| **Next** | More log sources, webhook alerts, Prometheus metrics |
|
||||
| **Later** | IP reputation enrichment, longer retention |
|
||||
| **Later** | IP reputation enrichment |
|
||||
| **Not planned** | Active scanning or counterattack, mandatory cloud services, telemetry |
|
||||
|
||||
## License
|
||||
|
||||
@@ -8,6 +8,16 @@
|
||||
|
||||
---
|
||||
|
||||
<p align="center"><img src="docs/img/overview-dark-pt.png" width="900" alt="Página Visão geral do Urutau: frase de destaque, cartões de KPI e linha do tempo por categoria"><br><sub>A página Visão geral: IPs hostis, taxa de ataques e atividade por categoria (dados de demonstração).</sub></p>
|
||||
|
||||
<p align="center"><img src="docs/img/live-globe-dark-pt.png" width="900" alt="Página Ao vivo do Urutau no globo 3D: arcos animados das cidades dos atacantes até os servidores edge-1 e edge-2"><br><sub>Ao vivo: ataques como arcos animados num globo 3D (dados de demonstração, só endereços reservados).</sub></p>
|
||||
|
||||
<p align="center"><img src="docs/img/ip-analysis-dark-pt.png" width="900" alt="Página de análise de IP do Urutau: veredito, pontuação, exposição crítica e ações recomendadas para um atacante"><br><sub>Análise de IP: veredito, evidências e ações recomendadas para um endereço.</sub></p>
|
||||
|
||||
<p align="center"><img src="docs/img/defense-dark-pt.png" width="900" alt="Página Defesa do Urutau com a seção do segundo firewall"><br><sub>Defesa: o segundo firewall em modo observe, ao lado do fail2ban do host.</sub></p>
|
||||
|
||||
<p align="center"><img src="docs/img/egress-dark-pt.png" width="900" alt="Egress"><br><sub>Saída: rajadas de varredura, beacons e mineração em contêineres.</sub></p>
|
||||
|
||||
**Status: estável, v1.0.0.** Veja o [CHANGELOG.pt-BR.md](CHANGELOG.pt-BR.md) para saber exatamente o que foi entregue.
|
||||
|
||||
O Urutau é um painel pequeno que roda em cada um dos seus servidores (como container), lê os logs que o servidor já escreve e responde a uma pergunta: quem está me atacando agora? Ele classifica a atividade hostil, pontua cada IP de origem, mantém uma janela móvel em disco e serve um dashboard embutido, uma API JSON e uma blocklist exportável.
|
||||
@@ -17,11 +27,11 @@ O Urutau é um painel pequeno que roda em cada um dos seus servidores (como cont
|
||||
- **Pontua IPs:** cada evento soma peso ao IP de origem. Pontuação 10 ou mais é **suspeito**; **hostil** exige 50 ou mais **e** um sinal forte (uma ferramenta de ataque, duas ou mais categorias de ataque, um ban ou uma tentativa clara de exploit recusada). Sondas de scanner e exploit que receberam resposta 2xx ou 3xx pesam só 0,5. Um IP com login SSH bem-sucedido nunca é hostil e nunca vai para a blocklist.
|
||||
- **Geolocalização offline:** país, cidade e ASN de todo IP a partir das bases gratuitas DB-IP Lite, baixadas e atualizadas pelo próprio Urutau, lidas por um leitor MMDB embutido e sem dependências. Nada é consultado online.
|
||||
- **Entende User-Agents:** navegador, sistema operacional, dispositivo, bots e ferramentas de ataque.
|
||||
- **Web analytics do tráfego legítimo:** visitantes únicos, páginas, referrers, países, navegadores, dispositivos, latência (p50 e p95) e bytes, com mapa-múndi, no lugar do analytics do seu proxy. Abas **Ameaças** e **Tráfego** separadas.
|
||||
- **Leve:** só biblioteca padrão do Go, um binário estático, limite suave de memória de 160 MiB, estado em um único arquivo de snapshot. Sem banco de dados.
|
||||
- **Dashboard ao vivo:** UI vanilla embutida (inglês e português, claro e escuro), atualizada por Server-Sent Events.
|
||||
- **Web analytics do tráfego legítimo:** visitantes únicos, páginas, referrers, países, navegadores, dispositivos, latência (p50 e p95) e bytes, com mapa-múndi, no lugar do analytics do seu proxy. Páginas **Ameaças** e **Tráfego** separadas.
|
||||
- **Leve:** só biblioteca padrão do Go, um binário estático, limite suave de memória de 256 MiB, estado em um único arquivo de snapshot. Sem banco de dados.
|
||||
- **Dashboard ao vivo:** UI vanilla embutida (inglês e português, claro e escuro), atualizada por Server-Sent Events, com nove páginas (veja abaixo).
|
||||
- **Blocklist:** IPs hostis e globalmente roteáveis em texto ou JSON, prontos para fail2ban, ipset, nginx ou firewall. O IPv6 é agregado por /64 e exportado como `x:x:x:x::/64`.
|
||||
- **Federação:** uma instância (o hub) agrega outras com `--peer nome=url`, puxando `/api/v1/peer/export`.
|
||||
- **Federação:** uma instância (o hub) agrega outras com `--peer nome=url`, puxando `/api/v1/peer/export` e repassando os eventos ao vivo deles por `/api/v1/peer/stream`.
|
||||
|
||||
## Como funciona
|
||||
|
||||
@@ -39,10 +49,28 @@ O Urutau é um painel pequeno que roda em cada um dos seus servidores (como cont
|
||||
dashboard (SSE) /api/v1/* JSON blocklist.txt / .json
|
||||
|
||||
hub ── GET /api/v1/peer/export (token de peer) ──► peer A
|
||||
│ ── GET /api/v1/peer/stream (eventos ao vivo) ──► peer A
|
||||
│ ── GET /api/v1/peer/export (token de peer) ──► peer B
|
||||
│ ── GET /api/v1/peer/stream (eventos ao vivo) ──► peer B
|
||||
└──► um dashboard para a frota inteira
|
||||
```
|
||||
|
||||
## Investigação
|
||||
|
||||
Além dos números ao vivo, o Urutau lembra e explica. Ele guarda 30 dias de estado e um registro de eventos em disco (`<data-dir>/events/`, limitado por `--events-max`, 512 MB por padrão), então você pode escolher qualquer período (doze intervalos nomeados ou um `from`/`to` personalizado), reproduzi-lo e abrir uma página de análise de IP com um veredito e suas razões, famílias de ataque, técnicas MITRE ATT&CK, tipo de rede, cadência, sessões, campanhas e ações recomendadas, com exportação STIX 2.1. O registro guarda só atacantes: nunca o endereço de um visitante legítimo. Veja [docs/pt-BR/arquitetura.md](docs/pt-BR/arquitetura.md).
|
||||
|
||||
## Interface
|
||||
|
||||
As páginas são agrupadas numa barra lateral, com a visão guardada no hash da URL. Um botão "?" ao lado de métricas e categorias explica o que significam e o que fazer.
|
||||
|
||||
- **Monitorar:** Visão geral (números principais, linha do tempo, principais IPs; um seletor de período vale em todo lugar), Ao vivo (ataques como arcos animados em mapa plano ou globo 3D, incluindo seus peers; `--location` define onde este servidor fica no mapa), Serviços (SLO, orçamento de erro e Apdex por serviço).
|
||||
- **Investigar:** IPs (a tabela pontuada e a página de análise de IP, `#/ip/<ip>`), Sessões, Campanhas, Replay (um período reproduzido no mapa) e Busca de eventos.
|
||||
- **Analisar:** Ameaças, MITRE ATT&CK, Geografia (país, estado, cidade, `#/geo/BR/Pernambuco/Recife`), Evolução, Concentração, Sobrevivência (tempo até o ban), Tráfego (analytics amigável à privacidade para visitantes legítimos), De onde vêm os erros (app, proxy, blocked, attack, bot, client) e Protocolos e TLS.
|
||||
- **Operar:** Defesa, Fontes e hosts (fontes de log, peers e a blocklist) e Integridade.
|
||||
- **Relatórios.**
|
||||
|
||||
Veja [docs/pt-BR/interface.md](docs/pt-BR/interface.md).
|
||||
|
||||
## Instalação
|
||||
|
||||
Rode com Docker Compose (recomendado):
|
||||
@@ -87,7 +115,7 @@ Sua própria infraestrutura também gera eventos. Dois filtros a tiram do quadro
|
||||
- `--trusted` / `URUTAU_TRUSTED`: CIDRs de origens confiáveis (seu escritório, seus monitores, seus outros servidores). Os eventos delas são descartados por completo. `--ignore` continua como alias.
|
||||
- `--monitor-ua` / `URUTAU_MONITOR_UA`: expressão regular de User-Agents de monitoramento (o padrão inclui Uptime-Kuma). Uma requisição que casa e é benigna não conta como tráfego; ela alimenta um contador "monitoring" à parte. Se a mesma requisição for `scanner`, `exploit` ou `bruteforce`, conta como ataque, porque um User-Agent é trivial de forjar.
|
||||
- `--monitor-from` / `URUTAU_MONITOR_FROM`: CIDRs de onde os monitores realmente vêm. Quando definido, o User-Agent de monitoramento só vale vindo dessas redes. Sem ele, só respostas `ok` são filtradas (um `notfound` com User-Agent de monitor ainda conta), já que qualquer um pode forjar o cabeçalho.
|
||||
- `--domains` / `URUTAU_DOMAINS`: uma lista de domínios permitidos para a aba Tráfego (nomes exatos ou `*.exemplo.com`). Um domínio só ganha vaga depois de uma resposta 2xx, e domínios inativos são podados, então `Host` aleatórios não enchem o analytics.
|
||||
- `--domains` / `URUTAU_DOMAINS`: uma lista de domínios permitidos para a página Tráfego (nomes exatos ou `*.exemplo.com`). Um domínio só ganha vaga depois de uma resposta 2xx, e domínios inativos são podados, então `Host` aleatórios não enchem o analytics.
|
||||
|
||||
## Geolocalização e atribuição
|
||||
|
||||
@@ -95,11 +123,11 @@ O Urutau mostra país, cidade e ASN de cada IP usando as bases gratuitas **DB-IP
|
||||
|
||||
> Dados de geolocalização de IP por [DB-IP](https://db-ip.com), licenciados sob [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
|
||||
|
||||
A atribuição também aparece no dashboard. Se você redistribuir as bases ou algo derivado delas, mantenha-a.
|
||||
A atribuição também aparece no dashboard. Os limites de estados e cidades desenhados na página Geografia vêm do [Natural Earth](https://www.naturalearthdata.com) (domínio público). Se você redistribuir as bases ou algo derivado delas, mantenha-a.
|
||||
|
||||
## Privacidade
|
||||
|
||||
A aba **Tráfego** conta visitantes legítimos sem rastreá-los. Um visitante único é um hash calculado com um sal que muda todo dia, então não acompanha uma pessoa de um dia para o outro, e o endereço IP de um visitante legítimo nunca é persistido: nem no snapshot, nem em log, nem em exportação. Endereços IP são guardados apenas para atividade classificada como hostil, que é o que uma ferramenta de segurança existe para registrar. Sem cookies, fingerprinting nem requisições a terceiros, o desenho dispensa banner de consentimento, mas a licitude do seu uso perante a LGPD ou o GDPR continua sendo decisão sua, como controlador. Veja [SECURITY.pt-BR.md](SECURITY.pt-BR.md).
|
||||
A página **Tráfego** conta visitantes legítimos sem rastreá-los. Um visitante único é um hash calculado com um sal que muda todo dia, então não acompanha uma pessoa de um dia para o outro, e o endereço IP de um visitante legítimo nunca é persistido: nem no snapshot, nem em log, nem em exportação. Endereços IP são guardados apenas para atividade classificada como hostil, que é o que uma ferramenta de segurança existe para registrar. Sem cookies, fingerprinting nem requisições a terceiros, o desenho dispensa banner de consentimento, mas a licitude do seu uso perante a LGPD ou o GDPR continua sendo decisão sua, como controlador. Veja [SECURITY.pt-BR.md](SECURITY.pt-BR.md).
|
||||
|
||||
## Usando a blocklist
|
||||
|
||||
@@ -161,7 +189,7 @@ Veja **[CONTRIBUTING.pt-BR.md](CONTRIBUTING.pt-BR.md)** e **[docs/pt-BR/arquitet
|
||||
## Limites conhecidos
|
||||
|
||||
- Só três fontes: access log JSON do Traefik, linhas do sshd no `auth.log` (timestamps ISO) e `fail2ban.log`.
|
||||
- O estado é mantido por no máximo 7 dias (`--retention`), com até 20.000 IPs rastreados.
|
||||
- O estado é mantido por no máximo 30 dias (`--retention`), com até 20.000 IPs rastreados; o registro de eventos é limitado por `--events-max`.
|
||||
- O login do dashboard é um token único compartilhado; não há contas de usuário.
|
||||
- Pontuações são heurísticas, não prova de intenção maliciosa.
|
||||
|
||||
@@ -172,8 +200,9 @@ Resumo do [ROADMAP](ROADMAP.pt-BR.md):
|
||||
| | |
|
||||
|---|---|
|
||||
| **Feito (1.0.0)** | Coleta de logs, classificação e pontuação, geolocalização offline, parse de User-Agent, web analytics amigável à privacidade, snapshot em disco, dashboard com SSE, login por token, blocklist, federação, imagem Docker e CI/CD |
|
||||
| **Feito (1.2.0)** | Retenção de 30 dias, qualquer período, registro de eventos em disco, replay, análise de IP com veredito, MITRE ATT&CK, campanhas, STIX 2.1 e métricas estáveis |
|
||||
| **Próximo** | Mais fontes de log, alertas por webhook, métricas Prometheus |
|
||||
| **Depois** | Enriquecimento com reputação de IP, retenção maior |
|
||||
| **Depois** | Enriquecimento com reputação de IP |
|
||||
| **Fora do plano** | Varredura ativa ou contra-ataque, serviços de nuvem obrigatórios, telemetria |
|
||||
|
||||
## Licença
|
||||
|
||||
@@ -17,6 +17,10 @@ Urutau is lightweight, always-on threat intelligence for self-hosted servers: it
|
||||
- **Container and CI/CD (1.0.0):** multi-arch image, Coolify deployment, Gitea CI with an image-reuse release workflow, weekly audit.
|
||||
- **Bilingual documentation (1.0.0).**
|
||||
|
||||
- **Interface and live federation (1.1.0):** seven pages, Geography with country, region and city drill-down, Live arcs on a flat map or a 3D globe, `/api/v1/geo`, `/api/v1/live/recent`, relayed live events from peers (`/api/v1/peer/stream`) and `--location`.
|
||||
|
||||
- **Investigation (1.2.0):** 30-day retention, twelve ranges and custom periods, an on-disk event registry, replay, IP analysis with verdict and reasons, attack families, MITRE ATT&CK, campaigns, STIX 2.1 export and stable metrics.
|
||||
|
||||
## Next
|
||||
|
||||
- **More log sources:** other web servers and proxies (nginx, Caddy), and more daemons' auth failures.
|
||||
@@ -26,7 +30,6 @@ Urutau is lightweight, always-on threat intelligence for self-hosted servers: it
|
||||
## Later
|
||||
|
||||
- **IP reputation enrichment:** optional lookups, off by default, to respect the local-first rule.
|
||||
- **Longer retention:** an optional on-disk history beyond 7 days.
|
||||
- **Per-user tokens:** more than one access token with separate revocation.
|
||||
|
||||
## Non-Goals
|
||||
|
||||
@@ -17,6 +17,10 @@ O Urutau é threat intelligence leve e sempre ligado para servidores self-hosted
|
||||
- **Container e CI/CD (1.0.0):** imagem multi-arquitetura, deploy no Coolify, CI no Gitea com release que reaproveita imagem, auditoria semanal.
|
||||
- **Documentação bilíngue (1.0.0).**
|
||||
|
||||
- **Interface e federação ao vivo (1.1.0):** sete páginas, Geografia com detalhamento por país, região e cidade, arcos Ao vivo em mapa plano ou globo 3D, `/api/v1/geo`, `/api/v1/live/recent`, eventos ao vivo dos peers repassados (`/api/v1/peer/stream`) e `--location`.
|
||||
|
||||
- **Investigação (1.2.0):** retenção de 30 dias, doze intervalos e períodos personalizados, registro de eventos em disco, replay, análise de IP com veredito e razões, famílias de ataque, MITRE ATT&CK, campanhas, exportação STIX 2.1 e métricas estáveis.
|
||||
|
||||
## Próximo
|
||||
|
||||
- **Mais fontes de log:** outros servidores web e proxies (nginx, Caddy) e falhas de autenticação de mais daemons.
|
||||
@@ -26,7 +30,6 @@ O Urutau é threat intelligence leve e sempre ligado para servidores self-hosted
|
||||
## Depois
|
||||
|
||||
- **Enriquecimento com reputação de IP:** consultas opcionais, desligadas por padrão, para respeitar o local-first.
|
||||
- **Retenção maior:** histórico opcional em disco além de 7 dias.
|
||||
- **Tokens por usuário:** mais de um token de acesso, com revogação separada.
|
||||
|
||||
## Fora do plano
|
||||
|
||||
@@ -12,7 +12,7 @@ Do not open a public issue with exploit details. Open a minimal issue asking for
|
||||
|
||||
- **Hostile log fields:** paths, User-Agents, user names, hosts and jails are length-limited when parsed, kept as data, and escaped when rendered. A malformed, oversized or crafted line must be counted as malformed, never crash the daemon, exhaust memory or inject markup, a command or a script into the dashboard. The dashboard ships a Content-Security-Policy that forbids inline script and style.
|
||||
- **Authentication:** the dashboard and every API route except `/api/health` need `URUTAU_TOKEN` (at least 32 characters and about 128 bits of estimated entropy, compared in constant time; it can come from `URUTAU_TOKEN_FILE`), either as a bearer token or through a login that sets a session cookie (`HttpOnly`, `SameSite=Strict`, `Secure` over HTTPS) valid for 12 hours. The session is revocable: it is a random id kept in memory, logout revokes it and closes its live stream, and a restart invalidates all sessions. Login and logout reject cross-site requests. After 5 failures per 10 minutes from a client (IPv6 counted per /64) the login answers 429, yet the correct token still gets in after a 1 second delay, so an attacker cannot lock the owner out; wrong bearer tokens count as failures too. The client IP comes from the TCP peer; `X-Forwarded-For` is honored only when the peer is in `--trusted-proxy` (default: the private networks), read from right to left, so it cannot be spoofed from outside. Generate tokens with `openssl rand -base64 48` (`-hex 32` also works).
|
||||
- **Peer token:** The server token (`URUTAU_PEER_TOKEN`, also as `_FILE`; 32+ characters, about 128 bits of estimated entropy, not periodic or sequential, different from `URUTAU_TOKEN`) is the only credential the local export accepts, and it only opens `GET /api/v1/peer/export`; every other route answers 403 to it, and `URUTAU_TOKEN` is refused (401) on the export. Without a peer token the export is a 404. `--peer-allow` restricts the export to source CIDRs. `URUTAU_PEER_TOKEN_<NAME>` values are client credentials a hub sends to that peer; they never open the local export, and peer names that collide in the variable name are refused. A hub refuses to start with a peer that has no token, only talks to the export, requires `https` outside loopback, does not follow redirects, uses a 4 s timeout and an 8 MB limit, and sanitizes and caps everything a peer sends: an `admin` flag coming from a peer is ignored and a peer's `Strong` flag only counts with a score of 50 or more. Treat a peer as able to read the top 500 IPs, paths and traffic figures its export carries.
|
||||
- **Peer token:** The server token (`URUTAU_PEER_TOKEN`, also as `_FILE`; 32+ characters, about 128 bits of estimated entropy, not periodic or sequential, different from `URUTAU_TOKEN`) is the only credential the local export accepts, and it only opens the three federation routes, `GET /api/v1/peer/export`, the live stream `GET /api/v1/peer/stream` (at most 10 connections, malicious events only) and `GET /api/v1/peer/period` (the study a hub merges; at most two run at once); every other route answers 403 to it, and `URUTAU_TOKEN` is refused (401) on all three. Without a peer token they are a 404. `--peer-allow` restricts them to source CIDRs. `URUTAU_PEER_TOKEN_<NAME>` values are client credentials a hub sends to that peer; they never open the local export, and peer names that collide in the variable name are refused. A hub refuses to start with a peer that has no token, only talks to those two routes, requires `https` outside loopback, does not follow redirects, uses a 4 s timeout and an 8 MB limit, and sanitizes and caps everything a peer sends: an `admin` flag coming from a peer is ignored and a peer's `Strong` flag only counts with a score of 50 or more. The live relay from each peer is capped at about 50 events per second and about 1 MB/s (a peer that sends more is disconnected), lines of at most 16 KB, a 500-event buffer, reconnection with exponential backoff up to 60 s, and every relayed event is rebuilt from validated fields (address, known category, clipped strings without control characters, valid coordinates; the `host` is always the configured peer name). A compromised peer can still add hostile-looking global IPs to the hub's blocklist (only with score 50+ and a strong signal; `admin` and `forged` flags from peers are ignored); set `URUTAU_PEER_BLOCKLIST=off` to keep the blocklist to local observations. Treat a peer as able to read the top 500 IPs, paths and traffic figures its export carries, and its live attack events.
|
||||
- **HTTP server limits:** header and body timeouts, `MaxHeaderBytes` of 16 KB, `POST /login` capped at 4 KB, and at most 20 simultaneous live-stream clients (a 21st gets 503 with `Retry-After`; the stream sends a heartbeat every 20 s).
|
||||
- **Information exposure:** `/api/health` returns only `{"status":"ok"}` (no version), log file paths are never shown in the dashboard or to peers, responses carry `Referrer-Policy: same-origin` and a strict Content-Security-Policy.
|
||||
- **Framed requests:** with the `Sec-Fetch-Site`, `Sec-Fetch-Dest` and `Referer` headers in the Traefik log, a request embedded by another page (cross-site or same-site, or a sub-resource destination such as image or script) creates an IP record like any other but weighs 0.25 per event, with at most 30 points per IP from such requests (below the hostile threshold), and never counts as a strong signal. With an attack-tool User-Agent the headers are ignored. The headers come from the client, so a framed visitor never becomes hostile, and a scanner that forges them shows up as suspicious instead of vanishing.
|
||||
@@ -22,8 +22,11 @@ Do not open a public issue with exploit details. Open a minimal issue asking for
|
||||
- **Container hardening:** the image runs as an unprivileged user (no `curl` or shell tools needed: its `HEALTHCHECK` is `urutau healthcheck`) with a read-only root filesystem and no capabilities. Logs are mounted read-only, and only the Traefik log directory is mounted from the proxy, never `acme.json` or its configuration. Logs come from a dedicated host directory, `/var/log/urutau`, not the whole `/var/log`. `--trusted-proxy` defaults to loopback only; the compose file creates the `urutau-edge` network (`10.250.0.0/24`) and trusts just that, so keep only the reverse proxy on it, since another container there could forge `X-Forwarded-For`. The only write target is the data volume (snapshot, mode `0700` directory).
|
||||
- **Read-only by design:** Urutau reads logs and never sends traffic to the IPs it lists. The only outbound connections are reverse DNS lookups, the periodic download of the DB-IP Lite databases from `download.db-ip.com` (verified by opening the file before it replaces the old one; a failure never stops the service) and, on a hub, the polls to the configured peers. Geolocation lookups are local.
|
||||
- **Privacy and local-first:** there is no telemetry. IPs and request details stay on your servers (and on the hub you configure).
|
||||
- **Visitor privacy (LGPD and GDPR):** the Traffic tab counts unique visitors with a hash computed with a daily salt, so a visitor cannot be followed across days, and the IP address of a legitimate visitor is never persisted. There are no cookies for visitors, no fingerprinting and no request to third parties. IPs are retained only for hostile activity, for at most the retention period (7 days). Whether this is enough for your legal basis and notices is your responsibility as the controller.
|
||||
- **Third-party data:** the geolocation databases are DB-IP Lite, CC BY 4.0, and the attribution must be kept where the data is shown.
|
||||
- **Visitor privacy (LGPD and GDPR):** the Traffic page counts unique visitors with a hash computed with a daily salt, so a visitor cannot be followed across days, and the IP address of a legitimate visitor is never persisted. There are no cookies for visitors, no fingerprinting and no request to third parties. IPs are retained only for hostile activity, for at most the retention period (7 days). Whether this is enough for your legal basis and notices is your responsibility as the controller.
|
||||
- **Anonymous visits:** legitimate visitors are never stored. The optional `?visits=1` stream carries no address, User-Agent or referrer (city-level position only, at most 20 per second) and is never written to disk. Paths and `Referer` values are normalized to `:id` when they carry an e-mail address, a token or a long identifier, so personal data in a URL does not reach the lists. The newer analysis routes (`/api/v1/techniques`, `/evolution`, `/concentration`, `/survival`, `/sessions/funnel`, `/campaigns`, `/defense`, `/errors`, `/integrity`, `/report`, `/services`, `/protocols`) are user-only: the peer token gets 403 on them.
|
||||
- **Event registry (privacy):** `<data-dir>/events/` keeps one line per event for replay and investigation, but only about attackers: malicious events, bans, successful SSH logins, a 404 to an attack tool, and answers to addresses that are already suspicious or hostile. The address of a legitimate visitor is never written. Files are removed after the retention (30 days at most) and the total is capped by `--events-max` (512 MB by default, `0` turns the registry off). Treat the directory as personal data under the LGPD and the GDPR: same retention, same access control as the rest of the data volume. A full disk or the size cap drops events instead of stopping the service, and a corrupted line is skipped.
|
||||
- **Outbound lookups for verdicts:** the network type is inferred locally from the ASN, organisation and reverse DNS (no external API). Forward-confirmed reverse DNS is used only to confirm a claimed Googlebot or Bingbot. The optional Tor exit list is a local file (`--tor-exits`).
|
||||
- **Third-party data:** the geolocation databases are DB-IP Lite, CC BY 4.0, and the attribution must be kept where the data is shown. The state and city boundaries on the Geography page are from Natural Earth, public domain.
|
||||
|
||||
## Known limitation
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ Não abra uma issue pública com detalhes de exploração. Abra uma issue mínim
|
||||
|
||||
- **Campos hostis de log:** caminhos, User-Agents, usuários, hosts e jails têm tamanho limitado no parse, são mantidos como dado e escapados ao renderizar. Uma linha malformada, gigante ou forjada deve ser contada como malformada, nunca derrubar o daemon, esgotar memória ou injetar marcação, comando ou script no dashboard. O dashboard envia uma Content-Security-Policy que proíbe script e estilo inline.
|
||||
- **Autenticação:** o dashboard e toda rota da API, exceto `/api/health`, exigem `URUTAU_TOKEN` (no mínimo 32 caracteres e cerca de 128 bits de entropia estimada, comparado em tempo constante; pode vir de `URUTAU_TOKEN_FILE`), como bearer token ou por um login que define um cookie de sessão (`HttpOnly`, `SameSite=Strict`, `Secure` em HTTPS) válido por 12 horas. A sessão é revogável: é um id aleatório guardado em memória, o logout a revoga e fecha o stream ao vivo dela, e um reinício invalida todas as sessões. Login e logout rejeitam requisições cross-site. Após 5 falhas a cada 10 minutos de um cliente (IPv6 contado por /64) o login responde 429, mas o token correto ainda entra após 1 segundo de atraso, para que um atacante não tranque o dono do lado de fora; bearer tokens errados também contam como falha. O IP do cliente vem do peer TCP; `X-Forwarded-For` só vale quando o peer está em `--trusted-proxy` (padrão: as redes privadas), lido da direita para a esquerda, então não pode ser forjado de fora. Gere tokens com `openssl rand -base64 48` (`-hex 32` também serve).
|
||||
- **Token de peer:** O token de servidor (`URUTAU_PEER_TOKEN`, também via `_FILE`; 32+ caracteres, cerca de 128 bits de entropia estimada, sem padrão periódico nem sequencial, diferente de `URUTAU_TOKEN`) é a única credencial que o export local aceita, e só abre `GET /api/v1/peer/export`; todas as outras rotas respondem 403 a ele, e o `URUTAU_TOKEN` é recusado (401) no export. Sem token de peer o export é 404. `--peer-allow` restringe o export a CIDRs de origem. Os valores `URUTAU_PEER_TOKEN_<NOME>` são credenciais de cliente que um hub envia àquele peer; nunca abrem o export local, e nomes de peer que colidem no nome da variável são recusados. Um hub se recusa a iniciar com um peer sem token, só fala com o export, exige `https` fora de loopback, não segue redirects, usa timeout de 4 s e limite de 8 MB, e sanitiza e limita tudo o que um peer envia: um sinalizador `admin` vindo de um peer é ignorado e o `Strong` de um peer só vale com pontuação 50 ou mais. Trate um peer como alguém que pode ler os 500 IPs principais, caminhos e números de tráfego que o export carrega.
|
||||
- **Token de peer:** O token de servidor (`URUTAU_PEER_TOKEN`, também via `_FILE`; 32+ caracteres, cerca de 128 bits de entropia estimada, sem padrão periódico nem sequencial, diferente de `URUTAU_TOKEN`) é a única credencial que o export local aceita, e só abre as duas rotas de federação, `GET /api/v1/peer/export` o fluxo ao vivo `GET /api/v1/peer/stream` (no máximo 10 conexões, só eventos maliciosos) e `GET /api/v1/peer/period` (o estudo que um hub mescla; no máximo dois ao mesmo tempo); todas as outras rotas respondem 403 a ele, e o `URUTAU_TOKEN` é recusado (401) nas três. Sem token de peer elas são 404. `--peer-allow` restringe as três a CIDRs de origem. Os valores `URUTAU_PEER_TOKEN_<NOME>` são credenciais de cliente que um hub envia àquele peer; nunca abrem o export local, e nomes de peer que colidem no nome da variável são recusados. Um hub se recusa a iniciar com um peer sem token, só fala com essas duas rotas, exige `https` fora de loopback, não segue redirects, usa timeout de 4 s e limite de 8 MB, e sanitiza e limita tudo o que um peer envia: um sinalizador `admin` vindo de um peer é ignorado e o `Strong` de um peer só vale com pontuação 50 ou mais. O repasse ao vivo de cada peer é limitado a cerca de 50 eventos por segundo e cerca de 1 MB/s (um peer que manda mais é desconectado), linhas de no máximo 16 KB, buffer de 500 eventos e reconexão com backoff exponencial até 60 s, e cada evento repassado é reconstruído a partir de campos validados (endereço, categoria conhecida, textos cortados e sem caracteres de controle, coordenadas válidas; o `host` é sempre o nome configurado do peer). Um peer comprometido ainda pode pôr IPs globais com cara de hostis na blocklist do hub (só com pontuação 50+ e sinal forte; os sinalizadores `admin` e `forged` vindos de peers são ignorados); defina `URUTAU_PEER_BLOCKLIST=off` para restringir a blocklist às observações locais. Trate um peer como alguém que pode ler os 500 IPs principais, caminhos e números de tráfego que o export carrega, e os seus eventos de ataque ao vivo.
|
||||
- **Limites do servidor HTTP:** timeouts de cabeçalho e corpo, `MaxHeaderBytes` de 16 KB, `POST /login` limitado a 4 KB e no máximo 20 clientes simultâneos no stream ao vivo (o 21º recebe 503 com `Retry-After`; o stream envia heartbeat a cada 20 s).
|
||||
- **Exposição de informação:** `/api/health` devolve só `{"status":"ok"}` (sem versão), os caminhos dos arquivos de log nunca aparecem no dashboard nem para peers, e as respostas levam `Referrer-Policy: same-origin` e uma Content-Security-Policy estrita.
|
||||
- **Requisições enquadradas:** com os cabeçalhos `Sec-Fetch-Site`, `Sec-Fetch-Dest` e `Referer` no log do Traefik, uma requisição embutida por outra página (cross-site ou same-site, ou destino de subrecurso como image ou script) aparece na linha do tempo e cria registro de IP como qualquer outra, mas pesa 0,25 por evento, com no máximo 30 pontos por IP vindos delas (abaixo do limiar hostil), e nunca conta como sinal forte. Com User-Agent de ferramenta de ataque os cabeçalhos são ignorados. Os cabeçalhos vêm do cliente, então um visitante enquadrado nunca vira hostil, e um scanner que os forja aparece como suspeito em vez de sumir.
|
||||
@@ -22,8 +22,11 @@ Não abra uma issue pública com detalhes de exploração. Abra uma issue mínim
|
||||
- **Endurecimento do container:** a imagem roda com usuário sem privilégios (sem `curl` nem ferramentas de shell: o `HEALTHCHECK` é `urutau healthcheck`), sistema de arquivos raiz somente leitura e sem capabilities. Os logs são montados somente leitura, e do proxy só o diretório de logs do Traefik é montado, nunca o `acme.json` nem a configuração. Os logs vêm de um diretório dedicado do host, `/var/log/urutau`, não do `/var/log` inteiro. `--trusted-proxy` tem como padrão só o loopback; o compose cria a rede `urutau-edge` (`10.250.0.0/24`) e confia só nela, então deixe nela apenas o proxy reverso, pois outro container ali poderia forjar o `X-Forwarded-For`. O único destino de escrita é o volume de dados (snapshot, diretório com modo `0700`).
|
||||
- **Somente leitura por desenho:** o Urutau lê logs e nunca envia tráfego aos IPs que lista. As únicas conexões de saída são as consultas de DNS reverso, o download periódico das bases DB-IP Lite em `download.db-ip.com` (verificado abrindo o arquivo antes de substituir o antigo; uma falha nunca interrompe o serviço) e, em um hub, as consultas aos peers configurados. As consultas de geolocalização são locais.
|
||||
- **Privacidade e local-first:** não há telemetria. IPs e detalhes de requisições ficam nos seus servidores (e no hub que você configurar).
|
||||
- **Privacidade dos visitantes (LGPD e GDPR):** a aba Tráfego conta visitantes únicos com um hash calculado com sal diário, então um visitante não pode ser seguido entre dias, e o endereço IP de um visitante legítimo nunca é persistido. Não há cookies para visitantes, fingerprinting nem requisição a terceiros. IPs são retidos apenas para atividade hostil, por no máximo o período de retenção (7 dias). Se isso basta para a sua base legal e seus avisos é responsabilidade sua, como controlador.
|
||||
- **Dados de terceiros:** as bases de geolocalização são DB-IP Lite, CC BY 4.0, e a atribuição deve ser mantida onde os dados são exibidos.
|
||||
- **Privacidade dos visitantes (LGPD e GDPR):** a página Tráfego conta visitantes únicos com um hash calculado com sal diário, então um visitante não pode ser seguido entre dias, e o endereço IP de um visitante legítimo nunca é persistido. Não há cookies para visitantes, fingerprinting nem requisição a terceiros. IPs são retidos apenas para atividade hostil, por no máximo o período de retenção (7 dias). Se isso basta para a sua base legal e seus avisos é responsabilidade sua, como controlador.
|
||||
- **Visitas anônimas:** visitantes legítimos nunca são armazenados. O stream opcional `?visits=1` não carrega endereço, User-Agent nem referrer (só posição no nível da cidade, no máximo 20 por segundo) e nunca é gravado em disco. Caminhos e valores de `Referer` são normalizados para `:id` quando carregam e-mail, token ou identificador longo, para que dado pessoal numa URL não chegue às listas. As rotas de análise mais novas (`/api/v1/techniques`, `/evolution`, `/concentration`, `/survival`, `/sessions/funnel`, `/campaigns`, `/defense`, `/errors`, `/integrity`, `/report`, `/services`, `/protocols`) são só de usuário: o token de peer recebe 403 nelas.
|
||||
- **Registro de eventos (privacidade):** `<data-dir>/events/` guarda uma linha por evento para replay e investigação, mas só de atacantes: eventos maliciosos, bans, logins SSH bem-sucedidos, um 404 para uma ferramenta de ataque, e respostas a endereços já suspeitos ou hostis. O endereço de um visitante legítimo nunca é gravado. Os arquivos são removidos após a retenção (30 dias no máximo) e o total é limitado por `--events-max` (512 MB por padrão, `0` desliga o registro). Trate o diretório como dado pessoal perante a LGPD e o GDPR: mesma retenção e mesmo controle de acesso do resto do volume de dados. Disco cheio ou o teto de tamanho descartam eventos em vez de parar o serviço, e uma linha corrompida é ignorada.
|
||||
- **Consultas para os vereditos:** o tipo de rede é inferido localmente a partir do ASN, da organização e do DNS reverso (sem API externa). O DNS reverso confirmado serve apenas para confirmar um Googlebot ou Bingbot declarado. A lista opcional de saídas do Tor é um arquivo local (`--tor-exits`).
|
||||
- **Dados de terceiros:** as bases de geolocalização são DB-IP Lite, CC BY 4.0, e a atribuição deve ser mantida onde os dados são exibidos. Os limites de estados e cidades da página Geografia são do Natural Earth, domínio público.
|
||||
|
||||
## Limitação conhecida
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
# Urutau: kernel log lines of the egress table go to their own file and stay
|
||||
# out of the general syslog (an authorised scan would flood it).
|
||||
if ($syslogfacility-text == "kern" and $msg contains "URUTAU-EGRESS: ") then {
|
||||
action(type="omfile" file="/var/log/urutau/egress.log" template="RSYSLOG_FileFormat"
|
||||
fileOwner="syslog" fileGroup="adm" fileCreateMode="0640")
|
||||
stop
|
||||
}
|
||||
|
||||
# inbound probes to closed ports (port scans)
|
||||
if ($syslogfacility-text == "kern" and $msg contains "URUTAU-PROBE: ") then {
|
||||
action(type="omfile" file="/var/log/urutau/probe.log" template="RSYSLOG_FileFormat"
|
||||
fileOwner="syslog" fileGroup="adm" fileCreateMode="0640")
|
||||
stop
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
# Urutau "second firewall" action: like iptables-allports, but it only drops
|
||||
# connections the banned address STARTS (conntrack original direction). The
|
||||
# replies to connections this host opened (DNS, ACME, image pulls, apt) keep
|
||||
# flowing even if a decision ever names an address the host depends on.
|
||||
[INCLUDES]
|
||||
before = iptables-allports.conf
|
||||
|
||||
[Definition]
|
||||
actionban = <iptables> -I f2b-<name> 1 -s <ip> -m conntrack --ctdir ORIGINAL -j <blocktype>
|
||||
actionunban = <iptables> -D f2b-<name> -s <ip> -m conntrack --ctdir ORIGINAL -j <blocktype>
|
||||
@@ -0,0 +1,7 @@
|
||||
# Urutau "second firewall": one line per decision written by Urutau in
|
||||
# enforce=on mode, e.g.
|
||||
# 2026-11-14T22:00:00Z urutau decision=ban ip=203.0.113.7 reason=wp-bruteforce score=95 ttl=3600 host=oracle src=local
|
||||
[Definition]
|
||||
datepattern = ^%%Y-%%m-%%dT%%H:%%M:%%SZ
|
||||
failregex = ^\s*urutau decision=ban ip=<HOST> reason=[a-z0-9-]+
|
||||
ignoreregex =
|
||||
@@ -0,0 +1,14 @@
|
||||
# Urutau "second firewall". Urutau never gets privileges: it only writes its
|
||||
# decisions to this file and fail2ban applies them, with its own ignoreip
|
||||
# (the [DEFAULT] of the host still protects trusted addresses).
|
||||
[urutau]
|
||||
enabled = true
|
||||
backend = polling
|
||||
filter = urutau
|
||||
logpath = /var/log/urutau-enforce/decisions.log
|
||||
maxretry = 1
|
||||
findtime = 1h
|
||||
bantime = 1h
|
||||
# ignoreip and ignoreself come from the host [DEFAULT] (never override them here)
|
||||
action = urutau-allports[name=urutau-in, chain=INPUT, protocol=all]
|
||||
urutau-allports[name=urutau-docker, chain=DOCKER-USER, protocol=all]
|
||||
@@ -0,0 +1,69 @@
|
||||
#!/bin/sh
|
||||
# Urutau host kit: egress logging (nftables + rsyslog), the container map and,
|
||||
# optionally, the fail2ban jail of the "second firewall".
|
||||
#
|
||||
# sudo sh install.sh # egress logging + container map
|
||||
# sudo sh install.sh --enforce # also the fail2ban jail for URUTAU_ENFORCE=on
|
||||
# sudo sh install.sh --remove # undo everything
|
||||
#
|
||||
# Idempotent. Urutau itself never gets privileges: it only reads these logs and
|
||||
# writes its ban decisions to /var/log/urutau-enforce/decisions.log.
|
||||
set -eu
|
||||
here=$(cd "$(dirname "$0")" && pwd)
|
||||
uid=${URUTAU_UID:-10001}
|
||||
|
||||
[ "$(id -u)" = 0 ] || { echo "run as root" >&2; exit 1; }
|
||||
|
||||
if [ "${1:-}" = "--remove" ]; then
|
||||
systemctl disable --now urutau-egress.service urutau-containers-map.timer urutau-logrotate.timer urutau-unban.path 2>/dev/null || true
|
||||
rm -f /etc/systemd/system/urutau-egress.service /etc/systemd/system/urutau-containers-map.service \
|
||||
/etc/systemd/system/urutau-containers-map.timer /usr/local/sbin/urutau-containers-map \
|
||||
/etc/rsyslog.d/41-urutau-egress.conf /etc/logrotate.d/urutau-egress \
|
||||
/etc/fail2ban/jail.d/urutau.local /etc/fail2ban/filter.d/urutau.conf /etc/fail2ban/action.d/urutau-allports.conf \
|
||||
/etc/systemd/system/urutau-logrotate.service /etc/systemd/system/urutau-logrotate.timer \
|
||||
/etc/systemd/system/urutau-unban.path /etc/systemd/system/urutau-unban.service /usr/local/sbin/urutau-unban
|
||||
rm -rf /etc/urutau
|
||||
systemctl daemon-reload
|
||||
systemctl restart rsyslog
|
||||
fail2ban-client reload >/dev/null 2>&1 || true
|
||||
echo "removed (logs under /var/log/urutau kept)"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
wan=${URUTAU_WAN:-$(ip -o route get 1.1.1.1 | sed -n 's/.* dev \([^ ]*\).*/\1/p')}
|
||||
[ -n "$wan" ] || { echo "cannot detect the uplink interface; set URUTAU_WAN" >&2; exit 1; }
|
||||
case "$wan" in *[!A-Za-z0-9_.-]*) echo "bad interface name: $wan" >&2; exit 1 ;; esac
|
||||
|
||||
install -d -m 0750 -o syslog -g adm /var/log/urutau 2>/dev/null || install -d -m 0750 -g adm /var/log/urutau
|
||||
install -d -m 0755 /etc/urutau
|
||||
sed "s/@WAN@/$wan/g" "$here/urutau-egress.nft" > /etc/urutau/egress.nft
|
||||
nft -c -f /etc/urutau/egress.nft
|
||||
|
||||
install -m 0644 "$here/41-urutau-egress.conf" /etc/rsyslog.d/41-urutau-egress.conf
|
||||
install -m 0644 "$here/urutau.logrotate" /etc/logrotate.d/urutau-egress
|
||||
install -m 0755 "$here/urutau-containers-map" /usr/local/sbin/urutau-containers-map
|
||||
install -m 0644 "$here/urutau-egress.service" "$here/urutau-containers-map.service" \
|
||||
"$here/urutau-containers-map.timer" "$here/urutau-logrotate.service" "$here/urutau-logrotate.timer" /etc/systemd/system/
|
||||
systemctl daemon-reload
|
||||
systemctl restart rsyslog
|
||||
systemctl enable urutau-egress.service urutau-containers-map.timer urutau-logrotate.timer >/dev/null
|
||||
systemctl start urutau-logrotate.timer
|
||||
systemctl restart urutau-egress.service
|
||||
systemctl start urutau-containers-map.service urutau-containers-map.timer
|
||||
echo "egress logging on $wan: /var/log/urutau/egress.log, map: /var/log/urutau/containers.map"
|
||||
|
||||
if [ "${1:-}" = "--enforce" ]; then
|
||||
install -d -m 0750 -o "$uid" -g adm /var/log/urutau-enforce
|
||||
[ -e /var/log/urutau-enforce/decisions.log ] || install -m 0640 -o "$uid" -g adm /dev/null /var/log/urutau-enforce/decisions.log
|
||||
install -m 0644 "$here/fail2ban-filter-urutau.conf" /etc/fail2ban/filter.d/urutau.conf
|
||||
install -m 0644 "$here/fail2ban-action-urutau.conf" /etc/fail2ban/action.d/urutau-allports.conf
|
||||
install -m 0644 "$here/fail2ban-jail-urutau.local" /etc/fail2ban/jail.d/urutau.local
|
||||
[ -e /var/log/urutau-enforce/unban.log ] || install -m 0640 -o "$uid" -g adm /dev/null /var/log/urutau-enforce/unban.log
|
||||
install -m 0755 "$here/urutau-unban" /usr/local/sbin/urutau-unban
|
||||
install -m 0644 "$here/urutau-unban.path" "$here/urutau-unban.service" /etc/systemd/system/
|
||||
systemctl daemon-reload
|
||||
systemctl enable --now urutau-unban.path >/dev/null
|
||||
fail2ban-client -t >/dev/null
|
||||
fail2ban-client reload
|
||||
echo "fail2ban jail 'urutau' on; mount /var/log/urutau-enforce:/logs/enforce (rw) in the container"
|
||||
fi
|
||||
@@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
# Urutau: writes "<ip> <container name>" for every running container, so the
|
||||
# egress analysis can name workloads whose address changes on each redeploy.
|
||||
set -eu
|
||||
out=/var/log/urutau/containers.map
|
||||
tmp=$(mktemp /var/log/urutau/.containers.map.XXXXXX)
|
||||
trap 'rm -f "$tmp"' EXIT
|
||||
docker ps -q | xargs -r docker inspect -f '{{$n := .Name}}{{range .NetworkSettings.Networks}}{{if .IPAddress}}{{.IPAddress}} {{$n}}
|
||||
{{end}}{{if .GlobalIPv6Address}}{{.GlobalIPv6Address}} {{$n}}
|
||||
{{end}}{{end}}' | sed 's# /# #' | grep -E '^[0-9a-fA-F.:]+ [A-Za-z0-9_.-]{1,128}$' > "$tmp" || true
|
||||
chgrp adm "$tmp"; chmod 0640 "$tmp"
|
||||
mv -f "$tmp" "$out"
|
||||
trap - EXIT
|
||||
|
||||
# The real upstream resolvers (systemd-resolved hides them behind 127.0.0.53),
|
||||
# so DNS to the provider resolver is not reported as a bypass.
|
||||
r=/var/log/urutau/resolv.conf
|
||||
{
|
||||
resolvectl dns 2>/dev/null | tr ' ' '\n' | grep -E '^([0-9]{1,3}\.){3}[0-9]{1,3}$|^[0-9a-fA-F]*:[0-9a-fA-F:]+$' || true
|
||||
awk '/^nameserver/ {print $2}' /run/systemd/resolve/resolv.conf 2>/dev/null || true
|
||||
} | grep -vE '^127\.' | sort -u | sed 's/^/nameserver /' > "$r.tmp"
|
||||
chgrp adm "$r.tmp"; chmod 0640 "$r.tmp"; mv -f "$r.tmp" "$r"
|
||||
|
||||
# Ports this host serves (listening sockets, including the ones Docker
|
||||
# publishes): connections to any other port are logged as probes.
|
||||
if nft list set inet urutau_egress open >/dev/null 2>&1; then
|
||||
{
|
||||
echo "flush set inet urutau_egress open"
|
||||
ss -Hlnt | awk '{print $4}' | sed -n 's/.*:\([0-9][0-9]*\)$/tcp . \1/p'
|
||||
ss -Hlnu | awk '{print $4}' | sed -n 's/.*:\([0-9][0-9]*\)$/udp . \1/p'
|
||||
} | sort -u | awk 'NR==1 {print; next} {e = e (e ? ", " : "") $0} END {if (e) print "add element inet urutau_egress open { " e " }"}' | nft -f -
|
||||
fi
|
||||
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Urutau: map container addresses to names
|
||||
After=docker.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/sbin/urutau-containers-map
|
||||
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Urutau: refresh the container map every minute
|
||||
|
||||
[Timer]
|
||||
OnBootSec=30s
|
||||
OnUnitActiveSec=60s
|
||||
AccuracySec=5s
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -0,0 +1,67 @@
|
||||
#!/usr/sbin/nft -f
|
||||
# Urutau: logs NEW outbound connections (host and containers), and inbound
|
||||
# probes to closed ports, so the egress
|
||||
# analysis can spot beaconing, mining, spam and unauthorised scans.
|
||||
# Lives in its own table: it never touches the iptables-nft tables of Docker
|
||||
# or fail2ban, and it only logs (policy accept, no drop).
|
||||
# @WAN@ is replaced by the uplink interface by install.sh.
|
||||
#
|
||||
# Volume control without blinding the beacon detector:
|
||||
# - a (source, destination, protocol, port) seen in the last 2 h is ALWAYS
|
||||
# logged (a beacon repeats the same pair, so a ceiling never hides it);
|
||||
# - a NEW pair is logged under a per-source ceiling of 20/s (burst 100): an
|
||||
# authorised scan (thousands of new pairs) is capped, and one noisy
|
||||
# workload never eats the budget of the others.
|
||||
table inet urutau_egress
|
||||
delete table inet urutau_egress
|
||||
|
||||
table inet urutau_egress {
|
||||
set rl4 { type ipv4_addr; flags dynamic; timeout 2m; size 65535; }
|
||||
set rl6 { type ipv6_addr; flags dynamic; timeout 2m; size 65535; }
|
||||
set seen4 { type ipv4_addr . ipv4_addr . inet_proto . inet_service; flags dynamic, timeout; timeout 2h; size 131072; }
|
||||
set seen6 { type ipv6_addr . ipv6_addr . inet_proto . inet_service; flags dynamic, timeout; timeout 2h; size 131072; }
|
||||
|
||||
chain egress {
|
||||
# only real connection attempts (SYN without ACK): replies of flows whose
|
||||
# conntrack entry was recreated mid-flow (nf_conntrack_tcp_loose=1, e.g.
|
||||
# after fail2ban drops only the original direction) are not egress
|
||||
meta l4proto tcp tcp flags & (syn | ack) != syn return
|
||||
# known pair: always log, refresh its timer
|
||||
meta nfproto ipv4 meta l4proto { tcp, udp } ip saddr . ip daddr . meta l4proto . th dport @seen4 update @seen4 { ip saddr . ip daddr . meta l4proto . th dport } log prefix "URUTAU-EGRESS: " level info return
|
||||
meta nfproto ipv6 meta l4proto { tcp, udp } ip6 saddr . ip6 daddr . meta l4proto . th dport @seen6 update @seen6 { ip6 saddr . ip6 daddr . meta l4proto . th dport } log prefix "URUTAU-EGRESS: " level info return
|
||||
# new pair: per-source ceiling, then remember it
|
||||
meta nfproto ipv4 meta l4proto { tcp, udp } add @rl4 { ip saddr limit rate 20/second burst 100 packets } add @seen4 { ip saddr . ip daddr . meta l4proto . th dport } log prefix "URUTAU-EGRESS: " level info return
|
||||
meta nfproto ipv6 meta l4proto { tcp, udp } add @rl6 { ip6 saddr limit rate 20/second burst 100 packets } add @seen6 { ip6 saddr . ip6 daddr . meta l4proto . th dport } log prefix "URUTAU-EGRESS: " level info return
|
||||
# other protocols (ICMP...) under the same ceiling, not remembered
|
||||
meta nfproto ipv4 meta l4proto != { tcp, udp } add @rl4 { ip saddr limit rate 20/second burst 100 packets } log prefix "URUTAU-EGRESS: " level info
|
||||
meta nfproto ipv6 meta l4proto != { tcp, udp } add @rl6 { ip6 saddr limit rate 20/second burst 100 packets } log prefix "URUTAU-EGRESS: " level info
|
||||
}
|
||||
|
||||
# inbound probes: NEW connections to ports nobody listens on (port scans,
|
||||
# RDP/SMB/database probing). @open is refreshed every minute by
|
||||
# urutau-containers-map from `ss` (it also sees ports Docker publishes).
|
||||
set open { type inet_proto . inet_service; }
|
||||
set prl4 { type ipv4_addr; flags dynamic; timeout 2m; size 65535; }
|
||||
set prl6 { type ipv6_addr; flags dynamic; timeout 2m; size 65535; }
|
||||
|
||||
chain probe_log {
|
||||
type filter hook prerouting priority -150; policy accept;
|
||||
iifname != "@WAN@" return
|
||||
ct state != new return
|
||||
meta l4proto != { tcp, udp } return
|
||||
fib daddr type != local return
|
||||
meta l4proto . th dport @open return
|
||||
meta nfproto ipv4 add @prl4 { ip saddr limit rate 10/second burst 50 packets } log prefix "URUTAU-PROBE: " level info
|
||||
meta nfproto ipv6 add @prl6 { ip6 saddr limit rate 10/second burst 50 packets } log prefix "URUTAU-PROBE: " level info
|
||||
}
|
||||
|
||||
chain forward_log {
|
||||
type filter hook forward priority filter - 10; policy accept;
|
||||
ct state new oifname "@WAN@" iifname != "@WAN@" jump egress
|
||||
}
|
||||
|
||||
chain output_log {
|
||||
type filter hook output priority filter - 10; policy accept;
|
||||
ct state new oifname "@WAN@" jump egress
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Urutau: egress connection log (nftables)
|
||||
After=network-online.target docker.service
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/sbin/nft -f /etc/urutau/egress.nft
|
||||
ExecStartPost=-/usr/local/sbin/urutau-containers-map
|
||||
ExecStop=/usr/sbin/nft delete table inet urutau_egress
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Urutau: rotate the egress log by size
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/sbin/logrotate -s /var/lib/logrotate/urutau-egress.status /etc/logrotate.d/urutau-egress
|
||||
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Urutau: check the egress log size every 10 minutes
|
||||
|
||||
[Timer]
|
||||
OnBootSec=5m
|
||||
OnUnitActiveSec=10m
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
# Urutau: applies the operator's unban requests written by Urutau (UI button)
|
||||
# to /var/log/urutau-enforce/unban.log. One line per request:
|
||||
# 2026-11-15T05:00:00Z urutau unban ip=203.0.113.7 allow=86400
|
||||
# The address is validated strictly; fail2ban unbans it from every jail and,
|
||||
# with allow>0, ignores it in every jail for that many seconds (pentests).
|
||||
set -eu
|
||||
log=/var/log/urutau-enforce/unban.log
|
||||
state=/var/lib/urutau/unban.offset
|
||||
[ -f "$log" ] || exit 0
|
||||
mkdir -p /var/lib/urutau
|
||||
off=$(cat "$state" 2>/dev/null || echo 0)
|
||||
size=$(stat -c %s "$log")
|
||||
[ "$size" -lt "$off" ] && off=0 # rotated or truncated
|
||||
tail -c +"$((off + 1))" "$log" | head -n 1000 | while IFS= read -r line; do
|
||||
ip=$(printf '%s\n' "$line" | sed -n 's/^[0-9TZ:-]* urutau unban ip=\([0-9a-fA-F.:]\{2,45\}\) allow=\([0-9]\{1,7\}\)$/\1/p')
|
||||
allow=$(printf '%s\n' "$line" | sed -n 's/^.* allow=\([0-9]\{1,7\}\)$/\1/p')
|
||||
[ -n "$ip" ] || continue
|
||||
# only literal IPv4 / IPv6 addresses (no CIDR, no names)
|
||||
python3 -c 'import ipaddress,sys; ipaddress.ip_address(sys.argv[1])' "$ip" 2>/dev/null || continue
|
||||
fail2ban-client unban "$ip" >/dev/null 2>&1 || true
|
||||
logger -t urutau-unban "unban $ip allow=${allow:-0}"
|
||||
if [ "${allow:-0}" -gt 0 ]; then
|
||||
for j in $(fail2ban-client status | sed -n 's/.*Jail list:[[:space:]]*//p' | tr ',' ' '); do
|
||||
fail2ban-client set "$j" addignoreip "$ip" >/dev/null 2>&1 || true
|
||||
done
|
||||
systemd-run --quiet --on-active="${allow}s" --unit="urutau-allow-end-$(printf '%s' "$ip" | tr ':.' '--')" \
|
||||
/bin/sh -c "for j in \$(fail2ban-client status | sed -n 's/.*Jail list:[[:space:]]*//p' | tr ',' ' '); do fail2ban-client set \$j delignoreip $ip; done" 2>/dev/null || true
|
||||
fi
|
||||
done
|
||||
echo "$size" > "$state"
|
||||
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Urutau: watch the operator's unban requests
|
||||
|
||||
[Path]
|
||||
PathModified=/var/log/urutau-enforce/unban.log
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Urutau: apply the operator's unban requests
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/sbin/urutau-unban
|
||||
@@ -0,0 +1,14 @@
|
||||
/var/log/urutau/egress.log /var/log/urutau/probe.log {
|
||||
daily
|
||||
rotate 7
|
||||
maxsize 200M
|
||||
maxage 7
|
||||
compress
|
||||
delaycompress
|
||||
missingok
|
||||
notifempty
|
||||
create 0640 syslog adm
|
||||
postrotate
|
||||
/usr/lib/rsyslog/rsyslog-rotate
|
||||
endscript
|
||||
}
|
||||
@@ -60,7 +60,7 @@ services:
|
||||
cap_drop: [ALL]
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
mem_limit: 256m
|
||||
mem_limit: 384m # the Go soft limit is 256 MiB (30 days of history)
|
||||
cpus: 0.5
|
||||
restart: unless-stopped
|
||||
|
||||
|
||||
@@ -10,7 +10,9 @@ internal/app flags, wiring, the log runner, doctor
|
||||
internal/tail rotation-aware file follower and rotated-file reader
|
||||
internal/core event model, parsers (Traefik, sshd, fail2ban), classifier
|
||||
internal/store in-memory state, summaries, merge, snapshot
|
||||
internal/rdns reverse DNS cache
|
||||
internal/rdns reverse DNS cache and forward-confirmed reverse DNS
|
||||
internal/evlog on-disk event registry
|
||||
internal/intel families, MITRE, network type, cadence, sessions, campaigns, verdicts, STIX, metrics
|
||||
internal/fed hub that polls peers
|
||||
internal/server HTTP handler, auth, embedded dashboard (web/)
|
||||
```
|
||||
@@ -83,19 +85,110 @@ Events from a trusted origin (`--trusted`, plus the private ranges of `--ignore`
|
||||
|
||||
## Web analytics
|
||||
|
||||
Benign requests (`ok`, and the `notfound` that are not scanning) also feed the Traffic view. A domain only gets a slot after a 2xx answer (and `--domains` can restrict them to an allowlist), inactive domains are pruned, and top pages normalize token-looking path segments to `:id`: unique visitors, pages, referrers, countries, browsers, operating systems, devices, latency (p50 and p95) and bytes. A unique visitor is a hash computed with a salt that rotates daily, so it cannot be followed across days, and the IP address of a legitimate visitor is never persisted. Attack traffic stays in the Threats view, where the IP is the subject. Monitoring requests are kept out of both.
|
||||
Benign requests (`ok`, and the `notfound` that are not scanning) also feed the Traffic page. A domain only gets a slot after a 2xx answer (and `--domains` can restrict them to an allowlist), inactive domains are pruned, and top pages normalize token-looking path segments to `:id`: unique visitors, pages, referrers, countries, browsers, operating systems, devices, latency (p50 and p95) and bytes. A unique visitor is a hash computed with a salt that rotates daily, so it cannot be followed across days, and the IP address of a legitimate visitor is never persisted. Attack traffic stays in the Threats view, where the IP is the subject. Monitoring requests are kept out of both.
|
||||
|
||||
## Periods and granularity
|
||||
|
||||
Every view takes a range: one of twelve named windows (`1h`, `2h`, `3h`, `6h`, `12h`, `24h`, `2d`, `3d`, `5d`, `7d`, `15d`, `30d`) or a custom period with `from` and `to` (unix seconds, at most 30 days, clipped to the retention; `clipped` says when it was). An invalid range answers 400. Responses carry `range` as an object `{name,from,to,step,clipped}`, where `step` is the timeline granularity in seconds: 60 up to 3 hours, 120 up to 6, 300 up to 12, 900 up to 48 hours and 3600 beyond. Minute buckets exist for the latest 48 hours; older data is hourly.
|
||||
|
||||
## Error classes and Traefik fields
|
||||
|
||||
Besides the client, path, status and User-Agent, Urutau reads these Traefik access log fields when they are present: `OriginStatus`, `OriginDuration`, `Overhead`, `OriginContentSize`, `RetryAttempts`, `RouterName`, `ServiceName`, `RequestProtocol`, `RequestScheme`, `TLSVersion` and `TLSCipher`. With them every error is classified:
|
||||
|
||||
| Class | Meaning |
|
||||
|---|---|
|
||||
| `app` | the backend itself answered 5xx |
|
||||
| `proxy` | the proxy could not reach the backend, or the client gave up |
|
||||
| `blocked` | refused by a middleware or a rate limit before the app |
|
||||
| `attack` | the request is an attack (see the categories above) |
|
||||
| `bot` | a crawler or tool |
|
||||
| `client` | an ordinary client mistake (broken link, authentication, bad input) |
|
||||
| `unknown` | none of the above could be told |
|
||||
|
||||
## Services, SLO and Apdex
|
||||
|
||||
Requests are grouped per Traefik service (`ServiceName`, with its router). For each service Urutau keeps hourly counters by error class and latency histograms, and shows: the **SLI** (share of requests that did not end in an error that counts against the service), the **SLO** (target 99.5%), the **error budget** left, the **burn rate** over 1 hour and 6 hours (error rate divided by `1 - SLO`; above 1 the budget is being spent faster than allowed) and the **Apdex**. Attacks, blocked requests and bots do not count against a service. Apdex uses a threshold T of 500 ms (1 s for API paths): a request answered within T is satisfied, within 4T tolerating, and a 5xx or a slower one is frustrated; Apdex is (satisfied + tolerating/2) / total.
|
||||
|
||||
## Episodes and survival
|
||||
|
||||
An attack **episode** is the run of activity of one address, closed after a quiet gap. From episodes Urutau measures the time from the first sighting to the ban and draws **Kaplan-Meier** survival curves (the probability that an address is still not banned after a given time, with addresses never banned counted as censored), with the median and the 90th percentile.
|
||||
|
||||
## Unique visitors
|
||||
|
||||
A **visitor** is a person with a real browser: a successful (2xx) GET of a document by a browser User-Agent (not a bot, tool or unknown client), not a prefetch and, when the browser says so, with `Sec-Fetch-Dest: document`. It is counted once per IP per UTC day, deduplicated globally across domains (a per-domain figure and an all-domains total). The key is a hash of a daily salt, the IP and the domain, and leaves the User-Agent out on purpose, because scrapers rotate it per request from one address (a measured 2.7x inflation). Everything else that talks to a site (bots, tools, unknown or empty User-Agents) is counted apart as **non-human clients**.
|
||||
|
||||
This is why the number differs from Coolify's analytics, which counts every distinct IP through HyperLogLog with no filter: bots, scanners and health checks inflate it. Urutau's figure is lower and closer to people.
|
||||
|
||||
## Legitimate visits stream
|
||||
|
||||
`GET /api/v1/events/stream?visits=1` adds anonymous visit events to the live stream. A visit carries no address, User-Agent or referrer; its place is the city, with coordinates rounded to one decimal (about 11 km). At most 20 visit events per second per instance are sent (the excess is summarised once a second as a batch), and visits are only broadcast to subscribers: never written to the event log, a snapshot or `live/recent`.
|
||||
|
||||
## Event registry
|
||||
|
||||
`<data-dir>/events/` holds one JSON line per event, in the same format as the live stream, one file per UTC day. The current day is appended to and synced every 2 seconds; older days are gzip compressed. Files older than the retention are deleted, and the total is capped by `--events-max` (512 MB by default, `0` disables the registry). A day holds at most 200,000 lines; beyond that, events are only counted.
|
||||
|
||||
What enters: malicious events (scanner, exploit, bruteforce, ssh-fail, ssh-probe), ban and unban, successful SSH logins, a 404 answered to an attack tool, and `ok` or `notfound` answers only for addresses that are already suspicious or hostile (to show what they got). Never a legitimate visitor. Events relayed from peers are registered with the peer name as host.
|
||||
|
||||
Failure behavior: a full disk, the size cap or the day cap drop events (counted, logged at most once in a while, never fatal); a corrupted line is skipped when reading; a partial line left by an earlier failure is terminated before the next write.
|
||||
|
||||
## Intelligence
|
||||
|
||||
The investigation layer is computed from the IP table and the registry, with no external API:
|
||||
|
||||
- **Attack families** (`traversal`, `log4shell`, `sqli`, `xss`, `rce-injection`, `webshell`, `env-credentials`, `vcs`, `backup`, `wordpress`, `phpmyadmin-db`, `actuator-debug`, `iot-cgi`, `admin-panel`, `generic-404`) and the **MITRE ATT&CK** techniques they map to.
|
||||
- **Network type** from the ASN, the AS organisation and reverse DNS: `vpn`, `research-scanner`, `isp-cn`, `hosting`, `mobile`, `isp/mobile`, `residential`, `unknown`, and `tor` when the address is in the `--tor-exits` file (reloaded every 24 hours when it changes).
|
||||
- **Cadence** of the requests of one IP: `automated`, `human-like`, `mixed` or `insufficient` (fewer than 3 requests).
|
||||
- **Sessions:** bursts of one IP separated by a gap (30 minutes by default), each with a stage in increasing severity: `recon`, `probe`, `exploit`, `access`, `banned`.
|
||||
- **Campaigns:** at least 3 IPs whose sessions have the same signature (similar normalized paths, Jaccard 0.6 or more, same tool) within a window; the signature id is `c-` plus 8 hex characters.
|
||||
- **Exposure:** a 2xx answer to a request on a sensitive path.
|
||||
- **Verdict with reasons**, each reason a stable code with a weight (`exploits_refused`, `tool_ua`, `banned_jail`, `multi_category`, `exposure`, `ssh_login_after_bruteforce`, `admin`, `immune`), and **recommended actions** (`block`, `report`, `investigate`, `incident`); administrators and immune sources get none.
|
||||
- **STIX 2.1** export of an IP (`/api/v1/ip/{ip}/stix`), with deterministic UUIDv5 ids.
|
||||
- **Crawlers:** a User-Agent claiming Googlebot or Bingbot is confirmed by forward-confirmed reverse DNS; a fake one stays an attacker.
|
||||
- SSH users listed in `--admin-users` are marked as administrators.
|
||||
|
||||
## Metrics
|
||||
|
||||
`GET /api/v1/metrics` returns stable figures (no per-minute rates), each with its value, the previous value and a sparkline where it applies:
|
||||
|
||||
| Metric | Formula |
|
||||
|---|---|
|
||||
| `attacks_per_hour_24h` | malicious events in the last 24 h / 24 |
|
||||
| `moving_avg_7d_per_hour` | malicious events in the last 7 days / 168 |
|
||||
| `trend` | percent change of malicious events in the range against the previous range of the same length |
|
||||
| `active_attackers_24h`, `_1h` | attacker IPs seen in the last 24 h, in the last hour |
|
||||
| `new_attackers` | IPs first seen inside the range (and the previous range) |
|
||||
| `returning_rate` | IPs seen in the range but first seen before it / all IPs seen in the range, in percent |
|
||||
| `sessions_per_day` | sessions in the range / days of the range (at least 1) |
|
||||
| `exposure_rate` | sessions that got a successful answer / sessions, in percent |
|
||||
| `exploits_refused_pct` | exploit requests answered 4xx or 5xx / exploit requests with a status, in percent |
|
||||
| `mttb` | median and 90th percentile of the time from first sighting to ban |
|
||||
| `ban_coverage` | hostile IPs banned / hostile IPs, in percent |
|
||||
| `blocklist_coverage` | hostile IPs that are listable (global addresses) / hostile IPs, in percent |
|
||||
| `blocklist_leak` | hostile IPs neither banned nor listable (a count) |
|
||||
| `ssh.fails_24h`, `ssh.users_distinct`, `ssh.ok_after_fail` | SSH failures in 24 h, distinct users tried in 24 h, sessions with a failure and then a successful login |
|
||||
| `concentration.top10_ips`, `top5_asns` | share of malicious events from the 10 busiest IPs and the 5 busiest ASNs, in percent |
|
||||
|
||||
Sessions, exposure, refused exploits and `ok_after_fail` need the event registry and read at most a bounded number of events (`truncated` says when the window was cut).
|
||||
|
||||
## State and persistence
|
||||
|
||||
The state lives in memory: minute buckets for 7 days, hourly top lists (paths, domains, User-Agents, users), a table of up to 20,000 IPs (when full, the 10% with the lowest score are evicted; banned IPs are kept), a feed of the latest 500 events and the active bans. `--retention` (1h to 168h) bounds how long IPs are kept; old IPs are pruned every 10 minutes.
|
||||
The state lives in memory: minute buckets for the latest 48 hours and hourly data up to 30 days, hourly top lists (paths, domains, User-Agents, users), a table of up to 20,000 IPs (when full, the 10% with the lowest score are evicted; banned IPs are kept), a feed of the latest 500 events and the active bans. `--retention` (1h to 168h) bounds how long IPs are kept; old IPs are pruned every 10 minutes.
|
||||
|
||||
Every 60 seconds, and on shutdown, the state is written to `urutau-state.gob` in the data directory together with the inode and offset of every source. On start it is restored and each source resumes exactly where it stopped, so a restart never counts a log twice. A snapshot is skipped while a backfill runs. An unreadable snapshot is moved to `urutau-state.gob.corrupt` and the service starts empty, reading the logs again (including the rotated copies).
|
||||
|
||||
The process sets a soft memory limit of 160 MiB unless `GOMEMLIMIT` is set.
|
||||
The process sets a soft memory limit of 256 MiB unless `GOMEMLIMIT` is set. The worst case measured is about 54 MiB of heap and a snapshot of about 27 MB.
|
||||
|
||||
## Federation
|
||||
|
||||
A hub is an ordinary instance started with `--peer name=https://url`, and it needs `URUTAU_PEER_TOKEN`. Every 15 seconds it calls each peer's `GET /api/v1/peer/export?range=...` (for `1h`, `24h` and `7d`) with the peer token and keeps the latest answer. The export is `{"v":1,"summary":...,"traffic":{...}}` with the top 500 IPs and their detail, cached for 5 seconds on the peer. It is the only route the peer token opens. The hub never follows redirects, requires `https` outside loopback, uses a 4 second timeout, caps the body at 8 MB and sanitizes and caps whatever a peer sends. A peer that fails is marked offline and the others carry on. The dashboard host selector then offers `all`, the hub itself and each peer; summaries, traffic and IP tables are merged, and every row carries the host it came from.
|
||||
A hub is an ordinary instance started with `--peer name=https://url`, and it needs `URUTAU_PEER_TOKEN`. Every 15 seconds it calls each peer's `GET /api/v1/peer/export?range=...` (for the background ranges `1h`, `24h`, `7d` and `30d`; any other range or custom period is fetched on demand) with the peer token and keeps the latest answer. The export is `{"v":1,"summary":...,"traffic":{...}}` with the top 500 IPs and their detail, cached for 5 seconds on the peer. The peer token opens three routes: the export, the live stream and `GET /api/v1/peer/period`, the study (sessions, campaigns, metrics) the hub merges for a period or an IP; a peer runs at most two studies at once. The hub never follows redirects, requires `https` outside loopback, uses a 4 second timeout, caps the body at 8 MB and sanitizes and caps whatever a peer sends. A peer that fails is marked offline and the others carry on. The dashboard host selector then offers `all`, the hub itself and each peer; summaries, traffic and IP tables are merged, and every row carries the host it came from.
|
||||
|
||||
### Live relay
|
||||
|
||||
Besides the export, a hub keeps one `GET /api/v1/peer/stream` connection open per peer (a subscription per peer, with the peer's own token) and relays the live malicious events to its dashboard. What comes from a peer is bounded and sanitized: at most about 50 events per second per peer, lines of at most 16 KB, a buffer of the latest 500 relayed events (served by `/api/v1/live/recent`), and reconnection with backoff from 1 s up to 60 s. A peer serves at most 10 stream connections.
|
||||
|
||||
### Geography aggregation
|
||||
|
||||
`GET /api/v1/geo` is computed from the IP table (local and the peers' exports) joined with the geolocation databases: countries first, then, for one country, its regions, cities and top IPs. Results are cached for 5 seconds, in a cache of at most 256 keys.
|
||||
|
||||
## HTTP layer
|
||||
|
||||
|
||||
@@ -32,12 +32,16 @@ The access token is never a flag: `urutau serve` reads it from the `URUTAU_TOKEN
|
||||
| `--peer` | `URUTAU_PEERS` | none | peer `name=https://url`; repeat the flag, or comma separate the variable |
|
||||
| `--peer-token` | `URUTAU_PEER_TOKEN` | empty | token shared with the peers; prefer the variable or `URUTAU_PEER_TOKEN_FILE` (a flag shows up in the process list). Per-peer: `URUTAU_PEER_TOKEN_<NAME>` |
|
||||
| `--admin-users` | `URUTAU_ADMIN_USERS` | empty | SSH users whose successful login keeps their IP out of the blocklist for 24 h; the immunity is off unless set |
|
||||
| `--peer-allow` | `URUTAU_PEER_ALLOW` | empty | source CIDRs allowed to call the export; empty accepts any source with the token |
|
||||
| `--peer-allow` | `URUTAU_PEER_ALLOW` | empty | source CIDRs allowed to call the federation routes; empty accepts any source with the token |
|
||||
| `--peer-blocklist` | `URUTAU_PEER_BLOCKLIST` | `on` | `on` lists in the hub's blocklist the hostile IPs seen only by peers (score 50+ and a strong signal); `off` keeps the blocklist to this instance's own IPs |
|
||||
| `--location` | `URUTAU_LOCATION` | empty | map position of this instance, `"lat,lon"` or `"lat,lon,Label"` |
|
||||
| `--trusted-proxy` | `URUTAU_TRUSTED_PROXY` | `127.0.0.0/8,::1` (the compose file sets `10.250.0.0/24`) | proxies whose `X-Forwarded-For` is trusted, read right to left (login rate limit, `--peer-allow`) |
|
||||
| `--retention` | `URUTAU_RETENTION` | `168h` | how long data is kept (1h to 168h) |
|
||||
| `--retention` | `URUTAU_RETENTION` | `720h` | how long data is kept (1h to 720h, that is 30 days) |
|
||||
| `--events-max` | `URUTAU_EVENTS_MAX` | `512MB` | size cap of the event registry in `<data-dir>/events`; `0` turns it off |
|
||||
| `--tor-exits` | `URUTAU_TOR_EXITS` | empty | file with Tor exit addresses, one per line, reloaded every 24 h when it changes; empty disables |
|
||||
| `--insecure-no-auth` | none | off | disable authentication; only on a loopback bind |
|
||||
|
||||
Validation at start: peers must be `name=https://host` (plain `http` only on loopback), `URUTAU_PEER_TOKEN` must be set and different from `URUTAU_TOKEN`, names must be unique and cannot be `all` or the instance's own name, `--retention` must be at least 1h, and `URUTAU_TOKEN` and every peer token must have at least 32 characters and about 128 bits of estimated entropy; each peer needs a client token (`URUTAU_PEER_TOKEN_<NAME>` or the general `URUTAU_PEER_TOKEN` as fallback), and peer names must not collide in that variable name (unless `--insecure-no-auth` on a loopback address).
|
||||
Validation at start: peers must be `name=https://host` (plain `http` only on loopback), `URUTAU_PEER_TOKEN` must be set and different from `URUTAU_TOKEN`, names must be unique and cannot be `all` or the instance's own name, `--retention` must be at least 1h (and at most 720h), and `URUTAU_TOKEN` and every peer token must have at least 32 characters and about 128 bits of estimated entropy; each peer needs a client token (`URUTAU_PEER_TOKEN_<NAME>` or the general `URUTAU_PEER_TOKEN` as fallback), and peer names must not collide in that variable name (unless `--insecure-no-auth` on a loopback address).
|
||||
|
||||
```bash
|
||||
export URUTAU_TOKEN=$(openssl rand -base64 48)
|
||||
|
||||
@@ -10,7 +10,7 @@ Urutau has no configuration file. Everything is a flag with a `URUTAU_*` environ
|
||||
|---|---|
|
||||
| `URUTAU_TOKEN` | **Required.** Access token of the dashboard and the API: at least 32 characters and about 128 bits of estimated entropy (length times Shannon entropy; periodic or sequential tokens are refused). Generate one with `openssl rand -base64 48` (`openssl rand -hex 32` also works; `-hex 16` is refused by the entropy estimate). |
|
||||
| `URUTAU_TOKEN_FILE` | Path of a file holding the token (whitespace trimmed), instead of the variable. The variable wins when both are set. |
|
||||
| `URUTAU_PEER_TOKEN` | Optional. The server token of this instance: the only token its `GET /api/v1/peer/export` accepts, and it opens nothing else. Same strength rules as `URUTAU_TOKEN` (32+ characters, about 128 bits of estimated entropy, not periodic or sequential), and it must differ from it. When this instance is a hub, it is also the fallback client token sent to peers that have no token of their own. |
|
||||
| `URUTAU_PEER_TOKEN` | Optional. The server token of this instance: the only token its federation routes (`GET /api/v1/peer/export` and `GET /api/v1/peer/stream`) accept, and it opens nothing else. Same strength rules as `URUTAU_TOKEN` (32+ characters, about 128 bits of estimated entropy, not periodic or sequential), and it must differ from it. When this instance is a hub, it is also the fallback client token sent to peers that have no token of their own. |
|
||||
| `URUTAU_PEER_TOKEN_FILE` | Path of a file holding the general peer token. |
|
||||
| `URUTAU_PEER_TOKEN_<NAME>` and `..._<NAME>_FILE` | The client credential a hub sends to that one peer; it must equal the peer's own `URUTAU_PEER_TOKEN`. `<NAME>` is the peer name uppercased with every character other than a letter or digit turned into `_` (`my-peer` becomes `MY_PEER`). It does **not** open the local export. Two peer names that collapse to the same variable (`my-peer` and `my_peer`) are refused. A hub with a peer and no token for it refuses to start. |
|
||||
|
||||
@@ -31,14 +31,18 @@ Keep both in `.env` (never versioned) or in your orchestrator's secret store.
|
||||
| `URUTAU_MONITOR_UA` | `(?i)^(Uptime-Kuma/\|Beszel\|Coolify\|kube-probe/\|Go-http-client/.*healthcheck)` | regular expression of monitoring User-Agents |
|
||||
| `URUTAU_GEO_DIR` | `<data-dir>/geo` | where the DB-IP Lite databases live |
|
||||
| `URUTAU_GEO_UPDATE` | `24h` | interval between checks for a newer database; `0` disables the download |
|
||||
| `URUTAU_PEER_ALLOW` | empty | CIDRs allowed to call the export; empty accepts any source that has the token |
|
||||
| `URUTAU_PEER_ALLOW` | empty | CIDRs allowed to call the federation routes; empty accepts any source that has the token |
|
||||
| `URUTAU_PEER_BLOCKLIST` | `on` | `on`: the hub's blocklist includes hostile IPs seen only by peers (score 50+ and a strong signal); `off`: only this instance's own IPs |
|
||||
| `URUTAU_LOCATION` | empty | where this instance is on the map, `"lat,lon"` or `"lat,lon,Label"` (validated at start). It is the destination of the arcs on the Live page and is shared with the hub; empty lets the page fall back to an estimated destination |
|
||||
| `URUTAU_TRUSTED_PROXY` | `127.0.0.0/8,::1` (the compose file sets `10.250.0.0/24`) | reverse proxies whose `X-Forwarded-For` is trusted (read right to left); used by the login rate limit and by `URUTAU_PEER_ALLOW` |
|
||||
| `URUTAU_DOMAINS` | empty | allowlist of analytics domains, exact names or `*.example.com`; empty tracks every domain that answers 2xx; recommended, in practice required, when any backend answers 2xx for every Host (catch-all or wildcard), otherwise random Hosts can fill the 24 domain slots |
|
||||
| `URUTAU_MONITOR_FROM` | empty | CIDRs the monitors really come from; when set, the monitoring User-Agent only counts from them |
|
||||
| `URUTAU_ADMIN_USERS` | empty | SSH users whose successful login keeps their IP out of the blocklist for 24 h after the last login (a later strong signal cancels it); the immunity is off unless this is set |
|
||||
| `URUTAU_PEERS` | empty | peers to aggregate, comma separated `name=https://url` |
|
||||
| `URUTAU_RETENTION` | `168h` | retention as a Go duration, from `1h` to `168h` |
|
||||
| `GOMEMLIMIT` | 160 MiB soft limit | standard Go memory limit; set it to override the default |
|
||||
| `URUTAU_RETENTION` | `720h` | retention as a Go duration, from `1h` to `720h` (30 days) |
|
||||
| `URUTAU_EVENTS_MAX` | `512MB` | size cap of the event registry (`<data-dir>/events`); `0` turns it off |
|
||||
| `URUTAU_TOR_EXITS` | empty | file of Tor exit addresses, one per line, reloaded every 24 h when it changes |
|
||||
| `GOMEMLIMIT` | 256 MiB soft limit | standard Go memory limit; set it to override the default |
|
||||
| `TZ` | UTC | time zone of `fail2ban.log` timestamps, which carry no zone |
|
||||
|
||||
In the container image the three log paths default to `/logs/traefik/access.log`, `/logs/host/auth.log` and `/logs/host/fail2ban.log` (the compose file mounts the host logs there). The compose file adds `URUTAU_VERSION` (image tag), `URUTAU_IMAGE` and `URUTAU_PUBLISH` (host address and port), see `.env.example`.
|
||||
@@ -54,7 +58,9 @@ In the container image the three log paths default to `/logs/traefik/access.log`
|
||||
|
||||
Country, city and ASN come from the DB-IP Lite databases (city and ASN), which Urutau downloads and refreshes by itself into `URUTAU_GEO_DIR`. Without them (for example on an air-gapped host) the dashboard works and the geographic fields stay empty; to run offline, place the `dbip-city-lite-YYYY-MM.mmdb` and `dbip-asn-lite-YYYY-MM.mmdb` files in that directory and set `URUTAU_GEO_UPDATE=0`. The databases are licensed CC BY 4.0: keep the attribution (the dashboard footer and the README already carry it).
|
||||
|
||||
The Traffic tab needs no setting. `URUTAU_DOMAINS` restricts which domains it tracks (exact names or `*.example.com`); a domain only gets a slot after a 2xx answer and inactive domains are pruned, so forged `Host` headers cannot fill the analytics. Top pages normalize token-looking path segments (ids, hashes, long random strings) to `:id`. It uses the Traefik log, counts unique visitors by a daily-salted hash and never persists the IP address of a legitimate visitor. See [SECURITY.md](../SECURITY.md).
|
||||
The geolocation databases are checked every 24 hours (`--geo-update`), but DB-IP publishes a new one only once a month, so most checks find nothing new; the file is replaced after it is verified.
|
||||
|
||||
The Traffic page needs no setting. `URUTAU_DOMAINS` restricts which domains it tracks (exact names or `*.example.com`); a domain only gets a slot after a 2xx answer and inactive domains are pruned, so forged `Host` headers cannot fill the analytics. Top pages normalize token-looking path segments (ids, hashes, long random strings) to `:id`. It uses the Traefik log, counts unique visitors by a daily-salted hash and never persists the IP address of a legitimate visitor. See [SECURITY.md](../SECURITY.md).
|
||||
|
||||
## Peers (hub mode)
|
||||
|
||||
@@ -69,6 +75,10 @@ On each peer, set the same `URUTAU_PEER_TOKEN`. The hub calls only `GET /api/v1/
|
||||
|
||||
The snapshot file holds the aggregated state and the log offsets. Mount `URUTAU_DATA_DIR` on a volume to keep it across restarts. Delete the file to start from zero (the rotated logs will be read again). Retention limits how long an IP is kept, at most 168 hours; the dashboard ranges are `1h`, `24h` and `7d`.
|
||||
|
||||
## Event registry
|
||||
|
||||
`<data-dir>/events/` keeps one line per attacker event, one file per UTC day, older days gzip compressed, deleted after `URUTAU_RETENTION`, and capped in total by `URUTAU_EVENTS_MAX` (a number with an optional unit, `0` turns the registry off). It never holds a legitimate visitor. It lives in the same volume as the snapshot, so plan for the cap on top of the snapshot (about 27 MB in the worst case measured). A full disk or the cap drops events and never stops the service. See [architecture.md](architecture.md).
|
||||
|
||||
## Authentication and exposure
|
||||
|
||||
The default bind is `0.0.0.0` because the container is behind a proxy. Outside a container, bind to `127.0.0.1` or put a TLS reverse proxy in front. `--insecure-no-auth` exists only for local tests and is refused on non-loopback binds.
|
||||
@@ -13,7 +13,7 @@ volume urutau-data ── read and write ─► /data (snapsho
|
||||
|
||||
The compose file follows this layout. The Traefik log directory is mounted outside `/data` so it does not collide with the snapshot volume. Only the dedicated `logs` directory of the proxy is mounted, never the whole `/data/coolify/proxy` (which holds `acme.json` and the dynamic configuration).
|
||||
|
||||
The image runs as the unprivileged user `urutau` (uid 10001) on Alpine. Its `HEALTHCHECK` is the binary itself (`urutau healthcheck`, which asks the local daemon for `/api/health`), so there is no `curl` in the image. The compose file sets `mem_limit: 256m` and `cpus: 0.5`, a read-only root filesystem, `cap_drop: [ALL]` and `no-new-privileges`, and passes from `.env` to the container: `URUTAU_TOKEN`, `URUTAU_NAME`, `URUTAU_TRUSTED`, `URUTAU_PEERS`, `URUTAU_PEER_TOKEN`, `URUTAU_PEER_ALLOW`, `URUTAU_TRUSTED_PROXY`, `URUTAU_DOMAINS`, `URUTAU_MONITOR_FROM`, `URUTAU_ADMIN_USERS`, `URUTAU_GEO_UPDATE` and `TZ`. To set any other `URUTAU_*` variable (`URUTAU_MONITOR_UA`, `URUTAU_RETENTION`, `URUTAU_TOKEN_FILE`, per-peer tokens, ...), add it to the `environment` block.
|
||||
The image runs as the unprivileged user `urutau` (uid 10001) on Alpine. Its `HEALTHCHECK` is the binary itself (`urutau healthcheck`, which asks the local daemon for `/api/health`), so there is no `curl` in the image. The compose file sets a memory limit (`mem_limit`); the soft Go limit is 256 MiB and the worst case measured is about 54 MiB of heap plus a snapshot of about 27 MB, so `mem_limit: 384m` is recommended. The data volume also holds the event registry (`/data/events`, capped by `URUTAU_EVENTS_MAX`, 512 MB by default). The compose file sets and `cpus: 0.5`, a read-only root filesystem, `cap_drop: [ALL]` and `no-new-privileges`, and passes from `.env` to the container: `URUTAU_TOKEN`, `URUTAU_NAME`, `URUTAU_TRUSTED`, `URUTAU_PEERS`, `URUTAU_PEER_TOKEN`, `URUTAU_PEER_ALLOW`, `URUTAU_TRUSTED_PROXY`, `URUTAU_DOMAINS`, `URUTAU_MONITOR_FROM`, `URUTAU_ADMIN_USERS`, `URUTAU_GEO_UPDATE` and `TZ`. To set any other `URUTAU_*` variable (`URUTAU_MONITOR_UA`, `URUTAU_RETENTION`, `URUTAU_TOKEN_FILE`, per-peer tokens, ...), add it to the `environment` block.
|
||||
|
||||
## Quick start
|
||||
|
||||
@@ -150,7 +150,7 @@ Run one Urutau per server with its own `URUTAU_NAME`. Every instance that is pol
|
||||
URUTAU_PEER_TOKEN_SERVER_3: ${TOKEN_FOR_SERVER_3}
|
||||
```
|
||||
|
||||
The hub calls only `GET /api/v1/peer/export` on each peer (three ranges every 15 seconds) with that peer's token, which opens nothing else on the peer and is refused over plain `http` outside loopback. Set `URUTAU_PEER_ALLOW` on a peer to the hub's address to restrict who may call the export. Each peer keeps its own login token for its own dashboard.
|
||||
The hub calls only `GET /api/v1/peer/export` on each peer (three ranges every 15 seconds) and keeps one `GET /api/v1/peer/stream` open for the live events, with that peer's token, which opens nothing else on the peer and is refused over plain `http` outside loopback. Set `URUTAU_PEER_ALLOW` on a peer to the hub's address to restrict who may call the export. Each peer keeps its own login token for its own dashboard.
|
||||
|
||||
## Hardening
|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 145 KiB |
|
After Width: | Height: | Size: 211 KiB |
|
After Width: | Height: | Size: 210 KiB |
|
After Width: | Height: | Size: 211 KiB |
|
After Width: | Height: | Size: 215 KiB |
|
After Width: | Height: | Size: 193 KiB |
|
After Width: | Height: | Size: 186 KiB |
|
After Width: | Height: | Size: 437 KiB |
|
After Width: | Height: | Size: 413 KiB |
|
After Width: | Height: | Size: 421 KiB |
|
After Width: | Height: | Size: 190 KiB |
|
After Width: | Height: | Size: 693 KiB |
|
After Width: | Height: | Size: 677 KiB |
|
After Width: | Height: | Size: 690 KiB |
|
After Width: | Height: | Size: 270 KiB |
|
After Width: | Height: | Size: 225 KiB |
|
After Width: | Height: | Size: 209 KiB |
|
After Width: | Height: | Size: 289 KiB |
|
After Width: | Height: | Size: 154 KiB |
|
After Width: | Height: | Size: 151 KiB |
|
After Width: | Height: | Size: 175 KiB |
|
After Width: | Height: | Size: 171 KiB |
|
After Width: | Height: | Size: 202 KiB |
|
After Width: | Height: | Size: 196 KiB |
|
After Width: | Height: | Size: 188 KiB |
|
After Width: | Height: | Size: 187 KiB |
|
After Width: | Height: | Size: 184 KiB |
|
After Width: | Height: | Size: 219 KiB |
|
After Width: | Height: | Size: 206 KiB |
|
After Width: | Height: | Size: 259 KiB |
|
After Width: | Height: | Size: 255 KiB |
|
After Width: | Height: | Size: 260 KiB |
|
After Width: | Height: | Size: 191 KiB |
|
After Width: | Height: | Size: 190 KiB |
|
After Width: | Height: | Size: 222 KiB |
|
After Width: | Height: | Size: 416 KiB |
|
After Width: | Height: | Size: 391 KiB |
|
After Width: | Height: | Size: 393 KiB |
|
After Width: | Height: | Size: 296 KiB |
|
After Width: | Height: | Size: 612 KiB |
|
After Width: | Height: | Size: 617 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 203 KiB |
|
After Width: | Height: | Size: 196 KiB |
|
After Width: | Height: | Size: 211 KiB |
|
After Width: | Height: | Size: 197 KiB |
|
After Width: | Height: | Size: 203 KiB |
|
After Width: | Height: | Size: 224 KiB |
|
After Width: | Height: | Size: 210 KiB |
|
After Width: | Height: | Size: 188 KiB |
|
After Width: | Height: | Size: 232 KiB |
|
After Width: | Height: | Size: 228 KiB |
|
After Width: | Height: | Size: 162 KiB |
|
After Width: | Height: | Size: 151 KiB |
|
After Width: | Height: | Size: 202 KiB |
|
After Width: | Height: | Size: 194 KiB |
|
After Width: | Height: | Size: 186 KiB |
|
After Width: | Height: | Size: 175 KiB |
|
After Width: | Height: | Size: 390 KiB |
|
After Width: | Height: | Size: 380 KiB |
|
After Width: | Height: | Size: 381 KiB |
|
After Width: | Height: | Size: 312 KiB |
|
After Width: | Height: | Size: 176 KiB |
|
After Width: | Height: | Size: 167 KiB |
|
After Width: | Height: | Size: 198 KiB |
|
After Width: | Height: | Size: 190 KiB |