-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: new directive option: all_rules_always_active (#181)
* add dockerbuild-dev.sh script * add AllRulesAlwaysActive flag to directive struct * add backlog processing for AllRulesALwaysActive * update test files * remove event count restriction in UI * fix ng lint err
- Loading branch information
1 parent
1be24bf
commit 1c4802b
Showing
6 changed files
with
130 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 55 additions & 9 deletions
64
internal/pkg/dsiem/siem/fixtures/directive4/directives_dsiem-backend-0_testing1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,65 @@ | ||
{ | ||
"directives": [ | ||
{ | ||
"name": "Correct Rule, Attack from SRC_IP to DST_IP", | ||
"name": "Correct Rule with Always Active Option, Attack from SRC_IP to DST_IP", | ||
"kingdom": "Reconnaissance & Probing", | ||
"category": "Misc Activity", | ||
"all_rules_always_active": true, | ||
"id": 5, | ||
"priority": 3, | ||
"rules" : [ | ||
{ "name": "ICMP Ping", "type": "PluginRule", "stage": 1, "plugin_id": 1001, "plugin_sid": [ 2100384 ], "occurrence": 1, | ||
"from": "HOME_NET", "to": "ANY", "port_from": "ANY", "port_to": "ANY", "protocol": "ICMP", "reliability": 1, "timeout": 0 }, | ||
{ "name": "ICMP Ping", "type": "PluginRule", "stage": 2, "plugin_id": 1001, "plugin_sid": [ 2100384 ], "occurrence": 1, | ||
"from": ":1", "to": ":1", "port_from": ":1", "port_to": "ANY", "protocol": "ICMP", "reliability": 6, "timeout": 3 }, | ||
{ "name": "ICMP Ping", "type": "PluginRule", "stage": 3, "plugin_id": 1001, "plugin_sid": [ 2100384 ], "occurrence": 1, | ||
"from": ":1", "to": ":1", "port_from": ":1", "port_to": "ANY", "protocol": "ICMP", "reliability": 6, "timeout": 3 } | ||
"rules": [ | ||
{ | ||
"name": "ICMP Ping", | ||
"type": "PluginRule", | ||
"stage": 1, | ||
"plugin_id": 1001, | ||
"plugin_sid": [ | ||
2100384 | ||
], | ||
"occurrence": 1, | ||
"from": "HOME_NET", | ||
"to": "ANY", | ||
"port_from": "ANY", | ||
"port_to": "ANY", | ||
"protocol": "ICMP", | ||
"reliability": 1, | ||
"timeout": 0 | ||
}, | ||
{ | ||
"name": "ICMP Ping", | ||
"type": "PluginRule", | ||
"stage": 2, | ||
"plugin_id": 1001, | ||
"plugin_sid": [ | ||
2100385 | ||
], | ||
"occurrence": 1, | ||
"from": ":1", | ||
"to": ":1", | ||
"port_from": ":1", | ||
"port_to": "ANY", | ||
"protocol": "ICMP", | ||
"reliability": 6, | ||
"timeout": 3 | ||
}, | ||
{ | ||
"name": "ICMP Ping", | ||
"type": "PluginRule", | ||
"stage": 3, | ||
"plugin_id": 1001, | ||
"plugin_sid": [ | ||
2100385 | ||
], | ||
"occurrence": 1, | ||
"from": ":1", | ||
"to": ":1", | ||
"port_from": ":1", | ||
"port_to": "ANY", | ||
"protocol": "ICMP", | ||
"reliability": 6, | ||
"timeout": 3 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters