[
 {
  "rule_id": null,
  "name": "TB 2026-10-31 - Suspicious shell spawned by a PHP worker",
  "severity": "SEV_040_HIGH",
  "xql_query": "config case_sensitive = false\n| dataset = xdr_data\n| filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START\n| filter actor_process_image_name in (\"php-fpm\", \"php-cgi\", \"lsphp\", \"frankenphp\", \"httpd\", \"apache2\") or actor_process_image_name ~= \"^php-fpm\"\n| filter action_process_image_name in (\"sh\", \"bash\", \"dash\", \"zsh\", \"ksh\")\n| filter action_process_image_command_line contains \"curl\" or action_process_image_command_line contains \"wget\" or action_process_image_command_line contains \"/dev/tcp\" or action_process_image_command_line contains \"base64 -d\" or action_process_image_command_line contains \"/etc/shadow\"\n| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, action_process_image_name, action_process_image_command_line\n| sort desc _time",
  "is_enabled": false,
  "description": "PHP2Shell post-exploitation: shell child of php-fpm, php-cgi, lsphp, or Apache with curl, wget, /dev/tcp, or base64 -d (Elastic and Unit 42 logic). Experimental rule from Threat Brief (https://tlpclear.fr/detections/2026-10-31), DRL 1.1: test and tune before enabling. References: https://www.elastic.co/es/security-labs/threat-command/php2shell-php-rce-detection https://unit42.paloaltonetworks.com/cve-2026-109618-cve-2026-109619/",
  "alert_name": "Threat Brief - Suspicious shell spawned by a PHP worker",
  "alert_category": "INFILTRATION",
  "alert_type": null,
  "alert_description": "PHP2Shell post-exploitation: shell child of php-fpm, php-cgi, lsphp, or Apache with curl, wget, /dev/tcp, or base64 -d (Elastic and Unit 42 logic).",
  "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": "action_process_image_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": {
   "TA0001 - Initial Access": [
    "T1190 - Exploit Public-Facing Application"
   ],
   "TA0003 - Persistence": [
    "T1505.003 - Server Software Component: Web Shell"
   ],
   "TA0002 - Execution": [
    "T1059.004 - Command and Scripting Interpreter: Unix Shell"
   ]
  },
  "investigation_query_link": "",
  "drilldown_query_timeframe": "ALERT",
  "mapping_strategy": "CUSTOM",
  "action": "ALERTS",
  "lookup_mapping": []
 },
 {
  "rule_id": null,
  "name": "TB 2026-10-31 - Traffic to 134.209.82.225 or ssh -R to localhost:22",
  "severity": "SEV_040_HIGH",
  "xql_query": "config case_sensitive = false\n| dataset = xdr_data\n| filter (event_type = ENUM.NETWORK and action_remote_ip = \"134.209.82.225\") or (event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START and action_process_image_name in (\"ssh\", \"autossh\", \"ssh.exe\") and action_process_image_command_line contains \":0:localhost:22\")\n| fields _time, agent_hostname, actor_effective_username, causality_actor_process_image_name, actor_process_image_name, action_process_image_command_line, action_remote_ip, action_remote_port\n| sort desc _time",
  "is_enabled": false,
  "description": "Cortex XDR endpoints connecting to the backdoor tunnel IP (ports 22 and 8099) or launching the reverse SSH tunnel described by Microsoft. Experimental rule from Threat Brief (https://tlpclear.fr/detections/2026-10-31), DRL 1.1: test and tune before enabling. References: https://www.microsoft.com/en-us/security/blog/2026/10/30/inside-malicious-claude-code-branded-cursor-extension-persistent-ssh-backdoor/ https://opensourcemalware.com/blog/trojanized-claude-code-extension-plants-persistent-ssh-backdoor",
  "alert_name": "Threat Brief - Traffic to 134.209.82.225 or ssh -R to localhost:22",
  "alert_category": "OTHER",
  "alert_type": null,
  "alert_description": "Cortex XDR endpoints connecting to the backdoor tunnel IP (ports 22 and 8099) or launching the reverse SSH tunnel described by Microsoft.",
  "alert_domain": "DOMAIN_SECURITY",
  "alert_fields": {
   "agent_hostname": "agent_hostname",
   "actor_effective_username": "actor_effective_username",
   "action_remote_ip": "action_remote_ip",
   "action_remote_port": "action_remote_port",
   "actor_process_image_name": "actor_process_image_name",
   "actor_process_command_line": "action_process_image_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",
   "action_remote_ip"
  ],
  "dataset": "alerts",
  "user_defined_severity": null,
  "user_defined_category": null,
  "mitre_defs": {
   "TA0011 - Command and Control": [
    "T1572 - Protocol Tunneling",
    "T1071 - Application Layer Protocol"
   ]
  },
  "investigation_query_link": "",
  "drilldown_query_timeframe": "ALERT",
  "mapping_strategy": "CUSTOM",
  "action": "ALERTS",
  "lookup_mapping": []
 }
]