{
 "request_data": [
  {
   "name": "TB pack-agentic-frameworks - RedAmon Stack or Reverse Shell Tunnel on a Host",
   "type": "EXECUTION",
   "severity": "SEV_030_MEDIUM",
   "comment": "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). Logic (process): (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). Experimental BIOC from Threat Brief (https://tlpclear.fr/detections/pack-agentic-frameworks), DRL 1.1: test before enabling.",
   "status": "disabled",
   "is_xql": false,
   "indicator": {
    "runOnCGO": true,
    "investigationType": "PROCESS_EXECUTION_EVENT",
    "investigation": {
     "PROCESS_EXECUTION_EVENT": {
      "filter": {
       "AND": [
        {
         "OR": [
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "redamon-kali"
          },
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "redamon-agent"
          },
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "redamon-webapp"
          },
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "redamon-recon-"
          },
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "redamon-docker-broker"
          },
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "/opt/mcp_servers/run_servers.py"
          },
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "/opt/mcp_servers/tunnel_manager.py"
          },
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "redamon.sh "
          },
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "ngrok tcp 4444"
          },
          {
           "AND": [
            {
             "SEARCH_FIELD": "action_process_image_command_line",
             "SEARCH_TYPE": "CONTAINS",
             "SEARCH_VALUE": "chisel client"
            },
            {
             "SEARCH_FIELD": "action_process_image_command_line",
             "SEARCH_TYPE": "CONTAINS",
             "SEARCH_VALUE": "R:4444:localhost:4444"
            }
           ]
          }
         ]
        }
       ]
      }
     }
    }
   },
   "mitre_tactic_id_and_name": [
    "TA0002 - Execution",
    "TA0011 - Command and Control"
   ],
   "mitre_technique_id_and_name": [
    "T1059 - Command and Scripting Interpreter",
    "T1572 - Protocol Tunneling"
   ]
  }
 ]
}