Back to Checks
Neptune logs export should be enabled
AWS-0075
Service: neptuneSeverity: medium
OfficialBuilt-inVerified
Neptune does not have auditing by default. To ensure that you are able to accurately audit the usage of your Neptune instance you should enable export logs.
Run this check with Prowler
Run in Prowler CloudRun
prowler iac --checks AWS-0075Recommendation
Enable export logs
Check Code
# METADATA
# title: Neptune logs export should be enabled
# description: |
# Neptune does not have auditing by default. To ensure that you are able to accurately audit the usage of your Neptune instance you should enable export logs.
# scope: package
# schemas:
# - input: schema["cloud"]
# related_resources:
# - https://docs.aws.amazon.com/neptune/latest/userguide/auditing.html
# custom:
# id: AWS-0075
# long_id: aws-neptune-enable-log-export
# aliases:
# - AVD-AWS-0075
# - enable-log-export
# - aws-neptune-enable-log-export
# provider: aws
# service: neptune
# severity: MEDIUM
# recommended_action: Enable export logs
# input:
# selector:
# - type: cloud
# subtypes:
# - service: neptune
# provider: aws
# examples: checks/cloud/aws/neptune/enable_log_export.yaml
package builtin.aws.neptune.aws0075
import rego.v1
import data.lib.cloud.metadata
deny contains res if {
some cluster in input.aws.neptune.clusters
not cluster.logging.audit.value
res := result.new(
"Cluster does not have audit logging enabled.",
metadata.obj_by_path(cluster, ["logging", "audit"]),
)
}