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 24 days · 6 repeats hidden (show) · technique T1190 (remove) Most recent first
DateFormatRule and topicLevelATT&CK
02/11 SIGMA php-cgi.exe spawning cmd, PowerShell or certutilPHP2Shell: root on PAN-OS firewalls with exposed management interface, and new unpatched PHP RCE high T1190 T1505.003 T1059.001 T1059.003
tb-2026-11-02-php-cgi-exe-lan-ant-cmd-powershell-ou-certutil.ymlDownload Sigma rule
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: parsed and converted (splunk, lucene) windows process_creation Licence DRL 1.1

PHP2Shell post-exploitation under IIS (Prophet case: php-cgi.exe spawning cmd.exe under IUSR after a WerFault crash). False positives: Administrative PHP scripts executing commands.

01/11 SIGMA php-fpm/php-cgi/apache spawning sh with curl, wget or /dev/tcpPHP2Shell: PAN-OS management interface exploitation, root via Fragnesia high T1190 T1505.003 T1059.004
tb-2026-11-01-php-fpm-php-cgi-apache-lan-ant-sh-avec-curl-wget-ou-dev-tcp.ymlDownload Sigma rule
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: parsed and converted (splunk, lucene) linux process_creation Licence DRL 1.1

PHP2Shell post-exploitation on Linux, including appliances: child shell of a PHP worker with download or reverse shell. False positives: PHP applications calling curl via a shell.

01/11 SIGMA Traffic with 108.165.147.64 (UTA0576, Ivanti)Ivanti Connect Secure: three-CVE chain to unauthenticated root (UTA0576) medium T1190
tb-2026-11-01-trafic-avec-108-165-147-64-uta0576-ivanti.ymlDownload Sigma rule
title: Traffic with UTA0576 Ivanti Connect Secure exploit IP
id: 499c22df-3671-4dec-a8a8-4434f523dcd5
status: experimental
description: Traffic to or from 108.165.147.64, IP published by Volexity for Ivanti Connect Secure chain exploitation (CVE-2026-104935).
references:
  - https://www.volexity.com/blog/2026/10/13/a-series-of-unauthenticated-events-chained-exploitation-of-ivanti-connect-secure-zero-days/
author: Threat Brief (tlpclear.fr)
date: 2026-11-01
tags:
  - attack.initial-access
  - attack.t1190
  - cve.2026-104935
logsource:
  category: firewall
detection:
  selection_dst:
    dst_ip: '108.165.147.64'
  selection_src:
    src_ip: '108.165.147.64'
  condition: 1 of selection_*
falsepositives:
  - Reallocation of the IP to a legitimate third party (short-lived indicator)
level: medium
sigma: parsed and converted (splunk, lucene) firewall Licence DRL 1.1

Volexity indicator: Integrity Checker does not detect the chain, detection relies on network and downstream activity. False positives: IP reallocation.

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.