soc-home-lab

Hunt checklist — PHP2Shell (PHP unauthenticated RCE, CVE-2026-109618 / CVE-2026-109619)

Work top to bottom. Check the box when done, note what you found. Detection and forensic triage only — do not attempt to reproduce the flaw or run exploit code.

CISA KEV status

Sources: CISA KEV: 109618 · 109619 · NVD: 109618 · 109619 · Vendor advisory: PHP security advisories GHSA-w8hw-w9fx-j79w / GHSA-6wmf-4rv5-p3rp

Verified against CISA KEV on 2026-12-04 (catalog version 2026.12.03). Re-checked weekly by tools/verify_kev.py.

1. Am I even in scope?

2. What there is no signature for (read first)

3. The post-trigger signals (detection)

4. Correlate

5. Forensic triage (CISA KEV forensicTriage: Yes)

A host that ran unpatched PHP while internet-exposed must be checked for compromise, not merely patched. CISA lists both CVEs with forensic triage required; ransomware use is Unknown for both.

6. Hardening while you patch

Correlation

Practice on the synthetic sample

From the repo root:

python3 07-kev-hunting/detect/php2shell-detect.py \
  07-kev-hunting/samples/php2shell-sysmon.log

Expect one [INCIDENT] (web-01: shell + download tool + outbound + webshell drop inside 30 seconds) and three [SUSPICIOUS] (web-02: legitimate application shell-out — pdftotext, triage to allowlist; web-03: lone shell spawn; web-05: direct download-tool spawn under the worker). web-04 is clean: FPM pool spawns, cron php artisan, admin and monitoring curl, a direct outbound connection from the worker, and a template-cache .php write. All lines are synthetic training data.

Wazuh: 07-kev-hunting/detect/php2shell-wazuh-rules.xml — four rules (100100 shell spawn, 100101 download tool, 100102 webshell drop, 100110 correlation). They were checked structurally only; there is no Wazuh manager in this lab, so validate them on a manager before relying on them (see the file header for the assumptions, including the stock Sysmon decoder fields and the negate / if_matched_group points to confirm).