Detections · 2026-10-31 · linked to the day's edition Edition01/11 →
Detection rules

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.

5Threat Brief
6published elsewhere
4topics covered
Threat Brief rules are experimental: checked automatically (Sigma parsed and converted to Splunk and Elasticsearch, YARA compiled, Cortex XQL reviewed but not executed), never tested on samples or on your data. Validate them in your environment before any production use; do not block on them alone.
Show Threat Brief rules The number is how many rules Threat Brief wrote in this format. Vendor and researcher rules are listed below.

By edition topic

CRITICAL

Ivanti Connect Secure: CVE-2026-111357 and CVE-2026-118527 in KEV, chained with CVE-2026-104935

Read in the edition →
SIGMANo rule: In-memory chain without webshell; the X-DSCGI-PATH header does not appear in standard appliance web logs.
XQLNo rule: No Cortex XDR agent on the ICS appliance; downstream activity (LDAP, spraying) is not described by specific fields.
YARANo rule: Logic flaw, no file dropped (Volexity).
CRITICAL

GitLab CE/EE CVE-2026-97229 (CVSS 10) exploited, targeting Alpine Linux

Read in the edition →
SIGMANo rule: No sources publish the exploit URI, log message, or command (GitLab did not publish CVE-specific indicators).
XQLNo rule: Sources only describe code execution as the git user within the Ruby process, without specific parent/child: rule too broad.
YARANo rule: Integer overflow in the regex engine: no malicious files described.
CRITICAL

PHP2Shell (CVE-2026-109618/109619): root on PAN-OS firewalls

Read in the edition →
SIGMA User-Agent php2shell-scan / php2shell-scanner webserver · medium Threat Brief · experimental
tb-2026-10-31-user-agent-php2shell-scan-php2shell-scanner.ymlDownload Sigma rule
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
sigma: parsed and converted (splunk, lucene) ATT&CK T1595.002 Licence DRL 1.1

Identifies known PHP2Shell scans in web logs; targeting signal, not compromise. False positives: authorised exposure scans.

Conversions
splunk
"cs-user-agent" IN ("*php2shell-scan/*", "*Php2shell-109618*", "*php2shell-scanner/*")
lucene
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
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 ATT&CK T1190, T1505.003, T1059.004 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.

YARANo rule: PHP memory corruption bug; no sources publish a specific webshell or binary for this release.
HIGH

Trojanised "Claude Code" extension on the Cursor marketplace: persistent SSH backdoor

Read in the edition →
SIGMA ssh/autossh -R *:0:localhost:22 (trojanised Claude Code extension) process_creation (Linux, macOS, Windows) · high Threat Brief · experimental
tb-2026-10-31-ssh-autossh-r-0-localhost-22-extension-claude-code-pi-g-e.ymlDownload Sigma rule
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
sigma: parsed and converted (splunk, lucene) ATT&CK T1572, T1098.004 Licence DRL 1.1

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.

Conversions
splunk
Image IN ("*/ssh", "*/autossh", "*\\ssh.exe", "*\\autossh.exe") (CommandLine="*-R*" CommandLine="*:0:localhost:22*") OR CommandLine="*tunnel@134.209.82.225*"
lucene
(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
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 ATT&CK T1572, T1071 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.

YARA Trojanised extension.js in Claude Code extension (Cursor) JavaScript file (VS Code/Cursor extension) · high Threat Brief · experimental
tb-2026-10-31-extension-js-pi-g-de-l-extension-claude-code-cursor.yarDownload YARA rule
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) ) )
}
yara: compiled ATT&CK T1195.002, T1098.004 Licence DRL 1.1

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

RuleFormatAuthorLicence
Volexity IOCs: Ivanti Connect Secure chain (2026-10-13)IOCVolexitylink only
Detections published with the 19.4.2 fix (Onigmo native worker crash, ci regexp guard rejection...)logique SIEMGitLablink only
Potential PHP2Shell Exploitation AttemptElastic (query)ElasticElastic License v2
Suspicious Command Execution via Web ServerElastic (EQL)ElasticElastic 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)XQLUnit 42 (Palo Alto Networks)link only
KQL hunting queries (Defender XDR) for the trojanised Claude Code extensionKQLMicrosoft Threat Intelligencelink only

Get the Threat Brief rules of 2026-10-31

Automate and understand