Skip to content
Threat Feed
medium advisory

Suspicious Mshta.exe Child Process Execution

This detection focuses on identifying suspicious child processes spawned from 'mshta.exe', a common living-off-the-land technique used by threat actors like Lumma Stealer and MuddyWater for code execution and persistence.

The 'mshta.exe' binary, a native Windows utility designed to execute Microsoft HTML Applications (HTA), is frequently leveraged by attackers to bypass security controls by executing malicious scripts directly from memory or remote locations. This threat activity involves 'mshta.exe' spawning child processes that are typically inconsistent with its legitimate purpose.

Defenders should focus on monitoring for the execution of common living-off-the-land (LotL) binaries - including 'powershell.exe', 'cmd.exe', 'msbuild.exe', 'cscript.exe', and 'bitsadmin.exe' - when they are initiated with 'mshta.exe' as the parent process. This behavior is a recognized TTP used in campaigns by the MuddyWater threat group and during the delivery phases of infostealers such as Lumma Stealer. Monitoring these process relationships is essential for identifying early stages of compromise, including privilege escalation and the establishment of persistence.

Attack Chain

  1. The attacker delivers an HTA file to the target system via phishing or other initial access vectors.
  2. The user or a malicious script triggers the execution of the HTA file, which invokes 'mshta.exe'.
  3. 'mshta.exe' interprets the embedded malicious script (often VBScript or JScript).
  4. The script within 'mshta.exe' executes system commands using 'cmd.exe' or 'powershell.exe' to download additional payloads or move laterally.
  5. The attacker uses other binaries like 'msbuild.exe' or 'bitsadmin.exe' for secondary payload delivery or execution.
  6. The spawned child processes perform malicious activity such as credential harvesting, exfiltration, or installing persistence mechanisms.

Impact

Successful exploitation of this technique allows attackers to bypass application execution policies, execute arbitrary code, escalate privileges, and maintain long-term persistence. If unmonitored, this behavior facilitates the deployment of malware families such as infostealers, leading to the exfiltration of sensitive organizational data, compromised credentials, and potential ransomware deployment.

Recommendation

  1. Deploy the Sigma rules below to your SIEM/EDR environment to flag unauthorized 'mshta.exe' activity.
  2. Ingest process creation telemetry (e.g., Sysmon Event ID 1 or Windows Event Log 4688) to capture the necessary 'ParentProcessName' and 'ProcessName' fields.
  3. Tune the detection by creating allowlists for legitimate administrative or software-specific workflows that may utilize 'mshta.exe' legitimately.
  4. Use the provided process-monitoring analytic to alert on high-risk child processes specifically including 'powershell.exe', 'cmd.exe', and 'msbuild.exe'.

Immediate actions

Deploy Sigma detection rule to monitor mshta.exe process lineage.

Detection Engineering 24h

Threat Hunt

Search for non-standard child processes of mshta.exe in historical process telemetry.

T1218.005 medium medium confidence hunt now

Data: Process creation events (PID, ParentPID, Commandline)

Mitigations

Implement application control policies to restrict unauthorized use of mshta.exe.

medium IT Operations

T1218.005

Detection coverage 1

Detect Suspicious Mshta Child Processes

medium

Detects potentially malicious child processes spawned from mshta.exe, which is a common indicator of living-off-the-land exploitation.

sigma tactics: defense-evasion, execution techniques: T1218.005 sources: process_creation, windows

Detection queries are available on the platform. Get full rules →