fbpx

Implementing a compliance and reporting strategy for NIST SP 800-53 Rev. 5

Amazon Web Services (AWS) provides tools that simplify automation and monitoring for compliance with security standards, such as the NIST SP 800-53 Rev. 5 Operational Best Practices. Organizations can set preventative and proactive controls to help ensure that noncompliant resources aren’t deployed. Detective and responsive controls notify stakeholders of misconfigurations immediately and automate fixes, thus minimizing the time to resolution (TTR).

   <p>By layering the solutions outlined in this blog post, you can increase the probability that your deployments stay continuously compliant with the National Institute of Standards and Technology <a href="https://docs.aws.amazon.com/securityhub/latest/userguide/nist-standard.html" target="_blank" rel="noopener">(NIST) SP 800-53 security standard</a>, and you can simplify reporting on that compliance. In this post, we walk you through the following tools to get started on your continuous compliance journey:</p> 
   <p><strong>Detective</strong></p> 

   <p><strong>Preventative</strong></p> 

   <p><strong>Proactive</strong></p> 

   <p><strong>Responsive</strong></p> 

   <p><strong>Reporting</strong></p> 

   <h2>Note on implementation</h2> 
   <p>This post covers quite a few solutions, and these solutions operate in different parts of the <a href="https://docs.aws.amazon.com/wellarchitected/latest/security-pillar/welcome.html" target="_blank" rel="noopener">security pillar</a> of the <a href="https://docs.aws.amazon.com/wellarchitected/latest/framework/welcome.html" target="_blank" rel="noopener">AWS Well-Architected Framework</a>. It might take some iterations to get your desired results, but we encourage you to start small, find your focus areas, and implement layered iterative changes to address them.</p> 
   <p>For example, if your organization has experienced events involving public <a href="https://aws.amazon.com/s3/" target="_blank" rel="noopener">Amazon Simple Storage Service (Amazon S3)</a> buckets that can lead to data exposure, focus your efforts across the different control types to address that issue first. Then move on to other areas. Those steps might look similar to the following:</p> 
   <ol> 
    <li>Use Security Hub and Prowler to find your public buckets and monitor patterns over a predetermined time period to discover trends and perhaps an organizational root cause.</li> 
    <li>Apply IAM policies and SCPs to specific organizational units (OUs) and principals to help prevent the creation of public buckets and the changing of AWS account-level controls.</li> 
    <li>Set up Automated Security Response (ASR) on AWS and then test and implement the automatic remediation feature for only S3 findings.</li> 
    <li>Remove direct human access to production accounts and OUs. Require infrastructure as code (IaC) to pass through a pipeline where CloudFormation Guard scans IaC for misconfigurations before deployment into production environments.</li> 
   </ol> 
   <h2>Detective controls</h2> 
   <p>Implement your detective controls first. Use them to identify misconfigurations and your priority areas to address. Detective controls are security controls that are designed to detect, log, and alert after an event has occurred. Detective controls are a foundational part of governance frameworks. These guardrails are a second line of defense, notifying you of security issues that bypassed the preventative controls.</p> 
   <h3>Security Hub NIST SP 800-53 security standard</h3> 
   <p>Security Hub consumes, aggregates, and analyzes security findings from various supported AWS and third-party products. It functions as a dashboard for security and compliance in your AWS environment. Security Hub also generates its own findings by running automated and continuous security checks against rules. The rules are represented by security controls. The controls might, in turn, be enabled in one or more security standards. The controls help you determine whether the requirements in a standard are being met. Security Hub provides <a href="https://docs.aws.amazon.com/securityhub/latest/userguide/nist-standard.html" target="_blank" rel="noopener">controls that support specific NIST SP 800-53 requirements.</a> Unlike other frameworks, NIST SP 800-53 isn’t prescriptive about how its requirements should be evaluated. Instead, the framework provides guidelines, and the Security Hub NIST SP 800-53 controls represent the service’s understanding of them.</p> 
   <p>Using <a href="https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-settingup.html" target="_blank" rel="noopener">this step-by-step guide</a>, enable Security Hub for your organization in <a href="https://aws.amazon.com/organizations/" target="_blank" rel="noopener">AWS Organizations</a>. Configure the NIST SP 800-53 security standard for all accounts, in all AWS Regions that are required to be monitored for compliance, in your organization by using the new <a href="https://docs.aws.amazon.com/securityhub/latest/userguide/create-associate-policy.html" target="_blank" rel="noopener">centralized configuration</a> feature; or if your organization uses <a href="https://aws.amazon.com/govcloud-us/" target="_blank" rel="noopener">AWS GovCloud (US)</a>, by using <a href="https://github.com/awslabs/aws-securityhub-multiaccount-scripts/tree/master/nist800-53-enable" target="_blank" rel="noopener">this multi-account script</a>. Use the findings from the NIST SP 800-53 security standard in your <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_delegate_policies.html" target="_blank" rel="noopener">delegated administrator account</a> to monitor NIST SP 800-53 compliance across your entire organization, or a list of specific accounts.</p> 
   <p>Figure 1 shows the Security Standard console page, where users of the Security Hub Security Standard feature can see an overview of their security score against a selected security standard.</p> 
   <div id="attachment_34495" class="wp-caption aligncenter"> 
    <img aria-describedby="caption-attachment-34495" src="https://infracom.com.sg/wp-content/uploads/2024/06/img1-1.png" alt="Figure 1: Security Hub security standard console" width="780" class="size-full wp-image-34495"> 
    <p id="caption-attachment-34495" class="wp-caption-text">Figure 1: Security Hub security standard console</p> 
   </div> 
   <p>On this console page, you can select each control that is checked by a Security Hub Security Standard, such as the NIST 800-53 Rev. 5 standard, to find detailed information about the check and which NIST controls it maps to, as shown in Figure 2.</p> 
   <div id="attachment_34505" class="wp-caption aligncenter"> 
    <img aria-describedby="caption-attachment-34505" loading="lazy" src="https://infracom.com.sg/wp-content/uploads/2024/06/img2-2.png" alt="Figure 2: Security standard check detail" width="727" height="777" class="size-full wp-image-34505"> 
    <p id="caption-attachment-34505" class="wp-caption-text">Figure 2: Security standard check detail</p> 
   </div> 
   <p>After you enable Security Hub with the NIST SP 800-53 security standard, you can link responsive controls such as the Automated Security Response (ASR), which is covered later in this blog post, to <a href="https://aws.amazon.com/eventbridge/" target="_blank" rel="noopener">Amazon EventBridge</a> rules to listen for Security Hub findings as they come in.</p> 
   <h3>Prowler</h3> 
   <p><a href="https://github.com/prowler-cloud/prowler" target="_blank" rel="noopener">Prowler</a> is an open source security tool that you can use to perform assessments against AWS Cloud security recommendations, along with audits, incident response, continuous monitoring, hardening, and forensics readiness. The tool is a Python script that you can run anywhere that an up-to-date Python installation is located—this could be a workstation, an <a href="https://aws.amazon.com/ec2/" target="_blank" rel="noopener">Amazon Elastic Compute Cloud (Amazon EC2)</a> instance, <a href="https://aws.amazon.com/fargate/" target="_blank" rel="noopener">AWS Fargate</a> or another container, <a href="https://aws.amazon.com/codebuild/" target="_blank" rel="noopener">AWS CodeBuild</a>, <a href="https://aws.amazon.com/cloudshell/" target="_blank" rel="noopener">AWS CloudShell</a>, <a href="https://aws.amazon.com/cloud9/" target="_blank" rel="noopener">AWS Cloud9</a>, or another compute option.</p> 
   <p>Figure 3 shows Prowler being used to perform a scan.</p> 
   <div id="attachment_34497" class="wp-caption aligncenter"> 
    <img aria-describedby="caption-attachment-34497" src="https://infracom.com.sg/wp-content/uploads/2024/06/img3-1.png" alt="Figure 3: Prowler CLI in action" width="780" class="size-full wp-image-34497"> 
    <p id="caption-attachment-34497" class="wp-caption-text">Figure 3: Prowler CLI in action</p> 
   </div> 
   <p>Prowler works well as a complement to the Security Hub NIST SP 800-53 Rev. 5 security standard. The tool has a native Security Hub integration and can send its findings to your Security Hub findings dashboard. You can also use Prowler as a standalone compliance scanning tool in partitions where Security Hub or the security standards aren’t yet available.</p> 
   <p>At the time of writing, Prowler has over 300 checks across 64 AWS services.</p> 
   <p>In addition to integrations with Security Hub and computer-based outputs, Prowler can produce fully interactive HTML reports that you can use to sort, filter, and dive deeper into findings. You can then share these compliance status reports with compliance personnel. Some organizations run automatically recurring Prowler reports and use <a href="https://aws.amazon.com/sns/" target="_blank" rel="noopener">Amazon Simple Notification Service (Amazon SNS)</a> to email the results directly to their compliance personnel.</p> 
   <p>Get started with Prowler by reviewing the <a href="https://docs.prowler.cloud/en/latest/" target="_blank" rel="noopener">Prowler Open Source documentation</a> that contains tutorials for specific providers and commands that you can copy and paste.</p> 
   <h2>Preventative controls</h2> 
   <p>Preventative controls are security controls that are designed to prevent an event from occurring in the first place. These guardrails are a first line of defense to help prevent unauthorized access or unwanted changes to your network. Service control policies (SCPs) and IAM controls are the best way to help prevent principals in your AWS environment (whether they are human or nonhuman) from creating noncompliant or misconfigured resources.</p> 
   <h3>IAM</h3> 
   <p>In the ideal environment, principals (both human and nonhuman) have the least amount of privilege that they need to reach operational objectives. Ideally, humans would at the most only have read-only access to production environments. AWS resources would be created through IaC that runs through a DevSecOps pipeline where policy-as-code checks review resources for compliance against your policies before deployment. DevSecOps pipeline roles should have IAM policies that prevent the deployment of resources that don’t conform to your organization’s compliance strategy. Use IAM conditions wherever possible to help ensure that only requests that match specific, predefined parameters are allowed.</p> 
   <p>The following policy is a simple example of a Deny policy that uses <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonrds.html#amazonrds-policy-keys" target="_blank" rel="noopener">Amazon Relational Database Service (Amazon RDS) condition keys</a> to help prevent the creation of unencrypted RDS instances and clusters. Most AWS services support condition keys that allow for evaluating the presence of specific service settings. Use these condition keys to help ensure that key security features, such as encryption, are set during a resource creation call.</p> 
   <div class="hide-language"> 
    <pre class="unlimited-height-code"><code class="lang-text">{

“Version”: “2012-10-17”,
“Statement”: [
{
“Sid”: “DenyUnencryptedRDSResourceCreation”,
“Effect”: “Deny”,
“Action”: [
“rds:CreateDBInstance”,
“rds:CreateDBCluster”
]
“Resource”: ““,
“Condition”: {
“BoolIfExists”: {
rds:StorageEncrypted”: “false”
}
}
}
]
}

   <h3>Service control policies</h3> 
   You can use an SCP to specify the maximum permissions for member accounts in your organization. You can restrict which AWS services, resources, and individual API actions the users and roles in each member account can access. You can also define conditions for when to restrict access to AWS services, resources, and API actions. If you haven’t used SCPs before and want to learn more, see <a href="https://aws.amazon.com/blogs/security/how-to-use-service-control-policies-to-set-permission-guardrails-across-accounts-in-your-aws-organization/" target="_blank" rel="noopener">How to use service control policies to set permission guardrails across accounts in your AWS Organization</a>.</p> 
   <p>Use SCPs to help prevent common misconfigurations mapped to NIST SP 800-53 controls, such as the following:</p> 
   <ul> 
    <li>Prevent governed accounts from leaving the organization or turning off security monitoring services.</li> 
    <li>Build protections and contextual access controls around privileged principals.</li> 
    <li>Mitigate the risk of data mishandling by enforcing data perimeters and requiring encryption on data at rest.</li> 
   </ul> 
   <p>Although SCPs aren’t the optimal choice for preventing every misconfiguration, they can help prevent many of them. As a feature of AWS Organizations, SCPs provide inheritable controls to member accounts of the OUs that they are applied to. For deployments in Regions where AWS Organizations isn’t available, you can use IAM policies and permissions boundaries to achieve preventative functionality that is similar to what SCPs provide.</p> 
   <p>The following is an example of policy mapping statements to NIST controls or control families. Note the placeholder values, which you will need to replace with your own information before use. Note that the SIDs map to Security Hub NIST 800-53 Security Standard control numbers or NIST control families.</p> 
   <div class="hide-language"> 
    <pre class="unlimited-height-code"><code class="lang-text">{

“Version”: “2012-10-17”,
“Statement”: [
{
“Sid”: “Account1”,
“Action”: [
“organizations:LeaveOrganization”
],
“Effect”: “Deny”,
“Resource”: “


},
{
“Sid”: “NISTAccessControlFederation”,
“Effect”: “Deny”,
“Action”: [
“iam:CreateOpenIDConnectProvider”,
“iam:CreateSAMLProvider”,
“iam:DeleteOpenIDConnectProvider”,
“iam:DeleteSAMLProvider”,
“iam:UpdateOpenIDConnectProviderThumbprint”,
“iam:UpdateSAMLProvider”
],
“Resource”: ““,
“Condition”: {
“ArnNotLike”: {
“aws:PrincipalARN”: “arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]”
}
}
},
{
“Sid”: “CloudTrail1”,
“Effect”: “Deny”,
“Action”: [
“cloudtrail:DeleteTrail”,
“cloudtrail:PutEventSelectors”,
“cloudtrail:StopLogging”,
“cloudtrail:UpdateTrail”,
“cloudtrail:CreateTrail”
],
“Resource”: “arn:aws:cloudtrail:${Region}:${Account}:trail/[CLOUDTRAIL_NAME]”,
“Condition”: {
“ArnNotLike”: {
“aws:PrincipalARN”: “arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]”
}
}
},
{
“Sid”: “Config1”,
“Effect”: “Deny”,
“Action”: [
“config:DeleteConfigurationAggregator”,
“config:DeleteConfigurationRecorder”,
“config:DeleteDeliveryChannel”,
“config:DeleteConfigRule”,
“config:DeleteOrganizationConfigRule”,
“config:DeleteRetentionConfiguration”,
“config:StopConfigurationRecorder”,
“config:DeleteAggregationAuthorization”,
“config:DeleteEvaluationResults”
],
“Resource”: “
“,
“Condition”: {
“ArnNotLike”: {
“aws:PrincipalARN”: “arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]”
}
}
},
{
“Sid”: “CloudFormationSpecificStackProtectionNISTIncidentResponseandSystemIntegrityControls”,
“Effect”: “Deny”,
“Action”: [
“cloudformation:CreateChangeSet”,
“cloudformation:CreateStack”,
“cloudformation:CreateStackInstances”,
“cloudformation:CreateStackSet”,
“cloudformation:DeleteChangeSet”,
“cloudformation:DeleteStack”,
“cloudformation:DeleteStackInstances”,
“cloudformation:DeleteStackSet”,
“cloudformation:DetectStackDrift”,
“cloudformation:DetectStackResourceDrift”,
“cloudformation:DetectStackSetDrift”,
“cloudformation:ExecuteChangeSet”,
“cloudformation:SetStackPolicy”,
“cloudformation:StopStackSetOperation”,
“cloudformation:UpdateStack”,
“cloudformation:UpdateStackInstances”,
“cloudformation:UpdateStackSet”,
“cloudformation:UpdateTerminationProtection”
],
“Resource”: [
“arn:aws:cloudformation:::stackset/[STACKSET_PREFIX]“,
“arn:aws:cloudformation:
::stack/[STACK_PREFIX]“,
“arn:aws:cloudformation:::stack/[STACK_NAME]”
],
“Condition”: {
“ArnNotLike”: {
“aws:PrincipalARN”: “arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]”
}
}
},
{
“Sid”: “EC23”,
“Effect”: “Deny”,
“Action”: [
“ec2:DisableEbsEncryptionByDefault”
],
“Resource”: ““,
“Condition”: {
“ArnNotLike”: {
“aws:PrincipalARN”: “arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]”
}
}
},
{
“Sid”: “GuardDuty1”,
“Effect”: “Deny”,
“Action”: [
“guardduty:DeclineInvitations”,
“guardduty:DeleteDetector”,
“guardduty:DeleteFilter”,
“guardduty:DeleteInvitations”,
“guardduty:DeleteIPSet”,
“guardduty:DeleteMembers”,
“guardduty:DeletePublishingDestination”,
“guardduty:DeleteThreatIntelSet”,
“guardduty:DisassociateFromMasterAccount”,
“guardduty:DisassociateMembers”,
“guardduty:StopMonitoringMembers”
],
“Resource”: “

},
{
“Sid”: “IAM4”,
“Effect”: “Deny”,
“Action”: “iam:CreateAccessKey”,
“Resource”: [
“arn::iam:::root”,
“arn::iam::
:Administrator”
]
},
{
“Sid”: “KMS3”,
“Effect”: “Deny”,
“Action”: [
“kms:ScheduleKeyDeletion”,
“kms:DeleteAlias”,
“kms:DeleteCustomKeyStore”,
“kms:DeleteImportedKeyMaterial”
],
“Resource”: ““,
“Condition”: {
“ArnNotLike”: {
“aws:PrincipalArn”: “arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]”
}
}
},
{
“Sid”: “Lambda1”,
“Effect”: “Deny”,
“Action”: [
“lambda:AddPermission”
],
“Resource”: [

],
“Condition”: {
“StringEquals”: {
“lambda:Principal”: [

]
}
}
},
{
“Sid”: “ProtectSecurityLambdaFunctionsNISTIncidentResponseControls”,
“Effect”: “Deny”,
“Action”: [
“lambda:AddPermission”,
“lambda:CreateEventSourceMapping”,
“lambda:CreateFunction”,
“lambda:DeleteEventSourceMapping”,
“lambda:DeleteFunction”,
“lambda:DeleteFunctionConcurrency”,
“lambda:PutFunctionConcurrency”,
“lambda:RemovePermission”,
“lambda:UpdateEventSourceMapping”,
“lambda:UpdateFunctionCode”,
“lambda:UpdateFunctionConfiguration”
],
“Resource”: “arn:aws:lambda:
::function:[INFRASTRUCTURE_AUTOMATION_PREFIX]”,
“Condition”: {
“ArnNotLike”: {
“aws:PrincipalArn”: “arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]”
}
}
},
{
“Sid”: “SecurityHub”,
“Effect”: “Deny”,
“Action”: [
“securityhub:DeleteInvitations”,
“securityhub:BatchDisableStandards”,
“securityhub:DeleteActionTarget”,
“securityhub:DeleteInsight”,
“securityhub:UntagResource”,
“securityhub:DisableSecurityHub”,
“securityhub:DisassociateFromMasterAccount”,
“securityhub:DeleteMembers”,
“securityhub:DisassociateMembers”,
“securityhub:DisableImportFindingsForProduct”
],
“Resource”: “
“,
“Condition”: {
“ArnNotLike”: {
“aws:PrincipalARN”: “arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]”
}
}
},
{
“Sid”: “ProtectAlertingSNSNISTIncidentResponseControls”,
“Effect”: “Deny”,
“Action”: [
“sns:AddPermission”,
“sns:CreateTopic”,
“sns:DeleteTopic”,
“sns:RemovePermission”,
“sns:SetTopicAttributes”
],
“Resource”: “arn:aws:sns:::[SNS_TOPIC_TO_PROTECT]”,
“Condition”: {
“ArnNotLike”: {
“aws:PrincipalArn”: “arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]”
}
}
},
{
“Sid”: “S3 2 3 6”,
“Effect”: “Deny”,
“Action”: [
“s3:PutAccountPublicAccessBlock”
],
“Resource”: ““,
“Condition”: {
“ArnNotLike”: {
“aws:PrincipalARN”: “arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]”
}
}
},
{
“Sid”: “ProtectS3bucketsanddatafromdeletionNISTSystemIntegrityControls”,
“Effect”: “Deny”,
“Action”: [
“s3:DeleteBucket”,
“s3:DeleteBucketPolicy”,
“s3:DeleteObject”,
“s3:DeleteObjectVersion”,
“s3:DeleteObjectTagging”,
“s3:DeleteObjectVersionTagging”
],
“Resource”: [
“arn:aws:s3:::BUCKET_TO_PROTECT”,
“arn:aws:s3:::BUCKET_TO_PROTECT/path/to/key
“,
“arn:aws:s3:::Another_BUCKET_TO_PROTECT”,
“arn:aws:s3:::CriticalBucketPrefix-*”
]
}
]
}

   <p>For a collection of SCP examples that are ready for your testing, modification, and adoption, see the <a href="https://github.com/aws-samples/service-control-policy-examples/tree/main" target="_blank" rel="noopener">service-control-policy-examples</a> GitHub repository, which includes examples of Region and service restrictions.</p> 
   <p>For a deeper dive on SCP best practices, see <a href="https://aws.amazon.com/blogs/mt/achieving-operational-excellence-with-design-considerations-for-aws-organizations-scps/" target="_blank" rel="noopener">Achieving operational excellence with design considerations for AWS Organizations SCPs</a>.</p> 
   <p>You should thoroughly test SCPs against development OUs and accounts before you deploy them against production OUs and accounts.</p> 
   <h2>Proactive controls</h2> 
   <p>Proactive controls are security controls that are designed to prevent the creation of noncompliant resources. These controls can reduce the number of security events that responsive and detective controls handle. These controls help ensure that deployed resources are compliant before they are deployed; therefore, there is no detection event that requires response or remediation.</p> 
   <h3>CloudFormation Guard</h3> 
   <p>CloudFormation Guard (cfn-guard) is an open source, general-purpose, policy-as-code evaluation tool. Use cfn-guard to scan Information as Code (IaC) against a collection of policies, defined as JSON, before deployment of resources into an environment.</p> 
   <p>Cfn-guard can scan CloudFormation templates, Terraform plans, Kubernetes configurations, and <a href="https://aws.amazon.com/cdk/" target="_blank" rel="noopener">AWS Cloud Development Kit (AWS CDK)</a> output. Cfn-guard is fully extensible, so your teams can choose the rules that they want to enforce, and even write their own declarative rules in a YAML-based format. Ideally, the resources deployed into a production environment on AWS flow through a DevSecOps pipeline. Use cfn_guard in your pipeline to define what is and is not acceptable for deployment, and help prevent misconfigured resources from deploying. Developers can also use cfn_guard on their local command line, or as a pre-commit hook to move the feedback timeline even further “left” in the development cycle.</p> 
   <p>Use policy as code to help prevent the deployment of noncompliant resources. When you implement policy as code in the DevOps cycle, you can help shorten the development and feedback cycle and reduce the burden on security teams. The CloudFormation team maintains a <a href="https://github.com/aws-cloudformation/aws-guard-rules-registry/blob/main/mappings/rule_set_nist800_53rev5.json" target="_blank" rel="noopener">GitHub repo of cfn-guard rules and mappings</a>, ready for rapid testing and adoption by your teams.</p> 
   <p>Figure 4 shows how you can use Guard with the NIST 800-53 cfn_guard Rule Mapping to scan infrastructure as code against NIST 800-53 mapped rules.</p> 
   <div id="attachment_34498" class="wp-caption aligncenter"> 
    <img aria-describedby="caption-attachment-34498" src="https://infracom.com.sg/wp-content/uploads/2024/06/img4.png" alt="Figure 4: CloudFormation Guard scan results" width="780" class="size-full wp-image-34498" /> 
    <p id="caption-attachment-34498" class="wp-caption-text">Figure 4: CloudFormation Guard scan results</p> 
   </div> 
   <p>You should implement policy as code as pre-commit checks so that developers get prompt feedback, and in DevSecOps pipelines to help prevent deployment of noncompliant resources. These checks typically run as Bash scripts in a continuous integration and continuous delivery (CI/CD) pipeline such as <a href="https://aws.amazon.com/codebuild/" target="_blank" rel="noopener">AWS CodeBuild</a> or GitLab CI. To learn more, see <a href="https://aws.amazon.com/blogs/devops/integrating-aws-cloudformation-guard/" target="_blank" rel="noopener">Integrating AWS CloudFormation Guard into CI/CD pipelines</a>.</p> 
   <p>To get started, see the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html" target="_blank" rel="noopener">CloudFormation Guard User Guide</a>. You can also view the GitHub repos for <a href="https://github.com/aws-cloudformation/cloudformation-guard" target="_blank" rel="noopener">CloudFormation Guard</a> and the <a href="https://github.com/aws-cloudformation/aws-guard-rules-registry/tree/main" target="_blank" rel="noopener">AWS Guard Rules Registry</a>.</p> 
   <p>Many other third-party policy-as-code tools are available and include NIST SP 800-53 compliance policies. If cfn-guard doesn’t meet your needs, or if you are looking for a more native integration with the AWS CDK, for example, see the<a href="https://github.com/cdklabs/cdk-nag/blob/main/RULES.md#nist-800-53-rev-5" target="_blank" rel="noopener"> NIST-800-53 rev 5 rules pack</a> in <a href="https://github.com/cdklabs/cdk-nag" target="_blank" rel="noopener">cdk-nag</a>.</p> 
   <h2>Responsive controls</h2> 
   <p>Responsive controls are designed to drive remediation of adverse events or deviations from your security baseline. Examples of technical responsive controls include setting more stringent security group rules after a security group is created, setting a public access block on a bucket automatically if it’s removed, patching a system, quarantining a resource exhibiting anomalous behavior, shutting down a process, or rebooting a system.</p> 
   <h3>Automated Security Response on AWS</h3> 
   <p>The <a href="https://aws.amazon.com/solutions/implementations/automated-security-response-on-aws/" target="_blank" rel="noopener">Automated Security Response on AWS (ASR) </a>is an add-on that works with Security Hub and provides predefined response and remediation actions based on industry compliance standards and current recommendations for security threats. This AWS solution creates playbooks so you can choose what you want to deploy in your Security Hub administrator account (which is typically your Security Tooling account, in our recommended multi-account architecture). Each playbook contains the necessary actions to start the remediation workflow within the account holding the affected resource. Using ASR, you can resolve common security findings and improve your security posture on AWS. Rather than having to review findings and search for noncompliant resources across many accounts, security teams can view and mitigate findings from the Security Hub console of the delegated administrator.</p> 
   <p>The architecture diagram in Figure 5 shows the different portions of the solution, deployed into both the Administrator account and member accounts.</p> 
   <div id="attachment_34499" class="wp-caption aligncenter"> 
    <img aria-describedby="caption-attachment-34499" src="https://infracom.com.sg/wp-content/uploads/2024/06/img5.png" alt="Figure 5: ASR architecture diagram" width="780" class="size-full wp-image-34499" /> 
    <p id="caption-attachment-34499" class="wp-caption-text">Figure 5: ASR architecture diagram</p> 
   </div> 
   <p>The high-level process flow for the solution components deployed with the AWS CloudFormation template is as follows:</p> 
   <ol> 
    <li><strong>Detect</strong> – <a href="https://aws.amazon.com/security-hub/" target="_blank" rel="noopener">AWS Security Hub</a> provides customers with a comprehensive view of their AWS security state. This service helps them to measure their environment against security industry standards and best practices. It works by collecting events and data from other AWS services, such as <a href="https://aws.amazon.com/config/" target="_blank" rel="noopener">AWS Config</a>, <a href="https://aws.amazon.com/guardduty/" target="_blank" rel="noopener">Amazon GuardDuty</a>, and <a href="https://aws.amazon.com/firewall-manager/" target="_blank" rel="noopener">AWS Firewall Manager</a>. These events and data are analyzed against security standards, such as the CIS AWS Foundations Benchmark. Exceptions are asserted as findings in the Security Hub console. New findings are sent as <a href="https://aws.amazon.com/eventbridge/" target="_blank" rel="noopener">Amazon EventBridge</a> events.</li> 
    <li><strong>Initiate</strong> – You can initiate events against findings by using custom actions, which result in Amazon EventBridge events. <a href="https://aws.amazon.com/blogs/apn/how-to-enable-custom-actions-in-aws-security-hub/" target="_blank" rel="noopener">Security Hub Custom Actions</a> and <a href="https://aws.amazon.com/eventbridge/" target="_blank" rel="noopener">EventBridge rules</a> initiate Automated Security Response on AWS playbooks to address findings. One EventBridge rule is deployed to match the custom action event, and one EventBridge event rule is deployed for each supported control (deactivated by default) to match the real-time finding event. Automated remediation can be initiated through the Security Hub Custom Action menu, or, after careful testing in a non-production environment, automated remediations can be activated. This can be activated per remediation—it isn’t necessary to activate automatic initiations on all remediations.</li> 
    <li><strong>Orchestrate</strong> – Using cross-account IAM roles, Step Functions in the admin account invokes the remediation in the member account that contains the resource that produced the security finding.</li> 
    <li><strong>Remediate</strong> – An <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/documents.html" target="_blank" rel="noopener">AWS Systems Manager Automation Document</a> in the member account performs the action required to remediate the finding on the target resource, such as disabling<a href="https://aws.amazon.com/lambda/" target="_blank" rel="noopener"> AWS Lambda</a> public access.</li> 
    <li><strong>Log</strong> – The playbook logs the results to an <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html" target="_blank" rel="noopener">Amazon CloudWatch Logs group</a>, sends a notification to an <a href="https://aws.amazon.com/sns/" target="_blank" rel="noopener">Amazon SNS</a> topic, and updates the Security Hub finding. An audit trail of actions taken is maintained in the <a href="https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-findings.html" target="_blank" rel="noopener">finding notes</a>. On the Security Hub dashboard, the finding workflow status is changed from <strong>NEW</strong> to either <strong>NOTIFIED</strong> or <strong>RESOLVED</strong>. The security finding notes are updated to reflect the remediation that was performed.</li> 
   </ol> 
   <p>The <a href="https://github.com/aws-solutions/automated-security-response-on-aws/tree/main/source/playbooks/NIST80053" target="_blank" rel="noopener">NIST SP 800-53 Playbook </a>contains 52 remediations to help security and compliance teams respond to misconfigured resources. Security teams have a choice between launching these remediations manually, or enabling the associated EventBridge rules to allow the automations to bring resources back into a compliant state until further action can be taken on them. When a resource doesn’t align with the Security Hub NIST SP 800-53 security standard automated checks and the finding appears in Security Hub, you can use ASR to move the resource back into a compliant state. Remediations are available for 17 of the common core services for most AWS workloads. </p> 
   <p>Figure 6 shows how you can remediate a finding with ASR by selecting the finding in Security Hub and sending it to the created custom action.</p> 
   <div id="attachment_34500" class="wp-caption aligncenter"> 
    <img aria-describedby="caption-attachment-34500" src="https://infracom.com.sg/wp-content/uploads/2024/06/img6.png" alt="Figure 6: ASR Security Hub custom action" width="780" class="size-full wp-image-34500" /> 
    <p id="caption-attachment-34500" class="wp-caption-text">Figure 6: ASR Security Hub custom action</p> 
   </div> 
   <p>Findings generated from the Security Hub NIST SP 800-53 security standard are displayed in the Security Hub findings or security standard dashboards. Security teams can review the findings and choose which ones to send to ASR for remediation. The general architecture of ASR consists of EventBridge rules to listen for the Security Hub custom action, an <a href="https://aws.amazon.com/step-functions/" target="_blank" rel="noopener">AWS Step Functions</a> workflow to control the process and implementation, and several <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/documents.html" target="_blank" rel="noopener">AWS Systems Manager documents (SSM documents)</a> and <a href="https://aws.amazon.com/lambda/" target="_blank" rel="noopener">AWS Lambda</a> functions to perform the remediation. This serverless, step-based approach is a non-brittle, low-maintenance way to keep persistent remediation resources in an account, and to pay for their use only as needed. Although you can choose to fork and customize ASR, it’s a fully developed AWS solution that receives regular bug fixes and feature updates.</p> 
   <p>To get started, see the <a href="https://docs.aws.amazon.com/solutions/latest/automated-security-response-on-aws/solution-overview.html" target="_blank" rel="noopener">ASR Implementation Guide</a>, which will walk you through configuration and deployment.</p> 
   <p>You can also view the code on GitHub at the <a href="https://github.com/aws-solutions/automated-security-response-on-aws/tree/main" target="_blank" rel="noopener">Automated Security Response on AWS GitHub repo</a>.</p> 
   <h2>Reporting</h2> 
   <p>Several options are available to concisely gather results into digestible reports that compliance professionals can use as artifacts during the<a href="https://csrc.nist.gov/projects/risk-management/about-rmf" target="_blank" rel="noopener"> Risk Management Framework (RMF) process</a> when seeking an Authorization to Operate (ATO). By automating reporting and delegating least-privilege access to compliance personnel, security teams may be able to reduce time spent reporting compliance status to auditors or oversight personnel. </p> 
   <h3>Let your compliance folks in</h3> 
   <p>Remove some of the burden of reporting from your security engineers, and give compliance teams read-only access to your Security Hub dashboard in your Security Tooling account. Enabling compliance teams with read-only access through <a href="https://aws.amazon.com/iam/identity-center/" target="_blank" rel="noopener">AWS IAM Identity Center</a> (or another sign-on solution) simplifies governance while still maintaining the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege" target="_blank" rel="noopener">principle of least privilege</a>. By adding compliance personnel to the <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/permissionsetpredefined.html" target="_blank" rel="noopener">AWSSecurityAudit managed permission set</a> in IAM Identity Center, or granting this policy to IAM principals, these users gain visibility into operational accounts without the ability to make configuration changes. Compliance teams can self-serve the security posture details and audit trails that they need for reporting purposes. </p> 
   <p>Meanwhile, administrative teams are freed from regularly gathering and preparing security reports, so they can focus on operating compliant workloads across their organization. The AWSSecurityAudit permission set grants read-only access to security services such as Security Hub, <a href="https://aws.amazon.com/config/" target="_blank" rel="noopener">AWS Config</a>, <a href="https://aws.amazon.com/guardduty/" target="_blank" rel="noopener">Amazon GuardDuty</a>, and <a href="https://aws.amazon.com/iam/access-analyzer/" target="_blank" rel="noopener">AWS IAM Access Analyzer</a>. This provides compliance teams with wide observability into policies, configuration history, threat detection, and access patterns—without the privilege to impact resources or alter configurations. This ultimately helps to strengthen your overall security posture.</p> 
   <p>For more information about AWS managed policies, such as the AWSSecurityAudit managed policy, see the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_managed-vs-inline.html#aws-managed-policies" target="_blank" rel="noopener">AWS managed policies</a>.</p> 
   <p>To learn more about permission sets in IAM Identity Center, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/permissionsetsconcept.html" target="_blank" rel="noopener">Permission sets</a>.</p> 
   <h3>AWS Audit Manager</h3> 
   <p><a href="https://aws.amazon.com/audit-manager/" target="_blank" rel="noopener">AWS Audit Manager</a> helps you continually audit your AWS usage to simplify how you manage risk and compliance with regulations and industry standards. Audit Manager automates evidence collection so you can more easily assess whether your policies, procedures, and activities—also known as controls—are operating effectively. When it’s time for an audit, Audit Manager helps you manage stakeholder reviews of your controls. This means that you can build audit-ready reports with much less manual effort.</p> 
   <p>Audit Manager provides prebuilt frameworks that structure and automate assessments for a given compliance standard or regulation, including NIST 800-53 Rev. 5. Frameworks include a prebuilt collection of controls with descriptions and testing procedures. These controls are grouped according to the requirements of the specified compliance standard or regulation. You can also customize frameworks and controls to support internal audits according to your specific requirements.</p> 
   <p>For more information about using Audit Manager to generate automated compliance reports, see the <a href="https://docs.aws.amazon.com/audit-manager/latest/userguide/what-is.html" target="_blank" rel="noopener">AWS Audit Manager User Guide</a>.</p> 
   <h3>Security Hub Compliance Analyzer (SHCA)</h3> 
   <p>Security Hub is the premier security information aggregating tool on AWS, offering automated security checks that align with NIST SP 800-53 Rev. 5. This alignment is particularly critical for organizations that use the Security Hub <a href="https://docs.aws.amazon.com/securityhub/latest/userguide/nist-standard.html" target="_blank" rel="noopener">NIST SP 800-53 Rev. 5</a> framework. Each control within this framework is pivotal for documenting the compliance status of cloud environments, focusing on key aspects such as:</p> 
   <ul> 
    <li><strong>Related requirements</strong> – For example, NIST.800-53.r5 CM-2 and NIST.800-53.r5 CM-2(2)</li> 
    <li><strong>Severity</strong> – Assessment of potential impact</li> 
    <li><strong>Description</strong> – Detailed control explanation</li> 
    <li><strong>Remediation</strong> – Strategies for addressing and mitigating issues</li> 
   </ul> 
   <p>Such comprehensive information is crucial in the accreditation and continuous monitoring of cloud environments.</p> 
   <h4>Enhance compliance and RMF submission with the <a href="https://github.com/awslabs/security-hub-compliance-analyzer" rel="noopener" target="_blank">Security Hub Compliance Analyzer</a></h4> 
   <p>To further augment the utility of this data for customers seeking to compile artifacts and articulate compliance status, the AWS ProServe team has introduced the <a href="https://github.com/awslabs/security-hub-compliance-analyzer" rel="noopener" target="_blank">Security Hub Compliance Analyzer (SHCA)</a>.</p> 
   <p>SHCA is engineered to streamline the RMF process. It reduces manual effort, delivers extensive reports for informed decision making, and helps assure continuous adherence to NIST SP 800-53 standards. This is achieved through a four-step methodology:</p> 
   <ol> 
    <li><strong>Active findings collection</strong> – Compiles ACTIVE findings from Security Hub that are assessed using NIST SP 800-53 Rev. 5 standards.</li> 
    <li><strong>Results transformation</strong> – Transforms these findings into formats that are both user-friendly and compatible with RMF tools, facilitating understanding and utilization by customers.</li> 
    <li><strong>Data analysis and compliance documentation</strong> – Performs an in-depth analysis of these findings to pinpoint compliance and security shortfalls. Produces comprehensive compliance reports, summaries, and narratives that accurately represent the status of compliance for each NIST SP 800-53 Rev. 5 control.</li> 
    <li><strong>Findings archival</strong> – Assembles and archives the current findings for downloading and review by customers.</li> 
   </ol> 
   <p>The diagram in Figure 7 shows the SHCA steps in action.</p> 
   <div id="attachment_34501" class="wp-caption aligncenter"> 
    <img aria-describedby="caption-attachment-34501" src="https://infracom.com.sg/wp-content/uploads/2024/06/img7.png" alt="Figure 7: SHCA steps" width="780" class="size-full wp-image-34501" /> 
    <p id="caption-attachment-34501" class="wp-caption-text">Figure 7: SHCA steps</p> 
   </div> 
   <p>By integrating these steps, SHCA simplifies compliance management and helps enhance the overall security posture of AWS environments, aligning with the rigorous standards set by NIST SP 800-53 Rev. 5.</p> 
   <p>The following is a list of the artifacts that SHCA provides:</p> 
   <ul> 
    <li><strong>RMF-ready controls</strong> – Controls in full compliance (as per AWS Config) with AWS Operational Recommendations for NIST SP 800-53 Rev. 5, ready for direct import into RMF tools.</li> 
    <li><strong>Controls needing attention</strong> – Controls not fully compliant with AWS Operational Recommendations for NIST SP 800-53 Rev. 5, indicating areas that require improvement.</li> 
    <li><strong>Control compliance summary (CSV)</strong> – A detailed summary, in CSV format, of NIST SP 800-53 controls, including their compliance percentages and comprehensive narratives for each control.</li> 
    <li><strong>Security Hub NIST 800-53 Analysis Summary</strong> – This automated report provides an executive summary of the current compliance posture, tailored for leadership reviews. It emphasizes urgent compliance concerns that require immediate action and guides the creation of a targeted remediation strategy for operational teams.</li> 
    <li><strong>Original Security Hub findings</strong> – The raw JSON file from Security Hub, captured at the last time that the SHCA state machine ran.</li> 
    <li><strong>User-friendly findings summary</strong> –A simplified, flattened version of the original findings, formatted for accessibility in common productivity tools.</li> 
    <li><strong>Original findings from Security Hub in OCSF</strong> – The original findings converted to the <a href="https://schema.ocsf.io/" target="_blank" rel="noopener">Open Cybersecurity Schema Framework (OCSF)</a> format for future applications.</li> 
    <li><strong>Original findings from Security Hub in OSCAL </strong>– The original findings translated into the <a href="https://pages.nist.gov/OSCAL/" target="_blank" rel="noopener">Open Security Controls Assessment Language (OSCAL)</a> format for subsequent usage.</li> 
   </ul> 
   <p>As shown in Figure 8, the Security Hub NIST 800-53 Analysis Summary adopts an OpenSCAP-style format akin to Security Technical Implementation Guides (STIGs), which are grounded in the Department of Defense’s (DoD) policy and security protocols.</p> 
   <div id="attachment_34502" class="wp-caption aligncenter"> 
    <img aria-describedby="caption-attachment-34502" src="https://infracom.com.sg/wp-content/uploads/2024/06/img8.png" alt="Figure 8: SHCA Summary Report" width="780" class="size-full wp-image-34502" /> 
    <p id="caption-attachment-34502" class="wp-caption-text">Figure 8: SHCA Summary Report</p> 
   </div> 
   <p>You can also view the code on GitHub at <a href="https://github.com/awslabs/security-hub-compliance-analyzer" rel="noopener" target="_blank">Security Hub Compliance Analyzer</a>.</p> 
   <h2>Conclusion</h2> 
   <p>Organizations can use AWS security and compliance services to help maintain compliance with the NIST SP 800-53 standard. By implementing preventative IAM and SCP policies, organizations can restrict users from creating noncompliant resources. Detective controls such as Security Hub and Prowler can help identify misconfigurations, while proactive tools such as CloudFormation Guard can scan IaC to help prevent deployment of noncompliant resources. Finally, the Automated Security Response on AWS can automatically remediate findings to help resolve issues quickly. With this layered security approach across the organization, companies can verify that AWS deployments align to the NIST framework, simplify compliance reporting, and enable security teams to focus on critical issues. Get started on your continuous compliance journey today. Using AWS solutions, you can align deployments with the NIST 800-53 standard. Implement the tips in this post to help maintain continuous compliance.</p> 
   <p>If you have feedback about this post, submit comments in the Comments section below. If you have questions about this post, start a new thread on the <a href="https://repost.aws/topics/TAEEfW2o7QS4SOLeZqACq9jA/security-identity-compliance" rel="noopener" target="_blank">AWS Security, Identity, &amp; Compliance re:Post</a> or <a href="https://console.aws.amazon.com/support/home" rel="noopener" target="_blank">contact AWS Support</a>.
   <!-- '"` -->