MITRE ATT&CKtechnique
T1611 Escape to Host
- Domain
- enterprise
- Tactics
- Privilege Escalation
- Platforms
- Windows, Linux, Containers, ESXi
- Version
- 1.6
- Created
- 2021-03-30
Description
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.
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.
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. 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.
In ESXi environments, an adversary may exploit a vulnerability in order to escape from a virtual machine into the hypervisor.
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.
Related
Tactic · MITRE ATT&CK (1)
- TA0004 Privilege Escalation tactic
Referenced by MITRE ATT&CK · mitigates (5)
Referenced by MITRE ATT&CK · uses (5)
Referenced by CAPEC · att&ck technique (1)
- CAPEC-480 Escaping Virtualization attack pattern
Referenced by Compliance · mitigates (22)
- CIS-4.8 Uninstall or Disable Unnecessary Services on Enterprise Assets and Software CIS Safeguard v8.1
- CIS-7.3 Perform Automated Operating System Patch Management CIS Safeguard v8.1
- CIS-7.7 Remediate Detected Vulnerabilities CIS Safeguard v8.1
- NIST-AC-2 Account Management NIST 800-53 control
- NIST-AC-3 Access Enforcement NIST 800-53 control
- NIST-AC-4 Information Flow Enforcement NIST 800-53 control
- NIST-AC-5 Separation of Duties NIST 800-53 control
- NIST-AC-6 Least Privilege NIST 800-53 control
- NIST-CM-5 Access Restrictions for Change NIST 800-53 control
- NIST-CM-6 Configuration Settings NIST 800-53 control
- NIST-CM-7 Least Functionality NIST 800-53 control
- NIST-IA-2 Identification and Authentication (Organizational Users) NIST 800-53 control
- NIST-SC-2 Separation of System and User Functionality NIST 800-53 control
- NIST-SC-3 Security Function Isolation NIST 800-53 control
- NIST-SC-34 Non-modifiable Executable Programs NIST 800-53 control
- NIST-SC-39 Process Isolation NIST 800-53 control
- NIST-SC-7 Boundary Protection NIST 800-53 control
- NIST-SI-16 Memory Protection NIST 800-53 control
- NIST-SI-2 Flaw Remediation NIST 800-53 control
- NIST-SI-3 Malicious Code Protection NIST 800-53 control
- NIST-SI-4 System Monitoring NIST 800-53 control
- NIST-SI-7 Software, Firmware, and Information Integrity NIST 800-53 control
References
- https://0xn3va.gitbook.io/cheat-sheets/container/escaping Container Escape
- https://github.com/vmware/vcf-security-and-compliance-guidelines/tree/main/security-advisories/vmsa-2025-0004 Broadcom VMSA-2025-004
- https://unit42.paloaltonetworks.com/windows-server-containers-vulnerabilities/ Windows Server Containers Are Open
- https://docs.docker.com/get-started/overview/ Docker Overview
- https://docs.docker.com/storage/bind-mounts/ Docker Bind Mounts
- https://www.trendmicro.com/en_us/research/19/l/why-running-a-privileged-container-in-docker-is-a-bad-idea.html Trend Micro Privileged Container
- https://www.intezer.com/blog/cloud-security/watch-your-containers-doki-infecting-docker-servers-in-the-cloud/ Intezer Doki July 20
- https://www.crowdstrike.com/blog/cve-2022-0185-kubernetes-container-escape-using-linux-kernel-exploit/ Crowdstrike Kubernetes Container Escape
- https://www.antitree.com/2020/07/keyctl-unmask-going-florida-on-the-state-of-containerizing-linux-keyrings/ Keyctl-unmask