Detection Engineering Loop

Detection engineering spans human judgment (what deserves a detection, what the telemetry shows) and repeatable software work (authoring, testing, deployment, detection, alerting, measurement, hunting). RSigma owns the software phases and exposes clean interfaces to the rest. This page is the map: one revolution of the loop, station by station, with links into the detailed guides.

RSigma detection engineering loop

The Engineer cycle (blue) is detection-as-code: turn incident evidence into a linted rule, prove it against history, and ship it through CI. The Operate cycle (orange) is security operations: evaluate the live stream, compress raw matches into incidents, and grade what earns its keep. Hunt bridges the two: compile the same rule for whatever store holds the archive, find variants the live path missed, and feed new exemplars back into Author.

Before the loop

RSigma does not replace threat-intel review, severity triage of candidate detections, or analyst investigation of what normal looks like. Those phases produce the NDJSON exemplars and the baseline corpus that rule draft and rule backtest expect. Once you have them, the stations below pick up.

Engineer cycle

Author

Turn exemplar events into a new Sigma rule or a verified filter for an existing noisy rule, finish metadata and correlation logic, and document the detection strategy.

Test

Prove the rule before it ships: why an event matched or did not, whether it regresses on known-good and known-bad corpora, and how field-mapping pipelines transform it. RSigma replays corpora you already have; it does not generate attacker telemetry (see Atomic Red Team for that).

Deploy

Turn a green laptop check into merge policy and a live ruleset.

  • rule validate: parse, compile, and resolve dynamic sources before merge.
  • CI/CD: lint, rule validate --resolve-sources, merge-base fields-drift diff, backtest, and coverage in the pipeline. Use rsigma-action for a single GitHub Action gate.
  • Streaming detection: hot-reload rules and pipelines without restart.
  • Docker and installation: signed containers and release binaries.

Operate cycle

Detect

Hold rules against the live event stream with correlation, schema routing, and bounded state.

Alert and triage

Turn raw matches into one incident per entity, enrich before the page, and ingest analyst verdicts.

Measure

Review the portfolio on evidence instead of vibes.

Hunt

The daemon only sees now. Hunt compiles the same rule for historical stores and feeds findings back into authoring.

  • backend convert: native PostgreSQL, LynxDB, and Fibratus targets; sigma-cli delegation for Splunk, Elasticsearch, Sentinel, and 30+ more. See Rule Conversion.
  • rule fields: mapping catalog for the fields a rule references.

What RSigma does not own

Phase Handoff
Requirements and discovery Threat intel, business context, analyst judgment
Attack simulation Atomic Red Team; RSigma replays and converts
Log storage and search Hunt targets PostgreSQL, LynxDB, or your SIEM via backend convert
Case management Dispositions API consumes verdicts; the durable record stays in your case system
Response Webhooks hand off to whatever runs the playbook

Relationship to broader detection-engineering lifecycles

The loop above is an RSigma product map. Its station names organize software surfaces by what a practitioner does with RSigma; they are not a new lifecycle standard, nor a direct rendering of the NIST Cybersecurity Framework functions. Published detection-engineering lifecycles instead describe the team’s end-to-end process. They differ in wording but converge on roughly six phases: requirements and discovery, triage and feasibility, investigation, development, testing and validation, and deployment and maintenance. For representative treatments, see the SANS detection engineering lifecycle, the NVISO detection development lifecycle, and Splunk’s detection engineering overview.

The station tour and the broader lifecycle overlap, but they are not one-to-one:

Broader lifecycle phase RSigma station or handoff Relationship
Requirements and discovery Measure → Author Coverage, visibility, scorecard, and hygiene findings create the next detection requirement; business context and threat prioritization remain human inputs.
Triage and feasibility Before the loop Analysts decide whether the behavior matters and whether the required telemetry exists before committing to a rule. This is distinct from the Alert and triage station, which handles findings after deployment.
Investigation Hunt → Author Historical search, captured events, and analyst research produce representative exemplars for authoring.
Development Author Draft, edit, lint, document, and map the detection.
Testing and validation Test Validate, explain, replay corpora, backtest expectations, and inspect pipeline transformations.
Deployment and maintenance Deploy → Detect → Alert and triage → Measure CI and packaging ship the ruleset; the daemon evaluates it; the alert path groups and enriches findings; measurements drive tuning or retirement.

The views are complementary. The broader lifecycle locates the team in the detection process; the RSigma loop locates the repeatable work in the product. RSigma leaves pre-development judgment in Before the loop, maps development and validation directly onto Author and Test, expands deployment and maintenance across four operational stations, and promotes Hunt to an explicit feedback path because historical findings commonly become the next rule or test exemplar.

Further reading