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.

3 rules over 2 days · technique T1505.003 (remove) Most recent first
DateFormatRule and topicLevelATT&CK
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.

20/11 XQL A2. Web or database service spawns a shell or system tool (Windows)ARTEX: Cortex XQL pack medium T1059.001 T1059.003 T1505.003
tb-pack-artex-a2-service-web-ou-base-de-donn-es-qui-lance-un-shell-ou-un-o.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief · ARTEX · A2 · web or database service spawns a shell or system tool (Windows) · experimental
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.PROCESS and agent_os_type = ENUM.AGENT_OS_WINDOWS
| filter actor_process_image_name in ("w3wp.exe", "httpd.exe", "tomcat.exe", "java.exe", "node.exe", "php-cgi.exe", "sqlservr.exe", "mysqld.exe")
| filter action_process_image_name in ("cmd.exe", "powershell.exe", "pwsh.exe", "curl.exe", "certutil.exe", "bitsadmin.exe", "whoami.exe", "tasklist.exe")
| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, action_process_image_name, action_process_image_command_line
xql: reviewed, not executed xdr_data Licence DRL 1.1

Same behaviour as A1 on Windows: IIS, Tomcat, Node, PHP or a database starting cmd, PowerShell, certutil or whoami. Adapted from ThreatDefence rules (MIT licence). False positives: Business applications that call system tools: baseline each server.

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).