Compiled HTML File

T1218.001

Sub-technique of T1218 System Binary Proxy Execution.View on attack.mitre.org

About this technique

Adversaries may abuse Compiled HTML files (.chm) to conceal malicious code. CHM files are commonly distributed as part of the Microsoft HTML Help system. CHM files are compressed compilations of various content such as HTML documents, images, and scripting/web related programming languages such 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 application control on older and/or unpatched systems that do not account for execution of binaries through hh.exe.

Detection rules10

Rules on DetectionCode tagged with T1218.001.

Sigma5

RuleLevelLog source
HTML Help HH.EXE Suspicious Child Processhighwindows / process_creation
OneNote.EXE Execution of Malicious Embedded Scriptshighwindows / process_creation
Remote CHM File Download/Execution Via HH.EXEhighwindows / process_creation
Suspicious HH.EXE Executionhighwindows / process_creation
HH.EXE Executionlowwindows / process_creation

Splunk5

RuleTypeRiskData source
Detect HTML Help RenamedHuntingNULLSysmon EventID 1, Windows Event Log Security 4688, CrowdStrike ProcessRollup2
Detect HTML Help Spawn Child ProcessTTPNULLSysmon EventID 1, Windows Event Log Security 4688, CrowdStrike ProcessRollup2
Detect HTML Help URL in Command LineTTPNULLSysmon EventID 1, Windows Event Log Security 4688, CrowdStrike ProcessRollup2, Cisco Network Visibility Module Flow Data
Detect HTML Help Using InfoTech Storage HandlersTTPNULLSysmon EventID 1, Windows Event Log Security 4688, CrowdStrike ProcessRollup2
Windows System Binary Proxy Execution Compiled HTML File DecompileTTPNULLSysmon EventID 1, Windows Event Log Security 4688, CrowdStrike ProcessRollup2

Groups5

Software1

Campaigns0

None recorded.

Procedure examples6

Groups5

Used byProcedure example
GroupAPT38

APT38 has used CHM files to move concealed payloads.

GroupAPT41

APT41 used compiled HTML (.chm) files for targeting.

GroupDark Caracal

Dark Caracal leveraged a compiled HTML file that contained a command to download and run an executable.

GroupOilRig

OilRig has used a CHM payload to load and execute another malicious file once delivered to a victim.

GroupSilence

Silence has weaponized CHM files in their phishing campaigns.

Software1

Used byProcedure example
MalwareAstaroth

Astaroth uses ActiveX objects for file execution and manipulation.

References5

  1. Microsoft CVE-2017-8625 Aug 2017 Open source
    Microsoft. (2017, August 8). CVE-2017-8625 - Internet Explorer Security Feature Bypass Vulnerability. Retrieved October 3, 2018.
  2. Microsoft HTML Help ActiveX Open source
    Microsoft. (n.d.). HTML Help ActiveX Control Overview. Retrieved October 3, 2018.
  3. Microsoft HTML Help Executable Program Open source
    Microsoft. (n.d.). About the HTML Help Executable Program. Retrieved October 3, 2018.
  4. Microsoft HTML Help May 2018 Open source
    Microsoft. (2018, May 30). Microsoft HTML Help 1.4. Retrieved October 3, 2018.
  5. MsitPros CHM Aug 2017 Open source
    Moe, O. (2017, August 13). Bypassing Device guard UMCI using CHM – CVE-2017-8625. Retrieved October 3, 2018.

Data from MITRE ATT&CK® (Enterprise). ATT&CK® is a registered trademark of The MITRE Corporation.