Lion Cipher Lab

Verify kubectl and kind binaries with sha256 and cosign before you run them

Why it matters

Everything in a cluster starts as a binary someone downloaded: kubectl, kind, the tools that build images. If one is swapped on the way to you, an attacker is running code with your cluster credentials. Two checks cost seconds. A checksum shows the file arrived intact. A signature shows it came from the project's release process, because only that identity can make a signature that verifies. Doing both once, and breaking the file on purpose, makes the habit stick.

What you'll learn

Steps in this lab

  1. Two different questions: intact, and from whom
  2. Make an empty folder and find the current kubectl version
  3. Check kubectl against its published checksum
  4. Break it on purpose and watch the check fail
  5. Do the same for kind
  6. Get cosign, and check cosign itself first
  7. Verify the Kubernetes signature on kubectl
  8. What Kubernetes signs, and what you still have to do
  9. Clean up

Open the full interactive lab →

Keep learning