Lion Cipher Lab

Scan Terraform for misconfigurations with Checkov

Why it matters

Modern cloud is built from text. Instead of clicking around a web console, teams describe their servers, storage, networks, and firewall rules in files -- INFRASTRUCTURE-AS-CODE -- and a tool like Terraform reads those files and builds the real thing. That is powerful, but it has a sharp edge: a single careless line can create a real, internet-exposed resource. A storage bucket set to 'public', a firewall rule opened to the whole internet, an unencrypted database -- each is just one setting in a file, and once that file is deployed the mistake is live and reachable by anyone. These are called…

What you'll learn

Steps in this lab

  1. What this lab is, and why scanning your own file is completely safe
  2. The words you need first: IaC, Terraform, misconfiguration, static analysis, policy-as-code, shift-left
  3. Install Python and pip (the tools Checkov needs)
  4. Install Checkov with one pip command
  5. Write a tiny Terraform file with a DELIBERATE misconfiguration
  6. Run your first scan and make a table of findings appear
  7. Read a finding: check id, PASSED/FAILED, the resource, and the file:line
  8. Fix the Terraform: make the bucket private and block public access
  9. Re-scan and confirm the finding cleared
  10. Why this one skill makes you a defender, and where it goes next

Open the full interactive lab →