Hunt the edition's threats, ready to copy
For each critical or high topic of the edition, the rules published by vendors and researchers, and Threat Brief rules in Sigma, Cortex XQL and YARA, written from the behaviours described by the sources.
By edition topic
GitLab CE/EE CVE-2026-97229 (CVSS 10) exploited, targeting Alpine Linux
PHP2Shell (CVE-2026-109618/109619): root on PAN-OS firewalls
SIGMA User-Agent php2shell-scan / php2shell-scanner webserver · medium Threat Brief · experimental
title: PHP2Shell scanner User-Agents (CVE-2026-109618/109619)
id: e5f98017-b79e-441f-9222-6a0c8ba428ed
status: experimental
description: Requests carrying PHP2Shell scanner User-Agents identified by Trellix.
references:
- https://www.trellix.com/blogs/research/php2shell-key-info-on-cve-2026-109618-and-cve-2026-109619/
author: Threat Brief (tlpclear.fr)
date: 2026-10-31
tags:
- attack.reconnaissance
- attack.t1595.002
- cve.2026-109618
- cve.2026-109619
logsource:
category: webserver
detection:
selection:
cs-user-agent|contains:
- 'php2shell-scan/'
- 'Php2shell-109618'
- 'php2shell-scanner/'
condition: selection
falsepositives:
- Authorised exposure scans (internal team, contractor)
level: medium
Identifies known PHP2Shell scans in web logs; targeting signal, not compromise. False positives: authorised exposure scans.
Conversions
"cs-user-agent" IN ("*php2shell-scan/*", "*Php2shell-109618*", "*php2shell-scanner/*")cs-user-agent:(*php2shell\-scan\/* OR *Php2shell\-109618* OR *php2shell\-scanner\/*)
XQL Suspicious shell spawned by a PHP worker xdr_data · high Threat Brief · experimental
// 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
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.
Trojanised "Claude Code" extension on the Cursor marketplace: persistent SSH backdoor
SIGMA ssh/autossh -R *:0:localhost:22 (trojanised Claude Code extension) process_creation (Linux, macOS, Windows) · high Threat Brief · experimental
title: Reverse SSH tunnel from trojanised Claude Code extension (Cursor)
id: 9f2989bf-f6e0-46fd-90db-e78371716124
status: experimental
description: Execution of ssh or autossh opening a reverse tunnel to local port 22, backdoor pattern of the anthropic.claude-code 2.1.312/2.1.313 extension from the Cursor marketplace.
references:
- https://www.microsoft.com/en-us/security/blog/2026/10/30/inside-malicious-claude-code-branded-cursor-extension-persistent-ssh-backdoor/
- https://opensourcemalware.com/blog/trojanized-claude-code-extension-plants-persistent-ssh-backdoor
author: Threat Brief (tlpclear.fr)
date: 2026-10-31
tags:
- attack.command-and-control
- attack.t1572
- attack.persistence
- attack.t1098.004
logsource:
category: process_creation
detection:
selection_img:
Image|endswith:
- '/ssh'
- '/autossh'
- '\ssh.exe'
- '\autossh.exe'
selection_tunnel:
CommandLine|contains|all:
- '-R'
- ':0:localhost:22'
selection_ioc:
CommandLine|contains: 'tunnel@134.209.82.225'
condition: selection_img and (selection_tunnel or selection_ioc)
falsepositives:
- Legitimate administrative or support reverse SSH tunnels exposing local sshd
level: high
Detects the reverse SSH tunnel opened by the trojanised extension loader, or any ssh connection to tunnel@134.209.82.225. False positives: legitimate administrative reverse SSH tunnels.
www.microsoft.comopensourcemalware.com
Conversions
Image IN ("*/ssh", "*/autossh", "*\\ssh.exe", "*\\autossh.exe") (CommandLine="*-R*" CommandLine="*:0:localhost:22*") OR CommandLine="*tunnel@134.209.82.225*"(Image:(*\/ssh OR *\/autossh OR *\\ssh.exe OR *\\autossh.exe)) AND ((CommandLine:*\-R* AND CommandLine:*\:0\:localhost\:22*) OR CommandLine:*tunnel@134.209.82.225*)
XQL Traffic to 134.209.82.225 or ssh -R to localhost:22 xdr_data · high Threat Brief · experimental
// 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
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.
YARA Trojanised extension.js in Claude Code extension (Cursor) JavaScript file (VS Code/Cursor extension) · high Threat Brief · experimental
import "hash"
rule TB_20261031_ClaudeCode_Cursor_trojanized_extension
{
meta:
author = "Threat Brief (tlpclear.fr)"
date = "2026-10-31"
reference = "https://www.microsoft.com/en-us/security/blog/2026/10/30/inside-malicious-claude-code-branded-cursor-extension-persistent-ssh-backdoor/"
description = "Trojanised extension.js from anthropic.claude-code 2.1.312/2.1.313 (Cursor marketplace): svc-telemetry key, tunnel to 134.209.82.225, LaunchAgent com.apple.sysmond"
status = "experimental"
strings:
$k = "svc-telemetry" ascii
$ip = "134.209.82.225" ascii
$la = "com.apple.sysmond" ascii
$t = "localhost:22" ascii
condition:
filesize < 20MB and ( hash.sha256(0, filesize) == "ecb58cb29078d9646ad1dcdbe51526f2d9cfea06be5fb2ab183e8ecc3ab6bf15" or ( $ip and 2 of ($k, $la, $t) ) )
}
Detects the loader prepended to extension.js (strings for svc-telemetry key, tunnel IP, LaunchAgent) or the published SHA256. False positives: copies of reports or IOCs referencing these strings.
Published by vendors and researchers
| Rule | Format | Author | Licence |
|---|---|---|---|
| Volexity IOCs: Ivanti Connect Secure chain (2026-10-13) | IOC | Volexity | link only |
| Detections published with the 19.4.2 fix (Onigmo native worker crash, ci regexp guard rejection...) | logique SIEM | GitLab | link only |
| Potential PHP2Shell Exploitation Attempt | Elastic (query) | Elastic | Elastic License v2 |
| Suspicious Command Execution via Web Server | Elastic (EQL) | Elastic | Elastic License v2 |
| Unit 42 Managed Threat Hunting Queries (XQL) and Threat ID 543004 (Generic post-exploitation query, not specific to the CVEs according to Unit 42) | XQL | Unit 42 (Palo Alto Networks) | link only |
| KQL hunting queries (Defender XDR) for the trojanised Claude Code extension | KQL | Microsoft Threat Intelligence | link only |
Get the Threat Brief rules of 2026-10-31
- Sigma rules2 rules · one YAML file (.yml)
- XSIAM correlation rulesone JSON file to import (disabled, scheduled every 10 min)
- Cortex XDR/XSIAM BIOCsXQL queries that translate to BIOCs, pushed by API with push_bioc.py (disabled)
- Cortex XQL queries2 queries · one text file (.txt)
- YARA rules1 rule · one .yar file
- All rules.zip archive, one file per rule, licence included
- Full dataJSON: rules, topics, references, ATT&CK
Automate and understand
- Latest day JSON feedfixed address, updated every morning: plug it into a tool
- Method and limitshow rules are written and checked