Files
splunk-security_content/docs/_posts/2018-10-23-wmi_temporary_event_subscription.md
2022-01-03 14:39:48 -05:00

3.0 KiB

title, excerpt, categories, last_modified_at, toc, toc_label, tags
title excerpt categories last_modified_at toc toc_label tags
WMI Temporary Event Subscription Windows Management Instrumentation
Endpoint
2018-10-23 true
Windows Management Instrumentation
Execution
Splunk Enterprise
Splunk Enterprise Security
Splunk Cloud

⚠️ WARNING THIS IS A EXPERIMENTAL DETECTION

We have not been able to test, simulate, or build datasets for this detection. Use at your own risk. This analytic is NOT supported.

Try in Splunk Security Cloud{: .btn .btn--success}

Description

This search looks for the creation of WMI temporary event subscriptions.

  • Type: TTP
  • Product: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud
  • Datamodel:
  • Last Updated: 2018-10-23
  • Author: Rico Valdez, Splunk
  • ID: 38cbd42c-1098-41bb-99cf-9d6d2b296d83

ATT&CK

ID Technique Tactic
T1047 Windows Management Instrumentation Execution
`wmi` EventCode=5860 Temporary 
| rex field=Message "NotificationQuery =\s+(?<query>[^;
|^$]+)" 
| search query!="SELECT * FROM Win32_ProcessStartTrace WHERE ProcessName = 'wsmprovhost.exe'" AND query!="SELECT * FROM __InstanceOperationEvent WHERE TargetInstance ISA 'AntiVirusProduct' OR TargetInstance ISA 'FirewallProduct' OR TargetInstance ISA 'AntiSpywareProduct'" 
| stats count min(_time) as firstTime max(_time) as lastTime by ComputerName, query  
| `security_content_ctime(firstTime)`
| `security_content_ctime(lastTime)` 
| `wmi_temporary_event_subscription_filter`

Associated Analytic Story

How To Implement

To successfully implement this search, you must be ingesting the Windows WMI activity logs. This can be done by adding a stanza to inputs.conf on the system generating logs with a title of [WinEventLog://Microsoft-Windows-WMI-Activity/Operational].

Required field

  • _time
  • EventCode
  • Message
  • query

Kill Chain Phase

  • Actions on Objectives

Known False Positives

Some software may create WMI temporary event subscriptions for various purposes. The included search contains an exception for two of these that occur by default on Windows 10 systems. You may need to modify the search to create exceptions for other legitimate events.

Reference

Test Dataset

Replay any dataset to Splunk Enterprise by using our replay.py tool or the UI. Alternatively you can replay a dataset into a Splunk Attack Range

source | version: 1