Detection rules › Sigma

Regsvr32 DLL Execution With Suspicious File Extension

Status
test
Severity
high
Log source
product windows, category process_creation
Author
Florian Roth (Nextron Systems), frack113
Source
github.com/SigmaHQ/sigma

Detects the execution of REGSVR32.exe with DLL files masquerading as other files

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Regsvr32 DLL Execution With Suspicious File Extension
id: 089fc3d2-71e8-4763-a8a5-c97fbb0a403e
related:
    - id: 8e2b24c9-4add-46a0-b4bb-0057b4e6187d
      type: obsolete
status: test
description: Detects the execution of REGSVR32.exe with DLL files masquerading as other files
references:
    - https://thedfirreport.com/2021/11/29/continuing-the-bazar-ransomware-story/
    - https://blog.talosintelligence.com/2021/10/threat-hunting-in-large-datasets-by.html
    - https://guides.lib.umich.edu/c.php?g=282942&p=1885348
    - https://harfanglab.io/insidethelab/uac-0057-pressure-ukraine-poland/
author: Florian Roth (Nextron Systems), frack113
date: 2021-11-29
modified: 2025-08-27
tags:
    - attack.stealth
    - attack.t1218.010
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\regsvr32.exe'
        - OriginalFileName: 'REGSVR32.EXE'
    selection_cli:
        CommandLine|endswith:
            # Add more image extensions
            # https://twitter.com/Max_Mal_/status/1542461200797163522/photo/3
            - '.bin'
            - '.bmp'
            - '.cr2'
            - '.dat'
            - '.eps'
            - '.gif'
            - '.ico'
            - '.jpeg'
            - '.jpg'
            - '.log'
            - '.nef'
            - '.orf'
            - '.png'
            - '.raw'
            - '.rtf'
            - '.sr2'
            - '.temp'
            - '.tif'
            - '.tiff'
            - '.tmp'
            - '.txt'
    condition: all of selection_*
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\regsvr32.exe'
    - OriginalFileName: 'REGSVR32.EXE'

Stage 2: selection_cli

selection_cli:
    CommandLine|endswith:
        - '.bin'
        - '.bmp'
        - '.cr2'
        - '.dat'
        - '.eps'
        - '.gif'
        - '.ico'
        - '.jpeg'
        - '.jpg'
        - '.log'
        - '.nef'
        - '.orf'
        - '.png'
        - '.raw'
        - '.rtf'
        - '.sr2'
        - '.temp'
        - '.tif'
        - '.tiff'
        - '.tmp'
        - '.txt'

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
CommandLineends_with
  • .bin
  • .bmp
  • .cr2
  • .dat corpus 6 (sigma 6)
  • .eps
  • .gif corpus 3 (sigma 3)
  • .ico
  • .jpeg corpus 3 (sigma 3)
  • .jpg corpus 2 (sigma 2)
  • .log corpus 2 (sigma 2)
  • .nef
  • .orf
  • .png corpus 3 (sigma 3)
  • .raw
  • .rtf
  • .sr2
  • .temp corpus 2 (sigma 2)
  • .tif
  • .tiff
  • .tmp corpus 2 (sigma 2)
  • .txt corpus 4 (sigma 4)
Imageends_with
  • \regsvr32.exe corpus 65 (sigma 65)
OriginalFileNameeq
  • REGSVR32.EXE corpus 26 (sigma 17, splunk 6, elastic 3)