0xnhl

Sigma

/ Update
2 min read

Sigma ↗ is a highly flexible open-source tool that describes log events in a structured format. Sigma can be used to find entries in log files using pattern matching. Sigma is used to:

  1. Detect events in log files
  2. Create SIEM searches
  3. Identify threats

Sigma uses the YAML syntax for its rules.

Example

In this Sigma rule:

KeyValueDescription
titleFailed SSH LoginsThis title outlines the purpose of the Sigma rule.
descriptionSearches sshd logs for failed SSH login attemptsThis key provides a description that expands on the title.
statusexperimentalThis key explains the status of the rule. For example, “experimental” means that further testing or improvements must be done.
authorNHLThe person who wrote the rule.
logsourceproduct: linux
service: sshd
Where can the log files that contain the data that we’re looking for be found?
detectionsshdThis key lists what the Sigma rule is looking to find.
a0|containsa0|contains: ‘Failed’In this case, look for all entries with “Failed”.
a1|containsa1|contains: ‘Illegal’In this case, look for all entries with “Illegal”.
falsepositivesUsers forgetting or mistyping their credentialsList cases where this entry may be present but doesn’t necessarily indicate malicious behavior.

This rule can now be used in SIEM platforms to identify events in the processed logs.

Sigma
https://nahil.xyz/vault/tools/sigma/
AuthorNahil Rasheed
Published atSeptember 27, 2026
CopyrightCC BY 4.0
DisclaimerThis content is provided strictly for educational purposes only.