Skip to content
WETNav

Execution · Windows · LOLBAS

rundll32.exe

Rundll32

Runs a function exported by a DLL. Trusted and signed, so it is widely abused to run malicious DLLs and, through comsvcs.dll, to read LSASS memory.

Legitimate use

Windows and installers use it to call DLL entry points, for example control panel applets.

Worst caseCritical

Switches

/sta

Runs the entry point in a single-threaded apartment. Seen with some COM-based execution.

Medium

Command lines to worry about

  • Critical

    LSASS read through comsvcs.dll

    comsvcs.dll MiniDump writes the memory of a process to disk. Pointed at LSASS it harvests credentials. This is high-confidence credential theft.

    Detection regexrundll32(\.exe)?\s+.*comsvcs(\.dll)?\s*,\s*#?\+?24\b|rundll32(\.exe)?\s+.*comsvcs.*minidump

    T1003.001

  • High

    Script protocol in rundll32

    rundll32 runs inline script through the javascript: or vbscript: handler, bypassing a script file on disk.

    Detection regexrundll32(\.exe)?\s+(javascript|vbscript):

    T1218.011T1059.007

  • High

    DLL run from a user-writable path

    A DLL run from a temp or profile folder, sometimes with a non-DLL extension, is a common loader pattern. Check the file's write time and origin.

    Detection regexrundll32(\.exe)?\s+.*\\(temp|appdata|programdata|public|downloads)\\[^\s]+\.(dll|cpl|tmp|dat|png|jpg|txt),

    T1218.011

Where it is recorded

  • Security4688Process creation with the full command line, when command-line auditing is enabled.
  • Sysmon1Process creation with command line, hashes and parent process.
  • Sysmon7Image loaded, showing the DLL that rundll32 loaded.
  • Sysmon10Process access to lsass.exe when rundll32 reads LSASS memory.

Community detections

62 SigmaHQ rules for rundll32.exe. The explainer checks every pasted command line against all of them.

  • Critical
    Sticky Key Like Backdoor Execution

    Detects the usage and installation of a backdoor that uses an option to register a malicious debugger for built-in tools that are accessible in the login screen

    T1546.008by Florian Roth (Nextron Systems), @twjackomo, Jonhnathan Ribeiro, oscd.community

  • High
    Bad Opsec Defaults Sacrificial Processes With Improper Arguments

    Detects attackers using tooling with bad opsec defaults. E.g. spawning a sacrificial process to inject a capability into the process without taking into account how the process is normally run. One trivial example of this is using rundll32.exe without arguments as a sacrificial process (default in CS, now highlighted by c2lint), running WerFault without arguments (Kraken - credit am0nsec), and…

    T1218.011by Oleg Kolesnikov @securonix invrep_de, oscd.community, Florian Roth (Nextron Systems), Christian Burkard (Nextron Systems)

  • High
    CobaltStrike Load by Rundll32

    Rundll32 can be use by Cobalt Strike with StartW function to load DLLs from the command line.

    T1218.011by Wojciech Lesicki

  • High
    HackTool - RedMimicry Winnti Playbook Execution

    Detects actions caused by the RedMimicry Winnti playbook a automated breach emulations utility

    T1106T1059.003T1218.011by Alexander Rausch

  • High
    HTML Help HH.EXE Suspicious Child Process

    Detects a suspicious child process of a Microsoft HTML Help (HH.exe)

    T1047T1059.001T1059.003T1059.005by Maxim Pavlunin, Nasreddine Bencherchali (Nextron Systems)

  • High
    Potential Defense Evasion Via Rename Of Highly Relevant Binaries

    Detects the execution of a renamed binary often used by attackers or malware leveraging new Sysmon OriginalFileName datapoint.

    T1036.003by Matthew Green - @mgreen27, Florian Roth (Nextron Systems), frack113

  • High
    Potential PowerShell Execution Via DLL

    Detects potential PowerShell execution from a DLL instead of the usual PowerShell process as seen used in PowerShdll. This detection assumes that PowerShell commands are passed via the CommandLine.

    T1218.011by Markus Neis, Nasreddine Bencherchali (Nextron Systems)

  • High
    Potential Renamed Rundll32 Execution

    Detects when 'DllRegisterServer' is called in the commandline and the image is not rundll32. This could mean that the 'rundll32' utility has been renamed in order to avoid detection

    by Nasreddine Bencherchali (Nextron Systems)

  • High
    Potential Rundll32 Execution With DLL Stored In ADS

    Detects execution of rundll32 where the DLL being called is stored in an Alternate Data Stream (ADS).

    T1564.004by Harjot Singh, '@cyb3rjy0t'

  • High
    Potentially Suspicious Execution From Parent Process In Public Folder

    Detects a potentially suspicious execution of a parent process located in the "\Users\Public" folder executing a child process containing references to shell or scripting binaries and commandlines.

    T1564T1059by Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)

  • High
    Process Memory Dump Via Comsvcs.DLL

    Detects a process memory dump via "comsvcs.dll" using rundll32, covering multiple different techniques (ordinal, minidump function, etc.)

    T1036T1003.001by Florian Roth (Nextron Systems), Modexp, Nasreddine Bencherchali (Nextron Systems), Swachchhanda Shrawan Poudel (Nextron Systems)

  • High
    Rundll32 Registered COM Objects

    load malicious registered COM objects

    T1546.015by frack113

  • High
    Rundll32 UNC Path Execution

    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.

    T1021.002T1218.011by Nasreddine Bencherchali (Nextron Systems)

  • High
    Script Event Consumer Spawning Process

    Detects a suspicious child process of Script Event Consumer (scrcons.exe).

    T1047by Sittikorn S

  • High
    Sdiagnhost Calling Suspicious Child Process

    Detects sdiagnhost.exe calling a suspicious child process (e.g. used in exploits for Follina / CVE-2022-30190)

    T1036T1218by Nextron Systems, @Kostastsale

  • High
    Shell32 DLL Execution in Suspicious Directory

    Detects shell32.dll executing a DLL in a suspicious directory

    T1218.011by Christian Burkard (Nextron Systems)

  • High
    Suspicious Advpack Call Via Rundll32.EXE

    Detects execution of "rundll32" calling "advpack.dll" with potential obfuscated ordinal calls in order to leverage the "RegisterOCX" function

    by Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)

  • High
    Suspicious ArcSOC.exe Child Process

    Detects script interpreters, command-line tools, and similar suspicious child processes of ArcSOC.exe. ArcSOC.exe is the process name which hosts ArcGIS Server REST services. If an attacker compromises an ArcGIS Server system and uploads a malicious Server Object Extension (SOE), they can send crafted requests to the corresponding service endpoint and remotely execute code from the ArcSOC.exe…

    T1059T1203by Micah Babinski

  • High
    Suspicious BitLocker Access Agent Update Utility Execution

    Detects the execution of the BitLocker Access Agent Update Utility (baaupdate.exe) which is not a common parent process for other processes. Suspicious child processes spawned by baaupdate.exe could indicate an attempt at lateral movement via BitLocker DCOM & COM Hijacking.

    T1218T1021.003by andrewdanis, Swachchhanda Shrawan Poudel (Nextron Systems)

  • High
    Suspicious Child Process Created as System

    Detection of child processes spawned with SYSTEM privileges by parents with LOCAL SERVICE or NETWORK SERVICE accounts

    T1134.002by Teymur Kheirkhabarov, Roberto Rodriguez (@Cyb3rWard0g), Open Threat Research (OTR)

  • High
    Suspicious Child Process Of SQL Server

    Detects suspicious child processes of the SQLServer process. This could indicate potential RCE or SQL Injection.

    T1505.003T1190by FPT.EagleEye Team, wagga

  • High
    Suspicious Child Process Of Wermgr.EXE

    Detects suspicious Windows Error Reporting manager (wermgr.exe) child process

    T1055T1036by Florian Roth (Nextron Systems)

  • High
    Suspicious Control Panel DLL Load

    Detects suspicious Rundll32 execution from control.exe as used by Equation Group and Exploit Kits

    T1218.011by Florian Roth (Nextron Systems)

  • High
    Suspicious Key Manager Access

    Detects the invocation of the Stored User Names and Passwords dialogue (Key Manager)

    T1555.004by Florian Roth (Nextron Systems)

  • High
    Suspicious Microsoft Office Child Process

    Detects a suspicious process spawning from one of the Microsoft Office suite products (Word, Excel, PowerPoint, Publisher, Visio, etc.)

    T1047T1204.002T1218.010by Florian Roth (Nextron Systems), Markus Neis, FPT.EagleEye Team, Vadim Khrykov, Cyb3rEng, Michael Haag, Christopher Peacock @securepeacock, @scythe_io

  • High
    Suspicious Microsoft OneNote Child Process

    Detects suspicious child processes of the Microsoft OneNote application. This may indicate an attempt to execute malicious embedded objects from a .one file.

    T1566T1566.001by Tim Rauch (Nextron Systems), Nasreddine Bencherchali (Nextron Systems), Elastic (idea)

  • High
    Suspicious NTLM Authentication on the Printer Spooler Service

    Detects a privilege elevation attempt by coercing NTLM authentication on the Printer Spooler service

    T1212by Elastic (idea), Tobias Michalski (Nextron Systems)

  • High
    Suspicious Process By Web Server Process

    Detects potentially suspicious processes being spawned by a web server process which could be the result of a successfully placed web shell or exploitation

    T1505.003T1190by Thomas Patzke, Florian Roth (Nextron Systems), Zach Stanford @svch0st, Tim Shelton, Nasreddine Bencherchali (Nextron Systems)

  • High
    Suspicious Processes Spawned by Java.EXE

    Detects suspicious processes spawned from a Java host process which could indicate a sign of exploitation (e.g. log4j)

    by Andreas Hunkeler (@Karneades), Florian Roth

  • High
    Suspicious Provlaunch.EXE Child Process

    Detects suspicious child processes of "provlaunch.exe" which might indicate potential abuse to proxy execution.

    T1218by Nasreddine Bencherchali (Nextron Systems)

  • High
    Suspicious Rundll32 Execution With Image Extension

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

    T1218.011by Hieu Tran

  • High
    Suspicious Serv-U Process Pattern

    Detects a suspicious process pattern which could be a sign of an exploited Serv-U service

    T1555by Florian Roth (Nextron Systems)

  • High
    Suspicious Shells Spawn by Java Utility Keytool

    Detects suspicious shell spawn from Java utility keytool process (e.g. adselfservice plus exploitation)

    by Andreas Hunkeler (@Karneades)

  • High
    Suspicious Spool Service Child Process

    Detects suspicious print spool service (spoolsv.exe) child processes.

    T1203T1068by Justin C. (@endisphotic), @dreadphones (detection), Thomas Patzke (Sigma rule)

  • High
    Suspicious WebDav Client Execution Via Rundll32.EXE

    Detects "svchost.exe" spawning "rundll32.exe" with command arguments like C:\windows\system32\davclnt.dll,DavSetCookie. This could be an indicator of exfiltration or use of WebDav to launch code (hosted on WebDav Server) or potentially a sign of exploitation of CVE-2023-23397

    T1048.003by Nasreddine Bencherchali (Nextron Systems), Florian Roth (Nextron Systems)

  • High
    Suspicious WmiPrvSE Child Process

    Detects suspicious and uncommon child processes of WmiPrvSE

    T1047T1204.002T1218.010by Vadim Khrykov (ThreatIntel), Cyb3rEng, Florian Roth (Nextron Systems)

  • High
    System File Execution Location Anomaly

    Detects the execution of a Windows system binary that is usually located in the system folder from an uncommon location.

    T1036by Florian Roth (Nextron Systems), Patrick Bareiss, Anton Kutepov, oscd.community, Nasreddine Bencherchali (Nextron Systems)

  • High
    VMToolsd Suspicious Child Process

    Detects suspicious child process creations of VMware Tools process which may indicate persistence setup

    T1059by bohops, Bhabesh Raj

  • Medium
    Code Execution via Pcwutl.dll

    Detects launch of executable by calling the LaunchApplication function from pcwutl.dll library.

    T1218.011by Julia Fomina, oscd.community

  • Medium
    Cscript/Wscript Potentially Suspicious Child Process

    Detects potentially suspicious child processes of Wscript/Cscript. These include processes such as rundll32 with uncommon exports or PowerShell spawning rundll32 or regsvr32. Malware such as Pikabot and Qakbot were seen using similar techniques as well as many others.

    by Nasreddine Bencherchali (Nextron Systems), Alejandro Houspanossian ('@lekz86')

  • Medium
    LOLBIN Execution From Abnormal Drive

    Detects LOLBINs executing from an abnormal or uncommon drive such as a mounted ISO.

    by Christopher Peacock '@securepeacock', SCYTHE '@scythe_io', Angelo Violetti - SEC Consult '@angelo_violetti', Aaron Herman

  • Medium
    Potential Obfuscated Ordinal Call Via Rundll32

    Detects execution of "rundll32" with potential obfuscated ordinal calls

    T1027.010by Nasreddine Bencherchali (Nextron Systems), Swachchhanda Shrawan Poudel (Nextron Systems)

  • Medium
    Potential Provlaunch.EXE Binary Proxy Execution Abuse

    Detects child processes of "provlaunch.exe" which might indicate potential abuse to proxy execution.

    T1218by Nasreddine Bencherchali (Nextron Systems), Swachchhanda Shrawan Poudel

  • Medium
    Potential ShellDispatch.DLL Functionality Abuse

    Detects potential "ShellDispatch.dll" functionality abuse to execute arbitrary binaries via "ShellExecute"

    by X__Junior (Nextron Systems)

  • Medium
    Potentially Suspicious Child Process Of ClickOnce Application

    Detects potentially suspicious child processes of a ClickOnce deployment application

    by Nasreddine Bencherchali (Nextron Systems)

  • Medium
    Potentially Suspicious Child Process Of DiskShadow.EXE

    Detects potentially suspicious child processes of "Diskshadow.exe". This could be an attempt to bypass parent/child relationship detection or application whitelisting rules.

    T1218by Nasreddine Bencherchali (Nextron Systems)

  • Medium
    Potentially Suspicious Child Process of KeyScrambler.exe

    Detects potentially suspicious child processes of KeyScrambler.exe

    T1203T1574.001by Swachchhanda Shrawan Poudel

  • Medium
    Potentially Suspicious Child Process Of VsCode

    Detects uncommon or suspicious child processes spawning from a VsCode "code.exe" process. This could indicate an attempt of persistence via VsCode tasks or terminal profiles.

    T1218T1202by Nasreddine Bencherchali (Nextron Systems)

  • Medium
    Potentially Suspicious Child Process Of WinRAR.EXE

    Detects potentially suspicious child processes of WinRAR.exe.

    T1203by Nasreddine Bencherchali (Nextron Systems)

  • Medium
    Potentially Suspicious Execution Of PDQDeployRunner

    Detects suspicious execution of "PDQDeployRunner" which is part of the PDQDeploy service stack that is responsible for executing commands and packages on a remote machines

    by Nasreddine Bencherchali (Nextron Systems)

  • Medium
    Potentially Suspicious Rundll32.EXE Execution of UDL File

    Detects the execution of rundll32.exe with the oledb32.dll library to open a UDL file. Threat actors can abuse this technique as a phishing vector to capture authentication credentials or other sensitive data.

    T1218.011T1071by @kostastsale

  • Medium
    Potentially Suspicious Windows App Activity

    Detects potentially suspicious child process of applications launched from inside the WindowsApps directory. This could be a sign of a rogue ".appx" package installation/execution

    by Nasreddine Bencherchali (Nextron Systems)

  • Medium
    Remote Access Tool - ScreenConnect Potential Suspicious Remote Command Execution

    Detects potentially suspicious child processes launched via the ScreenConnect client service.

    T1219.002by Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems), @Kostastsale

  • Medium
    Rundll32 Execution With Uncommon DLL Extension

    Detects the execution of rundll32 with a command line that doesn't contain a common extension

    T1218.011by Tim Shelton, Florian Roth (Nextron Systems), Yassine Oukessou

  • Medium
    Rundll32 InstallScreenSaver Execution

    An attacker may execute an application as a SCR File using rundll32.exe desk.cpl,InstallScreenSaver

    T1218.011by Christopher Peacock @securepeacock, SCYTHE @scythe_io, TactiKoolSec

  • Medium
    Rundll32 Spawned Via Explorer.EXE

    Detects execution of "rundll32.exe" with a parent process of Explorer.exe. This has been observed by variants of Raspberry Robin, as first reported by Red Canary.

    by CD_ROM_

  • Medium
    Suspicious WindowsTerminal Child Processes

    Detects suspicious children spawned via the Windows Terminal application which could be a sign of persistence via WindowsTerminal (see references section)

    by Nasreddine Bencherchali (Nextron Systems)

  • Medium
    Suspicious Workstation Locking via Rundll32

    Detects a suspicious call to the user32.dll function that locks the user workstation

    by frack113

  • Medium
    Uncommon Child Process Of Appvlp.EXE

    Detects uncommon child processes of Appvlp.EXE Appvlp or the Application Virtualization Utility is included with Microsoft Office. Attackers are able to abuse "AppVLP" to execute shell commands. Normally, this binary is used for Application Virtualization, but it can also be abused to circumvent the ASR file path rule folder or to mark a file as a system file.

    T1218by Sreeman

  • Medium
    Uncommon Child Processes Of SndVol.exe

    Detects potentially uncommon child processes of SndVol.exe (the Windows volume mixer)

    by X__Junior (Nextron Systems)

  • Medium
    WebDav Client Execution Via Rundll32.EXE

    Detects "svchost.exe" spawning "rundll32.exe" with command arguments like "C:\windows\system32\davclnt.dll,DavSetCookie". This could be an indicator of exfiltration or use of WebDav to launch code (hosted on a WebDav server).

    T1048.003by Roberto Rodriguez (Cyb3rWard0g), OTR (Open Threat Research)

  • Medium
    WSL Child Process Anomaly

    Detects uncommon or suspicious child processes spawning from a WSL process. This could indicate an attempt to evade parent/child relationship detections or persistence attempts via cron using WSL

    T1218T1202by Nasreddine Bencherchali (Nextron Systems)

Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.

Phishing context