[
 {
  "rule_id": null,
  "name": "TB pack-agentic-frameworks - Carbonato Docker Worm Host Escape or Persistence",
  "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 \"nsenter\" and action_process_image_command_line contains \"-t 1\" and action_process_image_command_line contains \"-m -u -n -i\") and (action_process_image_command_line contains \"curl \" or action_process_image_command_line contains \"wget \" or action_process_image_command_line contains \"crontab\" or action_process_image_command_line contains \"chattr\" or action_process_image_command_line contains \"authorized_keys\" or action_process_image_command_line contains \"systemctl enable\" or action_process_image_command_line contains \"rc.local\" or action_process_image_command_line contains \".hermes\") ) or (action_process_image_command_line contains \"netns-probe\" or action_process_image_command_line contains \"system/resolved\" or action_process_image_command_line contains \".docker-network-monitor\" or action_process_image_command_line contains \"/opt/gh0st/\" or action_process_image_command_line contains \"CARBONATO_API_KEY\") or action_process_image_path = \"/usr/sbin/systemd-logind\"\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 Carbonato's escape from a privileged container into the host (nsenter -t 1 -m -u -n -i), its worm container\nnames and image, and its persistence paths. Carbonato installs Hermes Agent with a GH0ST persona on each host. Adapted from the ThreatDefence Sigma rule (MIT licence). Experimental rule from Threat Brief (https://tlpclear.fr/detections/pack-agentic-frameworks), DRL 1.1: test and tune before enabling. References: https://github.com/NousResearch/hermes-agent https://unit42.paloaltonetworks.com/autonomous-ai-cyber-attack-campaign/ https://hunt.io/blog/thailand-ministry-finance-targeted-with-hermes-ai-agent https://www.threatdown.com/blog/carbonato/ https://github.com/ThreatDefence/agentic-attack-detections https://github.com/ThreatDefence/agentic-attack-detections/blob/6f547db9ac46969acab4eeb09da63314e0baba26/frameworks/hermes/sigma/process_creation/proc_creation_lnx_carbonato_docker_host_escape.yml",
  "alert_name": "Threat Brief - Carbonato Docker Worm Host Escape or Persistence",
  "alert_category": "PRIVILEGE_ESCALATION",
  "alert_type": null,
  "alert_description": "Detects Carbonato's escape from a privileged container into the host (nsenter -t 1 -m -u -n -i), its worm container\nnames and image, and its persistence paths. Carbonato installs Hermes Agent with a GH0ST persona on each host. 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": {
   "TA0004 - Privilege Escalation": [
    "T1611 - Escape to Host"
   ]
  },
  "investigation_query_link": "",
  "drilldown_query_timeframe": "ALERT",
  "mapping_strategy": "CUSTOM",
  "action": "ALERTS",
  "lookup_mapping": []
 }
]