Windows mshta.exe Process Creation Triggered by Suspicious Command Lines

Alert on mshta.exe launches from suspicious parents and script-like command lines/paths.

FreeReviewedSigma · High · v1
Product
windows
Category
process_creation
Author
Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2021-07-17
Updated
2026-07-30

ATT&CK techniques

Execution
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Persistence

  5. Priv Esc

  6. Defense Evasion

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags suspicious process creation events where mshta.exe is executed, either by matching the mshta executable image/name or by specific command-line context. It focuses on risky parent processes (such as cmd.exe, PowerShell, wscript/cscript, regsvr32, and rundll32) combined with locations and arguments commonly used to stage script-based payloads. The detection relies on Windows process creation telemetry, including Image, OriginalFileName, ParentImage, and CommandLine.

Related detections9 linkedT1106 — drag to rearrange
Nullsoft Scriptable Installer Script (NSIS) execution
Nullsoft Scriptable Installer Script (NSIS) file creation
Windows PowerShell ScriptBlock keyword match for WinPwn tool usage
Windows process command line matches WinPwn tool execution keywords
PowerShell Scripts Calling WinAPI DLLs on Windows
Windows PowerShell ScriptBlock WinAPI Function Calls
Windows Process Creation: WinAPI Function Names in Command-Line
Linux auditd: BPFDoor .pid or .lock file access in /var/run
Windows HandleKatz: Duplicate LSASS Handle via Process Access with Handle Duplication Rights
Windows mshta.exe Process Creation Triggered by Suspicious Command Lines
Pivot detection · T1106 · 9 related

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