Skip to content
skopnix
← Cortex XDR detections

Cortex XDR · Behaviour (ATT&CK technique)

PowerShell download cradle executed from the command line (T1059.001)

Correlation
set the rule's MITRE tactic to TA0002 and technique to T1059.001
severity
high
confidence
80/100
generated
2 Dec 2026
Linked actors
APT-C-36 · APT10 · APT19 · APT27 · APT28 · APT29 · APT3 · APT32 · APT33 · APT35 · APT39 · APT40 · APT41 · APT42 · APT5 · Aquatic Panda · blackbyte · Blue Mockingbird · BRONZE HIGHLAND · BRONZE STARLIGHT · Chimera · Cobalt · Confucius · CopyKittens · DarkHydrus · DarkVishnya · Deep Panda · DEV-0586 · DustSquad · Earth Kapre · Earth Lusca · ENERGETIC BEAR · FIN10 · FIN13 · FIN6 · FIN7 · FIN8 · Fox Kitten · GALLIUM · Gallmaker · Gamaredon Group · GOLD SOUTHFIELD · HAFNIUM · Inception Framework · INDRIK SPIDER · Kimsuky · Lazarus Group · LazyScripter · LYCEUM · Medusa Group · Molerats · MoustachedBouncer · MuddyWater · MUSTANG PANDA · OilRig · play · Poseidon Group · QUILTED TIGER · RAZOR TIGER · SaintBear · Sandworm · Scattered Spider · Silence group · STARDUST CHOLLIMA · Stealth Falcon · Storm-0501 · Storm-1567 · TA2541 · TA459 · TA505 · TeamTNT · The Gorgon Group · Thrip · Tick · ToddyCat · Tonto Team · Tortoiseshell · Turla · UNC1549 · UNC3886 · UNC4393 · Void Manticore · Volt Typhoon · Winter Vivern · WIRTE · WIZARD SPIDER

powershell.exe / pwsh.exe whose command line both downloads (Net.WebClient DownloadString / DownloadFile / DownloadData) and executes (IEX / Invoke-Expression) — the classic in-memory loader. Observed for: APT-C-36, APT10, APT19, APT27, APT28, APT29 and 80 more.

False-positive notes

All three conditions must hold (PowerShell binary, a download method, an execute verb); plain Invoke-WebRequest file downloads and encoded management scripts do not match.

References

dataset = xdr_data| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START| filter lowercase(action_process_image_name) in ("powershell.exe", "pwsh.exe") and (lowercase(action_process_image_command_line) contains ".downloadstring(" or lowercase(action_process_image_command_line) contains ".downloadfile(" or lowercase(action_process_image_command_line) contains ".downloaddata(") and (lowercase(action_process_image_command_line) contains "iex" or lowercase(action_process_image_command_line) contains "invoke-expression")| 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 _time

skopnix-cortex-ttp-t1059-001-6eb984ce.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.