Windows: Rundll32 Executing Registered COM Local Servers via Command-Line { }
Flags rundll32.exe launching COM local servers using -sta/-localserver with braced arguments.
- Product
- windows
- Category
- process_creation
- Author
- frack113 (SigmaHQ), DRL 1.1
- Published
- 2022-02-13
- Updated
- 2026-07-30
ATT&CK techniques
Persistence → Priv EscRecon
Resource Dev
Initial Access
Execution
Persistence
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
C2
Exfiltration
Impact
What it detects
This rule matches process executions of rundll32.exe where the command line includes COM local server startup flags (-sta and -localserver) and contains a braced argument ({ ... }). Attackers can use rundll32 to load functionality indirectly through registered COM objects, which can aid persistence and privilege escalation. The detection relies on Windows process creation telemetry fields for Image/OriginalFileName and command-line content.
Reporting behind it
- nasbench.medium.comhttps://nasbench.medium.com/a-deep-dive-into-rundll32-exe-642344b41e90
- github.comhttps://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1546.015/T1546.015.md
- github.comhttps://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_creation/proc_creation_win_rundll32_registered_com_objects.yml
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.
title: "Windows: Rundll32 Executing Registered COM Local Servers via Command-Line { }"
id: c91b9afc-59df-405c-9352-741447b6bd8f
status: test
description: This rule matches process executions of rundll32.exe where the command line includes COM local server startup flags (-sta and -localserver) and contains a braced argument ({ ... }). Attackers can use rundll32 to load functionality indirectly through registered COM objects, which can aid persistence and privilege escalation. The detection relies on Windows process creation telemetry fields for Image/OriginalFileName and command-line content.
references:
- https://nasbench.medium.com/a-deep-dive-into-rundll32-exe-642344b41e90
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1546.015/T1546.015.md
- https://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_creation/proc_creation_win_rundll32_registered_com_objects.yml
author: frack113, Huntrule Team
date: 2022-02-13
modified: 2023-02-09
tags:
- attack.privilege-escalation
- attack.persistence
- attack.t1546.015
logsource:
category: process_creation
product: windows
detection:
selection_img:
- Image|endswith: \rundll32.exe
- OriginalFileName: RUNDLL32.EXE
selection_cli:
CommandLine|contains:
- "-sta "
- "-localserver "
CommandLine|contains|all:
- "{"
- "}"
condition: all of selection_*
falsepositives:
- Legitimate use
level: high
license: DRL-1.1
related:
- id: f1edd233-30b5-4823-9e6a-c4171b24d316
type: derived