// Author Sigma detection rules, correlation rules, filter rules, and processing pipelines from natural language descriptions. Covers the full Sigma v2.1.0 specification including logsource, detection blocks, field modifiers, condition expressions, multi-document YAML, correlation types (event_count, value_count, temporal, temporal_ordered, value_sum, value_avg, value_percentile, value_median), filter injection, and pySigma-compatible pipelines. Use this skill whenever the user mentions Sigma rules, SIEM detection, detection engineering, detection-as-code, SigmaHQ, correlation rules, Sigma filters, Sigma pipelines, field modifiers, logsource, or asks to write, review, or fix detection rules -- even if they don't explicitly say 'Sigma'.
Author Sigma detection rules, correlation rules, filter rules, and processing pipelines from natural language descriptions. Covers the full Sigma v2.1.0 specification including logsource, detection blocks, field modifiers, condition expressions, multi-document YAML, correlation types (event_count, value_count, temporal, temporal_ordered, value_sum, value_avg, value_percentile, value_median), filter injection, and pySigma-compatible pipelines. Use this skill whenever the user mentions Sigma rules, SIEM detection, detection engineering, detection-as-code, SigmaHQ, correlation rules, Sigma filters, Sigma pipelines, field modifiers, logsource, or asks to write, review, or fix detection rules -- even if they don't explicitly say 'Sigma'.
Sigma Rules
Write Sigma detection, correlation, and filter rules plus processing pipelines per the Sigma v2.1.0 specification. This version is backward-compatible with v2.0.0.
Detection Rules
A detection rule matches log events against field conditions.
Precedence: not > and > or. Quantifiers: 1 of, all of, any of, N of. Wildcard patterns match detection names (selection*). them matches all identifiers except _-prefixed ones.
* matches any number of characters, ? matches exactly one. Escape with backslash: \*, \?, \\. Non-special backslash sequences like \W are preserved literally (important for Windows paths).
Worked Example
Request: "Detect use of the Windows command line to delete shadow copies"
title:ShadowCopyDeletionviaVssadminorWMICid:c947b146-0abc-4f7a-a55e-bf2fcb8dbb60status:testdescription:>
Detects the use of vssadmin or wmic to delete volume shadow copies,
a common ransomware and anti-forensics technique.
author:SecurityTeamdate:2025-01-15references:-https://attack.mitre.org/techniques/T1490/tags:-attack.impact-attack.t1490logsource:category:process_creationproduct:windowsdetection:selection_vssadmin:Image|endswith:'\vssadmin.exe'CommandLine|contains|all:-'delete'-'shadows'selection_wmic:Image|endswith:'\wmic.exe'CommandLine|contains|all:-'shadowcopy'-'delete'condition:1ofselection_*falsepositives:-Legitimatebackuprotationscriptslevel:high
For the full detection rule reference (metadata fields, logsource, multi-document YAML, tags), see references/detection-rules.md.
Correlation Rules
Correlation rules aggregate or sequence events matched by detection rules over a time window, grouped by key fields.
With field (required for value_count, value_sum, value_avg, value_percentile, value_median):
condition:field:SourceIPgte:5
Operators: gt, gte, lt, lte, eq, neq. Values must be numeric.
Extended (string): for temporal types:
condition:"recon_scan and lateral_movement"
Timespan
Format: integer + unit suffix. Units: s (seconds), m (minutes), h (hours), d (days), w (weeks), M (months, uppercase), y (years). Both timespan and timeframe keys are accepted.
Worked Example
Request: "Alert on brute force: more than 5 failed logins from the same user within 5 minutes"
Pipelines transform Sigma rule ASTs before evaluation -- typically for field name mapping between generic Sigma field names and backend-specific schemas (ECS, Splunk CIM, etc.).