HackPath Academy

Advanced Offensive Security

Container & Kubernetes Security

Container escapes, exposed APIs, and lateral movement in orchestration.

Advanced · 15 min

Open the interactive lesson →

Containers and Kubernetes (K8s) run most modern workloads. Attackers target misconfigurations that let them break out of a container or abuse the orchestration layer to take over the whole cluster.

# Inside a pod: check the mounted service-account token
cat /var/run/secrets/kubernetes.io/serviceaccount/token
kubectl auth can-i --list           # what can this token do?
# Enumerate/attack from inside
kubectl get secrets -A

Take the quiz →