Skip to content

feat(lab6): Checkov + KICS scans + custom policy#6

Open
RII6 wants to merge 1 commit into
mainfrom
feature/lab6
Open

feat(lab6): Checkov + KICS scans + custom policy#6
RII6 wants to merge 1 commit into
mainfrom
feature/lab6

Conversation

@RII6

@RII6 RII6 commented Jun 26, 2026

Copy link
Copy Markdown
Owner

Goal

Adds Checkov and KICS security scan results for Terraform and Ansible, along with a custom Checkov policy for AWS RDS deletion protection.

Changes

  • Documented Task 1 Checkov scan results for Terraform, identifying overly permissive IAM policies as the highest-leverage issue.
  • Documented Task 2 KICS scan results for Ansible and provided a comparison of Checkov vs KICS capabilities.
  • Created my-custom-policy.yaml to enforce the deletion_protection attribute on aws_db_instance resources.
  • Added notes to the submission detailing lab instruction errors (missing Pulumi state file and incorrect jq JSON array/path parsing).

Testing

  • Ran Checkov locally against labs/lab6/vulnerable-iac/terraform and verified output structure.
  • Ran KICS via Docker against labs/lab6/vulnerable-iac/ansible and parsed results with corrected jq paths.
  • Verified the custom Checkov policy (CKV2_CUSTOM_1) successfully fires on unencrypted_db and weak_db in the vulnerable Terraform sample.

Artifacts & Screenshots

  • See submissions/lab6.md for the full breakdown, module-leverage analysis, and JSON snippet proofs.

Checklist

  • Task 1 — Checkov on Terraform + Pulumi with top-5 rules and module-leverage analysis
  • Task 2 — KICS on Ansible with Checkov-vs-KICS comparison
  • Bonus — Custom Checkov policy demonstrably firing on the vulnerable sample

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant