Sigma Rule Validator and Tester
Check a Sigma rule against the Sigma 2.0 specification before you convert or share it, and see which sample log events it matches and which selections fired.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Paste a rule
Paste Sigma YAML, open a .yml file or load the example rule.
- 2Read the summary
Check the title, level, status and log source the validator read.
- 3Fix issues
Work through errors first, then warnings and notices.
- 4Add sample events
On the test tab, paste JSON events with the fields your rule uses.
- 5Check matches
See which events match and which selections were true for each.
- 6Download
Save the corrected rule as a .yml file named after its title.
About this tool
Sigma is the shared language for log detection rules: one YAML file describes what to look for, and converters turn it into queries for Splunk, Elastic, Microsoft Sentinel and other platforms. A rule that has a misspelled modifier, a condition that names a selection that does not exist, or a tag in the wrong format either fails in the converter or, worse, converts into a query that never matches. This validator reads one or several rules separated by ---, and checks metadata (title, UUID id, status, level, dates, tags), the logsource block, every search identifier and field modifier, regular expressions and CIDR values, and the condition expression, including 1 of and all of patterns. It also warns about Sigma 1.x features that 2.0 deprecates, such as condition lists, aggregations after a pipe and timeframe. The test tab evaluates the rule against sample events you paste as JSON lines and shows which events match and which selections were true.
What is checked
title, logsource and detection are required. id should be a random UUID, status one of stable, test, experimental, deprecated or unsupported, and level one of informational, low, medium, high or critical. Dates should use YYYY-MM-DD; the old YYYY/MM/DD form gets a warning. Tags are checked against the standard namespaces (attack, car, cve, tlp, detection), ATT&CK tactic tags must use hyphenated names such as attack.defense-evasion, and technique tags such as attack.t1059.001 are accepted. In detection, every key with a pipe is split into field and modifiers, and each modifier must be one the specification defines, such as contains, startswith, endswith, all, re, cidr, windash, base64, base64offset, exists, lt, gt or cased.
The condition parser
Conditions are parsed with the precedence the specification defines: not binds tightest, then and, then or, with parentheses for grouping. Each identifier must exist in the detection block, and patterns such as 1 of selection_* or all of filter_* must match at least one identifier. Selections defined but never used in the condition are reported, because they usually mean a filter was forgotten.
Testing against events
Paste events as one JSON object per line or a JSON array, using the same field names as your log source, for example Image and CommandLine for Sysmon process creation. Matching follows Sigma semantics: case-insensitive comparison, * and ? wildcards, lists meaning or, maps meaning and, modifiers applied before comparison, and windash expanding a leading hyphen to slash and dash variants. Lines that are not JSON are matched by keyword selections only.
Limits
Field names differ between log sources and SIEMs, so a rule that matches your sample may still miss in production if your pipeline maps fields differently. The tester does not evaluate base64offset, expand or fieldref, and correlation rules are only checked for basic structure. Always convert with pySigma or sigma-cli and test the resulting query in your platform.
Worked example
The sample rule detects PowerShell started with an encoded command. It has two selections (selection_img with Image ending in \powershell.exe or \pwsh.exe, and selection_cli with CommandLine|windash|contains for -enc and -EncodedCommand), a filter for the SCCM agent and the condition all of selection_* and not 1 of filter_main_*. Validation passes with no issues. Against four sample events, line 1 (powershell.exe -nop -w hidden -enc) and line 2 (pwsh.exe /EncodedCommand, caught by windash) match. Line 3 has the same command but its parent is CcmExec.exe, so the filter suppresses it, and line 4 (powershell.exe -File backup.ps1) only satisfies selection_img.
Quick facts
- Category: Security & Privacy
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: Sigma specification 2.0 (SigmaHQ)
Frequently asked questions
Which Sigma version does the validator follow?
The Sigma 2.0 specification. Rules written for 1.x mostly pass, with warnings for deprecated features such as condition lists, aggregations and timeframe.
Can I validate many rules at once?
Yes. Separate rules with --- lines in one document, and use the rule buttons to switch between them. Each rule has its own result.
Why is my field name flagged?
For common categories such as process_creation the tool knows the usual field names. An unknown name is only a notice, because custom pipelines can use other fields.
How does the tester treat wildcards?
Like Sigma: * matches any text, ? one character, and matching is case-insensitive unless you use the cased modifier. contains, startswith and endswith add the wildcards for you.
Does it convert rules to SIEM queries?
No. Use pySigma or sigma-cli for conversion. This page makes sure the rule is valid and behaves as intended before you convert it.
Is my rule or log data sent anywhere?
No. Parsing, validation and testing all run in the browser.
