Sigma Rule Reference
This reference section provides explanations on inner workings of Sigma v2 to Padas converter script.
Field Mapping (Padas : Sigma)
The table below provides field mapping information of Padas Rule vs. Sigma Rule. There is a tiny difference between Simple and Meta mapping. Padas creates PDL with detection
field from Simple Rule but action
field from Meta.
Padas Rule : Simple Sigma v2 Rule | Padas Rule : Meta Sigma v2 Rule |
---|---|
|
|
Conversion of Fields
#### id
The first matching Sigma field ise used from the following list, in order of precedence: id
, title
, name
name
The first matching Sigma field ise used from the following list, in order of precedence: title
, name
description
The description
Sigma field is used.
datamodel
For Simple Rules, logsource
Sigma field is used. For Meta Rules padas_alert
is assigned for this value. Following table shows the subfields used to construct datamodel
field in Padas Rule.
Simple Rule | Meta Rule |
---|---|
category + "_" + product + "_" + service | padas_alert |
annotations
The tags
Sigma field is used.
pdl
This field is where the actual conversion happens to make it meaningful for Padas. The condition
field works similarly for both Simple and Meta rules as it gives information about modifiers, conditions, etc. and their relationships for desired fields. There are some modifiers for field conditions rules. The following table provides information regarding Simple Rule modifier conversion.
Sigma Rule Field Modifiers | PDL Field Modifiers |
---|---|
contains |
|
startswith |
|
endswith |
|
gt |
|
gte |
|
lt |
|
lte |
|
Simple Rule Examples
# | Simple Rule | PDL |
---|---|---|
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
Meta Rule Examples
Sigma Meta Rule with action: correlation
fields are converted only. The following table provides information on Sigma Meta Rule functions and their corresponding PDL correlation.
Sigma Meta Rule Function | PDL Correlation Usage |
---|---|
event_count | ` |
value_count | ` |
temporal | ` |
The following table provides some examples on Sigma Meta Rule to PDL Expression/Correlation conversions.
# | Meta Rule | PDL Expression/Correlation |
---|---|---|
1 |
|
|
2 |
|
|
3 |
|
|