Always Install Elevated MSI Spawned Cmd And Powershell
Detects Windows Installer service (msiexec.exe) spawning "cmd" or "powershell"
Sigma rule (View on GitHub)
1title: Always Install Elevated MSI Spawned Cmd And Powershell
2id: 1e53dd56-8d83-4eb4-a43e-b790a05510aa
3status: test
4description: Detects Windows Installer service (msiexec.exe) spawning "cmd" or "powershell"
5references:
6 - https://image.slidesharecdn.com/kheirkhabarovoffzonefinal-181117201458/95/hunting-for-privilege-escalation-in-windows-environment-50-638.jpg
7author: Teymur Kheirkhabarov (idea), Mangatas Tondang (rule), oscd.community
8date: 2020-10-13
9modified: 2022-10-20
10tags:
11 - attack.privilege-escalation
12 - attack.t1548.002
13logsource:
14 product: windows
15 category: process_creation
16detection:
17 selection_img:
18 - Image|endswith:
19 - '\cmd.exe'
20 - '\powershell.exe'
21 - '\pwsh.exe'
22 - OriginalFileName:
23 - 'Cmd.Exe'
24 - 'PowerShell.EXE'
25 - 'pwsh.dll'
26 selection_parent:
27 ParentImage|contains|all:
28 - '\Windows\Installer\'
29 - 'msi'
30 ParentImage|endswith: 'tmp'
31 condition: all of selection_*
32fields:
33 - Image
34 - ParentImage
35falsepositives:
36 - Unknown
37level: medium
References
Related rules
- Always Install Elevated Windows Installer
- Bypass UAC Using DelegateExecute
- Bypass UAC Using SilentCleanup Task
- Bypass UAC via CMSTP
- Bypass UAC via Fodhelper.exe