This rule ensures that SNS topics are properly encrypted to protect sensitive data.
Rule | SNS topics should be encrypted at rest |
Framework | NIST 800-53 Revision 5 |
Severity | ✔ Medium |
Rule Description:
The rule requires SNS (Simple Notification Service) topics to be encrypted at rest according to the NIST (National Institute of Standards and Technology) 800-53 Revision 5 security standards. Encryption at rest ensures that the data stored in SNS topics remains secure and protected from unauthorized access.
Troubleshooting Steps:
Code Examples:
aws sns set-topic-attributes \ --topic-arn <topic-arn> \ --attribute-name KmsMasterKeyId \ --attribute-value <kms-key-id>
Replace
<topic-arn>
with the ARN (Amazon Resource Name) of the SNS topic and <kms-key-id>
with the ARN of the KMS key to be used for encryption.Resources:
MySNSTopic:
Type: AWS::SNS::Topic
Properties:
DisplayName: My Encrypted SNS Topic
Subscription:
- Protocol: email
Endpoint: example@example.com
KmsMasterKeyId: <kms-key-id>
Replace
<kms-key-id>
with the ARN of the KMS key to be used for encryption.Remediation Steps:
Follow these steps to remediate the non-compliant SNS topics and ensure that they are encrypted at rest:
Identify the SNS Topics: Identify the SNS topics that need to be encrypted at rest according to the NIST 800-53 Revision 5 policy.
Enable Encryption: Use the AWS Management Console, AWS CLI, or AWS CloudFormation to enable encryption for each identified SNS topic.
If using AWS Management Console:
If using AWS CLI:
aws sns set-topic-attributes
command provided earlier, replacing <topic-arn>
and <kms-key-id>
with the correct ARNs.If using AWS CloudFormation:
Verify Encryption: Validate that the encryption is enabled for each SNS topic.
If using AWS Management Console:
If using AWS CLI:
aws sns get-topic-attributes
command with the appropriate topic ARN.Test Notifications: After enabling encryption at rest, test the SNS topic to ensure that notifications are still functioning as expected. This will help verify that the encryption implementation did not impact the basic functionality.
By following these steps, you can ensure that SNS topics are encrypted at rest, meeting the NIST 800-53 Revision 5 compliance requirements.