Marc Nimmerrichter

Kubernetes Security - Challenge and Opportunity

What's the most dangerous permission in Kubernetes? Learn why the `create pod` privilege, not `cluster-admin`, can lead to a full cluster compromise.

Kubernetes Security - Challenge and Opportunity
#1about 3 minutes

A high-level overview of Kubernetes architecture

The core components of a Kubernetes cluster are explained, including the master node, worker nodes, etcd, API server, and kubelet.

#2about 3 minutes

Configuring workloads with Kubernetes objects

Key Kubernetes objects like pods, deployments, services, and volumes are introduced as the building blocks for configuring applications.

#3about 4 minutes

Managing access with namespaces and admission control

Namespaces are used to group resources, while authentication, authorization, and admission controllers provide granular access control through the API server.

#4about 7 minutes

How container isolation works in the Linux kernel

Containers achieve isolation using Linux kernel features like namespaces and cgroups, but share the host kernel, creating a different security model than VMs.

#5about 2 minutes

Deconstructing a typical Kubernetes cluster attack chain

An attacker can chain exploits, starting from an application vulnerability and escalating to a full container escape and cluster compromise.

#6about 4 minutes

Identifying common Kubernetes security vulnerabilities

Misconfigurations like privileged containers, disabled namespaces, and unpatched software in runtimes like runc create significant security risks.

#7about 6 minutes

Demonstrating a container escape via kernel exploit

A live demo shows how a kernel vulnerability like Dirty COW can be exploited to escape container isolation and gain root access on the host node.

#8about 4 minutes

The risks of RBAC and essential hardening measures

The `create pod` privilege is dangerously powerful, and security can be improved by enabling hardening measures like seccomp profiles and Pod Security Admission.

#9about 4 minutes

Addressing networking and multi-tenancy security challenges

Kubernetes network policies are essential for segmenting traffic, while true multi-tenancy is extremely risky and requires advanced solutions like hardened runtimes.

#10about 1 minute

Leveraging containerization for improved security posture

Despite the risks, containerization offers security advantages through small, understandable workloads that allow for tight security profiles and automated scanning.

#11about 3 minutes

Q&A on managed Kubernetes security in the cloud

The shared responsibility model in cloud Kubernetes services is discussed, highlighting that users must still explicitly enable many hardening features.

Related jobs
Jobs that call for the skills explored in this talk.

test

Milly
Vienna, Austria

Intermediate

test

Milly
Vienna, Austria

Intermediate

job ad

Saby Company
Delebio, Italy

Intermediate

Featured Partners

Related Articles

View all articles
Learning Kubernetes made easy with KubeCampus
Learning to use Kubernetes? KubeCampus by Kasten offers free educational content for all skill levels to get you started!Kubernetes is an open-source system for deploying, scaling and managing containerized applications. It allows you to deploy your ...
Learning Kubernetes made easy with KubeCampus
CH
Chris Heilmann
Dev Digest 138 - Are you secure about this?
Hello there! This is the 2nd "out of the can" edition of 3 as I am on vacation in Greece eating lovely things on the beach. So, fewer news, but lots of great resources. Many around the topic of security. Enjoy! News and ArticlesGoogle Pixel phones t...
Dev Digest 138 - Are you secure about this?
CH
Chris Heilmann
All the videos of Halfstack London 2024!
Last month was Halfstack London, a conference about the web, JavaScript and half a dozen other things. We were there to deliver a talk, but also to record all the sessions and we're happy to share them with you. It took a bit as we had to wait for th...
All the videos of Halfstack London 2024!

From learning to earning

Jobs that call for the skills explored in this talk.