EBS snapshot is not encrypted Affecting EC2 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-CCM
  • Snyk IDSNYK-CC-00217
  • creditSnyk Research Team

Description

EBS volume snapshots may contain sensitive or private data. Encryption of backups should be enabled to protect data from theft or other malicious activity.

How to fix?

Add or update the aws_ebs_volume attribute encrypted and set it to true to ensure the aws_ebs_snapshot is encrypted.

Example Configuration

resource "aws_ebs_volume" "volume1" {
    availability_zone = "us-east-1a"
    size              = 40
    encrypted         = true
    tags {
        Name = "volume1"
    }
}

resource "aws_ebs_snapshot" "snapshot1" {
    volume_id = "${aws_ebs_volume.volume1.id}"

    tags = {
        Name = "snapshot1"
    }
}