SNS topic is not encrypted Affecting SNS service in AWS


Severity

0.0
medium
0
10
Severity Framework
Snyk CCSS
Rule category
Data/ Encryption at Rest

Is your environment affected by this misconfiguration?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
Frameworks
CIS-ControlsCSA-CCMGDPRHIPAAISO-27001NIST-800-53SOC-2
  • Snyk IDSNYK-CC-00294
  • creditSnyk Research Team

Description

Should someone gain unauthorized access to the data, they would be able to read the contents.

How to fix?

Ensure that the kms_master_key_id attribute is set to a KMS key's ARN.

Example Configuration

resource "aws_sns_topic" "example" {
  kms_master_key_id = aws_kms_key.sns_topic_key.arn
  # other required attributes
}

resource "aws_kms_key" "sns_topic_key" {
  description = "key for SNS topics"
}