feat: 1.4.0 second firewall, egress analysis and HTML report
CI / Docker image (build and smoke test) (push) Skipped
CI / Format and vet (push) Successful in 28s
CI / Dependency audit (push) Successful in 16s
CI / Tests (Linux, race detector) (push) Successful in 1m3s
Release / Plan (reuse the published image?) (push) Successful in 4s
Release / ci (push) Skipped
Release / Build image (amd64) (push) Skipped
Release / Build image (arm64) (push) Skipped
Release / Publish tags (push) Successful in 13s
Release / Gitea release (push) Successful in 3s

Optional second firewall (URUTAU_ENFORCE off/observe/on) through the host
fail2ban, outbound traffic analysis (beaconing, mining, spam, DNS bypass,
unauthorised scans) with authorised scanner workloads, host kit in
deploy/host and a printable HTML report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-11-14 23:35:34 -03:00
1 parent 3adaa007ec
commit c33cca22e3
59 files changed
+7364 -24

No files matched your search

+11
View File
@@ -254,6 +254,7 @@ type Store struct {
ids atomic.Uint64 // event ids, increasing
elog *evlog.Log
class Classifier
hook IngestHook
ipx ipxCache
study studyCache
sizes map[string]map[int64]uint32 // per domain: typical 404 / SPA body sizes
@@ -263,6 +264,13 @@ type Store struct {
// event (wired to internal/intel); nil or empty results are fine.
type Classifier func(core.Event) (fam string, tech []string, marker string)
// IngestHook sees every ingested event with its attack family, after the store
// lock is released. It must be cheap and must never block.
type IngestHook func(ev core.Event, fam string)
// SetIngestHook installs the hook; call it before events flow.
func (s *Store) SetIngestHook(h IngestHook) { s.hook = h }
// SetClassifier installs the classifier.
func (s *Store) SetClassifier(c Classifier) { s.class = c }
@@ -545,6 +553,9 @@ func (s *Store) Ingest(ev core.Event) {
if record {
s.logEvent(fe)
}
if s.hook != nil {
s.hook(ev, fam)
}
if feed && now.Unix()-ts < 300 {
s.broadcast(fe)
}