[
 {
  "rule_id": null,
  "name": "TB 2026-11-27 - .php file written under a modules directory by Apache (Drupal, Cortex XDR)",
  "severity": "SEV_040_HIGH",
  "xql_query": "config case_sensitive = false\n| dataset = xdr_data\n| filter event_type = ENUM.FILE and action_file_path contains \"/modules/\" and action_file_name ~= \"\\.php$\" and actor_process_image_name in (\"apache2\", \"httpd\")\n| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, actor_process_command_line, action_file_path, action_file_name",
  "is_enabled": false,
  "description": "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 from Threat Brief (https://tlpclear.fr/detections/2026-11-27), DRL 1.1: test and tune before enabling. References: https://www.stepsecurity.io/blog/fail2install-cve-2026-132165",
  "alert_name": "Threat Brief - .php file written under a modules directory by Apache (Drupal, Cortex XDR)",
  "alert_category": "PERSISTENCE",
  "alert_type": null,
  "alert_description": "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.",
  "alert_domain": "DOMAIN_SECURITY",
  "alert_fields": {
   "agent_hostname": "agent_hostname",
   "actor_effective_username": "actor_effective_username",
   "actor_process_image_name": "actor_process_image_name",
   "actor_process_command_line": "actor_process_command_line"
  },
  "execution_mode": "SCHEDULED",
  "search_window": "10 minutes",
  "simple_schedule": "10 minutes",
  "timezone": "Europe/Paris",
  "crontab": "*/10 * * * *",
  "suppression_enabled": true,
  "suppression_duration": "24 hours",
  "suppression_fields": [
   "agent_hostname",
   "actor_effective_username"
  ],
  "dataset": "alerts",
  "user_defined_severity": null,
  "user_defined_category": null,
  "mitre_defs": {
   "TA0003 - Persistence": [
    "T1505.003 - Server Software Component: Web Shell"
   ],
   "TA0001 - Initial Access": [
    "T1190 - Exploit Public-Facing Application"
   ]
  },
  "investigation_query_link": "",
  "drilldown_query_timeframe": "ALERT",
  "mapping_strategy": "CUSTOM",
  "action": "ALERTS",
  "lookup_mapping": []
 }
]