LoFP LoFP / unknown (data set is too small; further testing needed)

Techniques

Sample rules

WMI Persistence

Description

Detects suspicious WMI event filter and command line event consumer based on WMI and Security Logs.

Detection logic

condition: ( (wmi_filter_to_consumer_binding and consumer_keywords) or (wmi_filter_registration)
  ) and not filter_scmevent
consumer_keywords:
- ActiveScriptEventConsumer
- CommandLineEventConsumer
- CommandLineTemplate
filter_scmevent:
  PossibleCause: Permanent
  Provider: SCM Event Provider
  Query: select * from MSFT_SCMEventLogEvent
  User: S-1-5-32-544
wmi_filter_registration:
  EventID: 5859
wmi_filter_to_consumer_binding:
  EventID: 5861

WMI Persistence - Security

Description

Detects suspicious WMI event filter and command line event consumer based on WMI and Security Logs.

Detection logic

condition: selection
selection:
  EventID: 4662
  ObjectName|contains: subscription
  ObjectType: WMI Namespace

WMI Persistence - Command Line Event Consumer

Description

Detects WMI command line event consumers

Detection logic

condition: selection
selection:
  Image: C:\Windows\System32\wbem\WmiPrvSE.exe
  ImageLoaded|endswith: \wbemcons.dll