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.
6 lines
246 B
Shell
Executable file
6 lines
246 B
Shell
Executable file
#!/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 "$@"
|