netsec-scan: deterministic sensor (6 PromQL tripwires + 2 flow-store novelty rules)
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.
This commit is contained in:
commit
68b2616cc5
19 changed files with 1902 additions and 0 deletions
10
netsec_scan/__init__.py
Normal file
10
netsec_scan/__init__.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
"""netsec-scan — deterministic network-security sensor for the Sirius homelab.
|
||||
|
||||
The LLM never decides whether something is odd: this program decides, in code,
|
||||
and emits one line per fingerprint. Designed to be run by a 5-minute Hermes
|
||||
cron job whose stdout *is* the alert.
|
||||
|
||||
See README.md for the rule set, thresholds and how to re-derive a baseline.
|
||||
"""
|
||||
|
||||
__version__ = "1.0.0"
|
||||
Loading…
Reference in a new issue