T1611 Sumo Logic CSE · Sumo

Detect Escape to Host in Sumo Logic CSE

This detection identifies adversaries attempting to escape containerized or virtualized environments to gain access to the underlying host. Key indicators include execution of namespace manipulation utilities (nsenter, unshare), privileged container operations, Docker socket abuse from within containers, cgroup release_agent exploitation, kernel module loading via insmod/modprobe, and host filesystem access via /proc/1/root bind mounts. The detection targets techniques used by malware families such as Doki, Hildegard, and Siloscape, as well as threat groups like TeamTNT that exploit container misconfigurations or kernel vulnerabilities to break out of isolation boundaries and gain host-level code execution.

MITRE ATT&CK

Tactic
Privilege Escalation
Technique
T1611 Escape to Host
Canonical reference
https://attack.mitre.org/techniques/T1611/

Sumo Detection Query

Sumo Logic CSE (Sumo)
sql
_sourceCategory=endpoint/linux OR _sourceCategory=endpoint/kubernetes | json auto | where process_name in ("docker", "kubectl", "crictl", "ctr", "podman", "nsenter", "runc") | if(matches(command_line, "*--privileged*") or matches(command_line, "*nsenter*pid*1*"), "Critical", if(matches(command_line, "*--pid=host*") or matches(command_line, "*--cap-add=SYS_ADMIN*"), "High", "Medium")) as RiskLevel | stats count by user_name, process_name, command_line, RiskLevel | sort by count desc
high severity medium confidence

Sumo Logic query for T1611 detection using source category filters and aggregation. Detects container escape attempts by monitoring for namespace manipulation utilities (nsenter target

Data Sources

Linux Endpoint EventsKubernetes Audit Logs

Required Tables

endpoint/linuxendpoint/kubernetes

False Positives & Tuning

  • Legitimate container orchestration runtimes (kubelet, containerd, cri-o) using nsenter internally for container exec and health check operations
  • System administrators using nsenter or unshare on the host for namespace debugging or network troubleshooting tasks
  • Legitimate kernel driver installation by hardware vendors or OS package managers using insmod/modprobe during system initialization
Download portable Sigma rule (.yml)

Other platforms for T1611


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Container Escape via nsenter Targeting Host PID 1

    Expected signal: Sysmon EventCode=1: Image=nsenter, CommandLine contains '-t 1 -m -u -i -n -p'; parent process chain includes containerd-shim or runc; AccountName=root; SHA256 of nsenter binary logged

  2. Test 2Container Escape via Cgroup v1 Release Agent

    Expected signal: Sysmon EventCode=1: Image=mount with cgroup filesystem type; Sysmon EventCode=11 (File Create): TargetFilename matches /sys/fs/cgroup/*/release_agent or /tmp/cgrp_escape/release_agent; auditd SYSCALL=mount and write to cgroup path

  3. Test 3Container Escape via Docker Socket Bind Mount

    Expected signal: Sysmon EventCode=1: Image=docker, CommandLine contains 'docker.sock' and 'run -v /:/'; second process creation for chroot with /hostroot argument; DeviceNetworkEvents showing Unix socket connection to /var/run/docker.sock

Unlock Pro Content

Get the full detection package for T1611 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections