Published
NIST SP 800-53 CM-2, CM-6 & SI-4: Terraform, Checkov and AWS Evidence
Map an approved baseline, CI policy gate and runtime detection test to distinct CM-2, CM-6 and SI-4 evidence without treating a scanner result as a control assessment.
CM-2, CM-6 and SI-4 answer different questions. What is the approved configuration baseline? Which required settings are enforced, and how are deviations handled? What does the system monitor, and does a relevant event reach someone who can act? One passing Checkov run cannot answer all three.
Use NIST SP 800-53 Revision 5 with the applicable baseline, organization-defined parameters and system implementation statement. This article is an engineering evidence pattern, not an assertion that these three controls or a particular enhancement set are sufficient for your authorization boundary.
Map the control claim to an observable result
| Control | Engineering evidence | Necessary review | Limit of the evidence |
|---|---|---|---|
| CM-2 — Baseline Configuration | Approved Terraform revision, component inventory and change record | Baseline approval, update triggers and covered components | A repository commit alone does not show deployed state |
| CM-6 — Configuration Settings | Versioned settings policy, CI result, runtime comparison and exceptions | Required settings, applicability and approved deviations | A default scanner policy is not your complete configuration standard |
| SI-4 — System Monitoring | Detection configuration, observed event, analysis and routed notification | Monitoring purpose, collection scope and response ownership | A CPU graph alone does not show security monitoring effectiveness |
Start the register with control ID, system/component, implementation claim, owner, source reference, observation time, policy revision, test result, exception and next review. Make not collected and not applicable with rationale distinct from pass.
CM-2: tie the approved baseline to the deployment
Retain the reviewed IaC revision, relevant modules/provider versions and the approved baseline change. Bind the deployment record to the actual cloud account, Region and component inventory. Include software/configuration components that Terraform does not manage instead of omitting them from the control narrative.
A Terraform plan shows an intended or compared state under a particular configuration and refresh context. It is not a complete runtime inventory. Save private plans only in approved storage: they can contain sensitive values. Publish a digest or sanitized summary where appropriate, not a raw plan in a public build artifact.
For a drift review, follow the refresh-only evidence guide and preserve exit-code semantics. Confirm credentials, workspace and backend identity before interpreting an empty diff. A failed refresh is not “no drift.”
CM-6: make the CI gate fail on a known violation
Pin the Checkov package or container and its dependency resolution in the approved CI environment. Record checkov --version, configuration revision, selected checks, exclusions and input digest. Review Checkov’s CLI failure and output options before relying on the exit code.
The following shell fragment preserves a failing gate while saving JSON for review. Run it in a controlled environment with a reviewed local Checkov configuration; a configuration or environment that sets soft-fail can change the result.
set -eu
mkdir -p evidence
checkov --version > evidence/checkov-version.txt
set +e
checkov -d infrastructure --framework terraform --output json \
> evidence/checkov.json
scan_status=$?
set -e
printf '%s\n' "$scan_status" > evidence/checkov-exit-code.txt
exit "$scan_status"
In the workflow, retain approved private artifacts in a separate step that runs even when scanning fails. Do not append || true to the gate or use continue-on-error and later describe the job as blocking. The scanner’s --soft-fail option intentionally returns success for findings; only use such a mode when the resulting nonblocking behavior is clearly recorded.
Test a minimal known-violating fixture selected for your pinned rule set. Confirm that it produces the expected finding and a failing gate. Then fix the fixture and confirm the expected finding clears. Review skipped checks, unparsed resources, downloaded modules and policy exceptions: a scanner can successfully finish while failing to cover an important part of the declared population.
SI-4: join runtime observation to the notification path
Select a relevant security scenario, such as a reviewed unauthorized configuration change or an expected suspicious access pattern. Identify the collection source, detector, evaluation window, alert owner and response procedure. CloudTrail/CloudWatch, a SIEM and Zabbix can contribute different parts of this evidence; the architecture must state which component sees and evaluates the selected event.
Retain a sanitized event reference, detector revision, event time, detection time, resulting incident and actual receiver acknowledgement or delivery result. A Zabbix service-health check can corroborate availability; it does not automatically establish monitoring for security attacks or unauthorized use. Record that scope distinction in the SI-4 statement.
| Replay | Required evidence |
|---|---|
| Known prohibited IaC setting | Expected CI finding and preserved failing exit code |
| Approved corrected setting | Expected finding cleared under the same rule revision |
| Runtime change outside CI | Detector or drift process exposes the deviation |
| Delayed or missing event source | Collection failure is visible with an owner |
| Notification destination unavailable | Delivery failure/retry is observable |
| Approved exception expires | Review or remediation is required; exception is not silently renewed |
Package evidence for an assessor to follow
Keep an internal manifest joining the control claim to its sources. This example is a local format, not an official NIST submission schema:
{
"synthetic": true,
"control": "CM-6",
"component": "example-api",
"baselineRevision": "reviewed-baseline-017",
"policyRevision": "reviewed-check-set-004",
"sourceEvidence": "approved-store://example/scan-result",
"observedAt": "2026-11-03T12:00:00Z",
"knownFailureTest": "recorded",
"runtimeCoverage": "review_required",
"owner": "platform-security"
}
A reviewer should be able to move from that claim to the relevant baseline approval, exact CI run, deployed component and runtime test. Keep raw evidence immutable or versioned under the approved retention policy, with access and deletion responsibilities defined. Record residual gaps instead of polishing a narrative around missing observations.
The NIST 800-53 Hardening & Audit Prep engagement — from $2,950 scopes up to 25 agreed controls and a defined system boundary. The 800-53 Kit and $399 Team Edition supply a control/implementation/evidence register; neither a workbook nor this mapping is an independent assessment.
Continue in the hybrid-compliance topic hub.
Frequently asked questions
Does a passing Checkov scan satisfy CM-2, CM-6 and SI-4?
No. A scan can support evidence for selected settings. Baseline approval, deployed-state coverage, runtime monitoring and the applicable control parameters require separate evidence and review.
Why preserve the scanner exit code?
A nonzero exit is part of a blocking gate. Soft-fail, continue-on-error or shell constructs that discard that result can turn a failed check into an apparently successful workflow.
Is an infrastructure health dashboard sufficient SI-4 evidence?
It may contribute operational context. The implementation must also define the relevant security monitoring purpose, event coverage, detector tests and response path.
Continue reading
- CMMC Level 2 in AWS GovCloud: Enclave Boundaries and Reviewable Evidence
Define the CUI boundary, shared responsibilities and requirement set before building a Terraform-backed evidence workflow for the applicable assessment.
- AWS Security Hub Alert Fatigue: Consolidated FSBP/NIST Findings and Safe Suppression
Use consolidated control findings, preserve source identities, and test workflow suppression separately from control evaluation and remediation.
- How to Reconcile Terraform Change Approvals with AWS CloudTrail Events
Build an auditable Terraform change trail by linking reviewed plans, deployment approvals, AWS CloudTrail activity, and independently verified resource state.
Written by
Tymur Chmeruk
Cloud Security & Infrastructure Engineer · Baltimore–Washington Metro · [email protected]