Detectionhightest
Remotely 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
Nasreddine BencherchaliCreated 2022-08-08Updated 2023-02-06b98d0db6-511d-45de-ad02-e82a98729620windows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation
Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.
Detection Logic
Detection Logic2 selectors
detection:
selection_img:
- Image|endswith: '\mshta.exe'
- OriginalFileName: 'MSHTA.EXE'
selection_cli:
CommandLine|contains:
- 'http://'
- 'https://'
- 'ftp://'
condition: all of selection_*False Positives
Unknown
False positive likelihood has not been assessed. Additional context may be needed during triage.
References
MITRE ATT&CK
Sub-techniques
Rule Metadata
Rule ID
b98d0db6-511d-45de-ad02-e82a98729620
Status
test
Level
high
Type
Detection
Created
2022-08-08
Modified
2023-02-06
Author
Path
rules/windows/process_creation/proc_creation_win_mshta_http.yml
Raw Tags
attack.executionattack.stealthattack.t1218.005