container escape

An attack where code inside a container breaks out and gains control of the host.

A successful escape gives the attacker the host and every container on it.

In more detail

Escapes use kernel flaws, dangerous settings such as --privileged or a mounted Docker socket, or bugs in the runtime. Because containers share the host kernel, one escape exposes every container on that host. Defences are layered: patching, non-root users, dropped capabilities, seccomp and, for untrusted code, a virtual machine boundary.

Related terms

Taught in

References