netsec-agent/netsec_scan/__init__.py
sirius 68b2616cc5 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.
2026-11-27 00:20:46 -05:00

10 lines
379 B
Python

"""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"