Always Install Elevated MSI Spawned Cmd And Powershell

Last updated on:

About the rule

Rule Type

Standard

Rule Description

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

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "Process started" AND (PROCESSNAME endswith "\cmd.exe,\powershell.exe,\pwsh.exe" OR ORIGINALFILENAME = "Cmd.Exe,PowerShell.EXE,pwsh.dll") AND ((PARENTPROCESSNAME contains "\Windows\Installer" AND PARENTPROCESSNAME contains "msi") AND PARENTPROCESSNAME endswith "tmp") select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME

Detection

Execution Mode

realtime

Log Sources

Windows

Author

Teymur Kheirkhabarov (idea), Mangatas Tondang (rule), oscd.community