Skip to content
Threat Feed
medium advisory

Suspicious Rundll32 Proxy Execution Patterns

This brief documents common LOLBIN usage of rundll32.exe to execute arbitrary code or bypass security controls through legitimate Windows DLLs.

Rundll32.exe is a legitimate Windows utility designed to load and execute DLL-based functions. Attackers frequently abuse this binary to proxy the execution of malicious code, effectively hiding their activity behind a trusted system process. This technique, often referred to as a Living-off-the-Land (LotL) attack, allows adversaries to evade security controls that might otherwise flag unknown binaries. Defenders should monitor for command-line arguments that utilize common, yet rarely used in benign contexts, DLL exports such as comsvcs.dll's MiniDump function, or various setup/installation-related functions that can be coerced into launching external payloads or performing unauthorized actions. This threat is persistent across all modern versions of Windows and serves as a foundational technique for initial execution, lateral movement, and post-exploitation dumping of process memory.

Attack Chain

  1. Attacker identifies a target system with enabled command-line process auditing.
  2. Attacker selects a target DLL capable of performing arbitrary operations (e.g., comsvcs.dll for memory dumping).
  3. Attacker constructs a rundll32.exe command string, referencing the target DLL and an exported function (e.g., rundll32.exe comsvcs.dll,MiniDump).
  4. Attacker executes the crafted command via an existing C2 channel or initial access script.
  5. The rundll32.exe process initializes and invokes the exported function within the specified DLL.
  6. The system executes the underlying functionality - such as dumping LSASS memory to a file or downloading a remote payload - without an independent malicious binary ever hitting the disk or executing directly.
  7. Attacker retrieves the output (e.g., memory dump) for further analysis, such as credential theft.

Impact

Successful abuse of rundll32.exe enables adversaries to bypass application control policies, maintain a stealthy footprint on the target system, and execute sensitive operations such as credential harvesting, file system manipulation, or arbitrary code execution with the permissions of the calling process.

Recommendation

  1. Deploy the provided Sigma rule to monitor process creation events for suspicious rundll32.exe command-line arguments.
  2. Establish a baseline for normal rundll32.exe usage in your environment to distinguish between administrative/system tasks and potential attacker activity.
  3. Enable Sysmon Event ID 1 (Process Creation) to capture full command-line arguments for analysis.
  4. Implement an allowlist for known-good administrative scripts that utilize rundll32.exe to reduce false positives.

Immediate actions

Deploy Sigma detection for rundll32 abuse

Detection Engineering 48h

Threat Hunt

Search for rundll32.exe execution with comsvcs.dll,MiniDump in command line

T1218.011 high high confidence hunt now

Data: Sysmon Event ID 1

Mitigations

Review and restrict access to sensitive system DLLs

medium_term IT Operations

T1218.011

Detection coverage 1

Detect Suspicious Rundll32 Proxy Execution

medium

Detects suspicious execution of rundll32.exe by identifying known DLL exports frequently abused as proxy execution vectors.

sigma tactics: defense_evasion techniques: T1218.011 sources: process_creation, windows

Detection queries are available on the platform. Get full rules →