Loading...
Loading...
Sigma rules are open, vendor-neutral SIEM detection rules in YAML. Each describes a suspicious log event once and, as of November 2026, converts into Splunk SPL, Microsoft Sentinel KQL, Elastic, and more than 25 other formats. SigmaHQ's repository held 3,807 of them that month. A converted rule fires only when your field names, log sources, and telemetry match its assumptions.
Sigma rules are portable. The detections they describe are not.
A Sigma rule can convert without a single error and never fire once.
Nothing tells you. The query is valid, the dashboard shows the rule as deployed, and the field it reads has never arrived in your SIEM. It isn't rare, either. CardinalOps, now part of Cribl, studied production SIEMs for its 2025 State of SIEM Detection Risk report, found about one in ten detection rules broken, and blamed misconfigured data sources, missing fields, and parsing errors.
The work is proving the converted query still means what the YAML meant. Some of these silent failures you can force to break the conversion. The rest you catch by checking what your telemetry actually carries, or by planting an attack and watching for the alert. We build an AI Detection Engineering Agent at Simbian, so read the AI section as a vendor's view.
Sigma rules are YAML files that describe log events worth alerting on, in a format no single SIEM owns. The SigmaHQ README describes it by analogy: "Sigma is for log files what Snort is for network traffic and YARA is for files." Florian Roth released Sigma in 2017. He and Thomas Patzke are its main developers.
Nine years on, it's the nearest thing detection engineering has to a common tongue. A researcher who finds a new technique writes one rule, and every team running Splunk, Sentinel, Elastic, or QRadar can convert it. The SigmaHQ repository says it offers "more than 3000 detection rules", and its rule folders held 3,807 on 17 November 2026 (generic detections plus threat-hunting, emerging-threat, placeholder, and compliance rules).
But one researcher writes the rule, and teams they'll never meet run it against telemetry and field names that researcher has never seen.
To write a Sigma rule, you need three things: a title, a logsource that says which kind of log to read, and a detection block with a condition. The rest is metadata. It's there for whoever inherits the rule after you. Here is a stable SigmaHQ rule, Boot Configuration Tampering Via Bcdedit.EXE, verbatim except for its reference links:
title: Boot Configuration Tampering Via Bcdedit.EXE
id: 1444443e-6757-43e4-9ea4-c8fc705f79a2
status: stable
description: Detects the use of the bcdedit command to tamper with the boot configuration data. This technique is often times used by malware or attackers as a destructive way before launching ransomware.
author: E.M. Anhaus (originally from Atomic Blue Detections, Endgame), oscd.community
date: 2019-10-24
modified: 2023-02-15
tags:
- attack.impact
- attack.t1490
logsource:
category: process_creation
product: windows
detection:
selection_img:
- Image|endswith: '\bcdedit.exe'
- OriginalFileName: 'bcdedit.exe'
selection_set:
CommandLine|contains: 'set'
selection_cli:
- CommandLine|contains|all:
- 'bootstatuspolicy'
- 'ignoreallfailures'
- CommandLine|contains|all:
- 'recoveryenabled'
- 'no'
condition: all of selection_*
falsepositives:
- Unlikely
level: high
simulation:
- type: atomic-red-team
name: Windows - Disable Windows Recovery Console Repair
technique: T1490
atomic_guid: cf21060a-80b3-4238-a595-22525de4ab81
It catches ransomware operators switching off Windows recovery before they encrypt, MITRE ATT&CK T1490 (Inhibit System Recovery). Its tags field carries that mapping, with attack.t1490 naming the technique and attack.impact its tactic. Read the detection block with two rules from the Sigma specification in mind.
selection_img is a list, so either the path ends in bcdedit.exe or the original file name says so. Each selection_cli item uses contains|all, and the all modifier makes both strings required in the same command line.endswith, contains, and all change how a value matches. Sigma spec v2.1.0, released in September 2025, lists more than 25, from windash (which swaps between -, /, and three Unicode dashes attackers use to dodge string matches) to cidr, base64offset, and fieldref.Note OriginalFileName in selection_img. It's the field most likely to be missing from your SIEM. Because selection_img is a list, a Splunk search survives without it, but only if Image is mapped to a field you actually collect. Sentinel's SecurityEvent table has no OriginalFileName column, so the Kusto backend refuses to convert the rule until your pipeline drops or maps that field.
The condition all of selection_* joins the three selections with AND. Two details catch first-time authors. Values are case-insensitive by default, while regular expressions are case-sensitive. The cased modifier asks for an exact match, but check your backend. SigmaHQ's modifier docs say it "produces no additional query constraint" in Splunk SPL and Elasticsearch, while current pySigma code refuses to convert it for any backend without a case-sensitive operator, Splunk's included. And falsepositives is documentation for humans. A converter may copy it into rule metadata, but it never removes a single match.
status and level tell you how far to trust a rule. The spec defines both:
| Field | Values | What they mean in practice |
|---|---|---|
status |
stable, test, experimental, deprecated, unsupported | stable "may be used in production systems"; experimental "could lead to false positives results or be noisy" |
level |
informational, low, medium, high, critical | high "should trigger an internal alert and requires a prompt review"; informational should trigger no case or alert |
Whether the rule fires in your SIEM depends on what happens when you convert it.
You convert Sigma rules to Splunk SPL, Microsoft Sentinel KQL, or another SIEM's query language with sigma-cli, the command line for the pySigma library. You choose a backend for the target language and a processing pipeline that maps the rule's fields and log sources to the ones your environment actually uses.
sigmac, the original Sigma converter, reached end of life on 1 August 2024, so any guide still running sigmac -t splunk is teaching a retired tool. The sigma-cli equivalent looks like this.
sigma convert -t splunk -p sysmon sigma/rules/windows/process_creation
-t picks the backend (Splunk, Kusto for Sentinel and Defender, Elasticsearch, QRadar, and more than 25 others in SigmaHQ's plugin directory as of November 2026; the Google SecOps backend is still in development). -p picks the pipeline, and the pipeline is where portability breaks. SigmaHQ's documentation describes processing pipelines as the layer that lets you "map field names, point rules at the right index or log stream, and apply environment-specific tweaks — all without touching the original rule."
SigmaHQ's getting-started guide shows the difference on a rule that watches for Windows Defender being disabled. Here it is converted for Splunk with no pipeline.
EventID IN (5001, 5010, 5012, 5101)
Add -p splunk_windows and the same rule becomes this.
source="WinEventLog:Microsoft-Windows-Windows Defender/Operational" EventCode IN (5001, 5010, 5012, 5101)
The pipeline renamed the field and pointed the query at a named log. On a default modern Splunk install the pipeline's version may match nothing, because SigmaHQ's splunk_windows pipeline assumes classic WinEventLog: sources while Splunk's Add-on for Microsoft Windows has collected in XML mode, under XmlWinEventLog: source names, by default since version 6.0.0.
A converted Sigma rule can be valid and still detect nothing, because conversion checks the rule, not your data. It goes silent when its processing pipeline maps a field your SIEM doesn't have, points the logsource at an index or table you don't collect, or needs a field your telemetry never carries.
Each is an assumption the rule makes about your environment, and none is guaranteed to raise an error when it fails.
| Assumption | How it breaks | What the source says |
|---|---|---|
| Field names | The pipeline leaves a field unmapped, so the query searches for a name your SIEM never uses | SigmaHQ's own example above: with no pipeline, the Splunk backend kept EventID, which splunk_windows maps to EventCode |
| Log source | process_creation points at an index or table that holds different data, or none |
SigmaHQ: "any mismatches in logsource can render the detection ineffective." |
| Telemetry | The log type arrives, but not the field the rule needs | Microsoft's event 4688 schema has no OriginalFileName, and its command line stays empty until a Group Policy setting turns it on |
Run the bcdedit rule against those three. On a host logging Sysmon event 1, every field it reads exists. On a host logging only Security event 4688, OriginalFileName never arrives and the image path arrives as NewProcessName, so the rule fires only if your pipeline maps Image onto it. If that host also has command-line auditing off, CommandLine is empty and the rule can't fire at all.
You can make some of these failures loud. To stop an unmapped field converting silently, add the strict_field_mapping_failure transformation to your processing pipeline, which SigmaHQ's pipeline docs say will "Abort conversion when a field is not covered by a field mapping." The Kusto backend already rejects field names missing from Microsoft's documented table schema. A loud failure is the good outcome. Add strict mapping to your pipeline and convert every rule in CI.
Your SIEM decides what silence looks like. In Splunk, a search on a field that doesn't exist simply matches nothing. KQL rejects a query that names a column the table doesn't have, so in Sentinel the silent case is a column that exists and is always empty, such as CommandLine in SecurityEvent with command-line auditing off.
No pipeline setting catches a log source or telemetry failure, because the query itself is correct. Import SigmaHQ's whole Sigma ruleset and the noise comes from the rules that work. The ones that need a field you never collect in order to match stay quiet, and on a dashboard quiet looks the same as safe.
A locksmith's work you check by turning the key. A night watchman's you can't, because a quiet night looks the same whether he patrolled every hour or slept until dawn. Until something tests it, every detection rule is the watchman.
Deploy the Sigma detection rules whose fields you already collect, starting with SigmaHQ's Core package. SigmaHQ publishes its Sigma ruleset as release packages filtered by status and level. Its advice to newcomers is a single line, "If you are new, best start with the Core Sigma package."
| Package | Status included | Level included |
|---|---|---|
| Core | test, stable | high, critical |
| Core+ | test, stable | medium, high, critical |
| Core++ | experimental, test, stable | medium, high, critical |
| Emerging Threats AddOn | experimental, test, stable | medium, high, critical |
Sort by telemetry before severity. A critical rule that reads a field you don't collect is worth less than a medium rule that reads one you do, so take the rules your telemetry supports first, then weigh query cost in your SIEM, then level.
Then decide where your tuning lives. Edit an upstream rule to exclude your backup server and the next SigmaHQ release overwrites the edit. Sigma Filters, added in spec v2, solve that. A separate filter file applies your exclusions to many rules at conversion time, and the rules stay untouched. Every exclusion trades a false positive for a blind spot, and attackers live in the exclusions. Put an owner and a review date in each filter file, so the next engineer can tell a deliberate exclusion from a forgotten one.
Test Sigma rules the way SigmaHQ's own CI does, against clean logs to catch false positives and against real attack samples to prove they fire. Run both on your own telemetry, through the same pinned pipeline you deploy with, before a rule pages anyone. A syntax check only proves the rule is valid Sigma.
You can't prove a silent rule works by staring at it from the inside — you have to smuggle a positive in from the outside. Plant something bad. Watch for the alert.
| SigmaHQ's check | What it proves | Your equivalent |
|---|---|---|
Schema validation and sigma check |
The rule is valid Sigma | Run sigma check in CI on every change |
| Goodlog tests on clean Windows 7, 10, 11, and Server 2022 event logs | The rule stays quiet on normal activity | Convert with your pinned pipeline and run it over a baseline window of your own logs |
| Regression tests on real event samples | The rule "actually match[es] the events" it targets | Replay a known-bad sample, such as the Atomic Red Team test named in the rule's simulation field |
The bcdedit rule shows why the third row matters. Its simulation block names the Atomic Red Team test that produces the behavior. Run that test on a lab host that ships logs the way production does, and you learn whether the converted query matches the logs your hosts actually send.
Pin your pipeline and backend versions in CI, too. The pySigma library reached version 2.1.0 on 9 November 2026, and a converter upgrade can change the query a rule produces without any change to the rule.
Even this has a ceiling. A replay covers the one attack you ran, so each new variant needs a sample of its own.
You can trust an AI-written Sigma rule only after it passes the tests a human-written one must: it fires on a replayed attack and stays quiet on a baseline of your own logs. Parsing is the easy part. SigmaHQ's rules are public on GitHub for any model to learn from.
What a model can't know from a prompt is which fields your SIEM holds, which hosts send command lines, or whether a rule you already run covers the same behavior.
Without that context, a model can't tell a rule that catches your attack from one that fires on your backup server. The tests in the last section apply to an AI-written rule unchanged.
We built Simbian's AI Detection Engineering Agent on the same principle — the check comes before the answer. It starts from your telemetry, checking that the field exists and that no rule you already run covers the intent. Can each of your SIEMs carry it, and if not, why not? Only then does it draft Sigma as the vendor-neutral baseline, plus the native language of each connected SIEM that can carry it (KQL, SPL, AQL, and the rest).
Each candidate is backtested against your own SIEM data before it deploys. When a rule closes a gap an attack exposed, that includes a true-positive check against the missed attack's own telemetry and a false-positive check against a baseline window of your normal logs. Tuning suggestions arrive with their reasoning, a diff, and a before-and-after backtest.
A rule you author with the Agent stays a candidate until a person on your team approves it. Then it ships to your SIEM with rollback and a version history, so the reason a rule looks the way it does survives the engineer who wrote it. If you also run the AI SOC Agent, the new rule's alerts land there and get investigated to a verdict.
Pick the ten Sigma rules you'd most hate to lose. For each, write down the field it reads and the last date that field arrived in your SIEM. If you can't fill in both for a rule, it's detection-in-principle, not detection. How many of your ten could you answer for today?
To see the AI Detection Engineering Agent check your telemetry before it writes a rule, Book a Demo.
Q: How many Sigma rules are there? SigmaHQ's public repository says it offers "more than 3000 detection rules," and its rule folders held 3,807 on 17 November 2026: 3,164 generic detection rules, 474 emerging-threat rules, 141 threat-hunting rules, 25 placeholder rules, and 3 compliance rules, plus 173 deprecated and 87 unsupported rules kept separately.
Q: What are YARA and Sigma rules? YARA rules match patterns inside files, such as a malware sample's strings or byte sequences, while Sigma rules match events in logs, such as a process launch or a sign-in. SigmaHQ draws the same line, pairing Sigma for log files with Snort for network traffic and YARA for files.
Q: How do you write Sigma rules? Every Sigma rule needs a title, a logsource naming the log category, product, or service, and a detection block whose condition combines named selections. Modifiers such as contains or endswith go after a pipe. Add status, level, and MITRE ATT&CK tags, run sigma check, then convert it with your pipeline and replay a known-bad sample.
Q: How do you use Sigma rules? Pick rules whose log source you already collect, starting with SigmaHQ's Core package. Convert them with sigma-cli, choosing a backend for your SIEM and a processing pipeline that maps the rule's fields to yours. Then replay a known-bad sample, such as the Atomic Red Team test in the rule's simulation field, before you turn on alerting.
Q: Is sigmac still supported? No. The Sigma specification's v2.0.0 change notes say the sigmac toolchain reached end of life on 1 August 2024, and its repository is archived. pySigma and its command line, sigma-cli, replace it. For one-off conversions, sigconverter.io is a pySigma-based web converter.
Q: Do Sigma correlation rules work in every SIEM? No. Correlation rules, added in spec v2, count, aggregate, or sequence events across a time window, and spec v2.1.0 (September 2025) defines seven types. As of November 2026, SigmaHQ's documentation says they're supported only in Splunk SPL, Elasticsearch ES|QL, Grafana Loki, SQL, and OpenSearch, so check your backend before relying on one.