Kubernetes Security & Hardening›Detect & Harden · Cheat sheet & self-check

Detect & Harden · wrap-up

Cheat sheet & self-check

8 questions across 3 lessons. Each answer links back to the lesson it came from.

Pick an answer to see if you got it, and why.

  1. Q1. Which audit level records request metadata (who, what, when) but not the request or response body?

    Show answer

    B. Metadata is the right level for Secrets: you learn who read which Secret, without writing the secret values into the log.

    From lesson 13 · Audit logging & runtime detection
  2. Q2. What does Falco detect that API audit logs can't?

    Show answer

    B. Audit logs cover the API. An attacker in a container never touches the API to read /etc/shadow or open a reverse shell; runtime detection sees it.

    From lesson 13 · Audit logging & runtime detection
  3. Q3. Why not log every request at RequestResponse level?

    Show answer

    B. Audit policy is a trade-off: detail where it matters (RBAC changes, exec), metadata elsewhere, nothing for noisy low-value requests.

    From lesson 13 · Audit logging & runtime detection
  4. Q4. What does kube-bench do?

    Show answer

    B. It reads flags, config files and file permissions, and reports PASS/FAIL/WARN per benchmark recommendation.

    From lesson 14 · CIS benchmark hardening
  5. Q5. Why is the kubelet's read-only port (10255) a risk?

    Show answer

    B. Anyone who can reach the node can read details about pods (names, images, environment hints). Set readOnlyPort: 0.

    From lesson 14 · CIS benchmark hardening
  6. Q6. kube-bench reports FAIL for a control-plane check on a managed service (e.g. EKS). What's the right reaction?

    Show answer

    B. CIS publishes managed-service benchmarks (EKS, GKE, AKS) covering what you actually control: nodes, RBAC, policies.

    From lesson 14 · CIS benchmark hardening
  7. Q7. What is 'defence in depth'?

    Show answer

    B. No control is perfect. Layers (identity, admission, network policy, secrets, runtime detection) make a single failure survivable.

    From lesson 15 · Capstone: hardened cluster from scratch
  8. Q8. Why run an attack checklist against your own cluster?

    Show answer

    B. Configuration that has never been tested often isn't doing what you think. Evidence beats assumptions.

    From lesson 15 · Capstone: hardened cluster from scratch