~/talk

Container Escape: All You Need Is Cap (Capabilities)

Talkat RSA Conference 2023 · 2023-04-24..04-27· [security]
links:none on file
links:none on file
slides:none on file

Demos show two concrete escape chains that work: compiling and insmod’ing a kernel module that calls call_usermodehelper to spawn a root reverse shell when CAP_SYS_MODULE is effective, and attaching gdb/ptrace to a host PID (container started with pid=host and CAP_SYS_PTRACE) to inject a root shell into a host process. Attack prerequisites include matching kernel headers, no AppArmor/seccomp block, or privileged mode. Tools: capsh decode, make, insmod, gdb. Mitigations: drop all caps then add only needed, use seccomp‑bpf/AppArmor and Kubernetes securityContext policies.

AI-written summary · about

  1. 0:00Introduction and speakers
  2. 1:03Container attack surface
  3. 3:12Containers vs virtual machines
  4. 5:40What are capabilities
  5. 9:13Default Docker capabilities
  6. 10:38Privileged containers
  7. 11:41Discovering capabilities
  8. 13:31Cap sys module escape
  9. 17:55Cap sys ptrace escape
  10. 21:30Real-world vulnerable containers
  11. 23:22TeamTNT threat group
  12. 25:56Detection and mitigation
  13. 28:03Seccomp-bpf for security
  14. 30:14Summary and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.