Join our Newsletter — 33% off our NHI Course

Should teams rewrite Sigma rules for OCSF or translate rules at query time?

Translate at query time whenever possible. Rewriting thousands of rules into OCSF paths creates a permanent maintenance fork, while rule translation preserves upstream community content and lets one normalized event model support multiple Windows producers without duplicating detection logic.

Why Query-Time Translation Usually Beats a Permanent Rewrite

Teams that rewrite Sigma rules into OCSF paths often gain short-term uniformity but lose long-term flexibility. A translated detection layer keeps the original community rule logic intact while allowing one normalized schema to support multiple Windows producers, which matters when telemetry sources differ in field naming, enrichment quality, and event completeness. For readers comparing approaches, the governance question is not only “can we make the rules fit?” but “which approach preserves maintainability without fragmenting detections?” For broader control context, NIST Cybersecurity Framework 2.0 is a useful reference for governing repeatable, adaptable security operations. In practice, many security teams discover the hidden cost of a rewrite only after the second or third schema change forces them to rework the same detection logic again.

How Query-Time Translation Works in Practice

Query-time translation treats Sigma as the detection source and OCSF as the event model used at execution time. Instead of converting each rule into a separate OCSF-native copy, teams map incoming telemetry into a normalized structure and translate the rule’s field references when the query runs. That preserves one authored rule set and reduces the chance that different toolchains drift away from the same detection intent.

This approach is especially practical when multiple Windows producers are in scope. Native event formats vary in field naming, nesting, and completeness, but a translation layer can resolve those differences without forcing analysts to maintain duplicated logic. It also makes it easier to keep pace with upstream Sigma updates, because the original rule corpus remains the maintained source of truth.

  • Keep Sigma as the portable detection definition.
  • Map source events into OCSF where possible, rather than hard-coding detector variants.
  • Translate field paths at query time so schema changes affect the mapper, not every rule.
  • Test whether translated queries still preserve the original rule’s intent and filters.

There is still a place for rewriting, but it is usually limited to a small set of high-value rules that need deep source-specific tuning or platform-specific performance work. For control governance, NIST SP 800-53 Rev 5 Security and Privacy Controls is relevant where teams need to document detection engineering, logging, and monitoring responsibilities. This guidance breaks down when the normalised model cannot represent the underlying event semantics closely enough to preserve the rule’s detection logic.

Where Rewriting Becomes a Special Case Rather Than the Default

Tighter normalization often improves portability, but it also increases the risk of losing source-specific nuance, so teams must balance consistency against fidelity. The main tradeoff is whether the operational benefit of a cleaner rule library outweighs the maintenance burden of keeping a second, rewritten copy current.

Rewriting tends to make sense when a rule depends on a schema feature that the translation layer cannot represent cleanly, or when a specific platform needs query optimization that translation cannot provide. Even then, that should be treated as an exception path, not the baseline model. Guidance is still evolving on how far translation should go before semantic drift becomes unacceptable, so teams should label such exceptions explicitly rather than assume they are universally portable.

Another edge case is cross-source consistency. If different Windows producers emit materially different event content, query-time translation only works when the normalized model is rich enough to preserve the detection’s meaning. If that is not true, the team may need to improve ingestion mapping first, or accept that a subset of rules will remain source-specific.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK address the attack and risk surface, while CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
CIS Controls v8 8 — Audit Log Management Query-time translation affects how detections consume and normalize audit logs.
Recommendation — Standardize log normalization so detections can use one portable rule set.
NIST CSF 2.0 DE.CM-7 — Monitoring for Unauthorized Personnel, Connections, Devices, and Software Translated detections support consistent monitoring across multiple telemetry sources.
Recommendation — Use normalized queries to monitor consistently across heterogeneous Windows producers.
MITRE ATT&CK T1112 — Modify Registry Sigma translation preserves adversary-behaviour detections while fields vary by source.
Recommendation — Map source-specific telemetry to preserve ATT&CK-oriented detections across schemas.

Practitioner Guidance

What to prioritise: Preserve the original Sigma rule as the canonical detection object unless there is a clear, documented reason that query-time translation cannot retain meaning. That keeps upstream updates, community improvements, and local maintenance aligned.

What to verify: Check that the OCSF mapping covers the fields the rule actually uses, not just the fields that are easiest to normalize. If the translated query drops key conditions, the detection is no longer equivalent even if it still runs.

Decision rule: If the same logical rule would otherwise need multiple rewritten copies for different Windows producers, translate at query time. If a rule needs source-specific semantics that cannot be represented cleanly, isolate that rule as an exception and document why it cannot remain portable.

Practitioner takeaway: Query-time translation is usually the safer operating model because it separates semantic detection ownership from schema handling, while full rewrites should be reserved for the small set of cases where fidelity or performance genuinely demands them.