Detection rules › Sigma

Rundll32 UNC Path Execution

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

Detects rundll32 execution where the DLL is located on a remote location (share). Threat actors can abuse the rundll32.exe binary to execute remote DLLs from a UNC pathh.

Known false positives

  • Unlikely

MITRE ATT&CK coverage

Telemetry coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule body

title: Rundll32 UNC Path Execution
id: 5cdb711b-5740-4fb2-ba88-f7945027afac
status: test
description: |
    Detects rundll32 execution where the DLL is located on a remote location (share).
    Threat actors can abuse the rundll32.exe binary to execute remote DLLs from a UNC pathh.
references:
    - https://www.cybereason.com/blog/rundll32-the-infamous-proxy-for-executing-malicious-code
    - https://www.microsoft.com/en-us/security/blog/2026/07/16/acr-stealer-two-observed-intrusion-chains-amid-increased-threat-activity/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-08-10
modified: 2026-07-20
tags:
    - attack.execution
    - attack.lateral-movement
    - attack.stealth
    - attack.t1021.002
    - attack.t1218.011
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\rundll32.exe'
        - OriginalFileName: 'RUNDLL32.EXE'
        - CommandLine|contains: 'rundll32'
    selection_cli:
        CommandLine|contains:
            - ' \\\\'
            - ' ''\\\\'
            - ' "\\\\'
    filter_main_cli_pipe:
        CommandLine|contains: '\\\\.\\pipe'
    condition: all of selection_* and not 1 of filter_main_*
falsepositives:
    - Unlikely
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_rundll32_unc_path/info.yml

Stages and Predicates

Stage 0: condition

all of selection_* and not 1 of filter_main_*

Stage 1: selection_img

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

Stage 2: selection_cli

selection_cli:
    CommandLine|contains:
        - ' \\\\'
        - ' ''\\\\'
        - ' "\\\\'

Stage 3: not filter_main_cli_pipe

filter_main_cli_pipe:
    CommandLine|contains: '\\\\.\\pipe'

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CommandLinematch\\\\.\\pipeexcludes:CommandLine field:"CommandLine" value:"\\\\.\\pipe"

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • "\\\\
  • '\\\\
  • \\\\ corpus 8 (sigma 8)
  • rundll32 corpus 26 (sigma 23, chronicle 2, kusto 1)
field:"CommandLine" kind:match
Imageends_with
  • \rundll32.exe corpus 94 (sigma 94)
field:"Image" kind:ends_with value:"\rundll32.exe"
OriginalFileNameeq
  • RUNDLL32.EXE corpus 78 (sigma 35, elastic 22, splunk 21)
field:"OriginalFileName" kind:eq value:"RUNDLL32.EXE"