Training material
Kubernetes attack and defense hands-on
Exploit misconfigured clusters and shut them down
Break your own cluster before someone else does – and harden it until the attack fails.
- RBAC
- Pod Security Admission
- NetworkPolicy
- Kyverno
- Container Escape
- CVE
Training plan
- Welcome to the Drills
- Day 0: Training Ground
- Day 1: What a Compromised Pod Sees
- Day 2: Finding and Exploiting Overly Broad Roles
- Day 3: Impersonation, escalate and bind
- Day 4: Privilege Escalation via Other ServiceAccounts
- Day 5: Privileged, Capabilities and the Escape onto the Node
- Day 6: hostPath – Escape with No "privileged" at All
- Day 7: The kubelet API and nodes/proxy
- Day 8: Flat Network and Lateral Movement
- Day 9: Open Services Without Authentication
- Day 10: Plaintext Secrets
- Day 11: Arbitrary Images and the Supply Chain
- Day 12: Admission Gaps and Policy Bypasses
- Day 13: Case Study CVE-2020-8554 – externalIPs MITM
- Day 14: Case Study CVE-2021-25741 – subPath Escape
- Day 15: Competition – the Bugged Cluster
- Appendix A: Cheat Sheet
- Appendix B: Final Exam