-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SIEM][Detection Engine] Adds test scripts for machine learning featu…
…re (#60835) ## Summary * Adds ad-hoc testing scripts for machine learning feature ## Testing ```ts ./post_rule.sh ./rules/queries/query_with_machine_learning.json ./update_rule.sh ./rules/updates/update_machine_learning.json ./patch_rule.sh ./rules/patches/update_machine_learning.json ```
- Loading branch information
1 parent
0530981
commit 1411978
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...ugins/siem/server/lib/detection_engine/scripts/rules/patches/update_machine_learning.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"rule_id": "machine-learning", | ||
"anomaly_threshold": 10 | ||
} |
10 changes: 10 additions & 0 deletions
10
...s/siem/server/lib/detection_engine/scripts/rules/queries/query_with_machine_learning.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "Query with a machine learning job", | ||
"description": "Query with a machine learning job", | ||
"rule_id": "machine-learning", | ||
"risk_score": 1, | ||
"severity": "high", | ||
"type": "machine_learning", | ||
"machine_learning_job_id": "linux_anomalous_network_activity_ecs", | ||
"anomaly_threshold": 50 | ||
} |
10 changes: 10 additions & 0 deletions
10
...ugins/siem/server/lib/detection_engine/scripts/rules/updates/update_machine_learning.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "Query with a machine learning job", | ||
"description": "Query with a machine learning job", | ||
"rule_id": "machine-learning", | ||
"risk_score": 1, | ||
"severity": "high", | ||
"type": "machine_learning", | ||
"machine_learning_job_id": "linux_anomalous_network_activity_ecs", | ||
"anomaly_threshold": 100 | ||
} |