netsec-scan: second-tick gate for web-port egress novelty (kill CDN churn)
One CI run produced 20 one-shot AWS/GitHub CDN destinations in a single 5-minute tick (21-line message, nothing reached the operator only because delivery was unresolved). First-seen tuples now carry per-tick observation counts in state: web ports (80/443/8080/8443) need two distinct ticks before alerting, non-web ports and any DROPPED verdict still alert on first sight. A beacon/exfil destination is retried; CDN rotation is not. Also: cron deliver switched to local because this profile has platforms.telegram.enabled=false (deliver=telegram errors 'no delivery target resolved'), and the README now documents that constraint.
This commit is contained in:
parent
c31d46a037
commit
be60d74159
6 changed files with 94 additions and 33 deletions
|
|
@ -81,6 +81,13 @@ BEACON_MAX_INTERVAL = 900.0 # mean interval ceiling; 30s beacons fit, 1h cron-i
|
|||
# Severity for a first-seen egress tuple: standard web ports are common CDN
|
||||
# churn, everything else is a much stronger beacon/exfil signal.
|
||||
WEB_PORTS = frozenset({80, 443, 8080, 8443})
|
||||
# A first-seen *web-port* tuple must also be observed in a second tick before it
|
||||
# alerts. Measured 2026-11-27: one CI run produced 20 one-shot AWS/GitHub CDN
|
||||
# destinations in a single 5-minute window, which is a 20-line message and
|
||||
# exactly how a channel gets muted. CDN rotation is one-shot; a beacon or an
|
||||
# exfil destination is retried. Non-web ports still alert on first sight.
|
||||
EGRESS_WEB_MIN_TICKS = 2
|
||||
MAX_EGRESS_COUNTS = 20000
|
||||
|
||||
# Re-alert cooldown for *state* tripwires (current-condition rules). Flow
|
||||
# novelty is permanent: a tuple fires exactly once, ever. A state rule gets to
|
||||
|
|
|
|||
Loading…
Reference in a new issue