Use this when writing vendor-neutral log detection rules.
Sigma Rules
Sigma rules are a vendor-neutral YAML format for log detection rules, which tools like sigma-cli convert to Splunk, Elastic, Sentinel and other SIEM query languages.
1. Sigma: vendor-neutral detection rules in YAML.
2. Convert to SIEM queries (pySigma).
3. Share and reuse.
4. Test after conversion.
5. Map fields correctly with pipelines.
Sigma YAML → backend conversion → SIEM query
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Field names not mapped to your SIEM schema.
Step 2 Where it fails Narrow the fault
Failure analysis for Detection Engineering → Sigma Rules follows the real trust and enforcement chain: event source → collection → parsing/normalization → enrichment/correlation → detection/alert → analyst/automation response → outcome.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Sigma rules are vendor-neutral YAML.
- Convert them to SIEM queries with sigma-cli.
- Public rule sets give a head start.
sigma convert -t splunk -p sysmon rule.yml— convert to SIEM querysigma check rule.yml— lint- SigmaHQ rule updates — community rules
ReferenceWhy it matters1 section · depth on demand
In depth
Sigma is an open, vendor-neutral format for writing detection rules in YAML. Converters translate Sigma rules into queries for many SIEMs (Splunk, Elastic, Microsoft Sentinel, QRadar), so rules can be shared and reused across platforms.
title: Office Application Spawning PowerShell
id: 3f2c1e0a-1111-4b2c-9c1e-abcdefabcdef
status: experimental
logsource: { product: windows, category: process_creation }
detection:
selection:
ParentImage|endswith: ['\winword.exe', '\excel.exe', '\outlook.exe']
Image|endswith: '\powershell.exe'
condition: selection
level: high
tags: [attack.execution, attack.t1059.001]
Documented example, not captured output.
sigma convert -t splunk -p sysmon rules/office_spawn_powershell.yml
The SigmaHQ repository contains thousands of community rules as a starting point.
ReferenceImportant terms & boundaries2 sections · depth on demand
Example
title: Encoded PowerShell command
logsource:
product: windows
category: process_creation
detection:
selection:
Image|endswith: '\powershell.exe'
CommandLine|contains: ' -enc'
condition: selection
level: medium
Documented example, not captured output. Convert with sigma convert -t splunk rule.yml (pySigma).
Mechanics
Follow the security boundary in order: event source → collection → parsing/normalization → enrichment/correlation → detection/alert → analyst/automation response → outcome.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Detection Engineering → Sigma Rules. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://sigmahq.io/docs/basics/rules.html · confidence 94%