feat(terraform): add Gate/Prove Continuous Trust & Evidence Freshness policy - #7649
Open
AAH20 wants to merge 1 commit into
Open
feat(terraform): add Gate/Prove Continuous Trust & Evidence Freshness policy#7649AAH20 wants to merge 1 commit into
AAH20 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a native Gate/Prove Continuous Trust and Evidence Freshness policy check (
CKV_AWS_399) for AWS Terraform resources (aws_config_configuration_recorder,aws_config_delivery_channel) to validate continuous drift monitoring and evidence freshness tracking for SOC 2 Type II (CC6.8, CC7.1) and ISO 27001 (A.12.1.2) compliance.Problem Solved
Static Infrastructure-as-Code (IaC) security checks frequently evaluate Terraform files at a single point in time, but fail to enforce continuous drift detection and snapshot delivery frequency. In production, unmonitored infrastructure drifts over time, causing annual SOC 2 Type II audit failures when teams lack cryptographic proof of continuous compliance evidence freshness.
This check ensures:
never_equate_static_scan_to_runtime_compliance: true: Verifies that AWS Config configuration recorders capture all supported resource types (all_supported = true) or global resource types.One_HourtoTwentyFour_Hours), ensuring that audit evidence age does not exceed standard continuous compliance SLAs.Testing & Validation
tests/terraform/checks/resource/aws/test_GateProveEvidenceFreshness.pyverifying passing configurations forall_supported = trueand valid delivery frequencies, as well as failing configurations for missing or disabled recording groups (all 4 unit tests passing).Upstream & Commercial Context
Maintained by A2Z SOC for Continuous Trust, IaC drift intelligence, and audit readiness.
For organizations requiring automated cloud drift audits or SOC 2 / ISO 27001 readiness sprints: