docs: bring README, docs, screenshots and changelog up to 1.6.0
Release / Plan (reuse the published image?) (push) Successful in 6s
Release / ci (push) Skipped
Release / Build image (amd64) (push) Skipped
Release / Build image (arm64) (push) Skipped
Release / Publish tags (push) Successful in 17s
Release / Gitea release (push) Skipped
Release / Plan (reuse the published image?) (push) Successful in 6s
Release / ci (push) Skipped
Release / Build image (amd64) (push) Skipped
Release / Build image (arm64) (push) Skipped
Release / Publish tags (push) Successful in 17s
Release / Gitea release (push) Skipped
Rewritten README and interface/configuration/CLI/Docker/support/architecture docs (EN and pt-BR) from the 1.6.0 code; all 80 screenshots regenerated, incidents pages added; changelog audited against the tags (1.4.0 date, 1.4.6/1.4.7 items, 1.5.0 details, 1.5.8 shipped inside 1.6.0, compare links); compose and .env.example expose the enforce, egress, probe and Tor settings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
22ccde539b
commit
6941106172
103 files changed
+1255
-344
No files matched your search
+147
-24
@@ -5,45 +5,68 @@
|
||||
Urutau is one Go binary with no third-party dependency. Everything runs in one process.
|
||||
|
||||
```
|
||||
cmd/urutau entry point: serve, doctor, version
|
||||
internal/app flags, wiring, the log runner, doctor
|
||||
cmd/urutau entry point: serve, doctor, healthcheck, version
|
||||
internal/app flags, wiring, the log runner, probe source, Tor lists, enforce and egress wiring, 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/core event model, parsers (Traefik JSON and text, sshd, fail2ban), classifier, error classes
|
||||
internal/store in-memory state, summaries, merge, snapshot, analytics, services, defense, roster
|
||||
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/)
|
||||
internal/geo dependency-free MMDB reader and database updater (DB-IP Lite)
|
||||
internal/ua User-Agent parser (browser, system, device, bot, attack tool)
|
||||
internal/enforce second firewall: ban decisions, decision file, unban requests, operator allowances
|
||||
internal/egress outbound connection analysis: workloads, findings (beacon, C2, mining, scan...)
|
||||
internal/incidents tickets opened from egress findings or by hand, stored in incidents.json
|
||||
internal/fed hub that polls peers, live relay, study merge, decision and egress exchange
|
||||
internal/server HTTP handler, auth, API routes, HTML report, embedded dashboard (web/)
|
||||
deploy/host host kit: nftables table, rsyslog, logrotate, container map, fail2ban jail, installer
|
||||
```
|
||||
|
||||
The only dependency is the Go standard library.
|
||||
|
||||
## Data flow
|
||||
|
||||
```
|
||||
Traefik access.log auth.log fail2ban.log
|
||||
│ │ │
|
||||
└──── tail.Follower (one goroutine per source) ────┐
|
||||
▼
|
||||
parse (core.ParseTraefik / ParseAuth / ParseFail2ban) → Event
|
||||
▼
|
||||
Traefik access.log auth.log fail2ban.log probe.log (nft, closed ports)
|
||||
│ │ │ │
|
||||
└──── tail.Follower (one goroutine per source) ┘
|
||||
▼
|
||||
parse (core.ParseTraefik / ParseAuth / ParseFail2ban / probe parser) → Event
|
||||
▼
|
||||
trusted CIDRs? drop. monitoring UA and benign? count aside.
|
||||
▼
|
||||
store.Ingest: counters, per-IP record, live feed
|
||||
▼
|
||||
snapshot every 60 s ◄── state ──► summaries / IP table / SSE
|
||||
▼
|
||||
classify (core): category, error class, forge browsing exempt
|
||||
▼
|
||||
store.Ingest: counters, per-IP record, live feed ──► evlog (events/)
|
||||
▼
|
||||
intel (computed on demand): family, MITRE, network type, cadence, sessions,
|
||||
campaigns, verdict ──► dashboard, API, STIX, blocklist, HTML report
|
||||
▼
|
||||
enforce (optional): decision per attacking IP ──► decisions.log
|
||||
▼
|
||||
host fail2ban jail "urutau" reads decisions.log and bans in the firewall
|
||||
▼
|
||||
fail2ban.log "Ban urutau" returns as an event (not counted as evidence)
|
||||
|
||||
egress.log (nft, new outbound connections) ──► egress.Source ──► findings
|
||||
findings ──► incidents (tickets INC-n, suppression) ──► API and report
|
||||
```
|
||||
|
||||
Snapshot every 60 s: `state` ◄──► summaries, IP table, SSE. The second firewall never gains privileges: it only appends lines to a file that a jail on the host reads.
|
||||
|
||||
## Sources
|
||||
|
||||
Each source is followed by its own goroutine and reports a state: `following`, `waiting` (the file does not exist yet), `backfill` (first start, reading rotated copies) or `error`. A line larger than 64 KiB is dropped and counted as malformed. On the first start without a snapshot, the rotated copies (`path.1`, `path.N.gz` up to 9) are read oldest first so the window is not empty.
|
||||
Each source is followed by its own goroutine and reports a state: `following`, `waiting` (the file does not exist yet), `backfill` (first start, reading rotated copies), `degraded` (more than 20% of the last 1000 lines are unreadable, with at least 50 samples) or `error`. A line larger than 64 KiB is dropped and counted as malformed. On the first start without a snapshot, the rotated copies (`path.1`, `path.N.gz` up to 9) are read oldest first so the window is not empty.
|
||||
|
||||
Lines are decoded as follows:
|
||||
|
||||
- **Traefik:** one JSON object per line. Client address, host, method, path, status and User-Agent are read; paths and User-Agents are clipped.
|
||||
- **Traefik:** one JSON object per line; the default text format is read too, with fewer fields (no host or service). Client address, host, method, path, status and User-Agent are read; paths and User-Agents are clipped.
|
||||
- **sshd:** the lines of `auth.log` with ISO timestamps. Failed passwords and keys, invalid users, closed-before-auth connections and `Accepted` logins; negotiation errors, banner exchange failures and protocol mismatches count as probes.
|
||||
- **probe:** the `URUTAU-PROBE:` lines that the host kit logs for inbound connections to ports nobody listens on (`--probe-log`). Each becomes a `scanner` event with source `probe` (MITRE T1046), at most one per address, port and protocol per minute.
|
||||
- **fail2ban:** `Ban`, `Unban` and `Restore Ban` lines. A restored ban (replayed after a fail2ban restart) updates the ban state and is not scored.
|
||||
|
||||
Log file paths are never exposed: neither the dashboard nor a peer export shows where a source reads from, only its name and state.
|
||||
The egress log (`--egress-log`) has its own source, described in the egress section. Log file paths are never exposed: neither the dashboard nor a peer export shows where a source reads from, only its name and state.
|
||||
|
||||
Lines that are valid but carry nothing to record are ignored silently; lines that cannot be parsed are counted as malformed and shown per source in the dashboard.
|
||||
|
||||
@@ -71,6 +94,8 @@ The level combines the score with evidence:
|
||||
- **Never hostile:** an IP with a successful SSH login (`ssh-ok`), which is most likely you.
|
||||
- Otherwise **low**.
|
||||
|
||||
Pages of a code forge that show repository content (Gitea or Forgejo `/owner/repo/src/commit/<sha>/<file>`, GitHub and GitLab `blob`, `tree`, `raw`, `blame`, `commits`) are not probes even when the file is called `.env` or `.gitignore`; `/.env`, `/.git/config` and traversal are unchanged. A fail2ban ban made by the `urutau` jail (our own decision) or by `recidive` (which only repeats bans) is not evidence: it adds no score, no strong signal and no blocklist listing. Bans of independent jails (sshd, traefik) count.
|
||||
|
||||
IPv6 clients are tracked by their /64 prefix, since one subscriber holds a whole /64 and per-address keys would let one attacker flood the table. IPs are tracked up to 20,000 entries.
|
||||
|
||||
The malicious categories (`scanner`, `exploit`, `bruteforce`, `ssh-fail`, `ssh-probe`) feed the "malicious" totals.
|
||||
@@ -136,14 +161,14 @@ Failure behavior: a full disk, the size cap or the day cap drop events (counted,
|
||||
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).
|
||||
- **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) or in the official lists that `--tor-auto` (on by default) downloads every 6 hours into `<data-dir>/tor`.
|
||||
- **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.
|
||||
- **Crawlers:** a User-Agent claiming Googlebot (and its variants such as GoogleOther), Bingbot or Applebot is confirmed by forward-confirmed reverse DNS (`googlebot.com`, `google.com`, `search.msn.com`, `applebot.apple.com`); a fake one stays an attacker, and a confirmed crawler is excluded from bans whatever its User-Agent says.
|
||||
- SSH users listed in `--admin-users` are marked as administrators.
|
||||
|
||||
## Metrics
|
||||
@@ -170,9 +195,68 @@ The investigation layer is computed from the IP table and the registry, with no
|
||||
|
||||
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).
|
||||
|
||||
## Second firewall
|
||||
|
||||
`internal/enforce` is optional (`--enforce=off|observe|on`). Urutau decides which attacking addresses deserve a ban and appends one line per decision to `--enforce-log`; the host fail2ban jail `urutau` reads the file and applies the ban. The process gets no privileges. In `observe` mode decisions stay in memory and the interface shows what would be banned.
|
||||
|
||||
Rules (the first that matches, per address):
|
||||
|
||||
- 2 critical events (traversal, log4shell, sqli, rce, webshell, env, vcs) in 10 minutes.
|
||||
- SSH: `--enforce-threshold` failures in 10 minutes (default 5); an `ssh-probe` counts half a failure.
|
||||
- Port scan: 10 distinct ports probed in 10 minutes (reason `port-scan`).
|
||||
- Web: `--enforce-threshold` attack events in 10 minutes (dominant reason, otherwise `scanner-flood`).
|
||||
- Neighbor: 3 or more distinct addresses of the same /24 (IPv4) or /64 (IPv6) were banned in the last 24 hours and another address of the prefix attacks (`neighbor-campaign`).
|
||||
- Known attacker: the verdict is hostile, or suspicious with a score of 100 or more (`known-attacker`).
|
||||
- Slow attackers: 10 SSH failures or 20 web scan/exploit events in 24 hours; 10 SSH failures or 10 web scan/exploit events in 7 days (the web one only without a legitimate visit).
|
||||
|
||||
A sweep every 10 minutes, and after the start-up backfill, applies the same rules to the addresses active in the last 24 hours that nothing blocks yet. At most `--enforce-max-per-min` decisions are written per minute (default 60); the excess is dropped and counted. The advisory TTL grows with the number of earlier bans: 1 h, 6 h, 24 h, 7 d.
|
||||
|
||||
Never banned: private and reserved ranges, `--trusted`, the Cloudflare ranges, well known public resolvers, the peers and the server's own addresses, a verified crawler, an address with a legitimate visit in the last 24 hours, and an operator allowance (below). Each skip is counted by reason.
|
||||
|
||||
Decision file, one line per ban (`MaxLogBytes` 20 MB, then rotated to `.1`):
|
||||
|
||||
```
|
||||
2026-11-15T10:00:00Z urutau decision=ban ip=203.0.113.9 reason=ssh-bruteforce score=75 ttl=3600 host=web1 src=local
|
||||
```
|
||||
|
||||
Nothing the attacker controls enters the line: the address is re-formatted, the reason must be one of a fixed list of slugs and the host and source names are reduced to `[A-Za-z0-9._-]`. State (bans, allowances, counters) goes to `<data-dir>/enforce.json`.
|
||||
|
||||
Unban: `POST /api/v1/enforce/unban` appends `<time> urutau unban ip=<ip> allow=<seconds>` to the unban file (`--enforce-unban-log`, by default `unban.log` next to the decision file); a systemd path unit of the host kit lifts the fail2ban block. With `allow` above zero the engine does not ban the address again for that long (at most 30 days); `DELETE /api/v1/enforce/allow` ends the allowance.
|
||||
|
||||
Sharing (`--enforce-share=on`): hub and peers exchange decisions through `GET` and `POST /api/v1/peer/decisions` and unbans through `POST /api/v1/peer/unban`. Each side applies its own exclusions, accepts only the fixed reason slugs, caps the TTL at 6 hours, and bans on a peer's word only an address it also saw attacking in the last 7 days (otherwise the skip is `peer_unconfirmed`).
|
||||
|
||||
## Egress analysis
|
||||
|
||||
`internal/egress` reads the nftables log of new outbound connections (`--egress=auto|on|off`, `--egress-log`; `auto` turns it on when the file exists). The host kit logs only TCP connection attempts (SYN without ACK) under the prefix `URUTAU-EGRESS:`. The state is in memory: on start the rotated copies and the live file are replayed, which rebuilds the beacon history.
|
||||
|
||||
A **workload** is a group of sources (a CIDR, an address, `host` for the host's own traffic, or a container name or prefix from the `containers.map` file the host kit writes) with a role: `default`, `scanner`, `mail` or `resolver` (`--egress-workloads`). The principle: traffic shaped like a scan is suppressed only for `scanner` workloads; everything else is judged the same for all of them.
|
||||
|
||||
Findings (`kind`, severity):
|
||||
|
||||
| Kind | Meaning |
|
||||
|---|---|
|
||||
| `beacon` | regular conversation with one destination: at least 8 connections within 30 minutes with an interval between 10 s and 6 h and a low jitter |
|
||||
| `infra` | the same pattern toward cloud metadata services, the provider or the servers themselves (informational) |
|
||||
| `bad_dst` | contact with an address that attacked this server |
|
||||
| `tor` | connection to a Tor relay |
|
||||
| `port` | SMTP from a non-mail workload, IRC, mining pool (stratum) or Tor ORPort ports |
|
||||
| `dns_bypass` | DNS (53) or DoT (853) to a public address that is not an allowed resolver |
|
||||
| `scan` | fan-out of more than 50 destinations or 100 ports in 10 minutes, outside `scanner` workloads |
|
||||
| `new_geo` | first contact with a country after the workload's learning time (24 h) |
|
||||
|
||||
Destinations of peers, trusted addresses and the server's own public addresses never raise findings, and regular connections to large CDNs and clouds are low severity unless the destination attacked the server. Limits: 50,000 pairs and destinations, 2,000 findings, 720 hourly buckets. `GET /api/v1/egress` returns the findings, workloads, countries and an hourly timeline; a hub also merges the `GET /api/v1/peer/egress` answer of each peer.
|
||||
|
||||
## Incidents
|
||||
|
||||
`internal/incidents` keeps tickets `INC-<n>` in `<data-dir>/incidents.json` (atomic write, 0600; a corrupt file is moved to `.corrupt`). Every egress finding with severity above `info` becomes a ticket keyed by `host|kind|workload|dst|dport|proto`, created by a sync on each merged egress report and every 60 seconds; a resolved ticket reopens when the finding reappears. A ticket has status (`open`, `investigating`, `true_positive`, `false_positive`, `benign`, `resolved`), severity, assignee, up to 10 tags, verdict, comments and a change history. Limits: 5,000 tickets, 200 comments and 500 history entries each. A ticket in `false_positive` or `benign` can suppress exactly its key for 30 days (90 at most); suppressed findings leave `/api/v1/egress` unless `?suppressed=1`. A host with more than 300 active tickets has the excess grouped in one flood ticket. Writes refuse cross-site requests, and every write is logged (id, field, author).
|
||||
|
||||
## HTML report
|
||||
|
||||
`GET /api/v1/report?format=html` renders one self-contained A4 document (cover, executive summary, recommendations by rule, threats, geography, errors and health, visitors, defense, second firewall and outbound traffic) in the language of `lang`. The text goes through `html/template` and the charts are SVG built from escaped values, so no log text reaches the page unescaped. `format=json` returns the same figures.
|
||||
|
||||
## State and persistence
|
||||
|
||||
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.
|
||||
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 720h) 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).
|
||||
|
||||
@@ -180,7 +264,7 @@ The process sets a soft memory limit of 256 MiB unless `GOMEMLIMIT` is set. The
|
||||
|
||||
## 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 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.
|
||||
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 only the federation routes: the export, the live stream, `GET /api/v1/peer/period` (the study of sessions, campaigns and metrics the hub merges for a period or an IP; a peer runs at most two at once), `GET /api/v1/peer/egress` (the egress report) and, with `--enforce-share`, `GET` and `POST /api/v1/peer/decisions` and `POST /api/v1/peer/unban`. 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
|
||||
|
||||
@@ -192,4 +276,43 @@ Besides the export, a hub keeps one `GET /api/v1/peer/stream` connection open pe
|
||||
|
||||
## HTTP layer
|
||||
|
||||
The server sets read, write and idle timeouts, `MaxHeaderBytes` of 16 KB, caps `POST /login` at 4 KB and accepts at most 20 simultaneous live-stream (SSE) clients (the 21st gets 503 with `Retry-After`; each stream sends a heartbeat every 20 s). The handler uses the standard `net/http` mux. Every response carries a strict Content-Security-Policy (`default-src 'self'`), `X-Content-Type-Options`, `X-Frame-Options: DENY`, `Referrer-Policy: no-referrer`, cross-origin isolation headers and, over HTTPS, HSTS. API answers are `Cache-Control: no-store`. The dashboard files are embedded in the binary. See [interface.md](interface.md) for the routes and [configuration.md](configuration.md) for the settings.
|
||||
The server sets read, write and idle timeouts, `MaxHeaderBytes` of 16 KB, caps `POST /login` at 4 KB and accepts at most 20 simultaneous live-stream (SSE) clients (the 21st gets 503 with `Retry-After`; each stream sends a heartbeat every 20 s). The handler uses the standard `net/http` mux. Every response carries a strict Content-Security-Policy (`default-src 'self'`), `X-Content-Type-Options`, `X-Frame-Options: DENY`, `Referrer-Policy: same-origin`, `Permissions-Policy`, cross-origin isolation headers and, over HTTPS, HSTS. API answers are `Cache-Control: no-store`. The dashboard files are embedded in the binary. See [interface.md](interface.md) for the pages and [configuration.md](configuration.md) for the settings.
|
||||
|
||||
## API routes
|
||||
|
||||
All `/api/v1/*` routes except the federation ones need `URUTAU_TOKEN` (bearer) or a session cookie; the peer token gets 403 on them. Analysis routes live in `internal/server/api_<name>.go` files and register themselves with `registerUserRoute`. Routes that take a range accept `range`, or `from` and `to`.
|
||||
|
||||
| Route | Purpose |
|
||||
|---|---|
|
||||
| `GET /api/health` | `{"status":"ok"}`, no authentication |
|
||||
| `GET /login`, `POST /login`, `POST /logout` | session cookie |
|
||||
| `GET /api/v1/summary`, `/traffic`, `/ips`, `/ip/{ip}`, `/ip/{ip}/stix` | totals, web analytics, IP table, one address, STIX 2.1 bundle |
|
||||
| `GET /api/v1/period`, `/period/events`, `/events`, `/events/sessions` | study of a period, event registry search (cursor), sessions |
|
||||
| `GET /api/v1/events/stream` | live stream over SSE (`?visits=1` adds anonymous visits) |
|
||||
| `GET /api/v1/live/recent`, `/geo` | latest live events, geography |
|
||||
| `GET /api/v1/metrics`, `/evolution`, `/concentration`, `/survival`, `/techniques`, `/sessions/funnel` | stable metrics and analytics |
|
||||
| `GET /api/v1/campaigns`, `/campaigns/{id}` | campaigns |
|
||||
| `GET /api/v1/services`, `/services/{svc}`, `/errors`, `/protocols` | SLO, error classes, protocols and TLS |
|
||||
| `GET /api/v1/defense`, `/integrity` | blocklist coverage, bans, sources and data integrity |
|
||||
| `GET /api/v1/blocklist.txt`, `/blocklist.json` | exportable blocklist (`?family=4\|6`) |
|
||||
| `GET /api/v1/enforce`, `POST /enforce/unban`, `DELETE /enforce/allow` | second firewall |
|
||||
| `GET /api/v1/egress` | outbound findings |
|
||||
| `GET /api/v1/incidents`, `/incidents/export.csv`, `/incidents/{id}`, `POST /incidents`, `PATCH /incidents/{id}`, `POST /incidents/{id}/comments` | tickets |
|
||||
| `GET /api/v1/report` | report as JSON or HTML (`?format=`) |
|
||||
| `GET /api/v1/peer/export`, `/peer/stream`, `/peer/period`, `/peer/egress` | federation, peer token only |
|
||||
| `GET`, `POST /api/v1/peer/decisions`, `POST /api/v1/peer/unban` | decision sharing, peer token only, `--enforce-share` |
|
||||
|
||||
List endpoints (IPs, sessions, campaigns, events of an address) are paginated by the backend; event search pages by cursor.
|
||||
|
||||
## Files
|
||||
|
||||
| Where | What |
|
||||
|---|---|
|
||||
| `<data-dir>/urutau-state.gob` | state snapshot with the offset of every source (`.corrupt` when unreadable) |
|
||||
| `<data-dir>/events/YYYY-MM-DD.jsonl[.gz]` | event registry, one JSON line per event |
|
||||
| `<data-dir>/geo/` | DB-IP Lite city and ASN databases |
|
||||
| `<data-dir>/tor/` | cache of the Tor exit and relay lists |
|
||||
| `<data-dir>/enforce.json` | state of the second firewall |
|
||||
| `<data-dir>/incidents.json` | tickets |
|
||||
| `--enforce-log`, `unban.log` | decision file read by the host jail and unban requests read by the host |
|
||||
| `--probe-log`, `--egress-log`, `--egress-containers` | kernel logs and container map written by the host kit in `deploy/host` |
|
||||
Reference in new issue
Block a user