2021-08-19 16:09:31 +02:00
title : Powershell WMI Persistence
2021-08-19 15:37:28 +02:00
id : 9e07f6e7-83aa-45c6-998e-0af26efd0a85
2022-12-27 12:29:10 +01:00
status : test
2022-07-07 19:13:01 +01:00
description : Adversaries may establish persistence and elevate privileges by executing malicious content triggered by a Windows Management Instrumentation (WMI) event subscription.
2021-08-19 15:37:28 +02:00
references :
2022-07-11 14:11:53 +01:00
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1546.003/T1546.003.md
- https://github.com/EmpireProject/Empire/blob/08cbd274bef78243d7a8ed6443b8364acd1fc48b/data/module_source/persistence/Persistence.psm1#L545
2022-10-26 09:43:39 +02:00
author : frack113
date : 2021 /08/19
2022-12-27 12:29:10 +01:00
modified : 2022 /12/25
2021-08-19 15:37:28 +02:00
tags :
- attack.privilege_escalation
- attack.t1546.003
logsource :
product : windows
2021-10-16 08:18:49 +02:00
category : ps_script
2023-01-04 17:49:32 +01:00
definition: 'Requirements : Script Block Logging must be enabled'
2021-08-19 15:37:28 +02:00
detection :
selection_ioc :
2022-07-07 19:13:01 +01:00
- ScriptBlockText|contains|all :
2021-08-19 15:37:28 +02:00
- 'New-CimInstance '
- '-Namespace root/subscription '
2021-08-19 15:42:19 +02:00
- '-ClassName __EventFilter '
2022-07-07 19:13:01 +01:00
- '-Property ' #is a variable name
2021-08-19 15:37:28 +02:00
- ScriptBlockText|contains|all :
- 'New-CimInstance '
- '-Namespace root/subscription '
- '-ClassName CommandLineEventConsumer '
2022-07-07 19:13:01 +01:00
- '-Property ' #is a variable name
2021-10-16 08:18:49 +02:00
condition : selection_ioc
2021-08-19 15:37:28 +02:00
falsepositives :
- Unknown
2022-07-11 14:11:53 +01:00
level : medium