Detectionmediumtest

Always Install Elevated MSI Spawned Cmd And Powershell

Detects Windows Installer service (msiexec.exe) spawning "cmd" or "powershell"

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
Teymur Kheirkhabarov, Mangatas Tondang, oscd.communityCreated Tue Oct 13Updated Thu Oct 201e53dd56-8d83-4eb4-a43e-b790a05510aawindows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic2 selectors
detection:
    selection_img:
        - Image|endswith:
              - '\cmd.exe'
              - '\powershell.exe'
              - '\pwsh.exe'
        - OriginalFileName:
              - 'Cmd.Exe'
              - 'PowerShell.EXE'
              - 'pwsh.dll'
    selection_parent:
        ParentImage|contains|all:
            - '\Windows\Installer\'
            - 'msi'
        ParentImage|endswith: 'tmp'
    condition: all of selection_*
False Positives
Unknown

False positive likelihood has not been assessed. Additional context may be needed during triage.

Rule Metadata
Rule ID
1e53dd56-8d83-4eb4-a43e-b790a05510aa
Status
test
Level
medium
Type
Detection
Created
Tue Oct 13
Modified
Thu Oct 20
Path
rules/windows/process_creation/proc_creation_win_susp_elavated_msi_spawned_shell.yml
Raw Tags
attack.defense-evasionattack.privilege-escalationattack.t1548.002
View on GitHub