Lion Cipher Lab

Score your Kubernetes cluster against NSA-CISA hardening with Kubescape

Why it matters

There are two completely different questions hiding inside 'is my Kubernetes cluster hardened?', and confusing them is one of the most common cloud-security mistakes. Question one is about the cluster's PLUMBING: are the kubelet and API server started with safe flags, are the control-plane files locked down? That is what the CIS Kubernetes Benchmark and kube-bench answer, and it lives on the node. Question two is about what you actually DEPLOY: does this Deployment run as root, can its container escalate privilege, can it write anywhere on its own filesystem, does it grab every Linux…

What you'll learn

Steps in this lab

  1. Two different questions: kube-bench vs Kubescape
  2. What the frameworks are (NSA-CISA, CIS, MITRE ATT&CK for Kubernetes)
  3. Spin up your own throwaway cluster with kind
  4. Install the Kubescape CLI
  5. Deploy a deliberately sloppy workload to scan
  6. Scan against NSA-CISA and CIS, and read the compliance SCORE
  7. Drill into one failing control and understand it
  8. Fix it: add a real securityContext and resource limits
  9. Re-scan and watch the score rise
  10. Scan a container image and map findings to the frameworks
  11. The judgment: a green score is a snapshot, not a shield

Open the full interactive lab →