feat: 1.4.3 Tor lists and classification, egress provider and peer allowlist
Release / Publish tags (push) Successful in 17s
Release / Plan (reuse the published image?) (push) Successful in 6s
Release / ci (push) Successful in 59s
Release / Build image (amd64) (push) Successful in 24s
Release / Build image (arm64) (push) Successful in 1m29s
CI / Format and vet (push) Successful in 26s
CI / Tests (Linux, race detector) (push) Successful in 33s
CI / Dependency audit (push) Successful in 33s
CI / Docker image (build and smoke test) (push) Skipped
Release / Gitea release (push) Successful in 4s
Release / Publish tags (push) Successful in 17s
Release / Plan (reuse the published image?) (push) Successful in 6s
Release / ci (push) Successful in 59s
Release / Build image (amd64) (push) Successful in 24s
Release / Build image (arm64) (push) Successful in 1m29s
CI / Format and vet (push) Successful in 26s
CI / Tests (Linux, race detector) (push) Successful in 33s
CI / Dependency audit (push) Successful in 33s
CI / Docker image (build and smoke test) (push) Skipped
Release / Gitea release (push) Successful in 4s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ec46fb94ff
commit
045ed53e43
15 files changed
+584
-25
No files matched your search
@@ -11,8 +11,8 @@
|
||||
var SEV = { high: 0, medium: 1, low: 2 };
|
||||
var SEV_NAME = ['high', 'medium', 'low'];
|
||||
var SEV_TONE = { high: 'danger', medium: 'warn', low: 'info' };
|
||||
var KINDS = ['beacon', 'scan', 'port', 'bad_dst', 'dns_bypass', 'new_geo'];
|
||||
var KIND_HELP = { beacon: 'term.beaconing', scan: 'term.fanout', port: 'term.stratum', bad_dst: 'term.eg_baddst', dns_bypass: 'term.dot', new_geo: 'term.new_geo' };
|
||||
var KINDS = ['beacon', 'scan', 'port', 'bad_dst', 'dns_bypass', 'new_geo', 'tor'];
|
||||
var KIND_HELP = { beacon: 'term.beaconing', scan: 'term.fanout', port: 'term.stratum', bad_dst: 'term.eg_baddst', dns_bypass: 'term.dot', new_geo: 'term.new_geo', tor: 'term.tor' };
|
||||
var LAT_TOP = 84, LAT_SPAN = 142;
|
||||
|
||||
function boot() {
|
||||
@@ -58,6 +58,11 @@
|
||||
'eg.kind.bad_dst': 'Known-bad destination',
|
||||
'eg.kind.dns_bypass': 'DNS outside the resolver',
|
||||
'eg.kind.new_geo': 'New country',
|
||||
'eg.kind.tor': 'Talking to the Tor network',
|
||||
'eg.why.tor': 'The workload connected to a relay of the Tor network (anonymous routing). On a server this is common in malware, command-and-control and data exfiltration.',
|
||||
'eg.do.tor': 'Find the process that opened the connection. Unless Tor is intended on this server, treat it as compromised and rebuild it from a clean image.',
|
||||
'eg.infra': 'Regular connections with provider services ({n})',
|
||||
'eg.infra.hint': 'Not counted as findings: the host talking to its own cloud provider (agents, metadata, updates).',
|
||||
'eg.why.beacon': 'The workload talks to the same destination at regular intervals, like a clock. This is the typical pattern of malware checking in with its controller.',
|
||||
'eg.why.scan': 'The workload tried to connect to many different addresses in a short time. A server that scans the internet usually means it was taken over.',
|
||||
'eg.why.port': 'Connection to a port used by mining pools or remote-control tools, which normal software on this server does not use.',
|
||||
@@ -167,6 +172,11 @@
|
||||
'eg.kind.bad_dst': 'Destino sabidamente ruim',
|
||||
'eg.kind.dns_bypass': 'DNS fora do resolvedor',
|
||||
'eg.kind.new_geo': 'País novo',
|
||||
'eg.kind.tor': 'Conversa com a rede Tor',
|
||||
'eg.why.tor': 'O workload conectou a um relay da rede Tor (roteamento anônimo). Em um servidor isso é comum em malware, comando e controle e exfiltração de dados.',
|
||||
'eg.do.tor': 'Descubra o processo que abriu a conexão. Se o Tor não é esperado neste servidor, trate-o como comprometido e reconstrua a partir de uma imagem limpa.',
|
||||
'eg.infra': 'Conexões regulares com serviços do provedor ({n})',
|
||||
'eg.infra.hint': 'Não contam como achados: o servidor falando com a própria nuvem (agentes, metadados, atualizações).',
|
||||
'eg.why.beacon': 'O workload fala com o mesmo destino em intervalos regulares, como um relógio. É o padrão típico de um malware avisando seu controlador que está vivo.',
|
||||
'eg.why.scan': 'O workload tentou conectar a muitos endereços diferentes em pouco tempo. Um servidor que varre a internet costuma ter sido invadido.',
|
||||
'eg.why.port': 'Conexão a uma porta usada por mineração de criptomoeda ou ferramentas de controle remoto, que os programas normais deste servidor não usam.',
|
||||
@@ -274,6 +284,18 @@
|
||||
el('div', { class: 'eg-v-txt' }, el('h2', null, title), el('p', null, sub), pills.firstChild ? pills : null, srcLine));
|
||||
}
|
||||
|
||||
function infraLine(st) {
|
||||
var box = el('details', { class: 'eg-infra hint' }, el('summary', { title: t('eg.infra.hint') }, t('eg.infra', { n: nf(st.infra.length) })));
|
||||
var ul = el('ul', null);
|
||||
st.infra.slice(0, 50).forEach(function (f) {
|
||||
var li = el('li', { class: 'mono' }, (f.workload || '-') + ' → ' + (f.dst || '-') + (f.dport ? ':' + f.dport : ''));
|
||||
if (f.detail) li.appendChild(el('span', null, ' · ' + f.detail));
|
||||
ul.appendChild(li);
|
||||
});
|
||||
box.appendChild(ul);
|
||||
return box;
|
||||
}
|
||||
|
||||
function kpis(st) {
|
||||
var kp = el('div', { class: 'eg-kpis' });
|
||||
kp.appendChild(U.ui.metric(t('eg.kpi.conns'), nf(st.conns), { sub: t('eg.kpi.conns.sub'), spark: st.total }));
|
||||
@@ -482,6 +504,8 @@
|
||||
// ------------------------------------------------------------ paint
|
||||
function stats(d) {
|
||||
var st = { wls: d.workloads || [], fnd: (d.findings || []).slice(), dsts: d.top_dst || [], bursts: (d.scanner && d.scanner.bursts) || [], tl: d.timeline || {} };
|
||||
st.infra = st.fnd.filter(function (f) { return f.severity === 'info' || f.kind === 'infra'; });
|
||||
st.fnd = st.fnd.filter(function (f) { return f.severity !== 'info' && f.kind !== 'infra'; });
|
||||
st.fnd.sort(function (a, b) { return SEV[sevOf(a)] - SEV[sevOf(b)] || (b.last || 0) - (a.last || 0); });
|
||||
st.ser = st.tl.series || {};
|
||||
st.conns = 0; st.active = 0; st.sev = { high: 0, medium: 0, low: 0 };
|
||||
@@ -516,6 +540,7 @@
|
||||
var st = stats(data), range = U.rangeLabel({ inline: true });
|
||||
root.appendChild(verdict(data, st, range));
|
||||
root.appendChild(kpis(st));
|
||||
if (st.infra.length) root.appendChild(infraLine(st));
|
||||
|
||||
var grid = el('div', { class: 'grid-12' });
|
||||
var fp = U.ui.panel({ title: t('eg.findings'), hint: t('eg.findings.hint'), cls: 'span-12' });
|
||||
|
||||
@@ -468,6 +468,8 @@ window.URUTAU_I18N = {
|
||||
'help.term.authorized_scanner.do': 'Make sure it only aims at targets you own or may test.',
|
||||
'help.term.ban_ttl': 'Block duration (TTL): how long an address stays blocked before being released. Repeat offenders get longer blocks.',
|
||||
'help.term.ban_ttl.do': 'Short blocks are safer against mistakes; long ones stop persistent attackers.',
|
||||
'help.term.tor': 'Tor is a network that hides who is connecting. Some visitors use it for privacy, but attackers also use it to hide. An origin marked Tor is a Tor exit; a server of yours talking to Tor relays is suspicious.',
|
||||
'help.term.tor.do': 'Treat requests from Tor with caution (do not trust them for sensitive actions). If one of your servers connects to Tor and you did not set that up, investigate it.',
|
||||
'help.term.new_geo': 'New country: the workload connected to a country it had not reached before in this window.',
|
||||
'help.term.new_geo.do': 'Check whether the destination is a service you use.',
|
||||
'help.term.error_class.app': 'Errors caused by your own application (5xx coming from the app).',
|
||||
@@ -967,6 +969,8 @@ window.URUTAU_I18N = {
|
||||
'help.term.authorized_scanner.do': 'Garanta que ele só mire alvos seus ou que você pode testar.',
|
||||
'help.term.ban_ttl': 'Duração do bloqueio (TTL): por quanto tempo o endereço fica bloqueado antes de ser liberado. Reincidentes recebem bloqueios mais longos.',
|
||||
'help.term.ban_ttl.do': 'Bloqueios curtos são mais seguros contra enganos; longos barram atacantes persistentes.',
|
||||
'help.term.tor': 'Tor é uma rede que esconde quem está conectando. Algumas pessoas usam por privacidade, mas atacantes também usam para se esconder. Origem marcada como Tor é uma saída Tor; um servidor seu falando com relays Tor é suspeito.',
|
||||
'help.term.tor.do': 'Trate requisições vindas do Tor com cautela (não confie nelas em ações sensíveis). Se um servidor seu conecta ao Tor e você não configurou isso, investigue.',
|
||||
'help.term.new_geo': 'País novo: o workload conectou a um país que ainda não tinha alcançado nesta janela.',
|
||||
'help.term.new_geo.do': 'Confira se o destino é um serviço que você usa.',
|
||||
'help.term.error_class.app': 'Erros causados pela sua própria aplicação (5xx vindos do app).',
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
'ip.ntr.asn': 'known ASN {v}',
|
||||
'ip.ntr.asorg': 'organization name contains "{v}"',
|
||||
'ip.ntr.rdns': 'reverse DNS contains "{v}"',
|
||||
'ip.ntr.tor': 'listed as a Tor exit node',
|
||||
'ip.ntr.tor': 'listed as a Tor exit node (official list)',
|
||||
'ip.untrusted': 'text sent by the attacker',
|
||||
'ip.act.copy': 'Copy IP',
|
||||
'ip.act.ioc': 'Copy as IOC',
|
||||
@@ -1010,7 +1010,9 @@
|
||||
box.appendChild(chip('ip.id.rdns', rv));
|
||||
if (id.net_type) {
|
||||
var nt = pick(NETTYPES, id.net_type, 'unknown'), why = ntReason(id.net_type_reason);
|
||||
box.appendChild(chip('ip.id.nettype', h('span', null, badge(t('ip.nt.' + nt.replace('/', '-')), NT_TONE[nt]), why ? h('small', 'ipx-faint ipx-why', ' ' + why) : null)));
|
||||
var ntw = h('span', null, badge(t('ip.nt.' + nt.replace('/', '-')), NT_TONE[nt]), why ? h('small', 'ipx-faint ipx-why', ' ' + why) : null);
|
||||
if (nt === 'tor' && U.help) U.help(ntw, 'term.tor');
|
||||
box.appendChild(chip('ip.id.nettype', ntw));
|
||||
}
|
||||
if (id.prefix) box.appendChild(chip('ip.id.prefix', h('span', 'ipx-mono', clip(id.prefix, 50))));
|
||||
return box;
|
||||
|
||||
Reference in new issue
Block a user