Simple play icon Course

Container Infrastructure Analysis with kube-hunter

by Zach Roof

Want to learn how to analyze (and prevent) security weaknesses in Kubernetes? If so, you're in the right place! In this course, you will learn Container Infrastructure Analysis with kube-hunter.

What you'll learn

“Common” Kubernetes (K8s) hardening suggests a focus on the control plane. But what if a cluster could be backdoored through the kubelet? In this course, Container Infrastructure Analysis with kube-hunter, we will use kube-hunter to investigate a K8s attack. First, you will use kube-hunter to enumerate security weaknesses in a K8s cluster. Second, you’ll use kube-hunter findings (i.e., a discovered kubelet endpoint) to investigate privilege escalation. Third, you’ll leverage the privilege escalation findings to detect a persistence method (i.e., a malicious container image) through Trivy . Fourth, you’ll harden K8s so the aforementioned attack can’t occur again! When you’re finished with this course, you’ll have the skills and knowledge to detect these techniques: System Services (T1569), Exploitation for Privilege Escalation (T1068), and Implant Container Image (T1525).

Course FAQ

What is kube-hunter?

kube-hunter is an open-source tool that hunts for security issues in your Kubernetes clusters. It is designed to increase awareness and visibilty of the security controls in Kubernetes enviroments.

What will you learn in this cyber security course?

In this cyber security course you will learn how to use kube-hunter and Pod Security Policies to search for and prevent Kubernetes threats.

What is Kubernetes?

Kubernetes is an open-source container-orchestration system for automating computer application deployment, scaling, and management.

What are Pod Security Policies?

Pod Security Policy is a cluster-level resource that controls security sensitive aspects of the pod specification. The policy defines a set of conditions that a pod must run with in order to be accepted into the system.

What is Trivy?

Trivy is an easy-to-use and comprehensive and open source vulnerability scanner for container images.

About the author

Zach describes himself as “an ordinary guy who’s extraordinarily curious about technology.” This curiosity has led to roles in Software Development, Application Security, DevOps, and Security Engineering. Currently, Zach is the Lead Security Engineer at Credible where he helps lead the security vision of a highly sensitive Fintech product. Outside of his day job, Zach has spoken at SyntaxCon, created cybersecurity tutorials through Securing The Stack, led an AWS Meetup group, and has provided cy... more

Ready to upskill? Get started