Escape to Host
- ID
- T1611
- Tactics
- TA0004 Privilege Escalation
- Platforms
- Windows, Linux, Containers, ESXi
- Data sources
- Container Creation, Volume Modification, OS API Execution, Process Creation, File Creation, Kernel Module Load
- Source
- attack.mitre.org
- MITRE last modified
- 25 Oct 2025
Adversaries may break out of a container or virtualized environment to gain access to the underlying host. This can allow an adversary access to other containerized or virtualized resources from the host level or to the host itself. In principle, containerized / virtualized resources should provide a clear separation of application functionality and be isolated from the host environment.[3]
There are multiple ways an adversary may escape from a container to a host environment. Examples include creating a container configured to mount the host’s filesystem using the bind parameter, which allows the adversary to drop payloads and execute control utilities such as cron on the host; utilizing a privileged container to run commands or load a malicious kernel module on the underlying host; or abusing system calls such as unshare and keyctl to escalate privileges and steal secrets.[4][5][6][7][8][9]
Additionally, an adversary may be able to exploit a compromised container with a mounted container management socket, such as docker.sock, to break out of the container via a Container Administration Command.[7] Adversaries may also escape via Exploitation for Privilege Escalation, such as exploiting vulnerabilities in global symbolic links in order to access the root directory of a host machine.[10]
In ESXi environments, an adversary may exploit a vulnerability in order to escape from a virtual machine into the hypervisor.[11]
Gaining access to the host may provide the adversary with the opportunity to achieve follow-on objectives, such as establishing persistence, moving laterally within the environment, accessing other containers or virtual machines running on the host, or setting up a command and control channel on the host.
Detection
- DET0219 Detection Strategy for Escape to Host
Data components: Container Creation, Volume Modification, OS API Execution, Process Creation, File Creation, Kernel Module Load
Mitigations (5)
- M1026 Privileged Account Management
Ensure containers are not running as root by default and do not use unnecessary privileges or mounted components. In Kubernetes environments, consider defining Pod Security Standards that prevent pods from running privileged containers.[1]
- M1038 Execution Prevention
Use read-only containers, read-only file systems, and minimal images when possible to prevent the running of commands.[1] Where possible, also consider using application control and software restriction tools (such as those provided by SELinux) to restrict access to files, processes, and system calls in containers.[2]
- M1042 Disable or Remove Feature or Program
Remove unnecessary tools and software from containers.
- M1048 Application Isolation and Sandboxing
Consider utilizing seccomp, seccomp-bpf, or a similar solution that restricts certain system calls such as mount. In Kubernetes environments, consider defining Pod Security Standards that limit container access to host process namespaces, the host network, and the host file system.[1]
- M1051 Update Software
Ensure that hosts are kept up-to-date with security patches.
Groups (1)
Software (4)
References
- Kubernetes Hardening Guide
- Kubernetes Security Context
- Docker Overview
- Docker Bind Mounts
- Trend Micro Privileged Container
- Intezer Doki July 20
- Container Escape
- Crowdstrike Kubernetes Container Escape
- Keyctl-unmask
- Windows Server Containers Are Open
- Broadcom VMSA-2025-004
