Skip to content

Course

Kubernetes Security

RBAC, pod security standards, network policy, admission control, image provenance, and secrets handling — taught through the misconfigurations behind real cluster breaches.

13 lessons

Course Q&A

Keep reading

Related articles from the SudoSecurity blog.

Reviews

Enrolled members can rate this course.

No reviews yet.

Identity and the API Server

How kube-apiserver authenticates and authorizes every request, and the RBAC meta-verbs that quietly escalate.

  1. 01The API Server Decides EverythingEvery cluster action is one HTTPS request through authentication, RBAC authorization, and admission — and a kubeconfig is a credential bundle, not a config file.12mOpen
  2. 02The Verbs That Escalateescalate, bind, and impersonate sidestep the permission-holding rule, and pods/exec is a shell grant — the meta-verbs to audit first.11mOpen
  3. 03Service Accounts Are Workload IdentityProjected service account tokens, the never-expiring legacy Secrets, automountServiceAccountToken: false, and exchanging Kubernetes identity for cloud identity.12mOpen

The Pod Boundary

What Pod Security Admission and securityContext actually enforce — and what namespaces never did.

  1. 01Pod Security Standards Are the Admission FloorPSA's privileged, baseline, and restricted levels, the enforce-audit-warn modes on namespace labels, and why existing pods keep their violations.11mOpen
  2. 02The securityContext Fields That MatterrunAsNonRoot, allowPrivilegeEscalation, drop ALL capabilities, readOnlyRootFilesystem, and RuntimeDefault seccomp — what each field actually blocks.12mOpen
  3. 03Namespaces Are Labels, Not BoundariesFlat pod networking, one shared kernel, CVE-2020-8554 traffic interception, and what hostile-tenant isolation actually costs.10mOpen

Network Isolation

NetworkPolicy mechanics, the CNI enforcement trap, egress control, and the metadata endpoint.

  1. 01Everything Talks Until You Say OtherwiseAllow-only NetworkPolicy semantics, the silent no-op of a non-enforcing CNI, and the default-deny skeleton with DNS.12mOpen
  2. 02Egress Is the Exfiltration PathThe 169.254.169.254 metadata endpoint, DNS exfiltration, ipBlock except, and workload identity as blast-radius control.10mOpen

Admission and Supply Chain

The admission pipeline as policy checkpoint and attack surface, and proving that what runs is what you built.

  1. 01The Admission Chain Is Checkpoint and DoorMutating-then-validating ordering, failurePolicy fail-open, webhook attack surface, IngressNightmare, and when ValidatingAdmissionPolicy beats a webhook.12mOpen
  2. 02Tags Lie; Digests and Signatures Don'tMutable tags versus pinned digests, keyless cosign signing, admission-time verification, and registry allowlists.11mOpen
  3. 03Audit Logs Are the Black Box RecorderPolicy levels and stages, the secrets RequestResponse trap, the high-signal verbs to alert on, and Falco for the dataplane.10mOpen

Secrets and Breach Anatomy

How Secrets are actually stored and read, how clusters really get breached, and the audit trail.

  1. 01Secrets Are Base64, Not Encryptedetcd plaintext by default, kms v2 encryption config, why resourceNames can't narrow list/watch, and env versus volume versus CSI driver.12mOpen
  2. 02How Clusters Actually Get BreachedTesla's open console, TeamTNT's worm, RBAC Buster's disguised bindings, and IngressNightmare — the unauthenticated-endpoint pattern and its checklist.12mOpen