Skip to content
Hands-on IT IT Drills

Welcome to the Drills

You know the theory: least privilege, default deny, no privileged. Still, most clusters do not run that way. Not out of malice, but because a Helm chart brings along a broad ClusterRole, because a debug pod needed hostPath “just for a moment”, because nobody kept the NetworkPolicies up to date. Each of these shortcuts is a path – and in this book you walk it yourself.

This is not a book for reading about attacks. It is a defense book that uses the attacker’s side to show you why a hardening measure is needed and that it works. Every day follows the same rhythm:

  1. You build a misconfiguration in your lab, the way it occurs in real life.
  2. You exploit it – from inside a pod, just as a compromised workload would.
  3. You fix it with built-in tools: RBAC, Pod Security Admission, NetworkPolicy, Kyverno.
  4. You prove that the same attack now fails.

Point four is the real reason for this book. A hardening measure you have not tested against a real attack is a hope, not a checkpoint.

Who it is for

For platform engineers and operators who are responsible for clusters. You should be fluent with kubectl, read YAML and be able to tell a Pod from a Deployment. CKS is not a prerequisite, but this book is the practical complement to it: where the certification asks “which setting hardens X?”, this book asks “show me that X is really closed now”.

The one rule

Security: Everything in this book happens in your own lab, on VMs that belong to you. None of it belongs on other people’s systems, not even “just to try it out”. Attack techniques against infrastructure that does not belong to you are a criminal offense – regardless of intent. This book shows the attacker’s side only as far as a defender needs it to recognize and close the gap. Hiding, covering tracks and persistence tricks that only benefit the attacker are not part of the training.

How you work

Read little, type a lot. Each day can be done in 45 to 90 minutes. The checkpoints are single commands with an “Expected:” line – run them and compare instead of taking my word for it. At the end of each part you clean up your lab; the victim namespaces are disposable.

The drills keep growing: new editions, new drills. Good luck – and only break your own clusters.