Now with AI Query Generation

Master XQL
Queries

The ultimate library for Cortex XDR XQL queries. Search hundreds of community-driven detection rules, or generate custom queries with our AI assistant.

500+ Queries
Open Source
AI Powered
Showing 6 queries
Sort by:
Threat Hunting

Suspicious PowerShell Downloads

Detects PowerShell processes downloading content from external URLs using Invoke-WebRequest or similar methods.

dataset = xdr_data
| filter lowercase(action_process_image_name) = "powershell.exe"
| filter lowercase(action_process_image_command_line) contains "invoke-webrequest" or lowercase(action_process_image_command_line) contains "iwr"
2d ago 1.2k
View →
Detection

LSASS Memory Access

Detects suspicious access to LSASS process memory, often indicative of credential dumping attacks like Mimikatz.

dataset = xdr_data
| filter lowercase(event_type) = "process injection"
| filter lowercase(action_process_image_name) = "lsass.exe"
| filter lowercase(actor_process_image_name) != "svchost.exe"
5d ago 3.4k
View →
Forensics

Rare Parent-Child Process

Identifies unusual parent-child process relationships that may indicate code execution or persistence mechanisms.

dataset = xdr_data
| filter lowercase(event_type) = "process execution"
| comp count(action_process_image_name) as execution_count by actor_process_image_name, action_process_image_name
| filter execution_count < 5
1w ago 890
View →
Compliance

USB Device Usage Audit

Tracks USB device connections and file operations for data loss prevention and compliance monitoring.

dataset = xdr_data
| filter lowercase(event_type) = "removable storage"
| fields device_name, action_device_product_id, action_device_vendor_id, action_file_name
| sort desc by _time
3d ago 567
View →
Threat Hunting

WMI Persistence Detection

Hunts for WMI event subscription persistence mechanisms used by advanced threat actors.

dataset = xdr_data
| filter lowercase(action_process_image_name) in ("wmiprvse.exe", "scrcons.exe")
| filter lowercase(action_process_image_command_line) contains "activescripteventconsumer" or lowercase(action_process_image_command_line) contains "commandlineeventconsumer"
1w ago 2.1k
View →
Detection

Kerberoasting Detection

Detects potential Kerberoasting attacks by monitoring for unusual TGS ticket requests.

dataset = xdr_data
| filter lowercase(event_type) = "kerberos authentication"
| filter lowercase(action_kerberos_ticket_encryption_type) = "rc4-hmac"
| filter lowercase(action_kerberos_ticket_type) = "service ticket"
4d ago 1.8k
View →
AI Powered

Generate XQL with AI

Describe what you want to detect in natural language, and our AI will generate the perfect XQL query for you.

AI Assistant Online

Curated Library

Hundreds of community-vetted XQL queries for threat hunting, detection, and forensics.

AI Generation

Natural language to XQL translation. Describe your detection logic, get production-ready queries.

Easy Integration

One-click copy, export to CSV, or integrate with your Cortex XDR API workflows.

Copied to clipboard!