Detection rules · Sigma, Cortex XQL, YARA

All rules, every day

The catalogue of Threat Brief rules since day one: filter by format, period, level or ATT&CK technique, open a rule to read its code, and download the selection as one file.

15 rules over 11 days · technique T1059.004 (remove) Most recent first
DateFormatRule and topicLevelATT&CK
26/11 XQL Cairn Agent Worker or Dispatcher Command LineAgentic attack frameworks: Cortex XQL pack high T1059.004
tb-pack-agentic-frameworks-ligne-de-commande-de-worker-ou-de-dispatcher-cairn.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief · Cairn · Cairn Agent Worker or Dispatcher Command Line · experimental (adapted from ThreatDefence, MIT)
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START
| filter agent_os_type = ENUM.AGENT_OS_LINUX
| filter (action_process_image_command_line contains "model_provider=\"cairn\"" or action_process_image_command_line contains "model_providers.cairn.base_url" or action_process_image_command_line contains "--provider cairn" or action_process_image_command_line contains "/tmp/cairn-pi/" or action_process_image_command_line contains "/tmp/cairn-prompts/" or action_process_image_command_line contains "cairn dispatch --config" or action_process_image_command_line contains "cairn-dispatch-" or action_process_image_command_line contains "cairn-worker-container")
| fields _time, agent_hostname, actor_effective_username, actor_process_image_path, actor_process_command_line, action_process_image_path, action_process_image_command_line
xql: reviewed, not executed xdr_data Licence DRL 1.1

Detects command lines that only Cairn produces: the Codex worker's model_provider="cairn" override, the Pi worker's --provider cairn and /tmp/cairn-pi/ agent folder, the dispatcher and server entry points, and the cairn-dispatch- worker containers. Adapted from the ThreatDefence Sigma rule (MIT licence). False positives: Authorized red team use of Cairn.

26/11 XQL PentAGI Agent Command WrapperAgentic attack frameworks: Cortex XQL pack high T1059.004
tb-pack-agentic-frameworks-wrapper-de-commande-des-agents-pentagi.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief · PentAGI · PentAGI Agent Command Wrapper · experimental (adapted from ThreatDefence, MIT)
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START
| filter agent_os_type = ENUM.AGENT_OS_LINUX
| filter (action_process_image_command_line contains "trap \"\" HUP" and action_process_image_command_line contains "/proc/self/oom_score_adj" and action_process_image_command_line contains "exec sh -c \"$0\"")
| fields _time, agent_hostname, actor_effective_username, actor_process_image_path, actor_process_command_line, action_process_image_path, action_process_image_command_line
xql: reviewed, not executed xdr_data Licence DRL 1.1

Detects the shell wrapper PentAGI puts around every agent command in its Kali worker container: it ignores hangups, raises the process's oom_score_adj by one to mark the flow, then runs the command with exec sh -c "$0". Adapted from the ThreatDefence Sigma rule (MIT licence). False positives: Authorized red team use of PentAGI.

26/11 XQL HexStrike Server or MCP Client ProcessAgentic attack frameworks: Cortex XQL pack high T1059.004
tb-pack-agentic-frameworks-processus-du-serveur-hexstrike-ou-de-son-client-mcp.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief · HexStrike · HexStrike Server or MCP Client Process · experimental (adapted from ThreatDefence, MIT)
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START
| filter agent_os_type = ENUM.AGENT_OS_LINUX
| filter ((action_process_image_command_line contains "hexstrike_server.py" or action_process_image_command_line contains "hexstrike_mcp.py") or actor_process_command_line contains "hexstrike_server.py")
| fields _time, agent_hostname, actor_effective_username, actor_process_image_path, actor_process_command_line, action_process_image_path, action_process_image_command_line
xql: reviewed, not executed xdr_data Licence DRL 1.1

Detects the HexStrike tool server, its MCP client, and tools started by the server. Adapted from the ThreatDefence Sigma rule (MIT licence). False positives: Authorized red team use of HexStrike.

26/11 XQL Xalgorix Agent on a HostAgentic attack frameworks: Cortex XQL pack medium T1059.004
tb-pack-agentic-frameworks-agent-xalgorix-sur-un-h-te.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief · Xalgorix · Xalgorix Agent on a Host · experimental (adapted from ThreatDefence, MIT)
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START
| filter agent_os_type = ENUM.AGENT_OS_LINUX
| filter (action_process_image_path ~= "/xalgorix$" or (action_process_image_command_line contains "XALGORIX_WORKSPACE=" or action_process_image_command_line contains "__xalgorix_resolve_path" or action_process_image_command_line contains "xalgorix-scan-init" or action_process_image_command_line contains "xalgord/xalgorix" or action_process_image_command_line contains "xalgorix --web"))
| fields _time, agent_hostname, actor_effective_username, actor_process_image_path, actor_process_command_line, action_process_image_path, action_process_image_command_line
xql: reviewed, not executed xdr_data Licence DRL 1.1

Detects Xalgorix running: the binary or its container image, and the shell wrapper it puts in front of every command the agent runs (export XALGORIX_WORKSPACE=..., the __xalgorix_resolve_path function, and xalgorix-scan-init when it runs as root). Xalgorix is an autonomous penetration testing agent that needs no approval for tool calls. Adapted from the ThreatDefence Sigma rule (MIT licence). False positives: Bug bounty hunters and security teams running Xalgorix.

22/11 XQL Shell started under the MONAI Label service (Cortex XDR)MONAI Label: CVE-2026-133968 published, pre-auth path traversal to RCE exploited since September by the Cairn AI agents medium T1059.004 T1190
tb-2026-11-22-shell-lanc-sous-le-service-monai-label-cortex-xdr.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief 2026-11-22 · MONAI Label CVE-2026-133968 · experimental
// Shell started under the MONAI Label service
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START
| filter causality_actor_process_command_line contains "monailabel"
| filter action_process_image_name in ("sh", "bash", "dash", "zsh")
| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, actor_process_command_line, action_process_image_command_line, causality_actor_process_command_line
xql: reviewed, not executed xdr_data Licence DRL 1.1

Start of sh, bash, dash or zsh whose causality chain leads to a monailabel process: an unexpected process after exploitation of CVE-2026-133968. False positives: Custom MONAI Label apps or training scripts that call shell commands.

2 quotes from the sources
20/11 XQL Shell or network tool spawned by Puppet Server (Cortex XDR)Perforce Puppet: CVE-2026-115731 exploited, in KEV with a 1 December deadline medium T1190 T1059.004
tb-2026-11-20-shell-ou-outil-r-seau-lanc-par-puppet-server-cortex-xdr.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief 2026-11-20 · Perforce Puppet CVE-2026-115731 · experimental
// Shell or download tool started by the Puppet Server JVM (service account puppet or pe-puppet)
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START
| filter actor_effective_username contains "puppet" and actor_process_image_name = "java" and action_process_image_name in ("sh", "bash", "dash", "curl", "wget", "python3", "perl")
| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, actor_process_command_line, action_process_image_name, action_process_image_command_line
xql: reviewed, not executed xdr_data Licence DRL 1.1

Shell or download tool launched by the java process of a puppet account: likely code execution through CVE-2026-115731 on Puppet Server. False positives: ENC or policy-based autosign scripts ; Custom report processors.

2 quotes from the sources
20/11 XQL A1. Web or database service spawns a shell or download tool (Linux)ARTEX: Cortex XQL pack medium T1059.004 T1505.003
tb-pack-artex-a1-service-web-ou-base-de-donn-es-qui-lance-un-shell-ou-un-o.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief · ARTEX · A1 · web or database service spawns a shell or downloader (Linux) · experimental
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.PROCESS and agent_os_type = ENUM.AGENT_OS_LINUX
| filter actor_process_image_name in ("nginx", "httpd", "apache2", "java", "node", "mysqld", "mariadbd", "postgres") or actor_process_image_name ~= "^php-fpm"
| filter action_process_image_name in ("sh", "bash", "dash", "curl", "wget", "nc", "ncat", "socat", "busybox")
| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, actor_process_command_line, action_process_image_name, action_process_image_command_line
xql: reviewed, not executed xdr_data Licence DRL 1.1

After exploiting a web application, ARTEX agents run discovery and pull tooling from the service process in short bursts. Adapted from ThreatDefence rules (MIT licence). False positives: Applications that run shell scripts by design: exclude by host or command line.

19/11 XQL Shell spawned by an NGINX worker (NGINX2Root, Cortex XDR)NGINX2Root: eleven NGINX CVEs including two unauthenticated HTTP/2 RCEs, F5 fixes of 18 November, no exploitation observed high T1190 T1059.004
tb-2026-11-19-shell-lanc-par-un-worker-nginx-nginx2root-cortex-xdr.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief 2026-11-19 · NGINX2Root (CVE-2026-123007, CVE-2026-123633) · experimental
// Shell or download tool started by an NGINX worker process (post-exploitation sign)
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START
| filter actor_process_image_name = "nginx" and actor_process_command_line contains "worker process"
| filter action_process_image_name in ("sh", "bash", "dash", "curl", "wget", "python3", "perl")
| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, actor_process_command_line, action_process_image_name, action_process_image_command_line
xql: reviewed, not executed xdr_data Licence DRL 1.1

Same behaviour on Cortex XDR / XSIAM telemetry: a shell or download process started by an NGINX worker. Suitable as a BIOC. False positives: Modules (Lua, Perl) that legitimately make NGINX workers run helper commands.

3 quotes from the sources
  • “Investigate unexpected NGINX worker crashes or commands launched by NGINX” www.wiz.io
  • “worker process … exited on signal” cert.europa.eu
  • “Further checks in the process creation logs are necessary” cert.europa.eu
15/11 XQL Shell or network tool started by the Crawl4AI serviceCrawl4AI: pre-auth RCE CVE-2026-53753 enters the VulnCheck KEV, fixed in 0.8.7 since June medium T1190 T1059.004
tb-2026-11-15-shell-ou-outil-r-seau-lanc-par-le-service-crawl4ai.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief 2026-11-15 · Crawl4AI CVE-2026-53753 · experimental
// Shell or download tool started by the Crawl4AI service process
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START
| filter actor_process_command_line contains "crawl4ai" or causality_actor_process_command_line contains "crawl4ai"
| filter action_process_image_name in ("sh", "bash", "dash", "curl", "wget", "nc")
| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, actor_process_command_line, action_process_image_name, action_process_image_command_line
xql: reviewed, not executed xdr_data (processes) Licence DRL 1.1

Process start of a shell or download tool whose parent or causality command line names crawl4ai: the follow-up advised by the bulletin after a POST /crawl. Coverage depends on crawl4ai appearing in the service command line. False positives: Legitimate crawl4ai scripts or container health checks calling a shell.

1 quote from the sources
  • “inspect the host for unexpected processes or outbound connections spawned by the crawl4ai service” buttondown.com
10/11 XQL Shell or network tool spawned by the nable account on N-centralAble2Shell: 33 N-able N-central vulnerabilities published with PoCsalso on 12/11 medium T1190 T1059.004
tb-2026-11-10-shell-ou-outil-r-seau-lanc-par-le-compte-nable-sur-n-central.xqlXSIAM correlation ruleDownload XQL query
// Threat Brief 2026-11-10 · Able2Shell (N-able N-central) · experimental
// Command execution under the nable account following the XXE chain, requires an agent on the N-central server
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START
| filter actor_effective_username = "nable"
| filter action_process_image_name in ("sh", "bash", "dash", "curl", "wget", "nc", "ncat", "python", "python3", "perl", "sudo", "su")
| comp count() as nb, values(action_process_image_command_line) as cmds by agent_hostname, actor_process_image_name, action_process_image_name
| sort desc nb
xql: reviewed, not executed xdr_data, Linux processes Licence DRL 1.1

Unauthenticated XXE chain leads to command execution under the nable user, then privilege escalation to root. Only applies if a Cortex XDR agent is running on the on-prem N-central server. False positives: appliance maintenance scripts executed under nable ; N-able hotfix being applied.

09/11 XQL wget or curl spawned by sshd to port 8000SSHole (CVE-2026-123158): SANS ISC quantifies scans and publishes sources medium T1105 T1059.004
tb-2026-11-09-wget-ou-curl-lanc-par-sshd-vers-un-port-8000.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief 2026-11-09 · SSHole (CVE-2026-123158) · experimental
// Download via wget or curl spawned from an sshd session to port 8000 or targeting a bot.x86_64 payload
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START
| filter causality_actor_process_image_name = "sshd"
| filter action_process_image_name in ("wget", "curl")
| filter action_process_image_command_line contains ":8000/" or action_process_image_command_line contains "/bot.x86_64"
| fields _time, agent_hostname, actor_effective_username, action_process_image_name, action_process_image_command_line
xql: reviewed, not executed xdr_data (Linux) Licence DRL 1.1

Bot download immediately following SSH login, matching scripts observed by SANS ISC (port 8000, bot.x86_64 file). False positives: administrative scripts run over SSH that download from an internal server on port 8000.

07/11 XQL cwpsrv.prev-*, child shell of cwpsrv or traffic to 136.0.141.71CWPdoor: trojanised cwpsrv turns Control Web Panel into a passive backdoor high T1505.003 T1059.004
tb-2026-11-07-cwpsrv-prev-shell-enfant-de-cwpsrv-ou-flux-vers-136-0-141-71.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief 2026-11-07 · CWPdoor (trojanised cwpsrv) · experimental
// cwpsrv.prev-* backup, cwpsrv shell children, or traffic to XLab staging IP
config case_sensitive = false
| dataset = xdr_data
| filter (event_type = ENUM.FILE and action_file_path contains "/usr/local/cwpsrv/bin/cwpsrv.prev-") or (event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START and actor_process_image_name = "cwpsrv" and action_process_image_name in ("sh", "bash", "curl", "wget", "python3")) or (event_type = ENUM.NETWORK and action_remote_ip = "136.0.141.71")
| fields _time, agent_hostname, event_type, actor_process_image_name, actor_process_command_line, action_process_image_command_line, action_file_path, action_remote_ip
xql: reviewed, not executed xdr_data Licence DRL 1.1

CWPdoor host artefacts: cwpsrv.prev-* backup, unexpected cwpsrv children, and traffic to published staging IP. False positives: Legitimate CWP update creating a backup.

05/11 XQL Shell or downloader spawned by PHPWordPress Core CVE-2026-119977: RCE during the update window, added to KEV on 06/11 medium T1505.003 T1059.004
tb-2026-11-05-shell-ou-t-l-chargeur-lanc-par-php.xqlXSIAM correlation ruleDownload XQL query
// Threat Brief 2026-11-05 · WordPress CVE-2026-119977 · experimental
// Shell or downloader spawned by PHP (php-fpm, php): possible follow-up to an RCE during update
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START
| filter actor_process_image_name contains "php"
| filter action_process_image_name in ("sh", "bash", "dash", "curl", "wget")
| comp count() as nb, values(action_process_image_command_line) as cmds by agent_hostname, actor_process_image_name, actor_effective_username
| sort desc nb
xql: reviewed, not executed xdr_data (PROCESS) Licence DRL 1.1

Post-exploitation sh, curl, or wget spawned by php-fpm (lead provided by the publisher and Wordfence); aggregated by host for hunting. False positives: PHP applications legitimately executing system commands (backups, cron).

04/11 XQL Shell spawned by node decoding base64 or downloadingNode-RED CVE-2026-58115: Unauthenticated RCE exploited to deploy a Linux bot high T1059.004 T1105 T1140
tb-2026-11-04-shell-lanc-par-node-qui-d-code-du-base64-ou-t-l-charge.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief 2026-11-04 · Node-RED CVE-2026-58115 · experimental
// Shell spawned by node decoding base64 or downloading a payload (exec node)
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START
| filter actor_process_image_name in ("node", "node-red")
| filter action_process_image_name in ("sh", "bash", "dash", "wget", "curl")
| filter action_process_image_command_line contains "base64 -d" or action_process_image_command_line contains "/dev/shm/" or action_process_image_command_line contains "setsid"
| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, actor_process_command_line, action_process_image_name, action_process_image_command_line
xql: reviewed, not executed xdr_data (PROCESS) Licence DRL 1.1

exec node used in exploitation: node launches sh, wget, or curl with base64 -d, /dev/shm, or setsid. False positives: Legitimate flows calling shell scripts.

31/10 XQL Suspicious shell spawned by a PHP workerPHP2Shell (CVE-2026-109618/109619): root on PAN-OS firewalls high T1190 T1505.003 T1059.004
tb-2026-10-31-shell-suspect-enfant-d-un-worker-php.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief 2026-10-31 · PHP2Shell (CVE-2026-109618/109619) · experimental
// Shell spawned by a PHP worker or web server with download, reverse shell, or decoding activity
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START
| filter actor_process_image_name in ("php-fpm", "php-cgi", "lsphp", "frankenphp", "httpd", "apache2") or actor_process_image_name ~= "^php-fpm"
| filter action_process_image_name in ("sh", "bash", "dash", "zsh", "ksh")
| filter action_process_image_command_line contains "curl" or action_process_image_command_line contains "wget" or action_process_image_command_line contains "/dev/tcp" or action_process_image_command_line contains "base64 -d" or action_process_image_command_line contains "/etc/shadow"
| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, action_process_image_name, action_process_image_command_line
| sort desc _time
xql: reviewed, not executed xdr_data Licence DRL 1.1

PHP2Shell post-exploitation: shell child of php-fpm, php-cgi, lsphp, or Apache with curl, wget, /dev/tcp, or base64 -d (Elastic and Unit 42 logic). False positives: PHP applications legitimately calling curl via a shell ; mail() via sendmail.