title: PHP2Shell - Mirai-Style Download to Temp, chmod and Execute in One Command Line
id: 5e2a8f14-3b6d-4c09-9f71-6a0d2c4e8b21
status: experimental
description: |
  Behaviour-only rule for the download-to-/tmp, chmod +x and execute chain used by Mirai-style droppers, which
  were publicly reported (26 Oct 2026) as follow-on attempts against PHP2Shell targets. No IOCs are used.
  Typically seen as 'sh -c' one-liners spawned by a compromised web worker.
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
author: Cybaverse
date: 2026-10-26
tags:
  - attack.execution
  - attack.t1059.004
  - attack.command-and-control
  - attack.t1105
  - cve.2026-109618
  - cve.2026-109619
logsource:
  product: linux
  category: process_creation
detection:
  download:
    CommandLine|contains:
      - 'wget '
      - 'curl '
      - 'tftp '
      - 'busybox '
      - 'ftpget '
  temp:
    CommandLine|contains:
      - '/tmp'
      - '/dev/shm'
      - '/var/tmp'
  chmod:
    CommandLine|contains: 'chmod '
  condition: download and temp and chmod
falsepositives:
  - Installer scripts and provisioning tooling (check the parent process and user)
level: high
