Detectionmediumtest

Suspicious GetTypeFromCLSID ShellExecute

Detects suspicious Powershell code that execute COM Objects

Convert In Phoenix Studio

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

Launch
François HubautCreated Sat Apr 028bc063d5-3a3a-4f01-a140-bc15e55e8437windows
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script

Definition

Requirements: Script Block Logging must be enabled

Detection Logic
Detection Logic1 selector
detection:
    selection:
        ScriptBlockText|contains|all:
            - '::GetTypeFromCLSID('
            - '.ShellExecute('
    condition: selection
False Positives

Legitimate PowerShell scripts

Rule Metadata
Rule ID
8bc063d5-3a3a-4f01-a140-bc15e55e8437
Status
test
Level
medium
Type
Detection
Created
Sat Apr 02
Path
rules/windows/powershell/powershell_script/posh_ps_susp_gettypefromclsid.yml
Raw Tags
attack.privilege-escalationattack.persistenceattack.t1546.015
View on GitHub