Detections · 28/11/2026 · BIOC
Cortex XDR / XSIAM BIOC
wp-media-*.php file written under wp-content (WP Rocket, Cortex XDR)
Creation of a wp-media-*.php file under wp-content on a WordPress server: a vulnerable WP Rocket downloads remote content and saves it as a PHP file. Single-event query, BIOC-ready.
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 "wp-content/" and action_file_name ~= "^wp-media-.*.php$")
Type INFILTRATIONSeverity SEV_040_HIGHFILE_EVENT
T1190 - Exploit Public-Facing Application · T1505.003 - Server Software Component: Web Shell