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

  1. Public exposure — open security groups (22, 3389, DB ports to 0.0.0.0/0), public S3, public RDS, public EKS endpoints.
  2. Identity — wildcard IAM policies, admin roles, missing MFA requirements.
  3. Data protection — unencrypted storage, databases, snapshots; missing backups.
  4. Logging & detection — CloudTrail, VPC flow logs, S3 access logs.
  5. 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."

All Security Tools questions Roadmap: Checkov — IaC security

More on Checkov