EBS Volume Encryption Disabled
- Query id: cc997676-481b-4e93-aa81-d19f8c5e9b12
- Query name: EBS Volume Encryption Disabled
- Platform: Terraform
- Severity: Medium
- Category: Encryption
- URL: Github
Description¶
EBS volumes should be encrypted
Documentation
Code samples¶
Code samples with security vulnerabilities¶
Positive test num. 1 - tf file
resource "aws_ebs_volume" "positive1" {
availability_zone = "us-west-2a"
size = 40
encrypted = false
tags = {
Name = "HelloWorld"
}
}
Positive test num. 2 - tf file
resource "aws_ebs_volume" "positive2" {
availability_zone = "us-west-2a"
size = 40
tags = {
Name = "HelloWorld"
}
}