Skip to content
skopnix
← Cortex XDR detections

Cortex XDR · CVE exploitation

Microsoft SQL Server: SQL Server spawned a shell or LOLBin

Correlation
set the rule's MITRE tactic to TA0002 and technique to T1505.001
severity
high
confidence
75/100
generated
14 Nov 2026

sqlservr.exe started cmd, PowerShell, a script host or a download / proxy-execution LOLBin. Not specific to one bug: it fires on code execution through the Microsoft SQL Server by any route. Attached to the 22 CVEs in this stack that skopnix reported in the last 30 days, newest CVE-2026-118112, CVE-2026-118106, CVE-2026-116947.

False-positive notes

Needs sqlservr.exe as the PARENT and one of cmd, PowerShell, pwsh, wscript, cscript, mshta, rundll32, regsvr32, certutil, bitsadmin, whoami or curl as the child. SQL Agent jobs run under sqlagent.exe and do not match. Instances that use xp_cmdshell by design will: baseline first.

References

dataset = xdr_data| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START| filter lowercase(actor_process_image_name) = "sqlservr.exe" and lowercase(action_process_image_name) in ("cmd.exe", "powershell.exe", "pwsh.exe", "wscript.exe", "cscript.exe", "mshta.exe", "rundll32.exe", "regsvr32.exe", "certutil.exe", "bitsadmin.exe", "whoami.exe", "curl.exe")| 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-cve-stack-mssql-sqlservr-shell-f580c1d9.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.