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
6
run.sh
Executable file
6
run.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
# netsec-scan entrypoint. Runs from the repo root so `python3 -m netsec_scan`
|
||||
# resolves the package; stdout is the alert, stderr is diagnostics.
|
||||
set -u
|
||||
cd /home/lancelot/Projects/netsec-agent || exit 1
|
||||
exec python3 -m netsec_scan "$@"
|
||||
Loading…
Reference in a new issue