# PHP2Shell (CVE-2026-109618 / CVE-2026-109619) – Sigma-Regeln # hostspezial GmbH · Version 1.0 · Stand 2026-10-22 · Lizenz: MIT # Beitrag: https://www.hostspezial.de/aktuelles/php2shell-cve-2026-109618-patchen.html # # Grundlage: öffentlich beschriebene Merkmale (Datadog Security Labs, CISA, PHP-Advisories # GHSA-w8hw-w9fx-j79w / GHSA-6wmf-4rv5-p3rp). NICHT gegen einen echten Exploit getestet. # Regel 1 ist das verlässlichste Signal; Regeln 2 und 3 treten auch im Normalbetrieb auf # und sind nur zusammen mit großen POST-Anfragen zur selben Zeit aussagekräftig. title: PHP2Shell - Webserver- oder PHP-Prozess startet Shell oder Downloader id: 3f6c2a1e-8b4d-4c1a-9e57-2d1f0a6b7c01 status: experimental description: >- Erkennt Shells, Downloader und Netzwerkwerkzeuge, die direkt von Apache, PHP-FPM, PHP-CGI oder lsphp gestartet werden – das typische Bild nach erfolgreicher Codeausführung über PHP2Shell (www-data -> sh -c -> bash mit ausgehender Verbindung). references: - https://www.hostspezial.de/aktuelles/php2shell-cve-2026-109618-patchen.html - https://securitylabs.datadoghq.com/articles/php2shell-critical-vulnerabilities-in-php/ - https://www.cisa.gov/news-events/alerts/2026/10/21/critical-vulnerabilities-php-require-immediate-patching author: hostspezial GmbH date: 2026-10-22 tags: - attack.initial-access - attack.t1190 - attack.execution - attack.t1059.004 - attack.persistence - attack.t1505.003 - cve.2026-109618 - cve.2026-109619 logsource: product: linux category: process_creation detection: selection_parent_name: ParentImage|endswith: - '/apache2' - '/httpd' - '/lsphp' - '/php-cgi' selection_parent_fpm: ParentImage|contains: '/php-fpm' selection_parent_versioned: ParentImage|re: '.*/php[0-9.]*(-fpm|-cgi)?[0-9.]*$' selection_child: Image|endswith: - '/sh' - '/bash' - '/dash' - '/zsh' - '/curl' - '/wget' - '/nc' - '/ncat' - '/netcat' - '/socat' - '/perl' - '/python' - '/python3' condition: 1 of selection_parent_* and selection_child falsepositives: - Anwendungen, die bewusst Systembefehle aufrufen (Bildverarbeitung, ffmpeg-Vorschauen, Backup-Plugins, Cron-Wrapper). Nach Messung ausgewählte Pfade per Filter ausnehmen. level: high --- title: PHP2Shell - PHP-Speicherabbruch vor dem Skriptstart id: 3f6c2a1e-8b4d-4c1a-9e57-2d1f0a6b7c02 status: experimental description: >- PHP meldet einen Speicherabbruch mit "Unknown on line 0" – der Abbruch passierte, bevor ein Skript lief, also beim Einlesen der Anfrage. CVE-2026-109618 nutzt genau diesen Pfad. Kommt auch im Normalbetrieb vor; nur zusammen mit großen POST-Anfragen werten. references: - https://securitylabs.datadoghq.com/articles/php2shell-critical-vulnerabilities-in-php/ - https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w author: hostspezial GmbH date: 2026-10-22 tags: - attack.initial-access - attack.t1190 - cve.2026-109618 logsource: product: php service: error definition: PHP-Error-Log bzw. PHP-FPM-/Apache-Error-Log mit PHP-Meldungen detection: keywords_oom: '|all': - 'Allowed memory size of' - 'Unknown on line 0' condition: keywords_oom falsepositives: - Zu niedriges memory_limit bei großen, legitimen Formularen oder Uploads level: medium --- title: PHP2Shell - Apache-Worker stürzt mit Segmentation fault ab id: 3f6c2a1e-8b4d-4c1a-9e57-2d1f0a6b7c03 status: experimental description: >- Apache meldet AH00052 mit Signal 11. Laut Datadog typisch für fehlgeschlagene Ausnutzungsversuche, besonders bei mod_php. Erfolgreiche Angriffe können ohne Absturz enden. references: - https://securitylabs.datadoghq.com/articles/php2shell-critical-vulnerabilities-in-php/ author: hostspezial GmbH date: 2026-10-22 tags: - attack.initial-access - attack.t1190 - cve.2026-109618 - cve.2026-109619 logsource: product: apache service: error definition: Apache-Error-Log (error.log / error_log) detection: keywords_segv: '|all': - 'AH00052' - 'Segmentation fault' condition: keywords_segv falsepositives: - Fehlerhafte PHP-Erweiterungen oder Module, die auch ohne Angriff abstürzen level: medium