Detection rules › Elastic
Suspicious WMI Library Load
Identifies the load of Windows Management Instrumentation related libraries and from suspicious call stack.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Execution |
Rule body
[rule]
description = "Identifies the load of Windows Management Instrumentation related libraries and from suspicious call stack."
id = "3cd302aa-098b-4da6-bf20-8d37efe5f861"
license = "Elastic License v2"
name = "Suspicious WMI Library Load"
os_list = ["windows"]
version = "1.0.6"
query = '''
library where dll.name : ("wbemprox.dll", "WMINet_Utils.dll") and
process.thread.Ext.call_stack_summary : "ntdll.dll|kernelbase.dll|combase.dll|Unbacked" and
_arraysearch(process.thread.Ext.call_stack, $entry, $entry.symbol_info: "Unbacked*" and $entry.callsite_trailing_bytes : "?*") and
not (process.code_signature.subject_name : ("Acer Incorporated", "Riot Games, Inc.", "Amazon Web Services, Inc.",
"Bitdefender SRL", "Blizzard Entertainment, Inc.", "JAM Software GmbH", "NetEase (Hangzhou) Network Co., Ltd", "Epic Games Inc.",
"Essential Objects, Inc.", "EasyAntiCheat Oy") and process.code_signature.status == "trusted") and
not process.executable : ("?:\\Program Files\\*", "?:\\Program Files (x86)\\*") and
not _arraysearch(process.thread.Ext.call_stack, $entry,
$entry.callsite_trailing_bytes : "6a00504883ec300f11442420488d0d3effffff488d542438ff1523ffffff488d0524ffffff488b00f048ff084883c4300f104424f058c34883c4600f105c24c0")
'''
min_endpoint_version = "8.8.0"
optional_actions = []
[[actions]]
action = "kill_process"
field = "process.entity_id"
state = 0
[[threat]]
framework = "MITRE ATT&CK"
[[threat.technique]]
id = "T1047"
name = "Windows Management Instrumentation"
reference = "https://attack.mitre.org/techniques/T1047/"
[threat.tactic]
id = "TA0002"
name = "Execution"
reference = "https://attack.mitre.org/tactics/TA0002/"
[internal]
min_endpoint_version = "8.8.0"
Stages and Predicates
Stage 1: library
library where dll.name : ("wbemprox.dll", "WMINet_Utils.dll") and
process.thread.Ext.call_stack_summary : "ntdll.dll|kernelbase.dll|combase.dll|Unbacked" and
_arraysearch(process.thread.Ext.call_stack, $entry, $entry.symbol_info: "Unbacked*" and $entry.callsite_trailing_bytes : "?*") and
not (process.code_signature.subject_name : ("Acer Incorporated", "Riot Games, Inc.", "Amazon Web Services, Inc.",
"Bitdefender SRL", "Blizzard Entertainment, Inc.", "JAM Software GmbH", "NetEase (Hangzhou) Network Co., Ltd", "Epic Games Inc.",
"Essential Objects, Inc.", "EasyAntiCheat Oy") and process.code_signature.status == "trusted") and
not process.executable : ("?:\\Program Files\\*", "?:\\Program Files (x86)\\*") and
not _arraysearch(process.thread.Ext.call_stack, $entry,
$entry.callsite_trailing_bytes : "6a00504883ec300f11442420488d0d3effffff488d542438ff1523ffffff488d0524ffffff488b00f048ff084883c4300f104424f058c34883c4600f105c24c0")
Exclusions
The rule actively suppresses these predicates.
| Field | Kind | Excluded values | Search |
|---|---|---|---|
process.code_signature.status | eq | trusted | excludes:process.code_signature.status field:"process.code_signature.status" value:"trusted" |
process.code_signature.subject_name | eq | Acer Incorporated, Riot Games, Inc., Amazon Web Services, Inc., Bitdefender SRL, Blizzard Entertainment, Inc., JAM Software GmbH, NetEase (Hangzhou) Network Co., Ltd, Epic Games Inc., Essential Objects, Inc., EasyAntiCheat Oy | excludes:process.code_signature.subject_name |
process.thread.Ext.call_stack | array_any | excludes:process.thread.Ext.call_stack | |
process.executable | starts_with | ?:\Program Files\, ?:\Program Files (x86)\ | excludes:process.executable field:"process.executable" value:"?:\Program Files\" field:"process.executable" value:"?:\Program Files (x86)\" |
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
dll.name | wildcard |
| field:"dll.name" kind:wildcard |
process.thread.Ext.call_stack_summary | wildcard |
| field:"process.thread.Ext.call_stack_summary" kind:wildcard value:"ntdll.dll|kernelbase.dll|combase.dll|Unbacked" |