From 9f734c2c1fd755b0bc3f7084ff63b3cfc8253801 Mon Sep 17 00:00:00 2001 From: Jonhnathan <26856693+w0rk3r@users.noreply.github.com> Date: Wed, 17 May 2023 09:58:21 -0300 Subject: [PATCH] [Rule Tuning] System Information Discovery via Windows Command Shell (#2741) --- rules/windows/discovery_files_dir_systeminfo_via_cmd.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rules/windows/discovery_files_dir_systeminfo_via_cmd.toml b/rules/windows/discovery_files_dir_systeminfo_via_cmd.toml index ca2e9ff24..2a86d2562 100644 --- a/rules/windows/discovery_files_dir_systeminfo_via_cmd.toml +++ b/rules/windows/discovery_files_dir_systeminfo_via_cmd.toml @@ -4,7 +4,7 @@ integration = ["endpoint", "windows"] maturity = "production" min_stack_comments = "New fields added: required_fields, related_integrations, setup" min_stack_version = "8.3.0" -updated_date = "2023/02/22" +updated_date = "2023/04/24" [rule] author = ["Elastic"] @@ -56,7 +56,8 @@ type = "eql" query = ''' process where host.os.type == "windows" and event.type == "start" and - process.name : "cmd.exe" and process.args : "/c" and process.args : ("set", "dir") + process.name : "cmd.exe" and process.args : "/c" and process.args : ("set", "dir") and + not process.parent.executable : ("?:\\Program Files\\*", "?:\\Program Files (x86)\\*", "?:\\PROGRA~1\\*") '''