Non-encrypted Athena DB at rest Affecting Athena service in AWS


Severity

0.0
medium
0
10
Severity Framework
Snyk CCSS
Rule category
Data/ Access Control

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
  • Snyk IDSNYK-CC-00300
  • creditSnyk Research Team

Description

The absence of encryption can expose sensitive data stored in the Athena database to potential unauthorized access and can compromise data confidentiality.

How to fix?

Set the encryption_configuration attribute in aws_athena_database resource to a valid value.

Example configuration:


resource "aws_athena_database" "allowed" {
  name   = "athena_db_300"
  bucket = aws_s3_bucket.rule-300.id
  encryption_configuration {
    encryption_option = "CSE_KMS"
    kms_key           = aws_kms_key.rule-300.arn
  }
}