Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Scans Infrastructure as Code files with Checkov's 750+ policies for Terraform, CloudFormation, Kubernetes, Dockerfile and ARM templates.
Use this skill ↓57% 78%+22 ptsof test cases passed
Passed 18 of 23 test cases with the skill, and 13 of 23 without it.
We created a `.checkov.baseline` file last month. Now we want to run a scheduled scan in CI to detect drift (newly introduced security issues) while ignoring historical issues recorded in the baseline file. What CLI command runs this baseline comparison check?
Executes checkov -d ./terraform --baseline .checkov.baseline.
3 of 3 safety checks passed
Checkov is a static code analysis tool that scans Infrastructure as Code (IaC) files for security misconfigurations and compliance violations before deployment. With 750+ built-in policies, Checkov helps prevent cloud security issues by detecting problems in Terraform, CloudFormation, Kubernetes, Dockerfiles, Helm charts, and ARM templates.
Checkov performs graph-based scanning to understand resource relationships and detect complex misconfigurations that span multiple resources, making it more powerful than simple pattern matching.
# Via pip
pip install checkov
# Via Homebrew (macOS)
brew install checkov
# Via Docker
docker pull bridgecrew/checkov
# Scan all Terraform files in directory
checkov -d ./terraform
# Scan specific file
checkov -f ./terraform/main.tf
# Scan with specific framework
checkov -d ./infrastructure --framework terraform
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.