[
 {
  "rule_id": null,
  "name": "TB 2026-11-26 - RedAmon Stack or Reverse Shell Tunnel on a Host",
  "severity": "SEV_030_MEDIUM",
  "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 ((action_process_image_command_line contains \"redamon-kali\" or action_process_image_command_line contains \"redamon-agent\" or action_process_image_command_line contains \"redamon-webapp\" or action_process_image_command_line contains \"redamon-recon-\" or action_process_image_command_line contains \"redamon-docker-broker\" or action_process_image_command_line contains \"/opt/mcp_servers/run_servers.py\" or action_process_image_command_line contains \"/opt/mcp_servers/tunnel_manager.py\" or action_process_image_command_line contains \"redamon.sh \") or action_process_image_command_line contains \"ngrok tcp 4444\" or (action_process_image_command_line contains \"chisel client\" and action_process_image_command_line contains \"R:4444:localhost:4444\"))\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 RedAmon Docker stack being run (its container names, control script and sandbox servers) and the\ntunnels it opens for reverse shells: ngrok or chisel forwarding port 4444 to the Metasploit handler in its Kali\nsandbox. RedAmon is a penetration testing platform; on a host that is not a tester's, find out who installed it. 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/samugit83/redamon https://github.com/ThreatDefence/agentic-attack-detections https://github.com/ThreatDefence/agentic-attack-detections/blob/6f547db9ac46969acab4eeb09da63314e0baba26/frameworks/redamon/sigma/process_creation/proc_creation_redamon_stack_or_tunnel.yml",
  "alert_name": "Threat Brief - RedAmon Stack or Reverse Shell Tunnel on a Host",
  "alert_category": "EXECUTION",
  "alert_type": null,
  "alert_description": "Detects the RedAmon Docker stack being run (its container names, control script and sandbox servers) and the\ntunnels it opens for reverse shells: ngrok or chisel forwarding port 4444 to the Metasploit handler in its Kali\nsandbox. RedAmon is a penetration testing platform; on a host that is not a tester's, find out who installed it. 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 - Command and Scripting Interpreter"
   ],
   "TA0011 - Command and Control": [
    "T1572 - Protocol Tunneling"
   ]
  },
  "investigation_query_link": "",
  "drilldown_query_timeframe": "ALERT",
  "mapping_strategy": "CUSTOM",
  "action": "ALERTS",
  "lookup_mapping": []
 },
 {
  "rule_id": null,
  "name": "TB 2026-11-21 - BARECLAW tunnel, sh copied as dbus-authd or bt-secrets read (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 (action_process_image_command_line contains \"--ws-path\" and action_process_image_command_line contains \"--obfs\") or action_process_image_name = \"ingredi_ws\" or action_process_image_name = \"dbus-authd\" or action_process_image_command_line contains \"/ns/sbin/bt-secrets get\"\n| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, actor_process_command_line, action_process_image_name, action_process_image_path, action_process_image_command_line",
  "is_enabled": false,
  "description": "Process start carrying the BARECLAW command line (--ws-path, --obfs), the ingredi_ws binary, the sh copy named dbus-authd or the bt-secrets vault read, on a Linux host with a Cortex agent. Experimental rule from Threat Brief (https://tlpclear.fr/detections/2026-11-21), DRL 1.1: test and tune before enabling. References: https://cloud.google.com/blog/topics/threat-intelligence/armory-castle-exploits-beyondtrust",
  "alert_name": "Threat Brief - BARECLAW tunnel, sh copied as dbus-authd or bt-secrets read (Cortex XDR)",
  "alert_category": "OTHER",
  "alert_type": null,
  "alert_description": "Process start carrying the BARECLAW command line (--ws-path, --obfs), the ingredi_ws binary, the sh copy named dbus-authd or the bt-secrets vault read, on a Linux host with a Cortex agent.",
  "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_image_path": "action_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": {
   "TA0011 - Command and Control": [
    "T1572 - Protocol Tunneling"
   ],
   "TA0004 - Privilege Escalation": [
    "T1548 - Abuse Elevation Control Mechanism"
   ],
   "TA0006 - Credential Access": [
    "T1555 - Credentials from Password Stores"
   ]
  },
  "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": []
 }
]