From 3939b8b8e1525a8b576af312cca01571980ee22a Mon Sep 17 00:00:00 2001 From: patel-bhavin Date: Tue, 13 Jul 2021 14:45:07 -0500 Subject: [PATCH 1/2] fix 1 --- .../endpoint/wmi_permanent_event_subscription___sysmon.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detections/endpoint/wmi_permanent_event_subscription___sysmon.yml b/detections/endpoint/wmi_permanent_event_subscription___sysmon.yml index 8aa300e28e..eaa0d67527 100644 --- a/detections/endpoint/wmi_permanent_event_subscription___sysmon.yml +++ b/detections/endpoint/wmi_permanent_event_subscription___sysmon.yml @@ -12,7 +12,7 @@ description: 'This analytic looks for the creation of WMI permanent event subscr WMI subscription execution is proxied by the WMI Provider Host process (WmiPrvSe.exe) and thus may result in elevated SYSTEM privileges. This analytic is restricted by commonly added process execution and a path. If the volume is low enough, remove - the values and flag on any new subscriptions. + the values and flag on any new subscriptions.\ All event subscriptions have three components \ From a9c23039cae7b25808e7c6f96b7263461f267989 Mon Sep 17 00:00:00 2001 From: patel-bhavin Date: Tue, 13 Jul 2021 14:58:24 -0500 Subject: [PATCH 2/2] fix 2 --- .../detect_wmi_event_subscription_persistence.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/detections/endpoint/detect_wmi_event_subscription_persistence.yml b/detections/endpoint/detect_wmi_event_subscription_persistence.yml index 58cfe332c5..e3afe67ec8 100644 --- a/detections/endpoint/detect_wmi_event_subscription_persistence.yml +++ b/detections/endpoint/detect_wmi_event_subscription_persistence.yml @@ -11,11 +11,16 @@ description: 'The following analytic identifies the use of WMI Event Subscriptio event occurs. WMI subscription execution is proxied by the WMI Provider Host process (WmiPrvSe.exe) and thus may result in elevated SYSTEM privileges. This analytic is restricted by commonly added process execution and a path. If the volume is low - enough, remove the values and flag on any new subscriptions. - All event subscriptions have three components - Filter - WQL Query for the events we want. EventID equals 19 - Consumer - An action to take upon triggering the filter. EventID equals 20 - Binding - Registers a filter to a consumer. EventID equals 21 + enough, remove the values and flag on any new subscriptions.\ + + All event subscriptions have three components \ + + 1. Filter - WQL Query for the events we want. EventID equals 19 \ + + 1. Consumer - An action to take upon triggering the filter. EventID equals 20 \ + + 1. Binding - Registers a filter to a consumer. EventID equals 21 \ + Monitor for the creation of new WMI EventFilter, EventConsumer, and FilterToConsumerBinding. It may be pertinent to review all 3 to identify the flow of execution. In addition, EventCode 4104 may assist with any other PowerShell script usage that registered