Lion Cipher Lab
Verify kubectl and kind binaries with sha256 and cosign before you run them
- Cloud Security
- Intermediate
- ~45 min
- Free · no account required
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
- checking a downloaded binary against a published sha256 file
- proving the check works by changing one byte and watching it fail
- downloading a signature and certificate beside a release binary
- running cosign verify-blob with the identity and issuer flags Kubernetes documents
- saying what a checksum proves, what a signature adds, and what neither proves
- pinning the cosign version that matches the documented command form
Steps in this lab
- Two different questions: intact, and from whom
- Make an empty folder and find the current kubectl version
- Check kubectl against its published checksum
- Break it on purpose and watch the check fail
- Do the same for kind
- Get cosign, and check cosign itself first
- Verify the Kubernetes signature on kubectl
- What Kubernetes signs, and what you still have to do
- Clean up
Open the full interactive lab →