← Cortex XDR detections
Cortex XDR · Behaviour (ATT&CK technique)
mshta executing remote or inline script (T1218.005)
- Correlation
- set the rule's MITRE tactic to TA0005 and technique to T1218.005
- severity
- high
- confidence
- 80/100
- generated
- 2 Dec 2026
- Linked actors
- APT29 · APT32 · Confucius · Earth Lusca · FIN7 · Gamaredon Group · GOLD CABIN · Inception Framework · Kimsuky · Lazarus Group · LazyScripter · MuddyWater · MUSTANG PANDA · RAZOR TIGER · SideCopy · STARDUST CHOLLIMA · TA2541
mshta.exe launched with an http(s) URL or an inline javascript: / vbscript: handler — a signed-binary proxy for script payloads. Observed for: APT29, APT32, Confucius, Earth Lusca, FIN7, Gamaredon Group and 11 more.
False-positive notes
Local .hta files without a URL or inline script handler do not match.
References
- attack.mitre.org/techniques/T1218/005/ ↗
- skopnix.com/actors/apt29 ↗
- skopnix.com/actors/apt32 ↗
- skopnix.com/actors/confucius ↗
- skopnix.com/actors/earth-lusca ↗
- skopnix.com/actors/fin7 ↗
- skopnix.com/actors/gamaredon-group ↗
- skopnix.com/actors/gold-cabin ↗
- skopnix.com/actors/inception-framework ↗
- skopnix.com/actors/kimsuky ↗
- skopnix.com/actors/lazarus-group ↗
dataset = xdr_data| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START| filter lowercase(action_process_image_name) = "mshta.exe" and (lowercase(action_process_image_command_line) contains "http://" or lowercase(action_process_image_command_line) contains "https://" or lowercase(action_process_image_command_line) contains "javascript:" or lowercase(action_process_image_command_line) contains "vbscript:")| fields _time, agent_hostname, actor_effective_username, action_process_image_name, action_process_image_command_line, actor_process_image_name, causality_actor_process_image_name| sort desc _timeskopnix-cortex-ttp-t1218-005-7d211a07.xql
How to deploy on Cortex XDR
- Step 1
- Paste the XQL into Incident Response > Investigation > Query Builder > XQL Search.
- Step 2
- To alert, save it as a Correlation Rule and set the MITRE tactic and technique printed with the rule.
- Step 3
- Schedule it on the interval you hunt at; keep the fields stage for the alert's columns.
- Check
- CVE rules read PAN-OS URL logs (panw_ngfw_url_raw), which need the NGFW integration and, for HTTPS, decryption.