Règles de détection · Sigma, Cortex XQL, YARA

Toutes les règles, tous les jours

Le catalogue des règles Threat Brief depuis le début : filtrez par format, période, niveau ou technique ATT&CK, ouvrez une règle pour lire son code, et récupérez la sélection en un fichier.

17 règles sur 10 jours · technique T1505.003 (retirer) Plus récentes d'abord
DateFormatRègle et sujetNiveauATT&CK
28/11 SIGMA Fichier wp-media-*.php appelé sous wp-content (WP Rocket CVE-2026-125812)WP Rocket : RCE non authentifiée CVE-2026-125812 exploitée depuis le 25 novembre, des dizaines de milliers de tentatives par jour élevé T1190 T1505.003
tb-2026-11-28-fichier-wp-media-php-appel-sous-wp-content-wp-rocket-cve-202.ymlTélécharger la règle Sigma
title: WP Rocket CVE-2026-125812 planted wp-media-*.php file requested under wp-content
id: c20522aa-b53d-4b4b-960a-d32a9a70c677
status: experimental
description: Request to a PHP file whose name starts with wp-media- under wp-content, the file name pattern Patchstack reports for payloads planted through the WP Rocket rocket_beacon endpoint (CVE-2026-125812). Updating the plugin does not remove these files.
references:
  - https://patchstack.com/articles/critical-wp-rocket-rce-cve-2026-125812-under-active-attack/
author: Threat Brief (tlpclear.fr)
date: 2026-11-28
tags:
  - attack.initial-access
  - attack.t1190
  - attack.persistence
  - attack.t1505.003
  - cve.2026-125812
logsource:
  category: webserver
detection:
  selection:
    cs-uri-stem|contains|all:
      - 'wp-content/'
      - '/wp-media-'
    cs-uri-stem|endswith: '.php'
  filter_not_found:
    sc-status: 404
  condition: selection and not filter_not_found
falsepositives:
  - A legitimate plugin or theme file named wp-media-*.php (none known in WP Rocket itself)
level: high
sigma : analysée et convertie (splunk, lucene) journaux d'accès du serveur web ou du reverse proxy devant WordPress Licence DRL 1.1

Requête vers un fichier PHP nommé wp-media-*.php sous wp-content, le motif signalé par Patchstack pour les charges déposées via l'endpoint rocket_beacon. La mise à jour du plugin ne supprime pas ces fichiers. Faux positifs : fichier légitime d'une extension ou d'un thème nommé wp-media-*.php.

4 citations des sources
28/11 XQL Fichier wp-media-*.php écrit sous wp-content (WP Rocket, Cortex XDR)WP Rocket : RCE non authentifiée CVE-2026-125812 exploitée depuis le 25 novembre, des dizaines de milliers de tentatives par jour élevé T1190 T1505.003
tb-2026-11-28-fichier-wp-media-php-crit-sous-wp-content-wp-rocket-cortex-x.xqlRègle de corrélation XSIAM
BIOC
Télécharger la requête XQL
// 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 : relue, non exécutée télémétrie endpoint Cortex XDR (xdr_data) du serveur web WordPress Licence DRL 1.1

Création d'un fichier wp-media-*.php sous wp-content sur un serveur WordPress : WP Rocket vulnérable télécharge un contenu distant et l'enregistre en fichier PHP. Requête mono-événement, utilisable en BIOC. Faux positifs : extension ou thème légitime qui déploie un fichier nommé wp-media-*.php.

4 citations des sources
27/11 XQL Fichier .php écrit sous un dossier modules par Apache (Drupal, Cortex XDR)Drupal : une seconde faille de l'installeur exploitée, le correctif Fail2Install ne suffisait pas sur les sites en état d'installation incomplet élevé T1505.003 T1190
tb-2026-11-27-fichier-php-crit-sous-un-dossier-modules-par-apache-drupal-c.xqlRègle de corrélation XSIAM
BIOC
Télécharger la requête XQL
// 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 : relue, non exécutée télémétrie endpoint Cortex XDR (xdr_data) du serveur web Drupal Licence DRL 1.1

Création d'un fichier .php dans un dossier /modules/ par le processus Apache : c'est ainsi que l'installeur rouvert dépose une base SQLite nommée en .php (ex. web/modules/x.php) contenant du code PHP. Complète la requête du 20/11 sur settings.php. Faux positifs : module installé ou mis à jour depuis l'interface web de Drupal (Update Manager).

2 citations des 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
27/11 SIGMA Fichier PHP planté exécuté par le contournement .htaccess /modules/<fichier>.php/core/x.php (Drupal)Drupal : une seconde faille de l'installeur exploitée, le correctif Fail2Install ne suffisait pas sur les sites en état d'installation incomplet élevé T1505.003 T1190
tb-2026-11-27-fichier-php-plant-ex-cut-par-le-contournement-htaccess-modul.ymlTélécharger la règle Sigma
title: Drupal planted PHP file executed through the .htaccess core path bypass (/modules/<file>.php/core/x.php)
id: 0afb1e89-f2d2-4046-b6e0-44b270634d72
status: experimental
description: Request whose path contains /modules/ followed by a .php file and /core/, the trick described by StepSecurity to run a PHP file planted in web/modules despite the stock Drupal .htaccess. The fixed releases do not change this rule, so it still applies after the Fail2Install (CVE-2026-132165) and CVE-2026-136716 patches.
references:
  - https://www.stepsecurity.io/blog/fail2install-cve-2026-132165
author: Threat Brief (tlpclear.fr)
date: 2026-11-27
tags:
  - attack.persistence
  - attack.t1505.003
  - attack.initial-access
  - attack.t1190
  - cve.2026-132165
  - cve.2026-136716
logsource:
  category: webserver
detection:
  selection:
    cs-uri-stem|contains|all:
      - '/modules/'
      - '.php/core/'
  filter_blocked:
    sc-status:
      - 403
      - 404
  condition: selection and not filter_blocked
falsepositives:
  - Security scanners or internal tests reproducing the StepSecurity check
level: high
sigma : analysée et convertie (splunk, lucene) journaux d'accès Apache ou reverse proxy devant Drupal Licence DRL 1.1

Requête aboutie vers un chemin /modules/<fichier>.php/core/..., l'astuce décrite par StepSecurity pour exécuter un fichier PHP déposé dans web/modules malgré le .htaccess de Drupal. Élément nouveau par rapport à la règle du 20/11 : la règle .htaccess n'est pas modifiée par les versions corrigées. Faux positifs : scanners ou tests internes qui reproduisent la vérification de StepSecurity.

2 citations des sources
26/11 SIGMA Accès au webshell /unauth/php/change_password.php (PAN-OS)PAN-OS : Palo Alto Networks confirme l'exploitation de Fragnesia chaînée avec PHP2Shell, correctifs pour 10.2 à 12.2 élevé T1505.003 T1190
tb-2026-11-26-acc-s-au-webshell-unauth-php-change-password-php-pan-os.ymlTélécharger la règle Sigma
title: Request to the PAN-OS webshell path /unauth/php/change_password.php (Fragnesia and PHP2Shell)
id: dd52461c-ecf3-44f8-9e76-f11eb39fec6d
status: experimental
description: Request to /unauth/php/change_password.php, the 103-byte PHP webshell planted on PAN-OS management interfaces compromised through the PHP2Shell (CVE-2026-109618, CVE-2026-109619) and Fragnesia (CVE-2026-46300) chain.
references:
  - https://www.ampcuscyber.com/shadowopsintel/fragnesia-cve-2026-46300-chained-with-php2shell-in-active-root-access-attacks
  - https://www.bleepingcomputer.com/news/security/palo-alto-networks-warns-of-fragnesia-flaw-exploited-in-pan-os-attacks/
author: Threat Brief (tlpclear.fr)
date: 2026-11-26
tags:
  - attack.persistence
  - attack.t1505.003
  - attack.initial-access
  - attack.t1190
  - cve.2026-46300
  - cve.2026-109618
logsource:
  category: webserver
detection:
  selection:
    cs-uri-stem|contains: '/unauth/php/change_password.php'
  condition: selection
falsepositives:
  - Security scanners or internal compromise checks requesting the path
level: high
sigma : analysée et convertie (splunk, lucene) journaux web ou reverse proxy devant l'interface de gestion PAN-OS Licence DRL 1.1

Requête vers /unauth/php/change_password.php, le webshell PHP de 103 octets déposé sur les interfaces de gestion PAN-OS compromises par la chaîne PHP2Shell et Fragnesia (Ampcus). Faux positifs : scanners ou vérifications internes de compromission qui demandent ce chemin.

2 citations des sources
  • « It planted a 103 byte PHP webshell at /unauth/php/change_password.php, » www.ampcuscyber.com
  • « check every PAN-OS device for the webshell /unauth/php/change_password.php and remove it. » www.ampcuscyber.com
26/11 XQL Commande de sonde OS du webshell CyberStrikeAIFrameworks d'attaque agentiques : pack Cortex XQL élevé T1082 T1505.003
tb-pack-agentic-frameworks-commande-de-sonde-os-du-webshell-cyberstrikeai.xqlRègle de corrélation XSIAM
BIOC
Télécharger la requête XQL
// 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 : relue, non exécutée xdr_data Licence DRL 1.1

Commande « echo :OSPROBE_%OS%:END » lancée sur chaque nouveau webshell par le gestionnaire de CyberStrikeAI. Adaptée de la règle Sigma ThreatDefence (licence MIT). Faux positifs : Tests autorisés avec CyberStrikeAI.

26/11 XQL User agent ou sonde OS du gestionnaire de webshell CyberStrikeAI dans les journaux webFrameworks d'attaque agentiques : pack Cortex XQL élevé T1505.003
tb-pack-agentic-frameworks-user-agent-ou-sonde-os-du-gestionnaire-de-webshell-cyberstri.xqlRègle de corrélation XSIAMTélécharger la requête XQL
// 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 : relue, non exécutée datamodel Licence DRL 1.1

Requêtes du gestionnaire de webshell CyberStrikeAI : user agent codé en dur ou commande de sonde OS. Adaptée de la règle Sigma ThreatDefence (licence MIT). Faux positifs : Tests autorisés avec CyberStrikeAI.

23/11 YARA Classe Java de l'outil de reconnaissance FabricShadow (BankWeaver)BankWeaver : Forescout décrit des web shells Java déposés sur des déploiements Temenos Quantum Fabric en accès anonyme élevé T1505.003 T1082
tb-2026-11-23-classe-java-de-l-outil-de-reconnaissance-fabricshadow-bankwe.yarTélécharger la règle YARA
rule TB_20261123_BankWeaver_FabricShadow_class
{
    meta:
        author = "Threat Brief (tlpclear.fr)"
        date = "2026-11-23"
        reference = "https://www.forescout.com/blog/bankweaver-campaign-abuses-digital-banking-middleware-to-deploy-web-shells/"
        description = "FabricShadow reconnaissance service (BankWeaver) in a Java class file: RECON_* output markers and ReconPreProcessor or ReconJavaService names"
        status = "experimental"
    strings:
        $m1 = "RECON_PREPROCESSOR" ascii
        $m2 = "RECON_FROM_FABRIC" ascii
        $n1 = "ReconPreProcessor" ascii
        $n2 = "ReconJavaService" ascii
    condition:
        uint32be(0) == 0xCAFEBABE and filesize < 2MB and (any of ($m*)) and (any of ($n*))
}
yara : compilée fichier .class Java Licence DRL 1.1

Fichier .class portant les marqueurs RECON_* et les noms ReconPreProcessor ou ReconJavaService de FabricShadow ; à passer sur les JAR extraits (un JAR est compressé). Faux positifs : Aucun connu.

4 citations des sources
23/11 XQL Sortie de reconnaissance FabricShadow ou recon_svc.jar écrit sur l'hôte Quantum Fabric (Cortex XDR)BankWeaver : Forescout décrit des web shells Java déposés sur des déploiements Temenos Quantum Fabric en accès anonyme élevé T1505.003 T1082
tb-2026-11-23-sortie-de-reconnaissance-fabricshadow-ou-recon-svc-jar-crit-.xqlRègle de corrélation XSIAM
BIOC
Télécharger la requête XQL
// 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 : relue, non exécutée xdr_data Licence DRL 1.1

Écriture de /tmp/.recon_out ou de recon_svc.jar, traces locales de l'outil FabricShadow que Forescout recommande de chasser. Faux positifs : Aucun attendu hors reproduction par une équipe sécurité.

2 citations des sources
21/11 SIGMA Requêtes vers les chemins du webshell ou du tunnel d'Armory Castle sur BeyondTrust RSVMware vCenter : CVE-2026-123890 au KEV, Mandiant détaille la chaîne d'Armory Castle depuis un zero-day BeyondTrust élevé T1190 T1505.003 T1572
tb-2026-11-21-requ-tes-vers-les-chemins-du-webshell-ou-du-tunnel-d-armory-.ymlTélécharger la règle Sigma
title: Requests to Armory Castle webshell or tunnel paths on BeyondTrust Remote Support
id: ad88a9de-a753-4791-80d8-3c5c69b47c95
status: experimental
description: Detects HTTP requests to the staging webshell, the SAWFLY webshell (mangoapi.php) or the BARECLAW WebSocket endpoint (/uidchanarge) that Armory Castle used on BeyondTrust Remote Support appliances after exploiting CVE-2026-102764, the entry point of its vCenter campaign.
references:
  - https://cloud.google.com/blog/topics/threat-intelligence/armory-castle-exploits-beyondtrust
  - https://www.helpnetsecurity.com/2026/11/20/vmware-vcenter-zero-day-cve-2026-123890-exploited/
author: Threat Brief (tlpclear.fr)
date: 2026-11-21
tags:
  - attack.initial-access
  - attack.t1190
  - attack.persistence
  - attack.t1505.003
  - attack.command-and-control
  - attack.t1572
  - cve.2026-102764
logsource:
  category: webserver
detection:
  selection:
    cs-uri-stem|contains:
      - '/app_84304470'
      - '/mangoapi.php'
      - '/uidchanarge'
  condition: selection
falsepositives:
  - Unlikely; the BARECLAW WebSocket path is configurable, so its absence does not clear an appliance
level: high
sigma : analysée et convertie (splunk, lucene) reverse proxy, WAF ou journaux web Licence DRL 1.1

Requêtes HTTP vers le webshell de transit, le webshell SAWFLY (mangoapi.php) ou le point WebSocket de BARECLAW (/uidchanarge) posés par Armory Castle sur BeyondTrust Remote Support après CVE-2026-102764, accès initial de la campagne vCenter. Faux positifs : Peu probable ; le chemin WebSocket est configurable, une absence d'alerte ne blanchit pas l'appliance.

4 citations des sources
13/11 SIGMA Lancement de TSGA ou dépôt de webshell .tpl sur une passerelle Check PointCheck Point Security Gateways : PHP2Shell puis CVE-2026-123039, webshells, backdoor TSGA et wiper élevé T1505.003 T1543 T1068
tb-2026-11-13-lancement-de-tsga-ou-d-p-t-de-webshell-tpl-sur-une-passerell.ymlTélécharger la règle Sigma
title: Check Point gateway TSGA backdoor launch or PHP webshell staging
id: 2cd5c101-eb50-4e34-a3a1-7e5586147df3
status: experimental
description: Detects process command lines seen after PHP2Shell and CVE-2026-123039 exploitation on Check Point Mobile Access gateways, TSGA backdoor launch from /tmp, TSProxy library drop and zz*.tpl webshell staging.
references:
  - https://research.checkpoint.com/2026/php2shell-exploitation-on-check-point-gateway/
author: Threat Brief (tlpclear.fr)
date: 2026-11-13
tags:
  - attack.persistence
  - attack.t1505.003
  - attack.t1543
  - cve.2026-123039
logsource:
  product: linux
  category: process_creation
detection:
  selection_img:
    Image|endswith:
      - '/tmp/CPconfigdaemon'
      - '/slot_CPconfigdaemon'
  selection_cmd:
    CommandLine|contains:
      - '/tmp/CPconfigdaemon'
      - '/tmp/.bd.log'
      - '/tmp/.up.tpl'
      - '/lib/libcpfwcommon.so'
  selection_webshell:
    CommandLine|contains|all:
      - 'base64 -d'
      - '/zz'
      - '.tpl'
  condition: 1 of selection_*
falsepositives:
  - Unlikely on a gateway, the paths are not used by legitimate Check Point components according to the source
  - Administrator writing a portal template named zz*.tpl from base64
level: high
sigma : analysée et convertie (splunk, lucene) linux process_creation (passerelle Gaia) Licence DRL 1.1

Lignes de commande observées par Check Point Research après PHP2Shell et CVE-2026-123039 : lancement de /tmp/CPconfigdaemon, journal /tmp/.bd.log, dépôt de /lib/libcpfwcommon.so et écriture de webshells zz*.tpl décodés en base64. Faux positifs : Peu probable sur une passerelle : ces chemins ne sont pas utilisés par des composants légitimes selon la source ; Administrateur écrivant un gabarit zz*.tpl du portail depuis du base64.

6 citations des sources
13/11 YARA TSGA / TSProxy, wiper destroy_v6 et webshell zz*.tpl (Check Point)Check Point Security Gateways : PHP2Shell puis CVE-2026-123039, webshells, backdoor TSGA et wiper élevé T1505.003 T1485 T1090
tb-2026-11-13-tsga-tsproxy-wiper-destroy-v6-et-webshell-zz-tpl-check-point.yarTélécharger la règle YARA
import "hash"

rule TB_20261113_CheckPoint_TSGA_TSProxy
{
    meta:
        author = "Threat Brief (tlpclear.fr)"
        date = "2026-11-13"
        reference = "https://research.checkpoint.com/2026/php2shell-exploitation-on-check-point-gateway/"
        description = "TSGA backdoor (slot_CPconfigdaemon) and its embedded TSProxy library seen on Check Point gateways after PHP2Shell"
        status = "experimental"
    strings:
        $s1 = "slot_CPconfigdaemon" ascii
        $s2 = "libcpfwcommon.so" ascii
        $s3 = "/tmp/.p_sock" ascii
    condition:
        uint32(0) == 0x464c457f and filesize < 20MB and
        (2 of ($s*) or
         hash.sha256(0, filesize) == "4171b521fa6441382aa2fa014a08e18ff9a6e0ab6096c9144072bf46b37a2ec8" or
         hash.sha256(0, filesize) == "d7549671c7189979f0624ec52dad9ea6a707d23146e3585ab8f8c4720eca0c63")
}

rule TB_20261113_CheckPoint_destroy_v6_wiper
{
    meta:
        author = "Threat Brief (tlpclear.fr)"
        date = "2026-11-13"
        reference = "https://research.checkpoint.com/2026/php2shell-exploitation-on-check-point-gateway/"
        description = "destroy_v6 Linux wiper dropping DREAM_ANNEXATION.txt notes, deployed on ESXi after the Check Point gateway intrusion"
        status = "experimental"
    strings:
        $note = "DREAM_ANNEXATION.txt" ascii
    condition:
        uint32(0) == 0x464c457f and filesize < 20MB and
        ($note or hash.sha256(0, filesize) == "c7d9477309fac6c638a1128442056a242de086996add8cb49cd6496c36003237")
}

rule TB_20261113_CheckPoint_tpl_webshell
{
    meta:
        author = "Threat Brief (tlpclear.fr)"
        date = "2026-11-13"
        reference = "https://research.checkpoint.com/2026/php2shell-exploitation-on-check-point-gateway/"
        description = "Expanded zz*.tpl PHP webshell of the Mobile Access portal: hardcoded key and fixed upload path"
        status = "experimental"
    strings:
        $key = "zz2026" ascii
        $up = "/tmp/.up.tpl" ascii
    condition:
        filesize < 200KB and (($key and $up) or
        hash.sha256(0, filesize) == "edb3e92eb7bda7413a09edcc4b1ba3cbed4bcdf42808a8abce63b6e4c3fda2b3")
}
yara : compilée fichiers ELF et gabarits .tpl Licence DRL 1.1

Trois règles sur les fichiers décrits par Check Point Research : binaire TSGA et bibliothèque TSProxy, wiper destroy_v6 qui écrit DREAM_ANNEXATION.txt, webshell .tpl à clé zz2026 ; complétées par les hashes publiés. Faux positifs : Aucun fichier légitime connu ne porte ces chaînes ensemble.

6 citations des sources
07/11 YARA Binaire cwpsrv portant les en-têtes X-Ngx-Integrity-*CWPdoor : un cwpsrv trojanisé transforme Control Web Panel en backdoor passive élevé T1505.003 T1554
tb-2026-11-07-binaire-cwpsrv-portant-les-en-t-tes-x-ngx-integrity.yarTélécharger la règle YARA
rule TB_20261107_CWPdoor_cwpsrv_integrity
{
    meta:
        author = "Threat Brief (tlpclear.fr)"
        date = "2026-11-07"
        reference = "https://thehackernews.com/2026/11/hackers-hide-linux-backdoor-in-control.html"
        description = "Trojanised cwpsrv binary (CWPdoor): X-Ngx-Integrity-* headers and ngx_http_integrity_helper socket"
        status = "experimental"
    strings:
        $h1 = "X-Ngx-Integrity-Time" ascii
        $h2 = "X-Ngx-Integrity-Data" ascii
        $h3 = "X-Ngx-Integrity-Sig" ascii
        $s1 = "ngx_http_integrity_helper" ascii
    condition:
        uint32(0) == 0x464c457f and filesize < 30MB and (2 of ($h*) or ($s1 and 1 of ($h*)))
}
yara : compilée fichier ELF Licence DRL 1.1

Chaînes du déclencheur de la backdoor décrite par QiAnXin XLab, à scanner sur /usr/local/cwpsrv/bin/cwpsrv et les fichiers cwpsrv.prev-*. Faux positifs : aucun connu.

07/11 XQL cwpsrv.prev-*, shell enfant de cwpsrv ou flux vers 136.0.141.71CWPdoor : un cwpsrv trojanisé transforme Control Web Panel en backdoor passive élevé T1505.003 T1059.004
tb-2026-11-07-cwpsrv-prev-shell-enfant-de-cwpsrv-ou-flux-vers-136-0-141-71.xqlRègle de corrélation XSIAM
BIOC
Télécharger la requête XQL
// 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 : relue, non exécutée xdr_data Licence DRL 1.1

Traces hôte de CWPdoor : sauvegarde cwpsrv.prev-*, enfants inattendus de cwpsrv et flux vers l'IP de staging publiée. Faux positifs : mise à jour CWP légitime créant une sauvegarde.

02/11 SIGMA php-cgi.exe lançant cmd, PowerShell ou certutilPHP2Shell : root sur pare-feu PAN-OS à management exposé, et nouvelle RCE PHP non corrigée élevé T1190 T1505.003 T1059.001 T1059.003
tb-2026-11-02-php-cgi-exe-lan-ant-cmd-powershell-ou-certutil.ymlTélécharger la règle Sigma
title: cmd or PowerShell spawned by php-cgi.exe (PHP2Shell)
id: ba48f153-1434-44be-a611-de4cdde132f3
status: experimental
description: php-cgi.exe or php.exe spawning cmd.exe, powershell.exe or certutil.exe, pattern observed following PHP2Shell exploitation on IIS.
references:
  - https://www.prophetsecurity.ai/blog/php2shell
  - https://www.trellix.com/blogs/research/php2shell-key-info-on-cve-2026-109618-and-cve-2026-109619/
author: Threat Brief (tlpclear.fr)
date: 2026-11-02
tags:
  - attack.initial-access
  - attack.t1190
  - attack.persistence
  - attack.t1505.003
  - cve.2026-109618
logsource:
  product: windows
  category: process_creation
detection:
  selection:
    ParentImage|endswith:
      - '\php-cgi.exe'
      - '\php.exe'
    Image|endswith:
      - '\cmd.exe'
      - '\powershell.exe'
      - '\pwsh.exe'
      - '\certutil.exe'
  condition: selection
falsepositives:
  - Administrative PHP scripts spawning system commands (scheduled tasks, CLI tools)
level: high
sigma : analysée et convertie (splunk, lucene) windows process_creation Licence DRL 1.1

Post-exploitation PHP2Shell sous IIS (cas Prophet : php-cgi.exe lançant cmd.exe sous IUSR après un crash WerFault). Faux positifs : scripts PHP d'administration lançant des commandes.

01/11 SIGMA php-fpm/php-cgi/apache lançant sh avec curl, wget ou /dev/tcpPHP2Shell : exploitation des interfaces de management PAN-OS, root via Fragnesia élevé T1190 T1505.003 T1059.004
tb-2026-11-01-php-fpm-php-cgi-apache-lan-ant-sh-avec-curl-wget-ou-dev-tcp.ymlTélécharger la règle Sigma
title: Suspicious shell spawned by a PHP worker (PHP2Shell)
id: 62e0bd11-c170-44f7-8cfc-0629bdd8be32
status: experimental
description: Child shell of php-fpm, php-cgi, lsphp, frankenphp, httpd or apache2 with download, reverse shell or base64 decoding, PHP2Shell post-exploitation.
references:
  - https://www.elastic.co/es/security-labs/threat-command/php2shell-php-rce-detection
  - https://www.prophetsecurity.ai/blog/php2shell
author: Threat Brief (tlpclear.fr)
date: 2026-11-01
tags:
  - attack.initial-access
  - attack.t1190
  - attack.persistence
  - attack.t1505.003
  - cve.2026-109618
logsource:
  product: linux
  category: process_creation
detection:
  selection_parent:
    ParentImage|endswith:
      - '/php-fpm'
      - '/php-cgi'
      - '/lsphp'
      - '/frankenphp'
      - '/httpd'
      - '/apache2'
  selection_parent_fpm:
    ParentImage|contains: '/php-fpm'
  selection_shell:
    Image|endswith:
      - '/sh'
      - '/bash'
      - '/dash'
      - '/zsh'
      - '/ksh'
  selection_cmd:
    CommandLine|contains:
      - 'curl '
      - 'wget '
      - '/dev/tcp/'
      - 'base64 -d'
      - '/etc/shadow'
  condition: (selection_parent or selection_parent_fpm) and selection_shell and selection_cmd
falsepositives:
  - PHP applications calling curl or wget via a shell (updates, imports)
level: high
sigma : analysée et convertie (splunk, lucene) linux process_creation Licence DRL 1.1

Post-exploitation PHP2Shell sur Linux, y compris appliances : shell enfant d'un worker PHP avec téléchargement ou reverse shell. Faux positifs : applications PHP appelant curl via un shell.

31/10 XQL Shell suspect enfant d'un worker PHPPHP2Shell (CVE-2026-109618/109619) : root sur des pare-feux PAN-OS élevé T1190 T1505.003 T1059.004
tb-2026-10-31-shell-suspect-enfant-d-un-worker-php.xqlRègle de corrélation XSIAM
BIOC
Télécharger la requête XQL
// 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 : relue, non exécutée xdr_data Licence DRL 1.1

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.