title: PHP2Shell - Linux Account or Crontab Change (Correlation Base)
id: 1bd1b1a9-2bf4-4b1d-9266-a4f5594de227
name: php2shell_linux_account_or_cron_change
status: experimental
description: |
  Base rule for the temporal correlation php2shell_linux_worker_shell_then_persistence. Matches any account
  management tool or crontab edit, by any user (the attacker may have escalated to root). Low level on its own;
  it is meant to be used through the correlation. Behavioural only, no IOCs.
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.t1053.003
  - attack.t1136.001
  - cve.2026-109618
  - cve.2026-109619
logsource:
  product: linux
  category: process_creation
detection:
  account_tool:
    Image|endswith:
      - '/useradd'
      - '/adduser'
      - '/usermod'
      - '/chpasswd'
      - '/newusers'
      - '/gpasswd'
  crontab:
    Image|endswith: '/crontab'
  filter_list:
    CommandLine|endswith: ' -l'
  condition: account_tool or (crontab and not filter_list)
falsepositives:
  - Routine administration, provisioning and config management
level: low
