[Rule Tuning] Ensure host information is in endpoint rule queries (#2593)
* add unit tests to ensure host type and platform are included * add host.os.name 'linux' to all linux rules * add host.os.name macos to mac rules * add host.os.name to windows rules; fix linux dates * update from host.os.name to host.os.type Co-authored-by: brokensound77 <brokensound77@users.noreply.github.com> Co-authored-by: Jonhnathan <26856693+w0rk3r@users.noreply.github.com>
This commit is contained in:
@@ -4,7 +4,7 @@ integration = ["endpoint"]
|
||||
maturity = "production"
|
||||
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
|
||||
min_stack_version = "8.3.0"
|
||||
updated_date = "2023/01/19"
|
||||
updated_date = "2023/02/22"
|
||||
|
||||
[rule]
|
||||
author = ["Elastic"]
|
||||
@@ -102,7 +102,7 @@ timestamp_override = "event.ingested"
|
||||
type = "eql"
|
||||
|
||||
query = '''
|
||||
process where event.type == "start" and
|
||||
process where host.os.type == "linux" and event.type == "start" and
|
||||
(
|
||||
/* launch shells from unusual process */
|
||||
(process.name == "capsh" and process.args == "--") or
|
||||
|
||||
Reference in New Issue
Block a user