T1218.001 Sumo Logic CSE · Sumo

Detect Compiled HTML File in Sumo Logic CSE

Adversaries may abuse Compiled HTML files (.chm) to conceal malicious code. CHM files are commonly distributed as part of the Microsoft HTML Help system and are compressed compilations of HTML documents, images, and scripting languages such as VBA, JScript, Java, and ActiveX. CHM content is displayed using underlying components of the Internet Explorer browser loaded by the HTML Help executable program (hh.exe). A custom CHM file containing embedded payloads could be delivered to a victim then triggered by User Execution. CHM execution may also bypass application control on older and/or unpatched systems. Groups known to abuse CHM files include OilRig, Dark Caracal, Silence, APT41, and APT38.

MITRE ATT&CK

Tactic
Defense Evasion
Technique
T1218 System Binary Proxy Execution
Sub-technique
T1218.001 Compiled HTML File
Canonical reference
https://attack.mitre.org/techniques/T1218/001/

Sumo Detection Query

Sumo Logic CSE (Sumo)
sql
(_sourceCategory="windows/sysmon" OR _sourceCategory="windows/security" OR _sourceCategory="endpoint/process")
| where EventID in ("1", "4688")
| where (%"Image" matches "*\\hh.exe" OR %"ParentImage" matches "*\\hh.exe")
| if (%"ParentImage" matches "*(winword|excel|outlook|powerpnt|cmd|wscript|cscript|mshta).exe", 1, 0) as suspicious_parent
| if (%"CommandLine" matches "*(http://|https://|ms-its:|mk:@MSITStore)*", 1, 0) as remote_load
| if (
    %"Image" matches "*(cmd|powershell|wscript|cscript|mshta|rundll32|regsvr32|certutil).exe"
    AND %"ParentImage" matches "*\\hh.exe",
    1, 0
  ) as suspicious_child
| toInt(suspicious_parent) + toInt(remote_load) + toInt(suspicious_child) as risk_score
| where risk_score > 0 OR %"ParentImage" matches "*\\hh.exe"
| fields _messageTime, _sourceHost, %"User", %"Image", %"CommandLine", %"ParentImage", %"ParentCommandLine", suspicious_parent, remote_load, suspicious_child, risk_score
| sort by _messageTime desc
high severity medium confidence

Sumo Logic CSE detection for T1218.001 CHM file abuse via hh.exe. Queries Windows Sysmon (EventID 1) or Security (EventID 4688) process creation events to identify hh.exe invoked with remote loading indicators or suspicious parent processes, as well as hh.exe spawning known LOLBin processes. Risk scoring enables prioritization of high-confidence events versus lower-fidelity signal that may warrant hunting context.

Data Sources

Sumo Logic Installed Collector (Windows)Sysmon via Windows Event Forwarding to Sumo LogicSumo Logic Cloud SIEM Enterprise normalized process events

Required Tables

windows/sysmonwindows/securityendpoint/process

False Positives & Tuning

  • Windows Help system legitimately invoked by users opening .chm files associated with installed applications like Visual Studio, SQL Server Management Studio, or vendor-provided documentation
  • Software deployment scripts that use cmd.exe to launch hh.exe as part of an automated product tour or onboarding workflow during application setup
  • Technical writing or documentation toolchains where CHM compilation and preview tools programmatically invoke hh.exe from build automation scripts
Download portable Sigma rule (.yml)

Other platforms for T1218.001


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 1CHM Execution via hh.exe with Embedded Script

    Expected signal: Sysmon Event ID 1: Process Create with Image=hh.exe, CommandLine containing 'ms-its:' and '.chm'. Security Event ID 4688 if command line auditing is enabled. Any child process creation (if CHM contains script) will also appear as Sysmon Event ID 1 with ParentImage=hh.exe.

  2. Test 2CHM File Spawning PowerShell

    Expected signal: Sysmon Event ID 1 for hh.exe, then a child Sysmon Event ID 1 for powershell.exe with ParentImage=hh.exe. The suspicious child process relationship is the primary detection indicator. Security Event ID 4688 for both processes if command line auditing is on.

  3. Test 3CHM File Opened from Email Attachment Location

    Expected signal: Sysmon Event ID 11: File Create in the Outlook temp path. Sysmon Event ID 1: hh.exe with the Outlook temp path in its command line. File System: CHM file written to Content.Outlook directory.

Unlock Pro Content

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

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections