Skip to content

Commit f0ff47e

Browse files
committed
remove correlation mandary for temporal rules
1 parent e49af7b commit f0ff47e

5 files changed

Lines changed: 26 additions & 4 deletions

File tree

json-schema/sigma-correlation-rules-schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
{
167167
"if": { "properties": { "type": { "const": "temporal" } } },
168168
"then": {
169-
"required": ["condition", "group-by", "rules", "timespan"],
169+
"required": ["group-by", "rules", "timespan"],
170170
"properties": {
171171
"condition": { "type": "string" }
172172
}
@@ -175,7 +175,7 @@
175175
{
176176
"if": { "properties": { "type": { "const": "temporal_ordered" } } },
177177
"then": {
178-
"required": ["condition", "group-by", "rules", "timespan"],
178+
"required": ["group-by", "rules", "timespan"],
179179
"properties": {
180180
"condition": { "type": "string" }
181181
}

tests/schema/correlation/temporal.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ correlation:
99
- ComputerName
1010
- User
1111
timespan: 5m
12-
condition: recon_cmd_a AND recon_cmd_b AND recon_cmd_c
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
title: Recon
2+
correlation:
3+
type: temporal
4+
rules:
5+
- recon_cmd_a
6+
- recon_cmd_b
7+
- recon_cmd_c
8+
group-by:
9+
- ComputerName
10+
- User
11+
timespan: 5m
12+
condition: recon_cmd_a AND recon_cmd_b AND recon_cmd_c

tests/schema/correlation/temporal_ordered.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ correlation:
99
- ComputerName
1010
- User
1111
timespan: 5m
12-
condition: recon_cmd_a AND recon_cmd_b AND recon_cmd_c
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
title: Recon ordered
2+
correlation:
3+
type: temporal_ordered
4+
rules:
5+
- recon_cmd_a
6+
- recon_cmd_b
7+
- recon_cmd_c
8+
group-by:
9+
- ComputerName
10+
- User
11+
timespan: 5m
12+
condition: recon_cmd_a AND recon_cmd_b AND recon_cmd_c

0 commit comments

Comments
 (0)