~/talk

Stranger Danger - hack my misconfigured Kubernetes

Talkat KCD Italy 2021 · 2021-11-17..11-18· [security, kubernetes]
slides:none on file

Starts from a web app with remote command execution and uses curl to read in-pod env vars and the auto-mounted service account token, then configures kubectl and runs kubectl auth/can-i and access-matrix to map permissions. Uses nmap and socat to pivot (port-forwarding to a second pod), launches arbitrary pods, abuses missing allowPrivilegeEscalation and lax pod security policies to mount hostPath and inspect kubelet/etcd, extracts a cluster role aggregation token from etcd and obtains cluster-admin — full takeover on a kind demo, all steps succeed.

AI-written summary · about

  1. 0:00Start
  2. 6:35Timeline of Doom
  3. 14:27The Access Matrix Plugin
  4. 18:57Create Container Config Error
  5. 21:13Run a Non-Root Non-Privileged Pod
  6. 26:57Construct a Tunnel
  7. 40:06Is this the Same on all Kubernetes Platforms
~/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.