
title: Always Install Elevated MSI Spawned Cmd And Powershell
author: Teymur Kheirkhabarov (idea), Mangatas Tondang (rule), oscd.community
date: 2020/10/13
description: This rule will looks for Windows Installer service (msiexec.exe) spawned
  command line and/or powershell
detection:
  SELECTION_1:
    EventID: 1
  SELECTION_2:
    Image:
    - '*\cmd.exe'
    - '*\powershell.exe'
  SELECTION_3:
    ParentImage: '*\Windows\Installer\\*'
  SELECTION_4:
    ParentImage: '*msi*'
  SELECTION_5:
    ParentImage:
    - '*tmp'
  condition: (SELECTION_1 and SELECTION_2 and SELECTION_3 and SELECTION_4 and SELECTION_5)
falsepositives:
- Penetration test
fields:
- Image
- ParentImage
id: 1e53dd56-8d83-4eb4-a43e-b790a05510aa
level: medium
logsource:
  category: process_creation
  product: windows
references:
- https://image.slidesharecdn.com/kheirkhabarovoffzonefinal-181117201458/95/hunting-for-privilege-escalation-in-windows-environment-50-638.jpg
status: experimental
tags:
- attack.privilege_escalation
- attack.t1548.002
ruletype: SIGMA
