T1218.005 · Mshta

Windows MSHTA Writing to World Writable Path

  • Windows
  • Confirmed Technique

About this detection

The following analytic identifies instances of mshta.exe writing files to world-writable directories. It leverages Sysmon EventCode 11 logs to detect file write operations by mshta.exe to directories like C:\Windows\Tasks and C:\Windows\Temp. This activity is significant as it often indicates an attempt to establish persistence or execute malicious code, deviating from the utility’s legitimate use. If confirmed malicious, this behavior could lead to the execution of multi-stage payloads, potentially resulting in full system compromise and unauthorized access to sensitive information.

Sysmon event coverage

  • FileCreate

Sysmon XML

Download XML

Loading configuration…