Execution · Windows · LOLBAS
mshta.exe
Microsoft HTML Application host
Runs HTML Applications (.hta), which can contain VBScript or JScript. Trusted and signed, it is used to run script from a file, a URL or inline, so phishing chains lean on it.
Legitimate use
Runs legacy line-of-business HTA apps.
Command lines to worry about
- High
HTA fetched from a URL
mshta runs an HTML application straight from the web, with nothing written to disk first. Common in phishing payload delivery.
Detection regex
mshta(\.exe)?\s+.*https?:\/\/
Where it is recorded
- Security4688Process creation with the full command line, when command-line auditing is enabled.
- Sysmon1Process creation with command line, hashes and parent process.
- Sysmon3Network connection when the HTA is fetched from a URL.
Community detections
45 SigmaHQ rules for mshta.exe. The explainer checks every pasted command line against all of them.
- CriticalSticky Key Like Backdoor Execution
Detects the usage and installation of a backdoor that uses an option to register a malicious debugger for built-in tools that are accessible in the login screen
T1546.008by Florian Roth (Nextron Systems), @twjackomo, Jonhnathan Ribeiro, oscd.community
- HighHTML Help HH.EXE Suspicious Child Process
Detects a suspicious child process of a Microsoft HTML Help (HH.exe)
T1047T1059.001T1059.003T1059.005by Maxim Pavlunin, Nasreddine Bencherchali (Nextron Systems)
- HighMSHTA Execution with Suspicious File Extensions
Detects execution of mshta.exe with file types that looks like they do not typically represent HTA (HTML Application) content, such as .png, .jpg, .zip, .pdf, and others, which are often polyglots. MSHTA is a legitimate Windows utility for executing HTML Applications containing VBScript or JScript.
T1140T1218.005T1059.007by Diego Perez (@darkquassar), Markus Neis, Swisscom (Improve Rule), Swachchhanda Shrawan Poudel (Nextron Systems)
- HighOneNote.EXE Execution of Malicious Embedded Scripts
Detects the execution of malicious OneNote documents that contain embedded scripts. When a user clicks on a OneNote attachment and then on the malicious link inside the ".one" file, it exports and executes the malicious embedded script from specific directories.
T1218.001by @kostastsale
- HighPotential Defense Evasion Via Rename Of Highly Relevant Binaries
Detects the execution of a renamed binary often used by attackers or malware leveraging new Sysmon OriginalFileName datapoint.
T1036.003by Matthew Green - @mgreen27, Florian Roth (Nextron Systems), frack113
- HighPotential LethalHTA Technique Execution
Detects potential LethalHTA technique where the "mshta.exe" is spawned by an "svchost.exe" process
T1218.005by Markus Neis
- HighPotentially Suspicious Child Process Of Regsvr32
Detects potentially suspicious child processes of "regsvr32.exe".
T1218.010by elhoim, Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
- HighPotentially Suspicious Child Processes Spawned by ConHost
Detects suspicious child processes related to Windows Shell utilities spawned by `conhost.exe`, which could indicate malicious activity using trusted system components.
T1202T1218by Swachchhanda Shrawan Poudel (Nextron Systems)
- HighPotentially Suspicious Execution From Parent Process In Public Folder
Detects a potentially suspicious execution of a parent process located in the "\Users\Public" folder executing a child process containing references to shell or scripting binaries and commandlines.
T1564T1059by Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
- HighRemotely Hosted HTA File Executed Via Mshta.EXE
Detects execution of the "mshta" utility with an argument containing the "http" keyword, which could indicate that an attacker is executing a remotely hosted malicious hta file
T1218.005by Nasreddine Bencherchali (Nextron Systems)
- HighScript Event Consumer Spawning Process
Detects a suspicious child process of Script Event Consumer (scrcons.exe).
T1047by Sittikorn S
- HighScript Interpreter Execution From Suspicious Folder
Detects suspicious script execution from suspicious directories or folders accessible by environment variables that may indicate malware activity. Script interpreters (cscript, wscript, mshta, powershell) executing from folders like Temp, Public, or user profile directories may suggest attempts to evade detection or execute malicious scripts.
T1059by Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
- HighSdiagnhost Calling Suspicious Child Process
Detects sdiagnhost.exe calling a suspicious child process (e.g. used in exploits for Follina / CVE-2022-30190)
T1036T1218by Nextron Systems, @Kostastsale
- HighSuspicious ArcSOC.exe Child Process
Detects script interpreters, command-line tools, and similar suspicious child processes of ArcSOC.exe. ArcSOC.exe is the process name which hosts ArcGIS Server REST services. If an attacker compromises an ArcGIS Server system and uploads a malicious Server Object Extension (SOE), they can send crafted requests to the corresponding service endpoint and remotely execute code from the ArcSOC.exe…
T1059T1203by Micah Babinski
- HighSuspicious BitLocker Access Agent Update Utility Execution
Detects the execution of the BitLocker Access Agent Update Utility (baaupdate.exe) which is not a common parent process for other processes. Suspicious child processes spawned by baaupdate.exe could indicate an attempt at lateral movement via BitLocker DCOM & COM Hijacking.
T1218T1021.003by andrewdanis, Swachchhanda Shrawan Poudel (Nextron Systems)
- HighSuspicious Child Process Of BgInfo.EXE
Detects suspicious child processes of "BgInfo.exe" which could be a sign of potential abuse of the binary to proxy execution via external VBScript
T1059.005T1218T1202by Nasreddine Bencherchali (Nextron Systems)
- HighSuspicious Child Process Of Manage Engine ServiceDesk
Detects suspicious child processes of the "Manage Engine ServiceDesk Plus" Java web service
T1102by Florian Roth (Nextron Systems)
- HighSuspicious Child Process of Notepad++ Updater - GUP.Exe
Detects suspicious child process creation by the Notepad++ updater process (gup.exe). This could indicate potential exploitation of the updater component to deliver unwanted malware.
T1195.002T1557by Swachchhanda Shrawan Poudel (Nextron Systems)
- HighSuspicious Child Process Of Wermgr.EXE
Detects suspicious Windows Error Reporting manager (wermgr.exe) child process
T1055T1036by Florian Roth (Nextron Systems)
- HighSuspicious JavaScript Execution Via Mshta.EXE
Detects execution of javascript code using "mshta.exe".
T1218.005by E.M. Anhaus (originally from Atomic Blue Detections, Endgame), oscd.community
- HighSuspicious Microsoft Office Child Process
Detects a suspicious process spawning from one of the Microsoft Office suite products (Word, Excel, PowerPoint, Publisher, Visio, etc.)
T1047T1204.002T1218.010by Florian Roth (Nextron Systems), Markus Neis, FPT.EagleEye Team, Vadim Khrykov, Cyb3rEng, Michael Haag, Christopher Peacock @securepeacock, @scythe_io
- HighSuspicious Microsoft OneNote Child Process
Detects suspicious child processes of the Microsoft OneNote application. This may indicate an attempt to execute malicious embedded objects from a .one file.
T1566T1566.001by Tim Rauch (Nextron Systems), Nasreddine Bencherchali (Nextron Systems), Elastic (idea)
- HighSuspicious Mshta.EXE Execution Patterns
Detects suspicious mshta process execution patterns
T1106by Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
- HighSuspicious Outlook Child Process
Detects a suspicious process spawning from an Outlook process.
T1204.002by Michael Haag, Florian Roth (Nextron Systems), Markus Neis, Elastic, FPT.EagleEye Team
- HighSuspicious Processes Spawned by Java.EXE
Detects suspicious processes spawned from a Java host process which could indicate a sign of exploitation (e.g. log4j)
by Andreas Hunkeler (@Karneades), Florian Roth
- HighSuspicious Provlaunch.EXE Child Process
Detects suspicious child processes of "provlaunch.exe" which might indicate potential abuse to proxy execution.
T1218by Nasreddine Bencherchali (Nextron Systems)
- HighSuspicious Serv-U Process Pattern
Detects a suspicious process pattern which could be a sign of an exploited Serv-U service
T1555by Florian Roth (Nextron Systems)
- HighSuspicious ShellExec_RunDLL Call Via Ordinal
Detects suspicious call to the "ShellExec_RunDLL" exported function of SHELL32.DLL through the ordinal number to launch other commands. Adversary might only use the ordinal number in order to bypass existing detection that alert on usage of ShellExec_RunDLL on CommandLine.
T1218.011by Swachchhanda Shrawan Poudel
- HighSuspicious Shells Spawn by Java Utility Keytool
Detects suspicious shell spawn from Java utility keytool process (e.g. adselfservice plus exploitation)
by Andreas Hunkeler (@Karneades)
- HighSuspicious SYSTEM User Process Creation
Detects a suspicious process creation as SYSTEM user (suspicious program or command line parameter)
T1134T1003T1027by Florian Roth (Nextron Systems), David ANDRE (additional keywords)
- HighSuspicious WmiPrvSE Child Process
Detects suspicious and uncommon child processes of WmiPrvSE
T1047T1204.002T1218.010by Vadim Khrykov (ThreatIntel), Cyb3rEng, Florian Roth (Nextron Systems)
- HighVMToolsd Suspicious Child Process
Detects suspicious child process creations of VMware Tools process which may indicate persistence setup
T1059by bohops, Bhabesh Raj
- HighWindows Shell/Scripting Processes Spawning Suspicious Programs
Detects suspicious child processes of a Windows shell and scripting processes such as wscript, rundll32, powershell, mshta...etc.
T1059.005T1059.001T1218by Florian Roth (Nextron Systems), Tim Shelton
- MediumLOLBIN Execution From Abnormal Drive
Detects LOLBINs executing from an abnormal or uncommon drive such as a mounted ISO.
by Christopher Peacock '@securepeacock', SCYTHE '@scythe_io', Angelo Violetti - SEC Consult '@angelo_violetti', Aaron Herman
- MediumPotential Dropper Script Execution Via WScript/CScript/MSHTA
Detects wscript/cscript/mshta executions of scripts located in user directories
T1059.005T1059.007by Margaritis Dimitrios (idea), Florian Roth (Nextron Systems), oscd.community, Nasreddine Bencherchali (Nextron Systems), Dave Johnson
- MediumPotential Provlaunch.EXE Binary Proxy Execution Abuse
Detects child processes of "provlaunch.exe" which might indicate potential abuse to proxy execution.
T1218by Nasreddine Bencherchali (Nextron Systems), Swachchhanda Shrawan Poudel
- MediumPotentially Suspicious Child Process Of ClickOnce Application
Detects potentially suspicious child processes of a ClickOnce deployment application
by Nasreddine Bencherchali (Nextron Systems)
- MediumPotentially Suspicious Child Process Of DiskShadow.EXE
Detects potentially suspicious child processes of "Diskshadow.exe". This could be an attempt to bypass parent/child relationship detection or application whitelisting rules.
T1218by Nasreddine Bencherchali (Nextron Systems)
- MediumPotentially Suspicious Child Process of KeyScrambler.exe
Detects potentially suspicious child processes of KeyScrambler.exe
T1203T1574.001by Swachchhanda Shrawan Poudel
- MediumPotentially Suspicious Child Process Of WinRAR.EXE
Detects potentially suspicious child processes of WinRAR.exe.
T1203by Nasreddine Bencherchali (Nextron Systems)
- MediumPotentially Suspicious Execution Of PDQDeployRunner
Detects suspicious execution of "PDQDeployRunner" which is part of the PDQDeploy service stack that is responsible for executing commands and packages on a remote machines
by Nasreddine Bencherchali (Nextron Systems)
- MediumPotentially Suspicious WebDAV LNK Execution
Detects possible execution via LNK file accessed on a WebDAV server.
T1059.001T1204by Micah Babinski
- MediumPotentially Suspicious Windows App Activity
Detects potentially suspicious child process of applications launched from inside the WindowsApps directory. This could be a sign of a rogue ".appx" package installation/execution
by Nasreddine Bencherchali (Nextron Systems)
- MediumSuspicious Electron Application Child Processes
Detects suspicious child processes of electron apps (teams, discord, slack, etc.). This could be a potential sign of ".asar" file tampering (See reference section for more information) or binary execution proxy through specific CLI arguments (see related rule)
by Nasreddine Bencherchali (Nextron Systems)
- MediumWSL Child Process Anomaly
Detects uncommon or suspicious child processes spawning from a WSL process. This could indicate an attempt to evade parent/child relationship detections or persistence attempts via cron using WSL
T1218T1202by Nasreddine Bencherchali (Nextron Systems)
Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.