{"id":"9e07f6e7-83aa-45c6-998e-0af26efd0a85","title":"Powershell WMI Persistence","description":"Adversaries may establish persistence and elevate privileges by executing malicious content triggered by a Windows Management Instrumentation (WMI) event subscription.","author":"frack113","status":"test","level":"medium","date":"2021-08-19","modified":"2022-12-25","tags":["attack.persistence","attack.privilege-escalation","attack.t1546.003"],"technique_ids":["T1546.003"],"logsource":{"product":"windows","category":"ps_script","definition":"Requirements: Script Block Logging must be enabled"},"falsepositives":["Unknown"],"references":["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"],"source_path":"rules/windows/powershell/powershell_script/posh_ps_wmi_persistence.yml","source_sha256":"c26e86fc3d0ec81bde6b83e64e5ae5cae1f17c4aee984d3e05b406f3cc6cdf82","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_script/posh_ps_wmi_persistence.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Powershell WMI Persistence\nid: 9e07f6e7-83aa-45c6-998e-0af26efd0a85\nstatus: test\ndescription: Adversaries may establish persistence and elevate privileges by executing malicious content triggered by a Windows Management Instrumentation (WMI) event subscription.\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1546.003/T1546.003.md\n    - https://github.com/EmpireProject/Empire/blob/08cbd274bef78243d7a8ed6443b8364acd1fc48b/data/module_source/persistence/Persistence.psm1#L545\nauthor: frack113\ndate: 2021-08-19\nmodified: 2022-12-25\ntags:\n    - attack.persistence\n    - attack.privilege-escalation\n    - attack.t1546.003\nlogsource:\n    product: windows\n    category: ps_script\n    definition: 'Requirements: Script Block Logging must be enabled'\ndetection:\n    selection_ioc:\n        - ScriptBlockText|contains|all:\n              - 'New-CimInstance '\n              - '-Namespace root/subscription '\n              - '-ClassName __EventFilter '\n              - '-Property ' # is a variable name\n        - ScriptBlockText|contains|all:\n              - 'New-CimInstance '\n              - '-Namespace root/subscription '\n              - '-ClassName CommandLineEventConsumer '\n              - '-Property ' # is a variable name\n    condition: selection_ioc\nfalsepositives:\n    - Unknown\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1546.003","id":"T1546.003","name":"Windows Management Instrumentation Event Subscription","page":"techniques/enterprise/T1546.003/"}],"data_path":"data/detection-rules/9e07f6e7-83aa-45c6-998e-0af26efd0a85.json","kind":"sigma"}
