Infrastructure as Code Security Scanning with Checkov
Intermediate · 35 minutes · 100 points
In this lab, you will learn how to use Checkov, an open-source static analysis tool for Infrastructure as Code (IaC), to detect security misconfigurations in Terraform templates. You will install Checkov, write intentionally vulnerable Terraform configurations, run security scans, interpret the results, and remediate the findings. This foundational lab gives you hands-on experience with IaC security best practices used in real-world DevSecOps pipelines.
What you’ll learn
- Install and verify Checkov, a leading IaC security scanning tool
- Create Terraform configuration files containing common security misconfigurations
- Run Checkov scans and interpret security findings including failed checks and severity levels
- Remediate identified security issues and confirm a clean scan output
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 4 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: ubuntu:22.04
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
Topics: checkov, terraform, iac-security, devsecops, static-analysis, aws, security-scanning, misconfigurations
Create a free account to start this lab.