Detections · 27/11/2026 · BIOC
Cortex XDR / XSIAM BIOC
.php file written under a modules directory by Apache (Drupal, Cortex XDR)
Creation of a .php file under a /modules/ directory by the Apache process: this is how the reopened installer plants a SQLite database named .php (e.g. web/modules/x.php) that holds PHP code. Complements the 20/11 query on settings.php.
Experimental rule, translated automatically from the XQL query: one BIOC per event type. Create each BIOC disabled, test it, then enable it. DRL 1.1 license.
Two ways to add it
- By hand: Detection Rules → BIOC → Add BIOC, XQL mode, paste the query below (one per BIOC), then set the name, type, severity and ATT&CK shown.
- By API: download the API file and push it with push_bioc.py (Standard API key, BIOCs created disabled). The Import Rules dialog only accepts files exported by Cortex: this file is not meant for it.
dataset = xdr_data
| filter event_type = ENUM.FILE and (action_file_path contains "/modules/" and action_file_name ~= ".php$" and actor_process_image_name in ("apache2", "httpd"))
Type PERSISTENCESeverity SEV_040_HIGHFILE_EVENT
T1505.003 - Server Software Component: Web Shell · T1190 - Exploit Public-Facing Application