Skip to content

DEF CON 34 talks are here: 354 talks, summarized and searchable.

Browse DEF CON 34

Securing Managed Kubernetes Clusters

Amiran Alavidze

CloudTalks52 minIntermediateOpen on YouTube ↗

Where

Talks
LASCON 2022

Duration

52 min

Walks through the Kubernetes threat model and practical hardening steps for workloads on managed cloud clusters.

Summary

The talk opens with a primer on how Kubernetes is assembled: pods, deployments, services and namespaces, plus control plane parts such as the API server, the etcd data store, the scheduler and the kubelet on each node. It then argues that teams new to the platform should use a managed service rather than build clusters themselves, because the provider takes on much of the control plane's availability and security work.

The threat model centers on three entry points: the API server, the data store and the workloads. The main scenario is an attacker who has compromised an application running in a container. The walkthrough shows how that foothold can reach the instance metadata endpoint, an internal dashboard over cluster networking, and default service account tokens, then escape through a privileged container with host namespaces to the node and its kubelet credentials.

Mitigations include network policies for segmentation, though they only take effect if the network plugin supports them, blocking metadata access, scoping cloud permissions to individual workloads, disabling automatic token mounting, restricting API server exposure, keeping components patched, and enforcing pod security settings. The talk closes with open-source and cloud-native tools for image scanning, runtime monitoring and cluster auditing, along with learning resources.

Related talks

Talks·53 min

  • LASCON
  • Cloud
  • Date: Oct 2023
  • Location: TX

Mark Spears

Shows how zero trust principles and browser-based access can protect internal web applications and reduce exposed attack surface.

identitywebnetwork+2