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.

7 rules over 6 days · technique T1505.003 (remove) Most recent first
DateFormatRule and topicLevelATT&CK
28/11 XQL wp-media-*.php file written under wp-content (WP Rocket, Cortex XDR)WP Rocket: unauthenticated RCE CVE-2026-125812 exploited since 25 November, tens of thousands of attempts a day high T1190 T1505.003
tb-2026-11-28-fichier-wp-media-php-crit-sous-wp-content-wp-rocket-cortex-x.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief 2026-11-28 · WP Rocket CVE-2026-125812 · experimental
// PHP file named wp-media-*.php written under wp-content (payload planted through the rocket_beacon endpoint)
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.FILE and action_file_path contains "wp-content/" and action_file_name ~= "^wp-media-.*\.php$"
| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, actor_process_command_line, action_file_path, action_file_name
xql: reviewed, not executed Cortex XDR endpoint telemetry (xdr_data) on the WordPress web server Licence DRL 1.1

Creation of a wp-media-*.php file under wp-content on a WordPress server: a vulnerable WP Rocket downloads remote content and saves it as a PHP file. Single-event query, BIOC-ready. False positives: a legitimate plugin or theme deploying a file named wp-media-*.php.

4 quotes from the sources
27/11 XQL .php file written under a modules directory by Apache (Drupal, Cortex XDR)Drupal: a second installer flaw exploited, the Fail2Install fix was not enough on sites in an incomplete installation state high T1505.003 T1190
tb-2026-11-27-fichier-php-crit-sous-un-dossier-modules-par-apache-drupal-c.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief 2026-11-27 · Drupal CVE-2026-132165 / CVE-2026-136716 · experimental
// .php file written under a modules directory by the web server (SQLite database file planted through the installer)
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.FILE and action_file_path contains "/modules/" and action_file_name ~= "\.php$" and actor_process_image_name in ("apache2", "httpd")
| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, actor_process_command_line, action_file_path, action_file_name
xql: reviewed, not executed Cortex XDR endpoint telemetry (xdr_data) on the Drupal web server Licence DRL 1.1

Creation of a .php file under a /modules/ directory by the Apache process: this is how the reopened installer plants a SQLite database named .php (e.g. web/modules/x.php) that holds PHP code. Complements the 20/11 query on settings.php. False positives: module installed or updated from the Drupal web interface (Update Manager).

2 quotes from the sources
  • “give a database file path that ends in .php inside the web root, such as web/modules/x.php” www.stepsecurity.io
  • “from Apache workers whose database connection was refused mid-page” www.stepsecurity.io
26/11 XQL CyberStrikeAI Webshell OS Probe CommandAgentic attack frameworks: Cortex XQL pack high T1082 T1505.003
tb-pack-agentic-frameworks-commande-de-sonde-os-du-webshell-cyberstrikeai.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief · CyberStrikeAI · CyberStrikeAI Webshell OS Probe Command · 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 action_process_image_command_line contains ":OSPROBE_"
| 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 command CyberStrikeAI's webshell manager runs on every new webshell, "echo :OSPROBE_%OS%:END", which shows up as a shell started by the web server process. Adapted from the ThreatDefence Sigma rule (MIT licence). False positives: Authorized tests with CyberStrikeAI.

26/11 XQL CyberStrikeAI Webshell Manager User Agent or OS Probe in Web LogsAgentic attack frameworks: Cortex XQL pack high T1505.003
tb-pack-agentic-frameworks-user-agent-ou-sonde-os-du-gestionnaire-de-webshell-cyberstri.xqlXSIAM correlation ruleDownload XQL query
// Threat Brief · CyberStrikeAI · CyberStrikeAI Webshell Manager User Agent or OS Probe in Web Logs · experimental (adapted from ThreatDefence, MIT)
config case_sensitive = false
| datamodel
| filter (xdm.source.user_agent contains "CyberStrikeAI-WebShell/" or (xdm.network.http.url contains "OSPROBE_" or xdm.network.http.url contains "OSPROBE%5F"))
| fields _time, xdm.source.ipv4, xdm.source.user_agent, xdm.network.http.method, xdm.network.http.domain, xdm.network.http.url, xdm.network.http.response_code
xql: reviewed, not executed datamodel Licence DRL 1.1

Detects requests from CyberStrikeAI's webshell manager to a planted webshell: its hard-coded user agent, or the "echo :OSPROBE_%OS%:END" command it sends in the cmd parameter (visible in GET mode). Adapted from the ThreatDefence Sigma rule (MIT licence). False positives: Authorized tests with CyberStrikeAI.

23/11 XQL FabricShadow recon output or recon_svc.jar written on the Quantum Fabric host (Cortex XDR)BankWeaver: Forescout describes Java web shells dropped on Temenos Quantum Fabric deployments left open to anonymous access high T1505.003 T1082
tb-2026-11-23-sortie-de-reconnaissance-fabricshadow-ou-recon-svc-jar-crit-.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief 2026-11-23 · BankWeaver (Temenos Quantum Fabric) · experimental
// FabricShadow recon output or recon_svc.jar written on the middleware host
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.FILE
| filter action_file_path contains "/tmp/.recon_out" or action_file_name = "recon_svc.jar"
| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, actor_process_command_line, action_file_path, action_file_name
xql: reviewed, not executed xdr_data Licence DRL 1.1

Write of /tmp/.recon_out or recon_svc.jar, local traces of the FabricShadow tool that Forescout recommends hunting for. False positives: None expected outside a reproduction by a security team.

2 quotes from the sources
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.

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.