Measured on the 00:40 run: a second-tick gate cut a 21-line CDN burst to 2 lines,
still noise for a channel whose whole value is being quiet. A beacon/exfil
destination persists for hours (rule 8 catches periodicity at >=20 conns/2h), a
CDN endpoint used by one job does not survive 15 minutes. Stated cost documented
in config + README.
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.
- first-seen egress is gated by the cumulative seen-set only (deleting a
fingerprint re-arms the rule); the alert states the observed window
(~20m / 3.2h / 2.1d) instead of implying the collector holds weeks.
- a DROPPED attempt on a new to-world tuple is keyed separately from forwarded
traffic to the same destination and graded HIGH.
- daily report counts every external tuple seen that day, not just novel ones.
- drop-prune of the dead state['egress'] map; tests cover the single-fire rearm,
day counters and the egress union.
- README: measured collector volume/tombstones/partial-tail behaviour, scheduler
shim path.
Silent ticks (empty stdout, exit 0), one line per stable fingerprint, cumulative
union-only seen-set at ~/.hermes/cron/netsec-scan-state.json, memoized sensor-
degradation line, daily baseline report. Stdlib only; reads the collector's
JSONL over SSH with per-file byte offsets and Prometheus via the k8s API proxy.
40 unit tests against fixtures recorded from the live collector.