/qa-iac:checkov-policyfrom qa-iac
Scans IaC (Terraform, CloudFormation, Kubernetes, Helm, ARM, Serverless, CDK) for security misconfigurations using Checkov's broadest built-in rule set. Supports custom Python checks, SARIF/JUnit output, and baselines for CI.
Ships in qa-iac. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Per checkov-home, supported frameworks: Terraform and Terraform plan, CloudFormation, Kubernetes, Helm, ARM Templates, Serverless framework, AWS CDK. Checkov is the broadest IaC security scanner - covers more frameworks than tfsec (Terraform-only) or KICS (similar coverage but Checkov has more built-in checks per release).
requirements-dev.txt
for CI determinism (Step 1).checkov -d . locally, narrowing frameworks with
--framework when the repo mixes IaC types (Step 2).checkov:skip= comments (Step 4)..checkov.baseline so CI fails only on new findings,
then wire the scan into CI with SARIF upload (Steps 7-8).pip install checkov
checkov --version
Per project (recommended for CI determinism):
echo 'checkov==3.2.500' >> requirements-dev.txt
pip install -r requirements-dev.txt
# Scan a directory
checkov -d .
# Scan a specific Terraform file
checkov -f main.tf
# Scan multiple frameworks
checkov -d . --framework terraform,kubernetes,dockerfile
# Scan a Terraform plan (deeper analysis)
terraform plan -out=plan.tfplan
terraform show -json plan.tfplan > plan.json
checkov -f plan.json
# Default (CLI)
checkov -d .
# JSON for parsing
checkov -d . -o json
# SARIF for code-scanning dashboards (GitHub Code Scanning)
checkov -d . -o sarif --output-file-path checkov.sarif
# JUnit XML for CI test reporting
checkov -d . -o junitxml > checkov.xml
# Multiple
checkov -d . -o cli -o sarif
# Skip specific checks
checkov -d . --skip-check CKV_AWS_18,CKV_AWS_20
# Skip a check class
checkov -d . --skip-check CKV_AWS_*
In code:
# main.tf
resource "aws_s3_bucket" "logs" {
bucket = "my-logs"
# checkov:skip=CKV_AWS_20:Public read access intentional for log distribution
}
The :skip= annotation requires a justification - reviewable in
PRs.
Author custom Python checks (and the no-code YAML-policy alternative) for team-specific rules the built-in set misses: references/custom-checks-and-ci.md.
# Default: any failed check exits non-zero (CI fails)
checkov -d .
# Soft fail: log issues but exit 0 (informational)
checkov -d . --soft-fail
# Soft fail only on specific checks
checkov -d . --soft-fail-on CKV_AWS_*
Pattern: hard fail on critical / new findings; soft fail on legacy issues being ratcheted down.
# Generate baseline (current state of findings)
checkov -d . --create-baseline
# Use baseline (fail only on NEW findings vs baseline)
checkov -d . --baseline .checkov.baseline
Baselines let teams adopt Checkov against legacy code without fixing all existing issues at once - only new findings break the build.
Wire the scan into CI with a baseline plus SARIF upload to GitHub Code Scanning (findings surface as PR comments + the Security tab): references/custom-checks-and-ci.md.
Checkov + tfsec + KICS catch overlapping but non-identical issues. Combine results to a unified verdict.
checkov -d . -o json > checkov.json
tfsec . -f json > tfsec.json
kics scan -p . --report-formats json -o ./kics-results
# Combine the three reports into a unified verdict
A team adopts Checkov on a legacy Terraform + Kubernetes monorepo.
pip install checkov==3.2.500, pinned in requirements-dev.txt.checkov -d . --framework terraform,kubernetes
reports a large backlog of existing failures - too many to fix
at once.checkov -d . --create-baseline
writes .checkov.baseline.checkov -d . --baseline .checkov.baseline -o sarif --output-file-path checkov.sarif; the build passes because no
findings are new versus the baseline.aws_s3_bucket with acl = "public-read". Checkov
flags CKV_AWS_20 as a NEW finding and fails the build.checkov:skip=CKV_AWS_20 comment); the SARIF upload clears the
Security-tab entry and the build goes green.Result: legacy debt is ratcheted down, not ignored, and each PR is gated only on net-new misconfigurations.
| Anti-pattern | Why it fails | Fix |
|---|---|---|
Skipping all failed checks via --skip-check | Defeats security scanning. | Per-check checkov:skip= with justification (Step 4). |
| Baseline never updated | Legacy issues never fixed; only-new gating becomes meaningless. | Periodic baseline review + ratchet down. |
| Checkov as the only IaC scanner | Tool-specific gaps; some issues missed. | Pair with tfsec / KICS (Step 9). |
| Ignoring SARIF / GitHub Security tab | Findings invisible until someone runs the CLI. | SARIF upload (Step 8). |
| Custom checks without tests | Custom logic bugs let bad config through. | Test custom checks (per OPA's opa test pattern). |
trivy-config - sister scanner (tfsec legacy in its
references/tfsec-legacy.md).policy-as-code-runner -
custom policies via OPA / Conftest (Checkov for built-in; OPA
for custom).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Terraform, CloudFormation, Kubernetes, Helm, AWS, Docker, Python
4 skills in this plugin
/helm-chart-testerUse when a Helm chart's template logic needs unit tests: helm-unittest test files per template with isKind, equal, matchRegex and snapshot assertions, plus helm lint and helm template render checks. Policy checks are policy-as-code-runner; security scans are checkov-policy or trivy-config./policy-as-code-runnerUse when a team needs custom policies that off-the-shelf scanners don't cover (cost limits, required tags, security baselines) enforced in CI. Writes OPA Rego policies and runs Conftest against Kubernetes manifests, Terraform plans, Dockerfiles or any structured data; also covers Cedar./trivy-configUse for any question or task about scanning infrastructure code for misconfigurations with one tool, including Kubernetes manifests, Terraform, CloudFormation, Helm, ARM and Dockerfiles that run as root, or migrating off tfsec: trivy config with severity gating, .trivyignore suppressions, custom Rego checks and SARIF for GitHub code scanning. Legacy tfsec is in its references.2 plugins ship this exact skill · first indexed Nov 12, 2026
npx claudepluginhub testland/qa --plugin qa-iacOther plugins' skills for the same job