Malicious Mshta Execution of Remote or Inline Script (via process_creation)

PremiumReviewedSigma · High · v1
Product
windows
Category
process_creation
Author
HuntRule
Published
2026-11-09
Updated
2026-11-09

ATT&CK techniques

Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. Collection

  12. C2

  13. Exfiltration

  14. Impact

What it detects

This rule detects mshta.exe executing a remote HTA/URL or inline vbscript/javascript rather than a local application file. Mshta is a recurring System Binary Proxy Execution technique in the Red Canary Threat Detection Report, abused to fetch and run script payloads under a trusted Microsoft binary while evading allowlisting. Catching remote and script-protocol invocations flags the proxy-execution behavior early.

Related detections9 linkedT1218.005 — drag to rearrange
Malicious mshta Execution of Remote HTA from Run Dialog via ClickFix Lure (via process_creation)
Mshta Executing from Registry
In-Memory Remote HTA Execution via mshta Consistent with Emmenthal Loader (via process_creation)
ClickFix Remote HTA Execution via Run Dialog (via process_creation)
Malicious mshta Execution Spawned by PHP-CGI (CVE-2024-4577)
Suspicious Mshta Spawned From Explorer Command Chain
Malicious Rundll32 RunHTMLApplication Remote Execution
Suspicious Mshta Execution From AppData Directory
Malicious mshta Inline JavaScript GetObject Scriptlet Execution
Malicious Mshta Execution of Remote or Inline Script (via process_creation)
Pivot detection · T1218.005 · 9 related

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.