Detectionmediumtest

Suspicious GetTypeFromCLSID ShellExecute

Detects suspicious Powershell code that execute COM Objects

Open in Detection LabConvert ruleBuild Package
François HubautCreated 2022-04-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
2022-04-02
Path
rules/windows/powershell/powershell_script/posh_ps_susp_gettypefromclsid.yml
Raw Tags
attack.privilege-escalationattack.persistenceattack.t1546.015
View on GitHub