-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwmi.json
More file actions
479 lines (479 loc) · 17.8 KB
/
Copy pathwmi.json
File metadata and controls
479 lines (479 loc) · 17.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
{
"dataset": {
"name": "EID Quick Reference - WMI Activity",
"version": "1.7.0",
"generatedAt": "2026-04-12T00:00:00Z",
"id": "https://raw.githubusercontent.com/zerber0s/windows-eid-data/main/wmi.json",
"schema": "https://raw.githubusercontent.com/zerber0s/windows-eid-data/main/schema.json",
"license": {
"name": "Creative Commons Attribution 4.0 International",
"spdx": "CC-BY-4.0",
"notice": "Event descriptions are paraphrased summaries written for this dataset. Source links point to authoritative references."
},
"sources": [
{
"name": "Microsoft Learn",
"url": "https://learn.microsoft.com/",
"type": "primary"
}
]
},
"entries": [
{
"id": 5857,
"log": "WMI",
"provider": "Microsoft-Windows-WMI-Activity",
"channel": "Microsoft-Windows-WMI-Activity/Operational",
"level": "Information",
"title": "WMI provider host started",
"summary": "WMI provider DLL loaded into a provider host process.",
"details": "Generated when a WMI provider host (WmiPrvSE.exe) successfully loads a provider. Most legitimate WMI providers load from System32 or known application directories. A provider loading from a temp directory, user profile, or uncommon location is a strong indicator of a malicious WMI provider registered for persistence or lateral movement.",
"category": "WMI Provider",
"tags": [
"wmi",
"provider",
"persistence",
"lateral-movement"
],
"relatedEventIds": [
{
"id": 5861,
"log": "WMI"
},
{
"id": 1,
"log": "Sysmon"
}
],
"mitreAttack": [
{
"techniqueId": "T1047",
"techniqueName": "Windows Management Instrumentation",
"tactics": [
{
"tacticId": "TA0002",
"tacticName": "Execution"
}
]
}
],
"notesGuidance": {
"investigationPivots": [
"Check ProviderPath for DLLs outside of System32 or known application directories",
"Correlate HostProcess PID with process creation logs (Security EID 4688) to identify the parent",
"Cross-reference ProviderName with known legitimate WMI providers"
],
"commonFalsePositives": [
"Legitimate third-party software registering WMI providers",
"Management and monitoring agents (e.g., SCCM, antivirus)"
]
},
"source": {
"name": "Microsoft Learn",
"url": "https://learn.microsoft.com/en-us/windows/win32/wmisdk/tracing-wmi-activity"
},
"volumeIndicator": "low",
"windowsVersions": {
"minVersion": "Windows Vista / Server 2008"
},
"keyFields": [
{
"name": "ProviderName",
"xpath": "EventData/Data[@Name='ProviderName']",
"description": "Name of the WMI provider loaded"
},
{
"name": "ProviderPath",
"xpath": "EventData/Data[@Name='ProviderPath']",
"description": "Full DLL path of the provider; paths outside System32 are anomalous"
},
{
"name": "HostProcess",
"xpath": "EventData/Data[@Name='HostProcess']",
"description": "PID of the WmiPrvSE.exe host process"
}
],
"lastReviewed": "2026-04-10"
},
{
"id": 5858,
"log": "WMI",
"provider": "Microsoft-Windows-WMI-Activity",
"channel": "Microsoft-Windows-WMI-Activity/Operational",
"level": "Error",
"title": "WMI operation failed",
"summary": "A WMI provider or client operation returned an error.",
"details": "Generated when a WMI operation fails, including provider load errors, query execution failures, and access denied results. Isolated errors are common in legitimate management software, but clusters of errors from a single process — especially access denied results on sensitive WMI classes (Win32_Process, Win32_NetworkAdapter, Win32_ShadowCopy) — may indicate failed WMI-based enumeration or exploitation.",
"category": "WMI Error",
"tags": [
"wmi",
"error",
"reconnaissance"
],
"relatedEventIds": [
{
"id": 5857,
"log": "WMI"
},
{
"id": 5861,
"log": "WMI"
},
{
"id": 4688,
"log": "Security"
}
],
"mitreAttack": [
{
"techniqueId": "T1047",
"techniqueName": "Windows Management Instrumentation",
"tactics": [
{
"tacticId": "TA0002",
"tacticName": "Execution"
}
]
},
{
"techniqueId": "T1592",
"techniqueName": "Gather Victim Host Information",
"tactics": [
{
"tacticId": "TA0043",
"tacticName": "Reconnaissance"
}
]
}
],
"notesGuidance": {
"investigationPivots": [
"Clusters of errors from one process in a short timeframe may indicate automated WMI enumeration or a tool attempting WMI-based lateral movement",
"Access denied errors on sensitive classes (Win32_Process, Win32_ShadowCopy) from unexpected processes warrant investigation",
"Correlate ClientProcessId with Security EID 4688 to identify the parent process and command line"
],
"commonFalsePositives": [
"Management software querying WMI classes unavailable on certain OS versions",
"Poorly written admin scripts with unhandled WMI errors"
]
},
"source": {
"name": "Microsoft Learn",
"url": "https://learn.microsoft.com/en-us/windows/win32/wmisdk/tracing-wmi-activity"
},
"volumeIndicator": "low",
"windowsVersions": {
"minVersion": "Windows Vista / Server 2008"
},
"keyFields": [
{
"name": "ClientMachine",
"xpath": "EventData/Data[@Name='ClientMachine']",
"description": "Machine that initiated the WMI operation"
},
{
"name": "ClientProcessId",
"xpath": "EventData/Data[@Name='ClientProcessId']",
"description": "PID of the process that initiated the WMI operation"
},
{
"name": "User",
"xpath": "EventData/Data[@Name='User']",
"description": "User account under which the WMI operation was attempted"
},
{
"name": "ResultCode",
"xpath": "EventData/Data[@Name='ResultCode']",
"description": "HRESULT error code for the failed operation"
}
],
"lastReviewed": "2026-04-02"
},
{
"id": 5859,
"log": "WMI",
"provider": "Microsoft-Windows-WMI-Activity",
"channel": "Microsoft-Windows-WMI-Activity/Operational",
"level": "Information",
"title": "WMI ESS subscription notification fired",
"summary": "A WMI Event Subscription System (ESS) notification was triggered.",
"details": "Generated when a WMI ESS (Eventing Sub-System) subscription fires — that is, when an event filter condition is met and a bound event consumer is invoked. This event confirms that a WMI subscription has actively triggered, as opposed to EID 5860 (temporary registration) and EID 5861 (permanent registration) which only record creation.",
"category": "WMI Subscription",
"tags": [
"wmi",
"subscription",
"persistence",
"lateral-movement",
"execution"
],
"relatedEventIds": [
{
"id": 5860,
"log": "WMI"
},
{
"id": 5861,
"log": "WMI"
},
{
"id": 20,
"log": "Sysmon"
},
{
"id": 21,
"log": "Sysmon"
}
],
"mitreAttack": [
{
"techniqueId": "T1047",
"techniqueName": "Windows Management Instrumentation",
"tactics": [
{
"tacticId": "TA0002",
"tacticName": "Execution"
}
]
},
{
"techniqueId": "T1546.003",
"techniqueName": "Event Triggered Execution: Windows Management Instrumentation Event Subscription",
"tactics": [
{
"tacticId": "TA0003",
"tacticName": "Persistence"
}
]
}
],
"notesGuidance": {
"investigationPivots": [
"Correlate with EID 5861 to find when the triggering subscription was registered",
"Identify the consumer type — CommandLineEventConsumer or ActiveScriptEventConsumer executing unexpected binaries is a high-confidence indicator",
"Correlate with Security EID 4688 to find any processes spawned as a result of the subscription firing"
],
"commonFalsePositives": [
"Legitimate monitoring or management software using WMI event subscriptions (e.g., SCCM, antivirus self-healing)"
]
},
"source": {
"name": "Microsoft Learn",
"url": "https://learn.microsoft.com/en-us/windows/win32/wmisdk/tracing-wmi-activity"
},
"detectionRules": [
{
"platform": "KQL",
"title": "WMI Permanent Subscription Triggered",
"rule": "Event\n| where Source == \"Microsoft-Windows-WMI-Activity\"\n| where EventID == 5859\n| project TimeGenerated, Computer, EventData\n| order by TimeGenerated desc",
"notes": "Correlate with EID 5861 to find when the subscription was registered. A 5859 firing shortly after a suspicious 5861 confirms active execution of a malicious subscription."
}
],
"volumeIndicator": "low",
"windowsVersions": {
"minVersion": "Windows Vista / Server 2008"
},
"keyFields": [
{
"name": "Query",
"xpath": "EventData/Data[@Name='Query']",
"description": "The WMI event filter query that triggered"
},
{
"name": "Consumer",
"xpath": "EventData/Data[@Name='Consumer']",
"description": "The event consumer that was invoked"
}
],
"lastReviewed": "2026-04-10"
},
{
"id": 5860,
"log": "WMI",
"provider": "Microsoft-Windows-WMI-Activity",
"channel": "Microsoft-Windows-WMI-Activity/Operational",
"level": "Information",
"title": "WMI temporary event subscription registered",
"summary": "A temporary (non-persistent) WMI event subscription was registered.",
"details": "Generated when a temporary WMI event subscription is created. Temporary subscriptions exist only in memory and do not survive a reboot, unlike permanent subscriptions (EID 5861). While less commonly used for persistence than permanent subscriptions, temporary subscriptions can be used for in-session lateral movement triggers or to respond to specific system conditions during an active intrusion.",
"category": "WMI Subscription",
"tags": [
"wmi",
"subscription",
"persistence",
"lateral-movement"
],
"relatedEventIds": [
{
"id": 5861,
"log": "WMI"
}
],
"mitreAttack": [
{
"techniqueId": "T1047",
"techniqueName": "Windows Management Instrumentation",
"tactics": [
{
"tacticId": "TA0002",
"tacticName": "Execution"
}
]
},
{
"techniqueId": "T1546.003",
"techniqueName": "Event Triggered Execution: Windows Management Instrumentation Event Subscription",
"tactics": [
{
"tacticId": "TA0003",
"tacticName": "Persistence"
}
]
}
],
"notesGuidance": {
"investigationPivots": [
"Examine the Query field for suspicious event filters (e.g., triggering on process creation or logon events)",
"Correlate the registering process with Security EID 4688 to identify what created the subscription",
"Temporary subscriptions do not persist — if persistence is suspected, look for EID 5861 instead"
],
"commonFalsePositives": [
"Monitoring and management tools that use WMI event subscriptions",
"PowerShell scripts using Register-WmiEvent or Register-CimIndicationEvent"
]
},
"source": {
"name": "Microsoft Learn",
"url": "https://learn.microsoft.com/en-us/windows/win32/wmisdk/tracing-wmi-activity"
},
"volumeIndicator": "rare",
"windowsVersions": {
"minVersion": "Windows Vista / Server 2008"
},
"keyFields": [
{
"name": "NamespaceName",
"xpath": "EventData/Data[@Name='NamespaceName']",
"description": "WMI namespace where the subscription was registered"
},
{
"name": "Query",
"xpath": "EventData/Data[@Name='Query']",
"description": "The WMI event filter query for the subscription"
}
],
"lastReviewed": "2026-03-29"
},
{
"id": 5861,
"log": "WMI",
"provider": "Microsoft-Windows-WMI-Activity",
"channel": "Microsoft-Windows-WMI-Activity/Operational",
"level": "Information",
"title": "WMI permanent event subscription registered",
"summary": "A persistent WMI event subscription was registered.",
"details": "Generated when a permanent WMI event subscription is created — the most forensically significant WMI event for DFIR. Permanent subscriptions survive reboots and consist of three components: an EventFilter (defines the trigger condition), an EventConsumer (defines the action to execute), and a FilterToConsumerBinding (links them). CommandLineEventConsumer and ActiveScriptEventConsumer are the two consumer types most commonly abused for code execution.",
"category": "WMI Subscription",
"tags": [
"wmi",
"subscription",
"persistence",
"lateral-movement"
],
"relatedEventIds": [
{
"id": 5857,
"log": "WMI"
},
{
"id": 5860,
"log": "WMI"
},
{
"id": 19,
"log": "Sysmon"
},
{
"id": 20,
"log": "Sysmon"
},
{
"id": 21,
"log": "Sysmon"
}
],
"mitreAttack": [
{
"techniqueId": "T1047",
"techniqueName": "Windows Management Instrumentation",
"tactics": [
{
"tacticId": "TA0002",
"tacticName": "Execution"
}
]
},
{
"techniqueId": "T1546.003",
"techniqueName": "Event Triggered Execution: Windows Management Instrumentation Event Subscription",
"tactics": [
{
"tacticId": "TA0003",
"tacticName": "Persistence"
}
]
}
],
"notesGuidance": {
"investigationPivots": [
"Check Consumer type: CommandLineEventConsumer or ActiveScriptEventConsumer indicate code execution capability",
"Examine Query for event filters that trigger on process creation, logon, or system startup",
"Query WMI namespace root\\subscription for __EventFilter, __EventConsumer, and __FilterToConsumerBinding objects to enumerate all active subscriptions",
"Correlate with Security EID 4688 to identify which process registered the subscription"
],
"commonFalsePositives": [
"Legitimate software using WMI subscriptions for monitoring or self-healing (e.g., some AV products, backup agents)",
"SCCM and other endpoint management tools"
]
},
"source": {
"name": "Microsoft Learn",
"url": "https://learn.microsoft.com/en-us/windows/win32/wmisdk/tracing-wmi-activity"
},
"detectionRules": [
{
"platform": "KQL",
"title": "WMI Permanent Event Subscription Registered",
"rule": "Event\n| where Source == \"Microsoft-Windows-WMI-Activity\"\n| where EventID == 5861\n| parse EventData with * 'Consumer=\"' Consumer '\"' *\n| where Consumer has_any (\"CommandLineEventConsumer\", \"ActiveScriptEventConsumer\")\n| project TimeGenerated, Computer, Consumer, EventData\n| order by TimeGenerated desc",
"notes": "CommandLineEventConsumer and ActiveScriptEventConsumer are code execution consumers. Enumerate all active subscriptions via WMI query: SELECT * FROM __EventFilter WHERE Name != '__TimerNextFiring'"
},
{
"platform": "Sigma",
"title": "WMI Permanent Event Subscription Created",
"rule": "title: WMI Permanent Event Subscription Registered\nstatus: stable\nlogsource:\n product: windows\n service: wmi\ndetection:\n selection:\n EventID: 5861\n Consumer|contains:\n - 'CommandLineEventConsumer'\n - 'ActiveScriptEventConsumer'\n condition: selection\nfalsepositives:\n - Legitimate AV/EDR or SCCM subscriptions\nlevel: high"
}
],
"volumeIndicator": "rare",
"windowsVersions": {
"minVersion": "Windows Vista / Server 2008"
},
"keyFields": [
{
"name": "NamespaceName",
"xpath": "EventData/Data[@Name='NamespaceName']",
"description": "WMI namespace where the subscription was registered"
},
{
"name": "Query",
"xpath": "EventData/Data[@Name='Query']",
"description": "The event filter query defining the trigger condition"
},
{
"name": "Consumer",
"xpath": "EventData/Data[@Name='Consumer']",
"description": "The event consumer name and type (CommandLineEventConsumer and ActiveScriptEventConsumer are most commonly abused)"
}
],
"lastReviewed": "2026-04-10"
}
]
}