[
 {
  "rule_id": null,
  "name": "TB 2026-11-26 - Cairn Agent Worker or Dispatcher Command Line",
  "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 agent_os_type = ENUM.AGENT_OS_LINUX\n| filter (action_process_image_command_line contains \"model_provider=\\\"cairn\\\"\" or action_process_image_command_line contains \"model_providers.cairn.base_url\" or action_process_image_command_line contains \"--provider cairn\" or action_process_image_command_line contains \"/tmp/cairn-pi/\" or action_process_image_command_line contains \"/tmp/cairn-prompts/\" or action_process_image_command_line contains \"cairn dispatch --config\" or action_process_image_command_line contains \"cairn-dispatch-\" or action_process_image_command_line contains \"cairn-worker-container\")\n| fields _time, agent_hostname, actor_effective_username, actor_process_image_path, actor_process_command_line, action_process_image_path, action_process_image_command_line",
  "is_enabled": false,
  "description": "Detects command lines that only Cairn produces: the Codex worker's model_provider=\"cairn\" override, the Pi worker's\n--provider cairn and /tmp/cairn-pi/ agent folder, the dispatcher and server entry points, and the cairn-dispatch-\nworker containers. Adapted from the ThreatDefence Sigma rule (MIT licence). Experimental rule from Threat Brief (https://tlpclear.fr/detections/2026-11-26), DRL 1.1: test and tune before enabling. References: https://github.com/oritera/Cairn https://github.com/ThreatDefence/agentic-attack-detections https://github.com/ThreatDefence/agentic-attack-detections/blob/6f547db9ac46969acab4eeb09da63314e0baba26/frameworks/cairn/sigma/process_creation/proc_creation_lnx_cairn_worker_command_line.yml",
  "alert_name": "Threat Brief - Cairn Agent Worker or Dispatcher Command Line",
  "alert_category": "EXECUTION",
  "alert_type": null,
  "alert_description": "Detects command lines that only Cairn produces: the Codex worker's model_provider=\"cairn\" override, the Pi worker's\n--provider cairn and /tmp/cairn-pi/ agent folder, the dispatcher and server entry points, and the cairn-dispatch-\nworker containers. Adapted from the ThreatDefence Sigma rule (MIT licence).",
  "alert_domain": "DOMAIN_SECURITY",
  "alert_fields": {
   "agent_hostname": "agent_hostname",
   "actor_effective_username": "actor_effective_username",
   "actor_process_image_path": "actor_process_image_path",
   "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": {
   "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-11-26 - PentAGI Agent Command Wrapper",
  "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 agent_os_type = ENUM.AGENT_OS_LINUX\n| filter (action_process_image_command_line contains \"trap \\\"\\\" HUP\" and action_process_image_command_line contains \"/proc/self/oom_score_adj\" and action_process_image_command_line contains \"exec sh -c \\\"$0\\\"\")\n| fields _time, agent_hostname, actor_effective_username, actor_process_image_path, actor_process_command_line, action_process_image_path, action_process_image_command_line",
  "is_enabled": false,
  "description": "Detects the shell wrapper PentAGI puts around every agent command in its Kali worker container: it ignores hangups,\nraises the process's oom_score_adj by one to mark the flow, then runs the command with exec sh -c \"$0\". Adapted from the ThreatDefence Sigma rule (MIT licence). Experimental rule from Threat Brief (https://tlpclear.fr/detections/2026-11-26), DRL 1.1: test and tune before enabling. References: https://github.com/vxcontrol/pentagi https://github.com/ThreatDefence/agentic-attack-detections https://github.com/ThreatDefence/agentic-attack-detections/blob/6f547db9ac46969acab4eeb09da63314e0baba26/frameworks/pentagi/sigma/process_creation/proc_creation_lnx_pentagi_agent_command_wrapper.yml",
  "alert_name": "Threat Brief - PentAGI Agent Command Wrapper",
  "alert_category": "EXECUTION",
  "alert_type": null,
  "alert_description": "Detects the shell wrapper PentAGI puts around every agent command in its Kali worker container: it ignores hangups,\nraises the process's oom_score_adj by one to mark the flow, then runs the command with exec sh -c \"$0\". Adapted from the ThreatDefence Sigma rule (MIT licence).",
  "alert_domain": "DOMAIN_SECURITY",
  "alert_fields": {
   "agent_hostname": "agent_hostname",
   "actor_effective_username": "actor_effective_username",
   "actor_process_image_path": "actor_process_image_path",
   "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": {
   "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-11-26 - HexStrike Server or MCP Client Process",
  "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 agent_os_type = ENUM.AGENT_OS_LINUX\n| filter ((action_process_image_command_line contains \"hexstrike_server.py\" or action_process_image_command_line contains \"hexstrike_mcp.py\") or actor_process_command_line contains \"hexstrike_server.py\")\n| fields _time, agent_hostname, actor_effective_username, actor_process_image_path, actor_process_command_line, action_process_image_path, action_process_image_command_line",
  "is_enabled": false,
  "description": "Detects the HexStrike tool server, its MCP client, and tools started by the server. Adapted from the ThreatDefence Sigma rule (MIT licence). Experimental rule from Threat Brief (https://tlpclear.fr/detections/2026-11-26), DRL 1.1: test and tune before enabling. References: https://github.com/0x4m4/hexstrike-ai https://github.com/ThreatDefence/agentic-attack-detections https://github.com/ThreatDefence/agentic-attack-detections/blob/6f547db9ac46969acab4eeb09da63314e0baba26/frameworks/hexstrike/sigma/process_creation/proc_creation_lnx_hexstrike_server_or_mcp_client.yml",
  "alert_name": "Threat Brief - HexStrike Server or MCP Client Process",
  "alert_category": "EXECUTION",
  "alert_type": null,
  "alert_description": "Detects the HexStrike tool server, its MCP client, and tools started by the server. Adapted from the ThreatDefence Sigma rule (MIT licence).",
  "alert_domain": "DOMAIN_SECURITY",
  "alert_fields": {
   "agent_hostname": "agent_hostname",
   "actor_effective_username": "actor_effective_username",
   "actor_process_image_path": "actor_process_image_path",
   "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": {
   "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-11-19 - Shell spawned by an NGINX worker (NGINX2Root, Cortex XDR)",
  "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 = \"nginx\" and actor_process_command_line contains \"worker process\"\n| filter action_process_image_name in (\"sh\", \"bash\", \"dash\", \"curl\", \"wget\", \"python3\", \"perl\")\n| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, actor_process_command_line, action_process_image_name, action_process_image_command_line",
  "is_enabled": false,
  "description": "Same behaviour on Cortex XDR / XSIAM telemetry: a shell or download process started by an NGINX worker. Suitable as a BIOC. Experimental rule from Threat Brief (https://tlpclear.fr/detections/2026-11-19), DRL 1.1: test and tune before enabling. References: https://www.wiz.io/blog/nginx-http2-rce-vulnerabilities https://cert.europa.eu/publications/security-advisories/2026-022/",
  "alert_name": "Threat Brief - Shell spawned by an NGINX worker (NGINX2Root, Cortex XDR)",
  "alert_category": "INFILTRATION",
  "alert_type": null,
  "alert_description": "Same behaviour on Cortex XDR / XSIAM telemetry: a shell or download process started by an NGINX worker. Suitable as a BIOC.",
  "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": {
   "TA0001 - Initial Access": [
    "T1190 - Exploit Public-Facing Application"
   ],
   "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-11-07 - cwpsrv.prev-*, child shell of cwpsrv or traffic to 136.0.141.71",
  "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 \"/usr/local/cwpsrv/bin/cwpsrv.prev-\") or (event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START and actor_process_image_name = \"cwpsrv\" and action_process_image_name in (\"sh\", \"bash\", \"curl\", \"wget\", \"python3\")) or (event_type = ENUM.NETWORK and action_remote_ip = \"136.0.141.71\")\n| fields _time, agent_hostname, event_type, actor_process_image_name, actor_process_command_line, action_process_image_command_line, action_file_path, action_remote_ip",
  "is_enabled": false,
  "description": "CWPdoor host artefacts: cwpsrv.prev-* backup, unexpected cwpsrv children, and traffic to published staging IP. Experimental rule from Threat Brief (https://tlpclear.fr/detections/2026-11-07), DRL 1.1: test and tune before enabling. References: https://thehackernews.com/2026/11/hackers-hide-linux-backdoor-in-control.html https://www.bleepingcomputer.com/news/security/hackers-backdoor-linux-servers-using-trojanized-cwp-web-server/",
  "alert_name": "Threat Brief - cwpsrv.prev-*, child shell of cwpsrv or traffic to 136.0.141.71",
  "alert_category": "PERSISTENCE",
  "alert_type": null,
  "alert_description": "CWPdoor host artefacts: cwpsrv.prev-* backup, unexpected cwpsrv children, and traffic to published staging IP.",
  "alert_domain": "DOMAIN_SECURITY",
  "alert_fields": {
   "agent_hostname": "agent_hostname",
   "action_remote_ip": "action_remote_ip",
   "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",
   "action_remote_ip"
  ],
  "dataset": "alerts",
  "user_defined_severity": null,
  "user_defined_category": null,
  "mitre_defs": {
   "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-11-04 - Shell spawned by node decoding base64 or downloading",
  "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 (\"node\", \"node-red\")\n| filter action_process_image_name in (\"sh\", \"bash\", \"dash\", \"wget\", \"curl\")\n| filter action_process_image_command_line contains \"base64 -d\" or action_process_image_command_line contains \"/dev/shm/\" or action_process_image_command_line contains \"setsid\"\n| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, actor_process_command_line, action_process_image_name, action_process_image_command_line",
  "is_enabled": false,
  "description": "exec node used in exploitation: node launches sh, wget, or curl with base64 -d, /dev/shm, or setsid. Experimental rule from Threat Brief (https://tlpclear.fr/detections/2026-11-04), DRL 1.1: test and tune before enabling. References: https://www.vulncheck.com/blog/exploitation-targeting-node-red",
  "alert_name": "Threat Brief - Shell spawned by node decoding base64 or downloading",
  "alert_category": "EXECUTION",
  "alert_type": null,
  "alert_description": "exec node used in exploitation: node launches sh, wget, or curl with base64 -d, /dev/shm, or setsid.",
  "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": {
   "TA0002 - Execution": [
    "T1059.004 - Command and Scripting Interpreter: Unix Shell"
   ],
   "TA0011 - Command and Control": [
    "T1105 - Ingress Tool Transfer"
   ],
   "TA0005 - Stealth": [
    "T1140 - Deobfuscate/Decode Files or Information"
   ]
  },
  "investigation_query_link": "",
  "drilldown_query_timeframe": "ALERT",
  "mapping_strategy": "CUSTOM",
  "action": "ALERTS",
  "lookup_mapping": []
 },
 {
  "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": []
 }
]