Detection rules need regression tests

Rules break quietly. A test that proves a rule still fires on a known example is the only thing that catches it.

A field gets renamed upstream, a parser changes, a vendor alters a log format, and a detection that worked yesterday matches nothing today while continuing to look perfectly healthy. Without tests you find out during an incident. With them you find out the morning after the format changed.

More on Detection engineering