Docker
This chapter covers the basic theory around Docker containers security and how to escape them.
Theory
Namespaces: Process-Level Isolation
Control Groups (cgroups): Resource Limitation and Monitoring
cgroups): Resource Limitation and MonitoringCapabilities: Privilege Control
Practice
Capabilities Abuse
Detection
CAP_SYS_ADMIN
CAP_SYS_ADMINCondition
Can mount host FS?
CAP_SYS_PTRACE
CAP_SYS_PTRACECAP_SYS_MODULE
CAP_SYS_MODULECAP_DAC_OVERRIDE
CAP_DAC_OVERRIDENamespaces Abuse
Detection
PID Namespace Escape (--pid=host)
--pid=host)/proc Abuse
/proc AbuseMount Namespace Abuse
Docker Socket Namespace Escape
cgroups Abuse
cgroups AbuseDetection
cgroup release_agent Escape
release_agent EscapeResources
Last updated