What is Checkov?

BeginnerConceptCheckov
Answer

Short answer

Checkov (by Prisma Cloud / Palo Alto) is an open-source static analysis tool for Infrastructure as Code. It ships 1,000+ built-in policies and scans Terraform (including plan files), CloudFormation, Kubernetes, Helm, Kustomize, Dockerfiles, ARM/Bicep, serverless configs and CI pipeline files for security and compliance issues.

Install and run

pip install checkov
checkov -d .                         # scan a directory (auto-detects frameworks)
docker run --rm -v $(pwd):/tf bridgecrew/checkov -d /tf

Output example

Check: CKV_AWS_20: "S3 Bucket has an ACL defined which allows public READ access."
	FAILED for resource: aws_s3_bucket_acl.site
	File: /storage.tf:12-16
	Guide: https://docs.prismacloud.io/...

Passed checks: 41, Failed checks: 6, Skipped checks: 1

Each check has an ID like CKV_AWS_20 (AWS), CKV_K8S_8 (Kubernetes), CKV_DOCKER_3 (Dockerfile).

Compliance mapping

Checks map to frameworks like CIS benchmarks, SOC 2, PCI-DSS, HIPAA.

What to say in the interview

"Checkov is an open-source IaC scanner with 1,000+ policies for Terraform, CloudFormation, Kubernetes, Helm, Dockerfiles and more. Each failing check has an ID and a fix guide, and checks map to compliance frameworks like CIS."

All Security Tools questions Roadmap: Checkov — IaC security

More on Checkov