title: PHP2Shell - Local User or Group Added Under a Web Worker on Windows
id: 87d09a5a-510f-487b-bcfc-6ef9a29875e2
status: experimental
description: |
  Detects net.exe / net1.exe "user ... /add" or "localgroup ... /add" with a PHP (php-cgi, php) or IIS / Apache
  worker as the parent, as persistence after CVE-2026-109618 / CVE-2026-109619 exploitation on a Windows web
  host (CISA KEV, forensicTriage Yes). Behavioural only, no IOCs. Shell intermediaries (cmd.exe) are not covered
  by the parent match; pair with Security event 4720 review on web hosts.
references:
  - https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w
  - https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp
  - https://www.cisa.gov/news-events/alerts/2026/10/21/critical-vulnerabilities-php-require-immediate-patching
  - https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk
author: Cybaverse
date: 2026-10-26
tags:
  - attack.persistence
  - attack.t1136.001
  - cve.2026-109618
  - cve.2026-109619
logsource:
  product: windows
  category: process_creation
detection:
  parent:
    ParentImage|endswith:
      - '\php-cgi.exe'
      - '\php.exe'
      - '\w3wp.exe'
      - '\httpd.exe'
  net:
    - Image|endswith:
        - '\net.exe'
        - '\net1.exe'
    - OriginalFileName:
        - 'net.exe'
        - 'net1.exe'
  add:
    CommandLine|contains|all:
      - ' user'
      - '/add'
  add_group:
    CommandLine|contains|all:
      - ' localgroup'
      - '/add'
  condition: parent and net and (add or add_group)
falsepositives:
  - Very unlikely on a web host; review any hit
level: high
