~/talk

The Path Less Traveled: Abusing Kubernetes Defaults

Talkat Black Hat USA 2019 · 2019-08-03..08-08· [kubernetes, security]
slides:none on file

Live demos exploit common defaults: using sigs.k8s.io/kind (kubeadm-backed) to direct-schedule a pod onto the control plane and read etcd, extract a clusterrole aggregation-controller token, mount hostPath /var/run/docker.sock to spawn containers as root on the node, and use hostPID + nsenter to jump into pid 1 and gain host root. PodSecurityPolicies (admission control) block many of these, but static pod manifests and kubelet-hosted pods can bypass admission control and persist backdoors.

AI-written summary · about

  1. 0:00Introduction
  2. 0:46Thank you
  3. 1:06Introductions
  4. 1:56Check your assumptions
  5. 2:19Kubernetes defaults
  6. 3:28What is Kubernetes
  7. 4:21What does Kubernetes mean
  8. 4:41How does Kubernetes work
  9. 6:43Kubernetes components
  10. 9:03Kubernetes API
  11. 9:23Kubernetes Misconfigurations
  12. 9:54CubeKettle
  13. 10:33Apply
  14. 12:54API Server
  15. 14:08Pod Scheduling
  16. 14:37Demonstration
  17. 14:55Pod manifest
  18. 16:01Deploy Pod
  19. 16:35System Access
  20. 17:15Enumeration Tool
  21. 18:15Summary
  22. 19:15Host Path
  23. 20:46Docker
  24. 21:30Docker manifest
  25. 26:00Takeaway
  26. 27:05Container Parts
  27. 30:56Lets play with it
  28. 35:03Takeaways
  29. 36:04Is there any way to mitigate
  30. 36:14Admission Control
  31. 38:01Hide Security Policies
  32. 38:47Restrict Security Policies
  33. 42:12Quit 5 Security Policies
  34. 42:23Conclusions
  35. 42:46Does Admission Control Fix Everything
~/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.