netsec-scan: say how many tripwires a seed tick held, and test the path
The seed line now names the held count ('N current-state finding(s) held
for the next tick') so a silent seed tick is explainable without --verbose
log archaeology, and tests/test_seed.py::TestSeedHoldsCurrentStateTripwires
pins the whole contract: seed tick silent with a drop-spike firing, the
fingerprint stored with last_alert='' (due, not cooled), the first warm
tick reports it once, the second is quiet.
This commit is contained in:
parent
5e45aa0713
commit
beb54afb89
3 changed files with 77 additions and 6 deletions
|
|
@ -81,7 +81,11 @@ count: the same finding keeps the same id across ticks, restarts and days.
|
|||
`seed: N tuple(s) absorbed, 0 reported; window Xh from <stamp>, N file(s)`. The
|
||||
baseline holds **every distinct egress tuple** in the window, not only the ones
|
||||
that became findings (a web-port tuple never becomes one on its first tick).
|
||||
PromQL findings still speak on the first tick — they are current state.
|
||||
**Current-state tripwires are held, not dropped**: a PromQL rule that fires
|
||||
during a seeding tick goes into `seen` with no cooldown clock
|
||||
(`last_alert: ""`), so the first warm tick reports it — the silence costs one
|
||||
interval, never a 24 h `STATE_COOLDOWN`. The seed line says how many were
|
||||
held.
|
||||
* A **warm** state that has never read the gzip archives (i.e. one upgraded to a
|
||||
gzipped store) absorbs its first archive pass the same way: announcing it would
|
||||
print `first-seen … (no prior in ~Xh of observed flows)` for a tuple that is
|
||||
|
|
|
|||
Loading…
Reference in a new issue