title: PHP2Shell - Crontab Changed by Web Server Account or PHP Worker
id: eb6919f4-2366-4d1e-8f8d-5741b5eff406
status: experimental
description: |
  CISA lists CVE-2026-109618 / CVE-2026-109619 in KEV with forensicTriage Yes; persistence is part of the triage.
  Detects the crontab binary run (other than a pure listing) by a web server account or directly by a PHP / web
  worker. Behavioural only, no IOCs. UNVERIFIED FIELD: User is not populated by every Linux telemetry source
  (Sysmon for Linux and auditd-based pipelines differ); check your mapping. The web account list is distro defaults.
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
  - cve.2026-109618
  - cve.2026-109619
logsource:
  product: linux
  category: process_creation
detection:
  crontab:
    Image|endswith: '/crontab'
  web_user:
    User:  # UNVERIFIED FIELD
      - 'www-data'
      - 'apache'
      - 'nginx'
      - 'http'
      - 'wwwrun'
      - 'nobody'
      - 'litespeed'
      - 'caddy'
  web_parent:
    ParentImage|contains:
      - '/php-fpm'
      - '/php-cgi'
      - '/lsphp'
      - '/frankenphp'
      - '/httpd'
      - '/apache2'
  filter_list:
    CommandLine|endswith:
      - ' -l'
      - 'crontab -l'
  condition: crontab and (web_user or web_parent) and not filter_list
falsepositives:
  - Web applications or hosting panels that legitimately manage the web user's crontab
  - Config management running as the web account
level: high
