Sign in
Menu
Sign up
Docs
AWS compliance frameworksCommon frameworks

NIST SP 800-171 Rev 2

ActiveCommon framework

Best for: Any organization that stores, processes, or transmits Controlled Unclassified Information (CUI) on behalf of the U.S. federal government. Defense contractors and subcontractors under DFARS clause 252.204-7012 are the primary audience, but civilian agency contractors with CUI obligations are equally covered. Company size is irrelevant: a 10-person machine shop with a single DoD subcontract has the same compliance obligation as a Fortune 100 prime.

Mandatory?Mandatory for federal contractors handling CUI
Who validates?C3PAO (CMMC) or self-assessment for lower CMMC levels
RenewalAnnual self-assessment; C3PAO every 3 years (CMMC Level 2+)
ScopeNon-federal systems and organizations handling CUI
Governing bodyNational Institute of Standards and Technology (NIST), U.S. Department of Commerce, NIST SP 800-171 Rev 2. Official source

Get started

Point the module source at the NIST SP 800-171 Rev 2 endpoint and pin a version range you reviewed:

module "..." {
  source  = "nist800171.compliance.tf/terraform-aws-modules/<module>/aws"
  version = "<version>"
}

nist800171.compliance.tf lists every NIST SP 800-171 Rev 2 module with its versions, inputs and outputs.

Enforce 72 NIST SP 800-171 Rev 2 controls with one registry endpoint change.

Start free trialGet started

What compliance.tf covers and what you handle

AreaCompliance.tf automatesYou handle
Audit Logging and MonitoringValidates CloudTrail multi-region enablement, S3 data event logging, object-level read/write auditing, and API Gateway stage logging. Covers requirements 3.3.1 and 3.3.2: creating and retaining audit records, and tracing actions to individual users.Defining audit review procedures, configuring alerting thresholds, establishing log retention periods that meet contractual obligations, and documenting audit findings in the SSP.
Encryption in TransitChecks ACM certificate expiration (30-day window) and API Gateway SSL certificate attachment. Validates that TLS is enforced on managed API endpoints.Managing certificate lifecycle beyond expiration checks, enforcing minimum TLS versions (1.2+), and documenting encryption policies in the SSP for requirement 3.13.8.
Encryption at RestValidates encryption on API Gateway stage caches and AWS Backup recovery points. Detects unencrypted data stores that could expose CUI.FIPS-validated cryptographic module selection (where required), KMS key policy management, and verifying that encryption covers all CUI data stores beyond those checked here (EBS, RDS, S3).
Network Boundary ProtectionChecks that Auto Scaling launch configurations do not assign public IPs and that WAF web ACLs are associated with API Gateway stages. Detects resources exposed beyond the CUI boundary.Defining the CUI enclave boundary in the SSP, configuring WAF rule sets appropriate to your threat model, and implementing network segmentation between CUI and non-CUI systems.
Backup and Recovery IntegrityValidates backup plan retention minimums (35 days), recovery point retention periods, and that manual deletion of recovery points is disabled. Covers aspects of requirement 3.8.9 and system resilience.Recovery procedures need periodic testing, recovery time objectives need documentation, and backup storage locations must meet the same CUI protection requirements as production systems.

Controls by category

72 of 106 mapped controls are Enforced by compliance.tf modules at terraform plan. The other 34 are Mapped only: NIST SP 800-171 Rev 2 lists them, no compliance.tf module checks them.

Audit and Accountability (3.3)

The most common finding in this family is CloudTrail enabled in only one region or missing S3 object-level event logging. Requirements 3.3.1 and 3.3.2 require audit coverage across all regions and services, so assessors check that multi-region trails are active, S3 data events are captured for both read and write operations, and log integrity validation is enabled.

Media Protection (3.8)

Auditors ask to see controls that prevent individual operators from deleting recovery points, typically vault lock policies or an equivalent mechanism. Retention schedules must meet organizational and contractual minimums under requirement 3.8.9. Organizations without vault lock policies routinely fail this section, leaving backups exposed to insider deletion or ransomware scenarios.

System and Communications Protection (3.13)

Auditors examine encryption of CUI in transit (requirement 3.13.8) and at rest (3.13.16), boundary protection (3.13.1), and monitoring at managed interfaces (3.13.6). Expected evidence includes valid TLS certificates on all public and internal endpoints, encryption enforced on cached data, and WAF rules protecting externally accessible APIs. Expired or soon-to-expire certificates are flagged as direct gaps in transmission confidentiality.

Additional controls (101)

AWS Database Migration Service (1)

AWS KMS (1)

Amazon CloudWatch Logs (1)

Amazon EBS (1)

Amazon EMR (1)

Amazon RDS (15)

Amazon S3 (14)

Amazon SNS (1)

Elastic Load Balancing (10)

FrameworkControl overlapNote
NIST Cybersecurity Framework v1.1High 86%
PCI DSS v4.0High 85%
FedRAMP Moderate Baseline Rev 4High 81%

Frequently asked questions

Does NIST 800-171 Rev 2 apply to my organization?

If your contract includes DFARS clause 252.204-7012, FAR 52.204-21, or any clause requiring CUI protection, then yes. This applies to prime contractors and every subcontractor in the supply chain that handles CUI. The determining factor is whether CUI flows through or resides on your systems, not your company size or revenue.

Rev 3 was published in May 2024. Should I be implementing Rev 2 or Rev 3?

Implement Rev 2 for now. The CMMC 2.0 final rule (effective December 16, 2024) and DFARS clause 252.204-7012 reference Rev 2. DoD has not updated contractual requirements to mandate Rev 3. Monitor the CMMC program for transition timelines, but don't delay Rev 2 compliance waiting for Rev 3 adoption.

What is the relationship between NIST 800-171 and CMMC?

CMMC Level 2 maps directly to the 110 security requirements in NIST 800-171 Rev 2. CMMC adds the assessment methodology and certification process that 800-171 itself does not define. Think of 800-171 as 'what to implement' and CMMC as 'how you prove it.' CMMC Level 1 covers the 15 basic safeguarding requirements of FAR 52.204-21 (17 practices in CMMC), a subset of 800-171.

How long does it take to achieve full compliance?

For a mid-size contractor starting from scratch, 12 to 18 months is typical. Organizations with existing security programs (ISO 27001, SOC 2) can often close gaps in 6 to 9 months. The main time sinks are documenting the System Security Plan (SSP), implementing missing technical controls, and building the Plan of Action and Milestones (POA&M) for remaining gaps. POA&Ms must carry defined closure timelines; they are not indefinite waivers.

What is an SPRS score and how is it calculated?

The Supplier Performance Risk System (SPRS) score is a self-assessed number from -203 to 110. You start at 110 and subtract weighted values for each requirement not fully implemented. A score of 110 means all requirements are met. DoD contracting officers can view your score before awarding contracts, and posting an inaccurate score carries False Claims Act liability. The scoring comes from the DoD Assessment Methodology; NIST SP 800-171A defines the assessment procedures.

Enforce 72 NIST SP 800-171 Rev 2 controls with one module source change.

Start free trialGet started

On this page

Ask AI about this

Help improve this page