Suspicious GetTypeFromCLSID ShellExecute

Detects suspicious Powershell code that execute COM Objects

Sigma rule (View on GitHub)

 1title: Suspicious GetTypeFromCLSID ShellExecute
 2id: 8bc063d5-3a3a-4f01-a140-bc15e55e8437
 3status: test
 4description: Detects suspicious Powershell code that execute COM Objects
 5references:
 6    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1546.015/T1546.015.md#atomic-test-2---powershell-execute-com-object
 7author: frack113
 8date: 2022/04/02
 9tags:
10    - attack.privilege_escalation
11    - attack.persistence
12    - attack.t1546.015
13logsource:
14    product: windows
15    category: ps_script
16    definition: 'Requirements: Script Block Logging must be enabled'
17detection:
18    selection:
19        ScriptBlockText|contains|all:
20            - '::GetTypeFromCLSID('
21            - '.ShellExecute('
22    condition: selection
23falsepositives:
24    - Legitimate PowerShell scripts
25level: medium

References

Related rules

to-top