Checkov reports 300 findings on your Terraform repo. How do you prioritise?
IntermediateScenarioCheckov
Answer
Short answer
Don't try to fix everything at once. Prioritise by real risk: internet exposure, data exposure, identity/permissions, encryption, then hygiene. Put a baseline in place so nothing new gets added, fix the critical categories first, skip non-applicable checks with documented reasons, and track the rest as a backlog.
Practical order
- Public exposure — open security groups (22, 3389, DB ports to 0.0.0.0/0), public S3, public RDS, public EKS endpoints.
- Identity — wildcard IAM policies, admin roles, missing MFA requirements.
- Data protection — unencrypted storage, databases, snapshots; missing backups.
- Logging & detection — CloudTrail, VPC flow logs, S3 access logs.
- Hygiene — tags, descriptions, minor best practices.
Mechanics
checkov -d infra/ --create-baseline # stop the bleeding
checkov -d infra/ --check CKV_AWS_24,CKV_AWS_25,CKV_AWS_17,CKV2_AWS_6 --compact # focus on critical checks
checkov -d infra/ -o json | jq '.results.failed_checks | group_by(.check_id) | map({id: .[0].check_id, count: length}) | sort_by(-.count)'
Fix in shared modules first — one module fix can clear dozens of findings across environments.
What to say in the interview
"Baseline to stop new issues, then fix by risk: public exposure, IAM, encryption, logging, then hygiene. I group findings by check ID, fix shared modules for the biggest wins, document genuine exceptions with inline skips and track the rest as a backlog."
More on Checkov
What is Checkov and how do you scan Terraform with it?BeginnerWhat is IaC security scanning and why is it needed?BeginnerWhat is Checkov?BeginnerHow do you scan Terraform code with Checkov?BeginnerWhy scan the Terraform plan with Checkov instead of only the .tf files?IntermediateHow do you scan Kubernetes manifests and Dockerfiles with Checkov?Beginner