T1218 Elastic Security · Elastic

Detect System Binary Proxy Execution in Elastic Security

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/

Elastic Detection Query

Elastic Security (Elastic)
eql
process where event.type == "start" and
  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", "syncappvpublishingserver.exe", "appsyncpublishingserver.exe") and
  (
    process.parent.name in~ ("winword.exe", "excel.exe", "powerpnt.exe", "outlook.exe", "onenote.exe", "msaccess.exe", "mspub.exe", "visio.exe", "wscript.exe", "cscript.exe", "mshta.exe", "cmd.exe", "powershell.exe", "pwsh.exe", "explorer.exe") or
    process.command_line like~ "*http://*" or process.command_line like~ "*https://*" or process.command_line like~ "*ftp://*" or
    process.command_line like~ "*.sct*" or process.command_line like~ "*.hta*" or process.command_line like~ "*.vbs*" or process.command_line like~ "*.wsf*" or process.command_line like~ "scrobj*" or
    (process.name =~ "regsvr32.exe" and (process.command_line like~ "*/s*" or process.command_line like~ "*/i:*" or process.command_line like~ "*scrobj*")) or
    (process.name =~ "mshta.exe" and (process.command_line like~ "*.hta*" or process.command_line like~ "*javascript:*" or process.command_line like~ "*vbscript:*")) or
    (process.name =~ "rundll32.exe" and (process.command_line like~ "*javascript:*" or process.command_line like~ "*shell32.dll*" or process.command_line like~ "*advpack.dll*" or process.command_line like~ "*ieadvpack.dll*" or process.command_line like~ "*syssetup.dll*")) or
    (process.name =~ "cmstp.exe" and (process.command_line like~ "*/s*" or process.command_line like~ "*/ns*" or process.command_line like~ "*.inf*")) or
    (process.name =~ "installutil.exe" and (process.command_line like~ "*/logfile=*" or process.command_line like~ "*/LogToConsole=*" or process.command_line like~ "*/U*")) or
    (process.name =~ "wuauclt.exe" and process.command_line like~ "*UpdateDeploymentProvider*") or
    (process.name =~ "odbcconf.exe" and (process.command_line like~ "*/a*" or process.command_line like~ "*regsvr*" or process.command_line like~ "*.rsp*"))
  )
high severity high confidence

Detects abuse of trusted Windows LOLBins for proxy execution (T1218). Triggers on LOLBin execution with suspicious parent processes, remote URLs, script extensions, or technique-specific command-line patterns (Regsvr32 bypass, MSHTA HTA, RunDLL32 script, CMSTP INF, InstallUtil bypass, Wuauclt DLL sideload, ODBCConf RSP).

Data Sources

Elastic EndpointWinlogbeat with Sysmon

Required Tables

logs-endpoint.events.process-*winlogbeat-*

False Positives & Tuning

  • Legitimate IT administrative use of msiexec.exe or rundll32.exe for software deployment via SCCM/Intune from cmd.exe or powershell.exe parent
  • Developer tooling such as InstallUtil.exe used during .NET application installation or CI/CD pipelines
  • Security tools or EDR agents that invoke regsvr32.exe or regasm.exe to register COM components during install or update
Download portable Sigma rule (.yml)

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.

  1. 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.

  2. 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%.

  3. 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.

  4. 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.

  5. 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.

Unlock Pro Content

Get the full detection package for T1218 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections