Sigma
An open, vendor-neutral format for writing SIEM detection rules in YAML, which tools convert into each SIEM's own query language.
In more detail
A Sigma rule has three key parts: logsource says which events to read, detection lists named selections of field values, and condition combines them, such as selection and not filter. Fields within a selection must all match (AND); values listed for one field are alternatives (OR); matching ignores case. Modifiers such as |contains, |endswith and |windash change how values match.
Example
logsource: {category: process_creation, product: windows}Related terms
- pySigma — The Python library that converts Sigma rules into queries for a specific SIEM; sigma-cli is its command-line front end.
- detection as code — Treating detection rules like software: stored in version control, reviewed, and tested automatically on every change.
- YAML — A human-friendly text format for configuration, where indentation shows structure.
- logical operator — An operator such as AND, OR or NOT that combines or reverses true-or-false conditions.
Taught in
- Detection as Code: Authoring & Testing Sigma Rules — Security Operations & Threat Hunting (SOC)