feat: 1.1.0 interface, geography drill-down and live attack map
Release / Plan (reuse the published image?) (push) Successful in 4s
CI / Docker image (build and smoke test) (push) Skipped
CI / Format and vet (push) Successful in 19s
CI / Tests (Linux, race detector) (push) Successful in 35s
CI / Dependency audit (push) Successful in 16s
Release / ci (push) Successful in 35s
Release / Build image (arm64) (push) Successful in 51s
Release / Build image (amd64) (push) Successful in 1m11s
Release / Publish tags (push) Successful in 13s
Release / Gitea release (push) Skipped

A new console interface (side rail, seven pages, opening sentence and
active slice on every page, IP drawer, light and dark design tokens);
a Geography page that drills from the world to a country's regions and
cities; a Live page drawing attacks as arcs on a flat map or a globe.

Backend: GET /api/v1/geo, GET /api/v1/live/recent, host/src/dst on live
events, --location, a strict static file pattern, and live federation
through GET /api/v1/peer/stream (peer token only, bounded and sanitized
relay on the hub).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-11-14 17:47:28 -03:00
1 parent ff143ec4a2
commit f4b295f582
37 files changed
+5312 -1000

No files matched your search

+200 -23
View File
@@ -1,20 +1,48 @@
/* Urutau UI dictionaries. Every key must exist in both languages:
scripts/check-ui-i18n.mjs enforces it. "{n}" is replaced by the caller. */
scripts/check-ui-i18n.mjs enforces it. Placeholders are {n}, {name}...;
scripts registered later add their own keys with Urutau.registerI18n.
This file is loaded in <head>: the first lines below choose the theme and
the language before the first paint, so there is no flash of the wrong theme. */
(function () {
try {
var th = localStorage.getItem('urutau.theme');
if (th === 'light' || th === 'dark') document.documentElement.setAttribute('data-theme', th);
var lg = localStorage.getItem('urutau.lang') || ((navigator.language || 'en').toLowerCase().indexOf('pt') === 0 ? 'pt-BR' : 'en');
document.documentElement.lang = lg === 'pt-BR' ? 'pt-BR' : 'en';
} catch (e) { /* storage blocked: the system preference applies */ }
})();
window.URUTAU_I18N = {
en: {
'tagline': 'Lightweight, always-on threat intelligence for self-hosted servers · local-first · authorized use.',
'live.connecting': 'connecting',
'live.on': 'live',
'live.off': 'reconnecting',
'conn.connecting': 'connecting',
'conn.on': 'live',
'conn.off': 'reconnecting',
'host.label': 'Host',
'host.all': 'All hosts',
'range.label': 'Time range',
'range.1h': '1 h',
'range.24h': '24 h',
'range.7d': '7 d',
'range.long.1h': 'the last hour',
'range.long.24h': 'the last 24 hours',
'range.long.7d': 'the last 7 days',
'lang.toggle': 'Switch language',
'theme.toggle': 'Switch light/dark theme',
'logout': 'Sign out',
'nav.label': 'Main navigation',
'nav.skip': 'Skip to content',
'nav.more': 'More',
'nav.overview': 'Overview',
'nav.threats': 'Threats',
'nav.traffic': 'Traffic',
'nav.ips': 'IPs',
'nav.sources': 'Sources and hosts',
'slice.showing': 'Showing',
'slice.allHosts': 'all hosts',
'slice.host': 'host {name}',
'slice.allDomains': 'all domains',
'slice.domain': 'domain {name}',
'slice.ips': '{n} IPs',
'kpi.requests': 'Requests',
'kpi.malicious': 'Malicious events',
'kpi.hostile': 'Hostile IPs',
@@ -22,14 +50,51 @@ window.URUTAU_I18N = {
'kpi.bans': 'Active bans',
'kpi.ips': 'Distinct IPs',
'kpi.monitoring': '{n} monitoring requests filtered out.',
'kpi.sub.hosts': '{n} of {m} hosts online',
'kpi.sub.malicious': 'HTTP and SSH events',
'kpi.sub.share': '{p} of {n} distinct IPs',
'kpi.sub.bans': 'reported by fail2ban',
'kpi.sub.range': 'in {range}',
'ov.lead.hostile': '{n} hostile IPs in the selected slice',
'ov.lead.hostile.one': '1 hostile IP in the selected slice',
'ov.lead.calm': 'No hostile IPs in the selected slice',
'ov.lead.empty': 'No events recorded in the selected slice',
'ov.lead.body': '{m} malicious events against {r} requests, from {ips} distinct IPs; {b} active bans.',
'ov.lead.bodyEmpty': 'Widen the time range or choose another host. Sources report their state under Sources and hosts.',
'ov.countries': 'Top countries',
'ov.countries.hint': 'Origin of the events in the slice, by number of events.',
'ov.topips': 'Top IPs by score',
'ov.topips.hint': 'Highest threat score in the slice. Select an IP for its history.',
'ov.all': 'View all',
'ov.feed': 'Latest events',
'ov.feed.hint': 'Most recent events, newest first, updated live.',
'th.lead.top': 'Most activity is classified as "{cat}"',
'th.lead.none': 'No attack activity in the selected slice',
'th.lead.noneBody': 'No scanner, exploit, brute force or SSH events were classified in this slice.',
'th.lead.body': '{n} of {m} classified events ({p}).',
'th.lead.domain': 'Most targeted domain: {name}.',
'th.lead.origin': 'Main origin: {name}.',
'tr.lead.some': '{n} visitors viewed {p} pages',
'tr.lead.none': 'No traffic recorded in the selected slice',
'tr.lead.noneBody': 'Analytics count only successful responses to non-bot clients on the configured domains.',
'tr.lead.body': '{r} requests, {b} from search and AI bots; latency p50 {a} ms and p95 {c} ms.',
'ips.lead': '{n} distinct IPs, {h} hostile and {s} suspicious',
'ips.lead.body': '{b} IPs are banned. Select a row for the full history of an IP.',
'src.lead.all': 'All {n} sources are following',
'src.lead.some': '{a} of {n} sources following; {x} need attention',
'src.lead.none': 'No log sources reported',
'src.lead.body': '{h} of {m} hosts online; {l} lines read, {f} malformed.',
'feed.forged': 'forged monitor user agent',
'timeline.title': 'Activity by category',
'timeline.hint': 'Events per time bucket, stacked by category. Select a legend item to hide it.',
'timeline.empty': 'No activity in this range.',
'ips.title': 'Top IPs',
'ips.hint': 'Every IP seen in the slice. Sort by a column heading; select a row for details.',
'ips.search': 'Filter by IP or reverse DNS',
'ips.level': 'Threat level',
'ips.bannedOnly': 'Banned only',
'ips.empty': 'No IPs match.',
'ips.perPage': 'Rows per page',
'ips.empty': 'No IPs match. Clear the filters or widen the time range.',
'level.all': 'All levels',
'level.hostile': 'Hostile',
'level.suspicious': 'Suspicious',
@@ -39,8 +104,11 @@ window.URUTAU_I18N = {
'col.level': 'Level',
'col.cats': 'Categories',
'col.last': 'Last seen',
'col.first': 'First seen',
'col.events': 'Events',
'col.banned': 'Banned',
'col.host': 'Host',
'col.hosts': 'Hosts',
'col.source': 'Source',
'col.state': 'State',
'col.lines': 'Lines',
@@ -49,29 +117,47 @@ window.URUTAU_I18N = {
'pager.prev': 'Previous',
'pager.next': 'Next',
'pager.count': '{n} IPs',
'pager.page': 'Page {n} of {m}',
'feed.title': 'Live feed',
'feed.empty': 'Waiting for events.',
'top.paths': 'Most attacked paths',
'top.domains': 'Most targeted domains',
'top.uas': 'Top user agents',
'top.users': 'SSH users tried',
'top.empty': 'No data.',
'top.empty': 'No data in the selected slice. Try a longer time range.',
'blocklist.title': 'Blocklist',
'blocklist.help': 'Export the IPs at or above a score as a plain list, one per line, for a firewall or fail2ban.',
'blocklist.help': 'Export the IPs at or above a score as a plain list, one per line, for a firewall or fail2ban. Only IPs with strong evidence and a public address are listed.',
'blocklist.minScore': 'Minimum score',
'blocklist.family': 'Address family',
'blocklist.family.all': 'IPv4 and IPv6',
'blocklist.family.4': 'IPv4 only',
'blocklist.family.6': 'IPv6 /64 only',
'blocklist.copy': 'Copy list',
'blocklist.download': 'Download',
'blocklist.download': 'Download .txt',
'blocklist.downloadJson': 'Download .json',
'blocklist.copied': '{n} IPs copied.',
'blocklist.failed': 'Could not copy the list.',
'hosts.title': 'Hosts',
'blocklist.count': '{n} IPs would be listed (last 7 days).',
'hosts.title': 'Hosts and peers',
'hosts.hint': 'This instance and the peers it federates with.',
'host.online': 'online',
'host.offline': 'offline',
'host.self': 'this instance',
'host.requests': 'Requests',
'host.malicious': 'Malicious',
'host.hostile': 'Hostile IPs',
'host.bans': 'Bans',
'host.latency': 'Latency',
'sources.title': 'Sources',
'host.seen': 'Last contact',
'sources.title': 'Log sources',
'sources.hint': 'Files this instance follows. Waiting or error states mean no new events are being read.',
'sources.empty': 'No log source configured on the reporting hosts.',
'src.geo.title': 'Geolocation',
'src.geo.hint': 'Country, city and network of each IP come from a local database; nothing is queried online.',
'src.geo.known': '{n} of {m} listed IPs have a known origin',
'src.geo.countries': '{n} countries in the slice',
'src.geo.attrib': 'Data attribution',
'src.geo.none': 'No attribution reported by the geo database.',
'state.following': 'following',
'state.waiting': 'waiting for file',
'state.backfill': 'reading history',
@@ -94,6 +180,7 @@ window.URUTAU_I18N = {
'ago.d': '{n}d ago',
'never': 'never',
'yes': 'yes',
'detail.title': 'IP details',
'detail.close': 'Close',
'detail.copyIp': 'Copy IP',
'detail.score': 'Score',
@@ -108,13 +195,14 @@ window.URUTAU_I18N = {
'detail.jails': 'Active bans',
'detail.counts': 'Events',
'detail.notfound': 'This IP is no longer in memory.',
'detail.loading': 'Loading.',
'error.load': 'Could not load data. Retrying.',
'error.rate': 'Too many requests. Retrying shortly.',
'footer': 'Urutau · watches motionless all night.',
'tab.threats': 'Threats',
'tab.traffic': 'Traffic',
'traffic.domain': 'Domain',
'traffic.allDomains': 'All domains',
'traffic.timeline': 'Requests and page views',
'traffic.timeline.hint': 'Requests answered per time bucket; the darker bar is the share counted as page views.',
'traffic.requests': 'Requests',
'traffic.pages': 'Page views',
'traffic.visitors': 'Visitors',
@@ -129,8 +217,14 @@ window.URUTAU_I18N = {
'traffic.devices': 'Devices',
'traffic.status': 'Status codes',
'traffic.privacy': 'Visitors are counted with a daily rotating hash kept in memory only. No visitor IP is stored.',
'traffic.sub.visitors': 'distinct, hash per day',
'traffic.sub.requests': 'incl. assets and bots',
'traffic.sub.pages': 'of {n} requests',
'traffic.sub.bots': 'of {n} requests',
'map.attacks': 'Origin of attacks',
'map.attacks.hint': 'Countries shaded by number of events; the list shows the largest.',
'map.visitors': 'Visitors by country',
'map.visitors.hint': 'Countries shaded by number of requests; the list shows the largest.',
'col.origin': 'Origin',
'detail.country': 'Country',
'detail.city': 'City',
@@ -149,18 +243,35 @@ window.URUTAU_I18N = {
},
'pt-BR': {
'tagline': 'Inteligência de ameaças leve e sempre ativa para servidores próprios · local-first · uso autorizado.',
'live.connecting': 'conectando',
'live.on': 'ao vivo',
'live.off': 'reconectando',
'conn.connecting': 'conectando',
'conn.on': 'ao vivo',
'conn.off': 'reconectando',
'host.label': 'Host',
'host.all': 'Todos os hosts',
'range.label': 'Período',
'range.1h': '1 h',
'range.24h': '24 h',
'range.7d': '7 d',
'range.long.1h': 'a última hora',
'range.long.24h': 'as últimas 24 horas',
'range.long.7d': 'os últimos 7 dias',
'lang.toggle': 'Trocar idioma',
'theme.toggle': 'Alternar tema claro/escuro',
'logout': 'Sair',
'nav.label': 'Navegação principal',
'nav.skip': 'Ir para o conteúdo',
'nav.more': 'Mais',
'nav.overview': 'Visão geral',
'nav.threats': 'Ameaças',
'nav.traffic': 'Tráfego',
'nav.ips': 'IPs',
'nav.sources': 'Fontes e hosts',
'slice.showing': 'Exibindo',
'slice.allHosts': 'todos os hosts',
'slice.host': 'host {name}',
'slice.allDomains': 'todos os domínios',
'slice.domain': 'domínio {name}',
'slice.ips': '{n} IPs',
'kpi.requests': 'Requisições',
'kpi.malicious': 'Eventos maliciosos',
'kpi.hostile': 'IPs hostis',
@@ -168,14 +279,51 @@ window.URUTAU_I18N = {
'kpi.bans': 'Bans ativos',
'kpi.ips': 'IPs distintos',
'kpi.monitoring': '{n} requisições de monitoramento filtradas.',
'kpi.sub.hosts': '{n} de {m} hosts online',
'kpi.sub.malicious': 'eventos HTTP e SSH',
'kpi.sub.share': '{p} dos {n} IPs distintos',
'kpi.sub.bans': 'informados pelo fail2ban',
'kpi.sub.range': 'em {range}',
'ov.lead.hostile': '{n} IPs hostis no recorte selecionado',
'ov.lead.hostile.one': '1 IP hostil no recorte selecionado',
'ov.lead.calm': 'Nenhum IP hostil no recorte selecionado',
'ov.lead.empty': 'Nenhum evento registrado no recorte selecionado',
'ov.lead.body': '{m} eventos maliciosos frente a {r} requisições, de {ips} IPs distintos; {b} bans ativos.',
'ov.lead.bodyEmpty': 'Recomenda-se ampliar o período ou escolher outro host. O estado das fontes está em Fontes e hosts.',
'ov.countries': 'Principais países',
'ov.countries.hint': 'Origem dos eventos do recorte, por número de eventos.',
'ov.topips': 'IPs de maior pontuação',
'ov.topips.hint': 'Maiores pontuações de ameaça do recorte. Selecione um IP para ver o histórico.',
'ov.all': 'Ver todos',
'ov.feed': 'Últimos eventos',
'ov.feed.hint': 'Eventos mais recentes primeiro, atualizados ao vivo.',
'th.lead.top': 'A maior parte da atividade é classificada como "{cat}"',
'th.lead.none': 'Nenhuma atividade de ataque no recorte selecionado',
'th.lead.noneBody': 'Nenhum evento de scanner, exploit, força bruta ou SSH foi classificado neste recorte.',
'th.lead.body': '{n} de {m} eventos classificados ({p}).',
'th.lead.domain': 'Domínio mais visado: {name}.',
'th.lead.origin': 'Origem principal: {name}.',
'tr.lead.some': '{n} visitantes em {p} páginas vistas',
'tr.lead.none': 'Nenhum tráfego registrado no recorte selecionado',
'tr.lead.noneBody': 'A análise de tráfego conta apenas respostas bem-sucedidas a clientes que não são bots, nos domínios configurados.',
'tr.lead.body': '{r} requisições, {b} de bots de busca e de IA; latência p50 de {a} ms e p95 de {c} ms.',
'ips.lead': '{n} IPs distintos, {h} hostis e {s} suspeitos',
'ips.lead.body': '{b} IPs estão banidos. Selecione uma linha para ver o histórico completo do IP.',
'src.lead.all': 'As {n} fontes estão sendo acompanhadas',
'src.lead.some': '{a} de {n} fontes acompanhadas; {x} exigem atenção',
'src.lead.none': 'Nenhuma fonte de log informada',
'src.lead.body': '{h} de {m} hosts online; {l} linhas lidas, {f} malformadas.',
'feed.forged': 'user-agent de monitor forjado',
'timeline.title': 'Atividade por categoria',
'timeline.hint': 'Eventos por intervalo de tempo, empilhados por categoria. Selecione um item da legenda para ocultá-lo.',
'timeline.empty': 'Nenhuma atividade neste período.',
'ips.title': 'Principais IPs',
'ips.hint': 'Todos os IPs vistos no recorte. Ordene pelo título da coluna; selecione uma linha para os detalhes.',
'ips.search': 'Filtrar por IP ou DNS reverso',
'ips.level': 'Nível de ameaça',
'ips.bannedOnly': 'Só banidos',
'ips.empty': 'Nenhum IP corresponde.',
'ips.perPage': 'Linhas por página',
'ips.empty': 'Nenhum IP corresponde. Remova os filtros ou amplie o período.',
'level.all': 'Todos os níveis',
'level.hostile': 'Hostil',
'level.suspicious': 'Suspeito',
@@ -185,8 +333,11 @@ window.URUTAU_I18N = {
'col.level': 'Nível',
'col.cats': 'Categorias',
'col.last': 'Visto por último',
'col.first': 'Visto pela primeira vez',
'col.events': 'Eventos',
'col.banned': 'Banido',
'col.host': 'Host',
'col.hosts': 'Hosts',
'col.source': 'Fonte',
'col.state': 'Estado',
'col.lines': 'Linhas',
@@ -195,29 +346,47 @@ window.URUTAU_I18N = {
'pager.prev': 'Anterior',
'pager.next': 'Próxima',
'pager.count': '{n} IPs',
'pager.page': 'Página {n} de {m}',
'feed.title': 'Feed ao vivo',
'feed.empty': 'Aguardando eventos.',
'top.paths': 'Caminhos mais atacados',
'top.domains': 'Domínios mais visados',
'top.uas': 'Principais user-agents',
'top.users': 'Usuários SSH tentados',
'top.empty': 'Sem dados.',
'top.empty': 'Sem dados no recorte selecionado. Recomenda-se ampliar o período.',
'blocklist.title': 'Lista de bloqueio',
'blocklist.help': 'Exporte os IPs a partir de uma pontuação como lista simples, um por linha, para firewall ou fail2ban.',
'blocklist.help': 'Exporta os IPs a partir de uma pontuação como lista simples, um por linha, para firewall ou fail2ban. Somente IPs com evidência forte e endereço público são listados.',
'blocklist.minScore': 'Pontuação mínima',
'blocklist.family': 'Família de endereços',
'blocklist.family.all': 'IPv4 e IPv6',
'blocklist.family.4': 'Somente IPv4',
'blocklist.family.6': 'Somente IPv6 /64',
'blocklist.copy': 'Copiar lista',
'blocklist.download': 'Baixar',
'blocklist.download': 'Baixar .txt',
'blocklist.downloadJson': 'Baixar .json',
'blocklist.copied': '{n} IPs copiados.',
'blocklist.failed': 'Não foi possível copiar a lista.',
'hosts.title': 'Hosts',
'blocklist.count': '{n} IPs seriam listados (últimos 7 dias).',
'hosts.title': 'Hosts e pares',
'hosts.hint': 'Esta instância e os pares com os quais ela se federa.',
'host.online': 'online',
'host.offline': 'offline',
'host.self': 'esta instância',
'host.requests': 'Requisições',
'host.malicious': 'Maliciosos',
'host.hostile': 'IPs hostis',
'host.bans': 'Bans',
'host.latency': 'Latência',
'sources.title': 'Fontes',
'host.seen': 'Último contato',
'sources.title': 'Fontes de log',
'sources.hint': 'Arquivos que esta instância acompanha. Os estados aguardando e erro indicam que nenhum evento novo está sendo lido.',
'sources.empty': 'Nenhuma fonte de log configurada nos hosts informantes.',
'src.geo.title': 'Geolocalização',
'src.geo.hint': 'País, cidade e rede de cada IP vêm de uma base local; nenhuma consulta é feita online.',
'src.geo.known': '{n} de {m} IPs listados têm origem conhecida',
'src.geo.countries': '{n} países no recorte',
'src.geo.attrib': 'Atribuição dos dados',
'src.geo.none': 'Nenhuma atribuição informada pela base de geolocalização.',
'state.following': 'acompanhando',
'state.waiting': 'aguardando arquivo',
'state.backfill': 'lendo histórico',
@@ -240,6 +409,7 @@ window.URUTAU_I18N = {
'ago.d': 'há {n}d',
'never': 'nunca',
'yes': 'sim',
'detail.title': 'Detalhes do IP',
'detail.close': 'Fechar',
'detail.copyIp': 'Copiar IP',
'detail.score': 'Pontos',
@@ -254,13 +424,14 @@ window.URUTAU_I18N = {
'detail.jails': 'Bans ativos',
'detail.counts': 'Eventos',
'detail.notfound': 'Este IP não está mais na memória.',
'detail.loading': 'Carregando.',
'error.load': 'Não foi possível carregar os dados. Tentando de novo.',
'error.rate': 'Requisições demais. Nova tentativa em instantes.',
'footer': 'Urutau · vigia imóvel a noite toda.',
'tab.threats': 'Ameaças',
'tab.traffic': 'Tráfego',
'traffic.domain': 'Domínio',
'traffic.allDomains': 'Todos os domínios',
'traffic.timeline': 'Requisições e páginas vistas',
'traffic.timeline.hint': 'Requisições atendidas por intervalo; a barra mais escura é a parcela contada como página vista.',
'traffic.requests': 'Requisições',
'traffic.pages': 'Páginas vistas',
'traffic.visitors': 'Visitantes',
@@ -275,8 +446,14 @@ window.URUTAU_I18N = {
'traffic.devices': 'Dispositivos',
'traffic.status': 'Códigos de status',
'traffic.privacy': 'Visitantes são contados com um hash que muda todo dia e fica só na memória. Nenhum IP de visitante é guardado.',
'traffic.sub.visitors': 'distintos, hash diário',
'traffic.sub.requests': 'inclui recursos e bots',
'traffic.sub.pages': 'de {n} requisições',
'traffic.sub.bots': 'de {n} requisições',
'map.attacks': 'Origem dos ataques',
'map.attacks.hint': 'Países sombreados pelo número de eventos; a lista mostra os maiores.',
'map.visitors': 'Visitantes por país',
'map.visitors.hint': 'Países sombreados pelo número de requisições; a lista mostra os maiores.',
'col.origin': 'Origem',
'detail.country': 'País',
'detail.city': 'Cidade',