Suspicious Rundll32 Execution via Uncommon File Extensions
Adversaries may execute malicious payloads by leveraging rundll32.exe with non-standard file extensions to bypass simple filename-based security controls.
Rundll32.exe is a legitimate Windows utility designed to execute functions exported from DLL files. Threat actors frequently abuse this utility to execute arbitrary code while masquerading as legitimate system activity. Defenders often focus on monitoring standard DLL, CPL, or INF file extensions associated with rundll32. However, attackers can bypass these detections by renaming malicious payloads with uncommon extensions, allowing them to remain undetected by rules looking for specific file type signatures. This technique is a common method for initial execution or lateral movement during the post-exploitation phase of an attack.
Impact
Successful exploitation allows attackers to achieve arbitrary code execution on a compromised endpoint. This can lead to further malicious activity, such as privilege escalation, sensitive data exfiltration, or the installation of persistent implants, potentially impacting the entire host environment.
Recommendation
Detection teams should monitor process creation events involving rundll32.exe and flag command lines that do not reference expected file extensions like .dll, .cpl, or .inf.
- Deploy the provided Sigma rule to your SIEM to monitor for rundll32 execution with unusual extensions.
- Tune the exclusion list based on legitimate administrative or installer activity discovered in your baseline.
- Enable Sysmon or Windows Event ID 4688 to capture full process command line arguments.
Immediate actions
Deploy the Sigma detection rule to the SIEM.
Threat Hunt
Search historical process logs for rundll32 execution with file extensions other than .dll, .cpl, or .inf.
Data: Process command line arguments
Mitigations
Implement strict application control policies to restrict rundll32 execution paths.
T1218.011
Detection coverage 1
Detect Rundll32 Execution With Uncommon DLL Extension
mediumDetects the execution of rundll32 with a command line that does not contain common expected extensions, indicating potential masquerading.
Detection queries are available on the platform. Get full rules →