Back to Checks
iac

Enable in-transit encryption for EMR clusters.

AWS-0138
Service: emrSeverity: high
OfficialBuilt-inVerified

Data stored within an EMR cluster should be encrypted to ensure sensitive data is kept private.

Run this check with Prowler

Run in Prowler Cloud
Run
prowler iac --checks AWS-0138

Recommendation

Enable in-transit encryption for EMR cluster

Check Code

# METADATA
# title: Enable in-transit encryption for EMR clusters.
# description: |
#   Data stored within an EMR cluster should be encrypted to ensure sensitive data is kept private.
# scope: package
# schemas:
#   - input: schema["cloud"]
# related_resources:
#   - https://docs.aws.amazon.com/config/latest/developerguide/operational-best-practices-for-nist_800-171.html
# custom:
#   id: AWS-0138
#   long_id: aws-emr-enable-in-transit-encryption
#   aliases:
#     - AVD-AWS-0138
#     - enable-in-transit-encryption
#     - aws-emr-enable-in-transit-encryption
#   provider: aws
#   service: emr
#   severity: HIGH
#   recommended_action: Enable in-transit encryption for EMR cluster
#   input:
#     selector:
#       - type: cloud
#         subtypes:
#           - service: emr
#             provider: aws
#   examples: checks/cloud/aws/emr/enable_in_transit_encryption.yaml
package builtin.aws.emr.aws0138

import rego.v1

deny contains res if {
	some sec_conf in input.aws.emr.securityconfiguration
	vars := json.unmarshal(sec_conf.configuration.value)
	vars.EncryptionConfiguration.EnableInTransitEncryption == false
	res := result.new("EMR cluster does not have in-transit encryption enabled.", sec_conf.configuration)
}