Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Adversaries may abuse Compiled HTML files (.chm) to conceal malicious code.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-12 | ✗→✓ | ▲ Improved | 48% | 0% |
| case-13 | ✗→✓ | ▲ Improved | -6% | 0% |
| case-14 | ✗→✓ | ▲ Improved | -33% | 0% |
| case-17 | ✗→✓ | ▲ Improved | -26% | 0% |
| case-18 | ✗→✓ | ▲ Improved | -15% | 0% |
> Sub-technique of: T1218
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.
Platforms: Windows
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
Uses hh.exe to execute a local compiled HTML Help payload. Upon execution calc.exe will open
Supported Platforms: windows
cmdhh.exe "#{local_chm_file}"
Dependencies:
Uses hh.exe to execute a remote compiled HTML Help payload. Upon execution displays an error saying the file cannot be open
Supported Platforms: windows
cmdhh.exe #{remote_chm_file}
Executes a CHM file with the default Shortcut Command method.
Supported Platforms: windows
powershellInvoke-ATHCompiledHelp -HHFilePath #{hh_file_path} -CHMFilePath #{chm_file_path}
Dependencies:
Executes a CHM file with the ITS protocol handler.
Supported Platforms: windows
powershellInvoke-ATHCompiledHelp -InfoTechStorageHandler #{infotech_storage_handler} -HHFilePath #{hh_file_path} -CHMFilePath #{chm_file_path}
Dependencies:
Executes a CHM file simulating a user double click.
Supported Platforms: windows
powershellInvoke-ATHCompiledHelp -SimulateUserDoubleClick -CHMFilePath #{chm_file_path}
Dependencies:
If Atomic Red Team tests are not applicable, manually verify the technique by:
Consider blocking download/transfer and execution of potentially uncommon file types known to be used in adversary campaigns, such as CHM files
Consider using application control to prevent execution of hh.exe if it is not required for a given system or network to prevent potential misuse by adversaries.
| Finding | Severity | Impact | | --------------------------------------- | -------- | --------------- | | Compiled HTML File technique applicable | Low | Defense Evasion |
| CWE ID | Title | | ------- | ---------------------------- | | CWE-693 | Protection Mechanism Failure |
Other measured skills in the registry, with their headline benchmark lift.