Detection rules › Sigma

Suspicious Rundll32 Execution With Image Extension

Status
test
Severity
high
Log source
product windows, category process_creation
Author
Hieu Tran
Source
github.com/SigmaHQ/sigma

Detects the execution of Rundll32.exe with DLL files masquerading as image files

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Suspicious Rundll32 Execution With Image Extension
id: 4aa6040b-3f28-44e3-a769-9208e5feb5ec
related:
    - id: 089fc3d2-71e8-4763-a8a5-c97fbb0a403e
      type: similar
status: test
description: Detects the execution of Rundll32.exe with DLL files masquerading as image files
references:
    - https://www.zscaler.com/blogs/security-research/onenote-growing-threat-malware-distribution
author: Hieu Tran
date: 2023-03-13
tags:
    - attack.stealth
    - attack.t1218.011
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\rundll32.exe'
        - OriginalFileName: 'RUNDLL32.exe'
    selection_cli:
        CommandLine|contains:
            - '.bmp'
            - '.cr2'
            - '.eps'
            - '.gif'
            - '.ico'
            - '.jpeg'
            - '.jpg'
            - '.nef'
            - '.orf'
            - '.png'
            - '.raw'
            - '.sr2'
            - '.tif'
            - '.tiff'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\rundll32.exe'
    - OriginalFileName: 'RUNDLL32.exe'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains:
        - '.bmp'
        - '.cr2'
        - '.eps'
        - '.gif'
        - '.ico'
        - '.jpeg'
        - '.jpg'
        - '.nef'
        - '.orf'
        - '.png'
        - '.raw'
        - '.sr2'
        - '.tif'
        - '.tiff'

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
  • .bmp corpus 2 (sigma 2)
  • .cr2
  • .eps
  • .gif corpus 8 (sigma 8)
  • .ico
  • .jpeg corpus 6 (sigma 6)
  • .jpg corpus 7 (sigma 7)
  • .nef
  • .orf
  • .png corpus 7 (sigma 7)
  • .raw
  • .sr2
  • .tif
  • .tiff
Imageends_with
  • \rundll32.exe corpus 95 (sigma 95)
OriginalFileNameeq
  • RUNDLL32.exe corpus 62 (sigma 35, splunk 21, elastic 6)