{
 "request_data": [
  {
   "name": "TB 2026-11-26 - Cairn Agent Worker or Dispatcher Command Line",
   "type": "EXECUTION",
   "severity": "SEV_040_HIGH",
   "comment": "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). Logic (process): agent_os_type = AGENT_OS_LINUX AND (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). Experimental BIOC from Threat Brief (https://tlpclear.fr/detections/2026-11-26), DRL 1.1: test before enabling.",
   "status": "disabled",
   "is_xql": false,
   "indicator": {
    "runOnCGO": true,
    "investigationType": "PROCESS_EXECUTION_EVENT",
    "investigation": {
     "PROCESS_EXECUTION_EVENT": {
      "filter": {
       "AND": [
        {
         "SEARCH_FIELD": "agent_os_type",
         "SEARCH_TYPE": "EQ",
         "SEARCH_VALUE": "AGENT_OS_LINUX"
        },
        {
         "OR": [
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "model_provider=\"cairn\""
          },
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "model_providers.cairn.base_url"
          },
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "--provider cairn"
          },
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "/tmp/cairn-pi/"
          },
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "/tmp/cairn-prompts/"
          },
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "cairn dispatch --config"
          },
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "cairn-dispatch-"
          },
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "cairn-worker-container"
          }
         ]
        }
       ]
      }
     }
    }
   },
   "mitre_tactic_id_and_name": [
    "TA0002 - Execution"
   ],
   "mitre_technique_id_and_name": [
    "T1059.004 - Command and Scripting Interpreter: Unix Shell"
   ]
  },
  {
   "name": "TB 2026-11-26 - PentAGI Agent Command Wrapper",
   "type": "EXECUTION",
   "severity": "SEV_040_HIGH",
   "comment": "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). Logic (process): agent_os_type = AGENT_OS_LINUX AND (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\"). Experimental BIOC from Threat Brief (https://tlpclear.fr/detections/2026-11-26), DRL 1.1: test before enabling.",
   "status": "disabled",
   "is_xql": false,
   "indicator": {
    "runOnCGO": true,
    "investigationType": "PROCESS_EXECUTION_EVENT",
    "investigation": {
     "PROCESS_EXECUTION_EVENT": {
      "filter": {
       "AND": [
        {
         "SEARCH_FIELD": "agent_os_type",
         "SEARCH_TYPE": "EQ",
         "SEARCH_VALUE": "AGENT_OS_LINUX"
        },
        {
         "SEARCH_FIELD": "action_process_image_command_line",
         "SEARCH_TYPE": "CONTAINS",
         "SEARCH_VALUE": "trap \"\" HUP"
        },
        {
         "SEARCH_FIELD": "action_process_image_command_line",
         "SEARCH_TYPE": "CONTAINS",
         "SEARCH_VALUE": "/proc/self/oom_score_adj"
        },
        {
         "SEARCH_FIELD": "action_process_image_command_line",
         "SEARCH_TYPE": "CONTAINS",
         "SEARCH_VALUE": "exec sh -c \"$0\""
        }
       ]
      }
     }
    }
   },
   "mitre_tactic_id_and_name": [
    "TA0002 - Execution"
   ],
   "mitre_technique_id_and_name": [
    "T1059.004 - Command and Scripting Interpreter: Unix Shell"
   ]
  },
  {
   "name": "TB 2026-11-26 - HexStrike Server or MCP Client Process",
   "type": "EXECUTION",
   "severity": "SEV_040_HIGH",
   "comment": "Detects the HexStrike tool server, its MCP client, and tools started by the server. Adapted from the ThreatDefence Sigma rule (MIT licence). Logic (process): agent_os_type = AGENT_OS_LINUX AND ((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). Experimental BIOC from Threat Brief (https://tlpclear.fr/detections/2026-11-26), DRL 1.1: test before enabling.",
   "status": "disabled",
   "is_xql": false,
   "indicator": {
    "runOnCGO": true,
    "investigationType": "PROCESS_EXECUTION_EVENT",
    "investigation": {
     "PROCESS_EXECUTION_EVENT": {
      "filter": {
       "AND": [
        {
         "SEARCH_FIELD": "agent_os_type",
         "SEARCH_TYPE": "EQ",
         "SEARCH_VALUE": "AGENT_OS_LINUX"
        },
        {
         "OR": [
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "hexstrike_server.py"
          },
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "hexstrike_mcp.py"
          },
          {
           "SEARCH_FIELD": "actor_process_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "hexstrike_server.py"
          }
         ]
        }
       ]
      }
     }
    }
   },
   "mitre_tactic_id_and_name": [
    "TA0002 - Execution"
   ],
   "mitre_technique_id_and_name": [
    "T1059.004 - Command and Scripting Interpreter: Unix Shell"
   ]
  },
  {
   "name": "TB 2026-11-07 - cwpsrv.prev-*, child shell of cwpsrv or traffic to 136.0.141.71 [process]",
   "type": "PERSISTENCE",
   "severity": "SEV_040_HIGH",
   "comment": "CWPdoor host artefacts: cwpsrv.prev-* backup, unexpected cwpsrv children, and traffic to published staging IP. Logic (process): actor_process_image_name = cwpsrv AND action_process_image_name in sh, bash, curl, wget, python3. Experimental BIOC from Threat Brief (https://tlpclear.fr/detections/2026-11-07), DRL 1.1: test before enabling.",
   "status": "disabled",
   "is_xql": false,
   "indicator": {
    "runOnCGO": true,
    "investigationType": "PROCESS_EXECUTION_EVENT",
    "investigation": {
     "PROCESS_EXECUTION_EVENT": {
      "filter": {
       "AND": [
        {
         "SEARCH_FIELD": "actor_process_image_name",
         "SEARCH_TYPE": "EQ",
         "SEARCH_VALUE": "cwpsrv"
        },
        {
         "OR": [
          {
           "SEARCH_FIELD": "action_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "sh"
          },
          {
           "SEARCH_FIELD": "action_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "bash"
          },
          {
           "SEARCH_FIELD": "action_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "curl"
          },
          {
           "SEARCH_FIELD": "action_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "wget"
          },
          {
           "SEARCH_FIELD": "action_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "python3"
          }
         ]
        }
       ]
      }
     }
    }
   },
   "mitre_tactic_id_and_name": [
    "TA0003 - Persistence",
    "TA0002 - Execution"
   ],
   "mitre_technique_id_and_name": [
    "T1505.003 - Server Software Component: Web Shell",
    "T1059.004 - Command and Scripting Interpreter: Unix Shell"
   ]
  },
  {
   "name": "TB 2026-11-07 - cwpsrv.prev-*, child shell of cwpsrv or traffic to 136.0.141.71 [file]",
   "type": "PERSISTENCE",
   "severity": "SEV_040_HIGH",
   "comment": "CWPdoor host artefacts: cwpsrv.prev-* backup, unexpected cwpsrv children, and traffic to published staging IP. Logic (file): action_file_path contains /usr/local/cwpsrv/bin/cwpsrv.prev-. Experimental BIOC from Threat Brief (https://tlpclear.fr/detections/2026-11-07), DRL 1.1: test before enabling.",
   "status": "disabled",
   "is_xql": false,
   "indicator": {
    "runOnCGO": true,
    "investigationType": "FILE_EVENT",
    "investigation": {
     "FILE_EVENT": {
      "filter": {
       "AND": [
        {
         "SEARCH_FIELD": "action_file_path",
         "SEARCH_TYPE": "CONTAINS",
         "SEARCH_VALUE": "/usr/local/cwpsrv/bin/cwpsrv.prev-"
        }
       ]
      }
     }
    }
   },
   "mitre_tactic_id_and_name": [
    "TA0003 - Persistence",
    "TA0002 - Execution"
   ],
   "mitre_technique_id_and_name": [
    "T1505.003 - Server Software Component: Web Shell",
    "T1059.004 - Command and Scripting Interpreter: Unix Shell"
   ]
  },
  {
   "name": "TB 2026-11-07 - cwpsrv.prev-*, child shell of cwpsrv or traffic to 136.0.141.71 [network]",
   "type": "PERSISTENCE",
   "severity": "SEV_040_HIGH",
   "comment": "CWPdoor host artefacts: cwpsrv.prev-* backup, unexpected cwpsrv children, and traffic to published staging IP. Logic (network): action_remote_ip = 136.0.141.71. Experimental BIOC from Threat Brief (https://tlpclear.fr/detections/2026-11-07), DRL 1.1: test before enabling.",
   "status": "disabled",
   "is_xql": false,
   "indicator": {
    "runOnCGO": true,
    "investigationType": "NETWORK_EVENT",
    "investigation": {
     "NETWORK_EVENT": {
      "filter": {
       "AND": [
        {
         "SEARCH_FIELD": "action_remote_ip",
         "SEARCH_TYPE": "EQ",
         "SEARCH_VALUE": "136.0.141.71"
        }
       ]
      }
     }
    }
   },
   "mitre_tactic_id_and_name": [
    "TA0003 - Persistence",
    "TA0002 - Execution"
   ],
   "mitre_technique_id_and_name": [
    "T1505.003 - Server Software Component: Web Shell",
    "T1059.004 - Command and Scripting Interpreter: Unix Shell"
   ]
  },
  {
   "name": "TB 2026-11-04 - Shell spawned by node decoding base64 or downloading",
   "type": "EXECUTION",
   "severity": "SEV_040_HIGH",
   "comment": "exec node used in exploitation: node launches sh, wget, or curl with base64 -d, /dev/shm, or setsid. Logic (process): actor_process_image_name in node, node-red AND action_process_image_name in sh, bash, dash, wget, curl AND (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). Experimental BIOC from Threat Brief (https://tlpclear.fr/detections/2026-11-04), 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": "actor_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "node"
          },
          {
           "SEARCH_FIELD": "actor_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "node-red"
          }
         ]
        },
        {
         "OR": [
          {
           "SEARCH_FIELD": "action_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "sh"
          },
          {
           "SEARCH_FIELD": "action_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "bash"
          },
          {
           "SEARCH_FIELD": "action_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "dash"
          },
          {
           "SEARCH_FIELD": "action_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "wget"
          },
          {
           "SEARCH_FIELD": "action_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "curl"
          }
         ]
        },
        {
         "OR": [
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "base64 -d"
          },
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "/dev/shm/"
          },
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "setsid"
          }
         ]
        }
       ]
      }
     }
    }
   },
   "mitre_tactic_id_and_name": [
    "TA0002 - Execution",
    "TA0011 - Command and Control",
    "TA0005 - Stealth"
   ],
   "mitre_technique_id_and_name": [
    "T1059.004 - Command and Scripting Interpreter: Unix Shell",
    "T1105 - Ingress Tool Transfer",
    "T1140 - Deobfuscate/Decode Files or Information"
   ]
  },
  {
   "name": "TB 2026-10-31 - Suspicious shell spawned by a PHP worker",
   "type": "INFILTRATION",
   "severity": "SEV_040_HIGH",
   "comment": "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). Logic (process): (actor_process_image_name in php-fpm, php-cgi, lsphp, frankenphp, httpd, apache2 OR actor_process_image_name ~= ^php-fpm) AND action_process_image_name in sh, bash, dash, zsh, ksh AND (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). Experimental BIOC from Threat Brief (https://tlpclear.fr/detections/2026-10-31), 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": "actor_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "php-fpm"
          },
          {
           "SEARCH_FIELD": "actor_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "php-cgi"
          },
          {
           "SEARCH_FIELD": "actor_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "lsphp"
          },
          {
           "SEARCH_FIELD": "actor_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "frankenphp"
          },
          {
           "SEARCH_FIELD": "actor_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "httpd"
          },
          {
           "SEARCH_FIELD": "actor_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "apache2"
          },
          {
           "SEARCH_FIELD": "actor_process_image_name",
           "SEARCH_TYPE": "REGEX",
           "SEARCH_VALUE": "(?i)php-fpm.*"
          }
         ]
        },
        {
         "OR": [
          {
           "SEARCH_FIELD": "action_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "sh"
          },
          {
           "SEARCH_FIELD": "action_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "bash"
          },
          {
           "SEARCH_FIELD": "action_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "dash"
          },
          {
           "SEARCH_FIELD": "action_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "zsh"
          },
          {
           "SEARCH_FIELD": "action_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "ksh"
          }
         ]
        },
        {
         "OR": [
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "curl"
          },
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "wget"
          },
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "/dev/tcp"
          },
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "base64 -d"
          },
          {
           "SEARCH_FIELD": "action_process_image_command_line",
           "SEARCH_TYPE": "CONTAINS",
           "SEARCH_VALUE": "/etc/shadow"
          }
         ]
        }
       ]
      }
     }
    }
   },
   "mitre_tactic_id_and_name": [
    "TA0001 - Initial Access",
    "TA0003 - Persistence",
    "TA0002 - Execution"
   ],
   "mitre_technique_id_and_name": [
    "T1190 - Exploit Public-Facing Application",
    "T1505.003 - Server Software Component: Web Shell",
    "T1059.004 - Command and Scripting Interpreter: Unix Shell"
   ]
  }
 ]
}