MSHTA 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…
Description
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. Threat actors often abuse this lolbin utility to download and execute malicious scripts disguised as benign files or hosted under misleading extensions to evade detection.
Detection logic
Detection requirements
Known benign triggers
- False positives depend on scripts and administrative tools used in the monitored environment
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| blog.sevagas.com/?Hacking-around-HTA-files | Only this detection cites it |
| 0x00sec.org/t/clientside-exploitation-in-2018-how-pentesting-has-changed/7356 | Only this detection cites it |
| learn.microsoft.com/en-us/previous-versions/dotnet/framework/data/xml/xslt/xslt-stylesheet-scripting-using-msxsl-script | Only this detection cites it |
| medium.com/tsscyber/pentesting-and-hta-bypassing-powershell-constrained-language-mode-53a42856c997 | Only this detection cites it |
| twitter.com/mattifestation/status/1326228491302563846 | Only this detection cites it |
| www.virustotal.com/gui/file/c1f27d9795a2eba630db8a043580a0761798f06370fb1317067805f8a845b00c | Only this detection cites it |
From the source
- At source
- Open at source
- Upstream identifier
- cc7abbd0-762b-41e3-8a26-57ad50d2eea3
- Tagged by the source as
- attack.executionattack.stealthcve.2020-1599
Licence
- Published under
- Detection Rule License 1.1Read the licence
- Attribution
- Required
Authorship
- Written by
- Published
- Aug 26, 2026
- Version
- 1