{
 "request_data": [
  {
   "name": "TB pack-artex - A3. SQL Server spawns a shell through xp_cmdshell",
   "type": "EXECUTION",
   "severity": "SEV_040_HIGH",
   "comment": "SQL Server toolkit seen with ARTEX operators: xp_cmdshell starts cmd or PowerShell to drop a Gh0st RAT and a miner. Adapted from ThreatDefence rules (MIT licence). Logic (process): actor_process_image_name = sqlservr.exe AND action_process_image_name in cmd.exe, powershell.exe, pwsh.exe, certutil.exe, bitsadmin.exe. Experimental BIOC from Threat Brief (https://tlpclear.fr/detections/pack-artex), 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": "sqlservr.exe"
        },
        {
         "OR": [
          {
           "SEARCH_FIELD": "action_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "cmd.exe"
          },
          {
           "SEARCH_FIELD": "action_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "powershell.exe"
          },
          {
           "SEARCH_FIELD": "action_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "pwsh.exe"
          },
          {
           "SEARCH_FIELD": "action_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "certutil.exe"
          },
          {
           "SEARCH_FIELD": "action_process_image_name",
           "SEARCH_TYPE": "EQ",
           "SEARCH_VALUE": "bitsadmin.exe"
          }
         ]
        }
       ]
      }
     }
    }
   },
   "mitre_tactic_id_and_name": [
    "TA0002 - Execution",
    "TA0003 - Persistence"
   ],
   "mitre_technique_id_and_name": [
    "T1059.003 - Command and Scripting Interpreter: Windows Command Shell",
    "T1505.001 - Server Software Component: SQL Stored Procedures"
   ]
  }
 ]
}