T1218.005 Mshta
Stealthon attack.mitre.org
ATT&CK Enterprise 20.0 · 20.1 released, update in review
How MITRE detects it
DET0506 Detecting Mshta-based Proxy Execution via Suspicious HTA or Script Invocation
AN1397 Windows
Detection of mshta.exe execution where command-line arguments reference remote or local HTA/script content (VBScript/JScript) followed by subsequent file creation, network retrieval, or process spawning that indicates payload execution outside standard Internet Explorer security context. Correlation includes parent process lineage, command-line inspection, and network connection creation to untrusted or anomalous endpoints.
| MITRE log source | In Microsoft Sentinel |
|---|---|
WinEventLog:SecurityEventCode=4688 |
The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only. |
WinEventLog:SysmonEventCode=3, 22 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
WinEventLog:SysmonEventCode=11 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
Content Hub rules tagged with it (1)
How the Content Hub rules for T1218.005 are built: their tables, filters, joins, schedules and windows.
In Sigma rules
8 SigmaHQ community rules name it in their tags.
- Csc.EXE Execution Form Potentially Suspicious Parent
- HackTool - CACTUSTORCH Remote Thread Creation
- MSHTA Execution with Suspicious File Extensions
- Potential Baby Shark Malware Activity
- Potential LethalHTA Technique Execution
- Remotely Hosted HTA File Executed Via Mshta.EXE
- Suspicious JavaScript Execution Via Mshta.EXE
- Suspicious MSHTA Child Process
Mitigations
MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.