Back to Checks
iac

Unencrypted data lake storage.

AZU-0036
Service: datalakeSeverity: high
OfficialBuilt-inVerified

Datalake storage encryption defaults to Enabled, it shouldn't be overridden to Disabled.

Run this check with Prowler

Run in Prowler Cloud
Run
prowler iac --checks AZU-0036

Recommendation

Enable encryption of data lake storage

Check Code

# METADATA
# title: Unencrypted data lake storage.
# description: |
#   Datalake storage encryption defaults to Enabled, it shouldn't be overridden to Disabled.
# scope: package
# schemas:
#   - input: schema["cloud"]
# related_resources:
#   - https://docs.microsoft.com/en-us/azure/data-lake-store/data-lake-store-security-overview
# custom:
#   id: AZU-0036
#   long_id: azure-datalake-enable-at-rest-encryption
#   aliases:
#     - AVD-AZU-0036
#     - enable-at-rest-encryption
#     - azure-datalake-enable-at-rest-encryption
#   provider: azure
#   service: datalake
#   severity: HIGH
#   recommended_action: Enable encryption of data lake storage
#   input:
#     selector:
#       - type: cloud
#         subtypes:
#           - service: datalake
#             provider: azure
#   examples: checks/cloud/azure/datalake/enable_at_rest_encryption.yaml
package builtin.azure.datalake.azure0036

import rego.v1

deny contains res if {
	some store in input.azure.datalake.stores
	not store.enableencryption.value
	res := result.new(
		"Data lake store is not encrypted.",
		object.get(store, "enableencryption", store),
	)
}