Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Sigma Rules

Direct answer

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.

When to use this

Use this when writing vendor-neutral log detection rules.

First 30 seconds

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.

Operational verification

Sigma YAML → backend conversion → SIEM query

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Security monitoring, detection and operations
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformSecurity monitoring, detection and operations
Scope / prerequisiteUse this when writing vendor-neutral log detection rules.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • Sigma rules are vendor-neutral YAML.
  • Convert them to SIEM queries with sigma-cli.
  • Public rule sets give a head start.
Key checks
  • sigma convert -t splunk -p sysmon rule.yml — convert to SIEM query
  • sigma 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docSecurity monitoring, detection and operations current

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%
Confirmation

Confirm action

Continue?