Detect System Binary Proxy Execution in Sumo Logic CSE
Adversaries may bypass process and/or signature-based defenses by proxying execution of malicious content with signed, or otherwise trusted, binaries. Binaries used in this technique are often Microsoft-signed files, indicating that they have been either downloaded from Microsoft or are already native in the operating system. Several Microsoft-signed binaries that are default on Windows installations can be used to proxy execution of other files or commands. Sub-techniques include abuse of mshta.exe, rundll32.exe, regsvr32.exe, msiexec.exe, cmstp.exe, installutil.exe, regsvcs.exe, regasm.exe, odbcconf.exe, verclsid.exe, mavinject.exe, control.exe (Control Panel), compiled HTML files (hh.exe), MMC snap-ins, Electron applications, and wuauclt.exe. On Linux, trusted binaries such as split may be abused similarly. Real-world usage includes Lazarus Group abusing wuauclt.exe to execute malicious DLLs and Volt Typhoon broadly leveraging LOLBins to maintain and expand network access.
MITRE ATT&CK
- Tactic
- Defense Evasion
- Technique
- T1218 System Binary Proxy Execution
- Canonical reference
- https://attack.mitre.org/techniques/T1218/
Sumo Detection Query
_sourceCategory=windows/sysmon
| where EventID = "1"
| parse regex field=Image "(?<process_name>[^\\\\]+)$"
| parse regex field=ParentImage "(?<parent_process_name>[^\\\\]+)$"
| where process_name in ("mshta.exe", "rundll32.exe", "regsvr32.exe", "msiexec.exe", "cmstp.exe", "installutil.exe", "regsvcs.exe", "regasm.exe", "odbcconf.exe", "verclsid.exe", "mavinject.exe", "hh.exe", "wuauclt.exe", "mmc.exe", "xwizard.exe")
| toLowerCase(CommandLine) as cmd_lower
| toLowerCase(ParentImage) as parent_lower
| if (parent_lower matches "*(winword|excel|powerpnt|outlook|onenote|msaccess|mspub|visio|wscript|cscript|cmd|powershell).exe*", 1, 0) as is_office_parent
| if (cmd_lower matches "*(http://|https://|ftp://)*", 1, 0) as has_remote_url
| if (cmd_lower matches "*(.sct|.hta|.vbs|.wsf|.js|scrobj)*", 1, 0) as has_com_script
| if (process_name = "regsvr32.exe" and (cmd_lower matches "*(/s|/u|/i:|scrobj|sct)*"), 1, 0) as regsvr32_bypass
| if (process_name = "mshta.exe" and (cmd_lower matches "*(.hta|javascript:|vbscript:)*"), 1, 0) as mshta_sus
| if (process_name = "rundll32.exe" and (cmd_lower matches "*(javascript:|shell32|advpack|ieadvpack|syssetup)*"), 1, 0) as rundll32_sus
| if (process_name = "cmstp.exe" and (cmd_lower matches "*(/s|/ns|.inf)*"), 1, 0) as cmstp_inf
| if (process_name = "installutil.exe" and (cmd_lower matches "*(/logfile=|/logtoconsole=|/u)*"), 1, 0) as installutil_bypass
| if (process_name = "wuauclt.exe" and cmd_lower matches "*updatedeploymentprovider*", 1, 0) as wuauclt_dll
| if (process_name = "odbcconf.exe" and (cmd_lower matches "*(/a|-a|regsvr|.rsp)*"), 1, 0) as odbcconf_rsp
| toInt(is_office_parent) + toInt(has_remote_url) + toInt(has_com_script) + toInt(regsvr32_bypass) + toInt(mshta_sus) + toInt(rundll32_sus) + toInt(cmstp_inf) + toInt(installutil_bypass) + toInt(wuauclt_dll) + toInt(odbcconf_rsp) as suspicion_score
| where suspicion_score > 0
| fields _messageTime, Computer, User, process_name, CommandLine, parent_process_name, ParentCommandLine, is_office_parent, has_remote_url, regsvr32_bypass, mshta_sus, rundll32_sus, cmstp_inf, installutil_bypass, wuauclt_dll, odbcconf_rsp, suspicion_score
| sort by suspicion_score, _messageTime Sumo Logic detection for T1218 LOLBin proxy execution via Sysmon process creation logs. Parses process and parent image names, evaluates multiple suspicion indicators, and scores each event. High scores indicate multi-signal matches consistent with living-off-the-land proxy execution techniques.
Data Sources
Required Tables
False Positives & Tuning
- Automated patch management invoking msiexec.exe from cmd.exe or powershell.exe parent processes during maintenance windows
- Browser helper objects or COM component registration via regsvr32.exe triggered by legitimate software installers
- Enterprise management software (e.g., Tanium, BigFix) that uses rundll32.exe or wscript.exe to execute admin scripts
Other platforms for T1218
Testing Methodology
Validate this detection against 5 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1Regsvr32 SCT Scriptlet Remote Execution
Expected signal: Sysmon Event ID 1: Process Create with Image=regsvr32.exe, CommandLine containing '/s /n /u /i:http://127.0.0.1:8080/payload.sct scrobj.dll'. Sysmon Event ID 3: Network connection attempt to 127.0.0.1:8080 (connection will fail). Sysmon Event ID 7: Image Load for scrobj.dll from C:\Windows\System32.
- Test 2MSHTA Inline VBScript Execution
Expected signal: Sysmon Event ID 1: Process Create for mshta.exe with CommandLine containing 'vbscript:Execute'. Sysmon Event ID 1 child: cmd.exe spawned by mshta.exe. Sysmon Event ID 11: File creation of mshta_test.txt in %TEMP%.
- Test 3CMSTP INF File UAC Bypass and Execution
Expected signal: Sysmon Event ID 1: Process Create for cmstp.exe with CommandLine containing '/s' and path to .inf file. Sysmon Event ID 11: File creation for test.inf and cmstp_test.txt. Sysmon Event ID 1 child: cmd.exe spawned by cmstp.exe executing the RunPreSetupCommands action.
- Test 4InstallUtil CLR Bypass via /logfile Flag
Expected signal: Sysmon Event ID 1: Process Create for installutil.exe with CommandLine containing '/logfile=' and '/LogToConsole=false'. Sysmon Event ID 7: Image loads for CLR DLLs (clr.dll, mscorwks.dll). The command will fail against calc.exe (not a valid .NET assembly) but the process creation telemetry fires.
- Test 5Rundll32 JavaScript Execution
Expected signal: Sysmon Event ID 1: Process Create for rundll32.exe with CommandLine containing 'javascript:' and 'mshtml'. Sysmon Event ID 7: Image Load for mshtml.dll into rundll32.exe. Sysmon Event ID 1 child: cmd.exe spawned. Sysmon Event ID 11: File creation for rundll32_test.txt.
References (11)
- https://attack.mitre.org/techniques/T1218/
- https://github.com/LOLBAS-Project/LOLBAS
- https://gtfobins.github.io/gtfobins/split/
- https://learn.microsoft.com/en-us/defender-endpoint/attack-surface-reduction-rules-reference
- https://github.com/redcanaryco/atomic-red-team/tree/master/atomics/T1218
- https://github.com/SigmaHQ/sigma/tree/master/rules/windows/process_creation
- https://posts.specterops.io/documenting-and-attacking-a-windows-defender-application-control-feature-the-hard-way-a-case-study-in-applocker-bypass-8e0a5b9c89a1
- https://www.mandiant.com/resources/blog/the-risks-of-bypassing-uac-with-cmstp
- https://pentestlab.blog/2017/05/11/applocker-bypass-regsvr32/
- https://attack.mitre.org/groups/G0032/
- https://www.cisa.gov/sites/default/files/2024-02/aa24-038a-prc-state-sponsored-actors-compromise-us-critical-infrastructure_0.pdf
Unlock Pro Content
Get the full detection package for T1218 including response playbook, investigation guide, and atomic red team tests.