Skip to content

Backup Vault is not encrypted at rest using KMS CMK

Description

Encrypting your data and resources with KMS helps protect your data from unauthorized access or tampering. By encrypting your data, you can ensure that only authorized users can access and decrypt the data, and that the data is protected while in storage or in transit. Such action can help protect against external threats such as hackers or malware, as well as internal threats such as accidental or unauthorized access.

Fix - Buildtime

Terraform

  • Resource: aws_backup_vault
  • Argument: kms_key_arn

```go aws_s3_bucket.test.tf resource "aws_backup_vault" "backup_with_kms_key" { ... + kms_key_arn = aws_kms_key.example.arn }


## CloudFormation

- **Resource**: AWS::Backup::BackupVault
- **Argument**:  Properties.EncryptionKeyArn

```yaml
Type: AWS::Backup::BackupVault
    Properties:
      ...
+     EncryptionKeyArn: example.arn/aws_kms_key