T1218.012 Elastic Security · Elastic

Detect Verclsid in Elastic Security

Adversaries may abuse verclsid.exe to proxy execution of malicious code. Verclsid.exe (Extension CLSID Verification Host) is responsible for verifying each shell extension before it is used by Windows Explorer or the Windows Shell. Adversaries can register a malicious COM object under a CLSID and then invoke verclsid.exe with that CLSID to trigger execution. Since verclsid.exe is signed by Microsoft and performs legitimate COM verification activities, it can bypass application control solutions. Hancitor malware is a known user of this technique.

MITRE ATT&CK

Tactic
Defense Evasion
Technique
T1218 System Binary Proxy Execution
Sub-technique
T1218.012 Verclsid
Canonical reference
https://attack.mitre.org/techniques/T1218/012/

Elastic Detection Query

Elastic Security (Elastic)
eql
sequence by host.id with maxspan=5m
  [process where event.type == "start" and
   (process.name : "verclsid.exe" or process.parent.name : "verclsid.exe") and
   (
     process.args : ("{????????-????-????-????-????????????}") or
     process.parent.name : ("cmd.exe", "powershell.exe", "wscript.exe", "cscript.exe", "mshta.exe", "winword.exe", "excel.exe", "outlook.exe") or
     process.args : ("/s", "/c")
   )
  ] by process.entity_id
  [process where event.type == "start" and
   process.parent.name : "verclsid.exe" and
   process.name : ("cmd.exe", "powershell.exe", "wscript.exe", "cscript.exe", "mshta.exe")
  ] by process.parent.entity_id
high severity high confidence

Detects abuse of verclsid.exe for proxy execution of malicious COM objects (T1218.012). Looks for verclsid.exe launched with CLSID arguments from suspicious parent processes, as well as child processes spawned from verclsid.exe indicating successful payload execution.

Data Sources

Elastic Endpoint SecurityWinlogbeat with SysmonElastic Agent (Windows)

Required Tables

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

False Positives & Tuning

  • Legitimate shell extension verification by Windows Explorer during normal COM registration or shell integration testing by software installers
  • Security scanning tools or shell extension validators that invoke verclsid.exe programmatically with CLSID parameters during audits
  • Software deployment tools that register COM objects and use verclsid.exe to verify them as part of installation scripts
Download portable Sigma rule (.yml)

Other platforms for T1218.012


Testing Methodology

Validate this detection against 3 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 1Verclsid Execution with CLSID Argument

    Expected signal: Sysmon Event ID 1: verclsid.exe with /S /C and CLSID in command line. Security Event ID 4688. The process will attempt to load the COM object registered for this CLSID.

  2. Test 2Verclsid Launched from cmd.exe

    Expected signal: Sysmon Event ID 1: cmd.exe then verclsid.exe with ParentImage=cmd.exe. HasCLSID, ForcedExec, and SuspiciousParent all fire.

  3. Test 3Malicious COM CLSID Registration for Verclsid Abuse

    Expected signal: Sysmon Event ID 13 (Registry Value Set): HKCU\Software\Classes\CLSID path with Temp DLL path as data. The COM registration hunting query captures this as a malicious InprocServer32 pointing to a temp directory.

Unlock Pro Content

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

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections