Disabled Neptune logging High

Disabled Neptune logging is detected. Make sure to enable Neptune logging to analyse traffic patterns and troubleshoot security.

Detector ID
cloudformation/disabled-neptune-logging-cloudformation@v1.0
Category
Common Weakness Enumeration (CWE) external icon

Noncompliant example

1Resources:
2  Resource:
3    Type: AWS::Neptune::DBCluster
4    DependsOn: NeptuneDBSG
5    Properties:
6      # Noncompliant: Neptune logging is not enabled.
7      BackupRetentionPeriod: !Ref BackupRetentionPeriod
8      DBClusterIdentifier: !Ref DBClusterIdentifier
9      DBClusterParameterGroupName: !Ref NeptuneDBClusterParameterGroup
10      DBSubnetGroupName: !Ref NeptuneDBSubnetGroup
11      IamAuthEnabled: !Ref IAMAuthEnabled
12      Port: !Ref Port
13      PreferredBackupWindow: !Ref NeptuneDBClusterPreferredBackupWindow
14      PreferredMaintenanceWindow: !Ref NeptuneDBClusterPreferredMaintenanceWindow
15      StorageEncrypted: true
16      VpcSecurityGroupIds:
17        - !Ref 'NeptuneDBSG'
18      Tags:
19        - Key: Name
20          Value: !Sub '${Env}-${AppName}-Cluster'

Compliant example

1Resources:
2  Resource:
3    Type: AWS::Neptune::DBCluster
4    DependsOn: NeptuneDBSG
5    Properties:
6      BackupRetentionPeriod: !Ref BackupRetentionPeriod
7      DBClusterIdentifier: !Ref DBClusterIdentifier
8      DBClusterParameterGroupName: !Ref NeptuneDBClusterParameterGroup
9      DBSubnetGroupName: !Ref NeptuneDBSubnetGroup
10      IamAuthEnabled: !Ref IAMAuthEnabled
11      Port: !Ref Port
12      PreferredBackupWindow: !Ref NeptuneDBClusterPreferredBackupWindow
13      PreferredMaintenanceWindow: !Ref NeptuneDBClusterPreferredMaintenanceWindow
14      # Compliant: Neptune logging is enabled.
15      EnableCloudwatchLogsExports: [ "audit" ]
16      StorageEncrypted: true
17      VpcSecurityGroupIds:
18        - !Ref 'NeptuneDBSG'
19      Tags:
20        - Key: Name
21          Value: !Sub '${Env}-${AppName}-Cluster'