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:
aws sns set-topic-attributes
command provided earlier, replacing <topic-arn>
and <kms-key-id>
with the correct ARNs.aws sns get-topic-attributes
command with the appropriate topic ARN.By following these steps, you can ensure that SNS topics are encrypted at rest, meeting the NIST 800-53 Revision 5 compliance requirements.