Chasser les menaces de l'édition, prêt à copier
Pour chaque sujet critique ou élevé de l'édition, les règles publiées par les éditeurs et chercheurs, et des règles Threat Brief en Sigma, Cortex XQL et YARA, écrites à partir des comportements décrits par les sources.
Par sujet de l'édition
GitLab CE/EE CVE-2026-97229 (CVSS 10) exploité, Alpine Linux visé
PHP2Shell (CVE-2026-109618/109619) : root sur des pare-feux PAN-OS
SIGMA User-Agent php2shell-scan / php2shell-scanner webserver · medium Threat Brief · expérimentale
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
Repère les scans PHP2Shell connus dans les journaux web ; signal de ciblage, pas de compromission. Faux positifs : scans d'exposition autorisés.
Conversions
"cs-user-agent" IN ("*php2shell-scan/*", "*Php2shell-109618*", "*php2shell-scanner/*")cs-user-agent:(*php2shell\-scan\/* OR *Php2shell\-109618* OR *php2shell\-scanner\/*)
XQL Shell suspect enfant d'un worker PHP xdr_data · high Threat Brief · expérimentale
// 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
Post-exploitation PHP2Shell : shell enfant de php-fpm, php-cgi, lsphp ou Apache avec curl, wget, /dev/tcp ou base64 -d (logique Elastic et Unit 42). Faux positifs : applications PHP appelant légitimement curl via un shell ; mail() via sendmail.
Extension « Claude Code » trojanisée sur le marketplace Cursor : backdoor SSH persistante
SIGMA ssh/autossh -R *:0:localhost:22 (extension Claude Code piégée) process_creation (Linux, macOS, Windows) · high Threat Brief · expérimentale
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
Détecte le tunnel SSH inverse ouvert par le loader de l'extension piégée, ou toute connexion ssh vers tunnel@134.209.82.225. Faux positifs : tunnels SSH inverses d'administration légitimes.
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 Flux vers 134.209.82.225 ou ssh -R vers localhost:22 xdr_data · high Threat Brief · expérimentale
// 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
Postes Cortex XDR joignant l'IP du tunnel de la backdoor (ports 22 et 8099) ou lançant le tunnel SSH inverse décrit par Microsoft. Faux positifs : tunnels SSH inverses d'administration légitimes.
YARA extension.js piégé de l'extension Claude Code (Cursor) fichier JavaScript (extension VS Code/Cursor) · high Threat Brief · expérimentale
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) ) )
}
Reconnaît le loader en tête d'extension.js (chaînes de la clé svc-telemetry, de l'IP du tunnel, du LaunchAgent) ou le SHA256 publié. Faux positifs : copies de rapports ou d'IOC citant ces chaînes.
Publiées par les éditeurs et chercheurs
| Règle | Format | Auteur | Licence |
|---|---|---|---|
| IOC Volexity : chaîne Ivanti Connect Secure (2026-10-13) | IOC | Volexity | lien uniquement |
| Détections publiées avec le correctif 19.4.2 (Onigmo native worker crash, ci regexp guard rejection...) | logique SIEM | GitLab | lien uniquement |
| 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) et Threat ID 543004 (Requête générique post-exploitation, non spécifique aux CVE selon Unit 42) | XQL | Unit 42 (Palo Alto Networks) | lien uniquement |
| Requêtes KQL de chasse (Defender XDR) pour l'extension Claude Code piégée | KQL | Microsoft Threat Intelligence | lien uniquement |
Récupérer les règles Threat Brief du samedi 31 octobre 2026
- Règles Sigma2 règles · un fichier YAML (.yml)
- Règles de corrélation XSIAMun fichier JSON à importer (désactivées, planifiées toutes les 10 min)
- BIOC Cortex XDR/XSIAMrequêtes XQL traduisibles en BIOC, à pousser par API avec push_bioc.py (désactivés)
- Requêtes Cortex XQL2 requêtes · un fichier texte (.txt)
- Règles YARA1 règle · un fichier .yar
- Toutes les règlesarchive .zip, un fichier par règle, licence incluse
- Données complètesJSON : règles, sujets, références, ATT&CK
Automatiser et comprendre
- Flux JSON du dernier jouradresse fixe, mise à jour chaque matin : à brancher dans un outil
- Méthode et limitescomment les règles sont écrites et vérifiées