Potential COM Objects Download Cradles Usage - PS Script

Detects usage of COM objects that can be abused to download files in PowerShell by CLSID

Sigma rule (View on GitHub)

 1title: Potential COM Objects Download Cradles Usage - PS Script
 2id: 3c7d1587-3b13-439f-9941-7d14313dbdfe
 3related:
 4    - id: 02b64f1b-3f33-4e67-aede-ef3b0a5a8fcf
 5      type: similar
 6status: test
 7description: Detects usage of COM objects that can be abused to download files in PowerShell by CLSID
 8references:
 9    - https://learn.microsoft.com/en-us/dotnet/api/system.type.gettypefromclsid?view=net-7.0
10    - https://speakerdeck.com/heirhabarov/hunting-for-powershell-abuse?slide=57
11author: frack113
12date: 2022-12-25
13tags:
14    - attack.command-and-control
15    - attack.t1105
16logsource:
17    product: windows
18    category: ps_script
19    definition: Script Block Logging must be enable
20detection:
21    selection_1:
22        ScriptBlockText|contains: '[Type]::GetTypeFromCLSID('
23    selection_2:
24        ScriptBlockText|contains:
25            - '0002DF01-0000-0000-C000-000000000046'
26            - 'F6D90F16-9C73-11D3-B32E-00C04F990BB4'
27            - 'F5078F35-C551-11D3-89B9-0000F81FE221'
28            - '88d96a0a-f192-11d4-a65f-0040963251e5'
29            - 'AFBA6B42-5692-48EA-8141-DC517DCF0EF1'
30            - 'AFB40FFD-B609-40A3-9828-F88BBE11E4E3'
31            - '88d96a0b-f192-11d4-a65f-0040963251e5'
32            - '2087c2f4-2cef-4953-a8ab-66779b670495'
33            - '000209FF-0000-0000-C000-000000000046'
34            - '00024500-0000-0000-C000-000000000046'
35    condition: all of selection_*
36falsepositives:
37    - Legitimate use of the library
38level: medium

References

Related rules

to-top