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.
10 lines
379 B
Python
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"
|