Detection rules › Sigma

Potential DLL Sideloading Via comctl32.dll

Status
test
Severity
high
Log source
product windows, category image_load
Author
Nasreddine Bencherchali (Nextron Systems), Subhash Popuri (@pbssubhash)
Source
github.com/SigmaHQ/sigma

Detects potential DLL sideloading using comctl32.dll to obtain system privileges

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 7Image loaded

Rule body yaml

title: Potential DLL Sideloading Via comctl32.dll
id: 6360757a-d460-456c-8b13-74cf0e60cceb
status: test
description: Detects potential DLL sideloading using comctl32.dll to obtain system privileges
references:
    - https://github.com/binderlabs/DirCreate2System
    - https://github.com/sailay1996/awesome_windows_logical_bugs/blob/60cbb23a801f4c3195deac1cc46df27c225c3d07/dir_create2system.txt
author: Nasreddine Bencherchali (Nextron Systems), Subhash Popuri (@pbssubhash)
date: 2022-12-16
modified: 2022-12-19
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.execution
    - attack.stealth
    - attack.t1574.001
logsource:
    category: image_load
    product: windows
detection:
    selection:
        ImageLoaded|startswith:
            - 'C:\Windows\System32\logonUI.exe.local\'
            - 'C:\Windows\System32\werFault.exe.local\'
            - 'C:\Windows\System32\consent.exe.local\'
            - 'C:\Windows\System32\narrator.exe.local\'
            - 'C:\windows\system32\wermgr.exe.local\'
        ImageLoaded|endswith: '\comctl32.dll'
    condition: selection
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ImageLoaded|startswith:
        - 'C:\Windows\System32\logonUI.exe.local\'
        - 'C:\Windows\System32\werFault.exe.local\'
        - 'C:\Windows\System32\consent.exe.local\'
        - 'C:\Windows\System32\narrator.exe.local\'
        - 'C:\windows\system32\wermgr.exe.local\'
    ImageLoaded|endswith: '\comctl32.dll'

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
ImageLoadedends_with
  • \comctl32.dll
ImageLoadedstarts_with
  • C:\Windows\System32\consent.exe.local\
  • C:\Windows\System32\logonUI.exe.local\
  • C:\Windows\System32\narrator.exe.local\
  • C:\Windows\System32\werFault.exe.local\
  • C:\windows\system32\wermgr.exe.local\