Abuse of Microsoft HTML Help via InfoTech Storage Handlers
Attackers abuse the Microsoft HTML Help utility (hh.exe) to execute arbitrary code or scripts by loading malicious Compiled HTML Help (CHM) files via InfoTech Storage Handlers.
The Microsoft HTML Help utility, hh.exe, is a legitimate binary intended to display help files in the Compiled HTML Help (CHM) format. Threat actors frequently abuse this utility as a "Living off the Land" (LotL) technique to execute arbitrary code or scripts embedded within malicious CHM files. By leveraging the InfoTech Storage (its:) or MSITStore handlers, an attacker can force hh.exe to load a remote or locally stored CHM file containing malicious content. This technique is often used to bypass traditional security controls that monitor for more common executable formats. If successful, this activity can facilitate initial access, persistence, or privilege escalation within a Windows environment. Detection of this activity requires monitoring command-line arguments for specific handlers associated with HTML Help.
Attack Chain
- Attacker crafts a malicious CHM file containing obfuscated script code or embedded payloads.
- Attacker delivers the CHM file to the victim system via email attachment, direct download, or a link.
- Victim or automated process triggers the execution of hh.exe.
- The command-line utilizes the 'its:' or 'mk:@MSITStore:' protocol handler to reference the malicious CHM file.
- The hh.exe process interprets the handler and initiates the loading of the embedded script or payload.
- The script code executes within the context of the hh.exe process, potentially leading to further compromise.
- Attacker achieves persistence, privilege escalation, or exfiltration based on the payload's intent.
Impact
Successful abuse of HTML Help allows for the execution of arbitrary code, enabling attackers to maintain persistence, escalate privileges, or execute secondary payloads. This technique has been observed in various campaigns, including those attributed to groups like APT37, to facilitate the execution of malware such as FadeStealer or Rustonotto.
Recommendation
Prioritize the identification of suspicious hh.exe execution patterns in endpoint telemetry.
- Deploy the Sigma rule provided in this brief to detect instances of hh.exe using InfoTech Storage Handlers.
- Enable Sysmon or equivalent EDR process-creation logging to capture command-line arguments, specifically looking for the 'its:' and 'mk:@MSITStore:' strings.
- Audit the use of CHM files in the environment, particularly those originating from untrusted external sources.
Immediate actions
Deploy Sigma detection rule to SIEM/EDR environment.
Threat Hunt
Search for hh.exe execution with 'its:' or 'mk:@MSITStore:' in command lines.
Data: process_creation_logs
Mitigations
Monitor and restrict usage of .chm files via GPO or application control if not required for business.
T1218.001
Detection coverage 1
Detect HTML Help Using InfoTech Storage Handlers
mediumDetects the execution of hh.exe using InfoTech Storage Handlers (its: or mk:@MSITStore:) to load CHM files, which is a known method for executing arbitrary code.
Detection queries are available on the platform. Get full rules →