title: New PHP File Under a Windows Web Root or Upload Path
id: 5a1e9c32-7b46-5f10-a2cd-8e3b1f0d6a55
status: experimental
description: |
  OUR PATTERN. A new or renamed .php, .phtml or .phar file under inetpub or an upload path.
  See KQL Q2. Path list is OUR ASSUMPTION [UNVERIFIED]. PHP 19 Nov 2026 security release.
  Pack 1.0.0. Not run against live data.
references:
  - https://www.php.net/ChangeLog-8.php
author: CybaVerse threat hunt
date: 2026-11-19
tags:
  - attack.persistence
  - attack.t1505.003
logsource:
  category: file_event
  product: windows
detection:
  selection_name:
    TargetFilename|endswith:
      - '.php'
      - '.phtml'
      - '.phar'
  selection_path:
    TargetFilename|contains:
      - '\inetpub\wwwroot'
      - '\uploads\'
      - '\tmp\'
      - '\cache\'
  condition: selection_name and selection_path
falsepositives:
  - Application deployments and plugin updates
level: medium
