Detection rules › Sigma

Potential COM Objects Download Cradles Usage - Process Creation

Status
test
Severity
medium
Log source
product windows, category process_creation
Author
frack113
Source
github.com/SigmaHQ/sigma

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

MITRE ATT&CK coverage

TacticTechniques
Command & ControlT1105 Ingress Tool Transfer

Event coverage

Rule body yaml

title: Potential COM Objects Download Cradles Usage - Process Creation
id: 02b64f1b-3f33-4e67-aede-ef3b0a5a8fcf
related:
    - id: 3c7d1587-3b13-439f-9941-7d14313dbdfe
      type: similar
status: test
description: Detects usage of COM objects that can be abused to download files in PowerShell by CLSID
references:
    - https://learn.microsoft.com/en-us/dotnet/api/system.type.gettypefromclsid?view=net-7.0
    - https://speakerdeck.com/heirhabarov/hunting-for-powershell-abuse?slide=57
author: frack113
date: 2022-12-25
tags:
    - attack.command-and-control
    - attack.t1105
logsource:
    product: windows
    category: process_creation
detection:
    selection_1:
        CommandLine|contains: '[Type]::GetTypeFromCLSID('
    selection_2:
        CommandLine|contains:
            - '0002DF01-0000-0000-C000-000000000046'
            - 'F6D90F16-9C73-11D3-B32E-00C04F990BB4'
            - 'F5078F35-C551-11D3-89B9-0000F81FE221'
            - '88d96a0a-f192-11d4-a65f-0040963251e5'
            - 'AFBA6B42-5692-48EA-8141-DC517DCF0EF1'
            - 'AFB40FFD-B609-40A3-9828-F88BBE11E4E3'
            - '88d96a0b-f192-11d4-a65f-0040963251e5'
            - '2087c2f4-2cef-4953-a8ab-66779b670495'
            - '000209FF-0000-0000-C000-000000000046'
            - '00024500-0000-0000-C000-000000000046'
    condition: all of selection_*
falsepositives:
    - Legitimate use of the library
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_1

selection_1:
    CommandLine|contains: '[Type]::GetTypeFromCLSID('

Stage 2: selection_2

selection_2:
    CommandLine|contains:
        - '0002DF01-0000-0000-C000-000000000046'
        - 'F6D90F16-9C73-11D3-B32E-00C04F990BB4'
        - 'F5078F35-C551-11D3-89B9-0000F81FE221'
        - '88d96a0a-f192-11d4-a65f-0040963251e5'
        - 'AFBA6B42-5692-48EA-8141-DC517DCF0EF1'
        - 'AFB40FFD-B609-40A3-9828-F88BBE11E4E3'
        - '88d96a0b-f192-11d4-a65f-0040963251e5'
        - '2087c2f4-2cef-4953-a8ab-66779b670495'
        - '000209FF-0000-0000-C000-000000000046'
        - '00024500-0000-0000-C000-000000000046'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLinematch
  • 000209FF-0000-0000-C000-000000000046
  • 00024500-0000-0000-C000-000000000046
  • 0002DF01-0000-0000-C000-000000000046
  • 2087c2f4-2cef-4953-a8ab-66779b670495
  • 88d96a0a-f192-11d4-a65f-0040963251e5
  • 88d96a0b-f192-11d4-a65f-0040963251e5
  • AFB40FFD-B609-40A3-9828-F88BBE11E4E3
  • AFBA6B42-5692-48EA-8141-DC517DCF0EF1
  • F5078F35-C551-11D3-89B9-0000F81FE221
  • F6D90F16-9C73-11D3-B32E-00C04F990BB4
  • [Type]::GetTypeFromCLSID(