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.

54 rules over 22 days Most recent first
DateFormatRule and topicLevelATT&CK
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.

01/11 XQL authorized_keys modified from CursorTrojanised 'Claude Code' extension on Cursor Marketplace high T1098.004
tb-2026-11-01-authorized-keys-modifi-depuis-cursor.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief 2026-11-01 · trojanised Claude Code extension (Cursor) · experimental
// Write to authorized_keys by a process chain originating from Cursor
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.FILE and action_file_path contains "authorized_keys"
| filter causality_actor_process_image_name contains "cursor" or actor_process_command_line contains "anthropic.claude-code"
| fields _time, agent_hostname, actor_effective_username, causality_actor_process_image_name, actor_process_image_name, actor_process_command_line, action_file_path
| sort desc _time
xql: reviewed, not executed xdr_data Licence DRL 1.1

Loader adds svc-telemetry Ed25519 key to authorized_keys from the extension: writing to this file under Cursor is anomalous. False positives: Developer manually adding a key from Cursor's integrated terminal.

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.

31/10 XQL Traffic to 134.209.82.225 or ssh -R to localhost:22Trojanised "Claude Code" extension on the Cursor marketplace: persistent SSH backdoor high T1572 T1071
tb-2026-10-31-flux-vers-134-209-82-225-ou-ssh-r-vers-localhost-22.xqlXSIAM correlation rule
BIOC
Download XQL query
// Threat Brief 2026-10-31 · trojanised Claude Code extension (Cursor) · experimental
// Reverse SSH tunnel or traffic to 134.209.82.225 infrastructure (22, 8099)
config case_sensitive = false
| dataset = xdr_data
| filter (event_type = ENUM.NETWORK and action_remote_ip = "134.209.82.225") or (event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START and action_process_image_name in ("ssh", "autossh", "ssh.exe") and action_process_image_command_line contains ":0:localhost:22")
| fields _time, agent_hostname, actor_effective_username, causality_actor_process_image_name, actor_process_image_name, action_process_image_command_line, action_remote_ip, action_remote_port
| sort desc _time
xql: reviewed, not executed xdr_data Licence DRL 1.1

Cortex XDR endpoints connecting to the backdoor tunnel IP (ports 22 and 8099) or launching the reverse SSH tunnel described by Microsoft. False positives: legitimate administrative reverse SSH tunnels.