Lion Cipher Lab

Find dangerous workload settings across YOUR OWN cluster with kubectl and jq

Why it matters

Scanners tell you what their authors thought to check. Writing one small program yourself teaches what a risky setting actually looks like in the object, which is what makes you able to read any scanner's output critically and to answer a question no scanner was built for. Scoring it against an answer key is the other half: a tool you have not tested against known truth is a guess with a progress bar. And a cluster-wide view is where you meet the realistic problem, which is not finding risky settings but deciding which ones are real.

What you'll learn

Steps in this lab

  1. The rule, and the plan
  2. Export every pod as JSON
  3. Write findings.jq: one finding per line
  4. Read the findings, and count them by kind
  5. Separate the system components from your own workloads
  6. What a pod-level program cannot see: bindings and policies
  7. Cross-check with the Pod Security Admission dry run
  8. Score your program against the answer key
  9. Rate the findings, and what the defender sees

Open the full interactive lab →

Keep learning