5.9 Ensure Audit Logging is Enabled
Description
To manage your enterprise caching solution, it is important that you know how your clusters are performing and the resources they are consuming. It's also important that you know the events that are being generated and the costs of your deployment.
Amazon CloudWatch provides metrics for monitoring your cache performance. In addition, cost allocation tags help you monitor and manage costs.
Rationale
N/A
Impact
Reduce the risk of any fraud or inconsistency within the database because only authorized user has access to it.
Audit Procedure
Using AWS Console
Sign in to the AWS Management Console
- Sign in to the AWS Management Console at https://console.aws.amazon.com/ with your AWS account credentials.
Open the Amazon Keyspaces Console
- Navigate to the service using the
Find Servicessearch bar or by directly accessing the console at https://console.aws.amazon.com/keyspaces/.
- Navigate to the service using the
Select Keyspace
- Choose the Keyspace (database) for which you want to enable audit logging.
- Click on the Keyspace name to access its details page.
Enable Amazon CloudWatch Logs
- In the Keyspace details page, click on the
Configurationtab. - Under the
Loggingsection, locate theCloudWatch Logsoption. - Click on
Edit. - Select the
Enableoption to enable logging for the Keyspace. - Choose an existing CloudWatch Logs log group or create a new one to store the logs generated by the Keyspace activities.
- Click
Saveto enable CloudWatch Logs for the Keyspace.
- In the Keyspace details page, click on the
Configure CloudWatch Logs
- Open the CloudWatch console by navigating to
CloudWatchin the AWS Management Console. - In the left-side menu, click on
Logs. - Create a new log group or select an existing log group that will store the Keyspaces logs.
- Configure log retention settings based on your retention requirements. Logs can be stored for a specific number of days or indefinitely.
- Define any necessary log group permissions to control access to the logs.
- Optionally, set up log exports or alarms for specific log events or patterns if needed.
- Open the CloudWatch console by navigating to
Verify the Logging Status
- Wait a few minutes for the changes to propagate and the logging configuration to take effect.
- Refresh the Keyspace details page to see the updated logging status.
- Verify that CloudWatch Logs is enabled for the Keyspace.
Monitor and Analyze Logs
- Navigate to the CloudWatch console and select the log group that stores the Keyspaces logs.
- Monitor the logs to gain insights into the activities and operations performed on your Keyspace.
- Use CloudWatch Logs features, such as log searching, filtering, and visualization, to analyze the logs and identify any security or operational issues.
- Establish appropriate log monitoring and alerting mechanisms to proactively identify and respond to potential security incidents or operational anomalies.
Expected Result
CloudWatch Logs is enabled for ElastiCache/Keyspaces, log groups are configured with appropriate retention periods, and logs are being actively monitored.
Remediation
Using AWS Console
Follow the same steps as the audit procedure to enable audit logging for ElastiCache clusters.
Default Value
By default, audit logging is not enabled for ElastiCache/Keyspaces.
References
CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 8.1 Establish and Maintain an Audit Log Management Process | x | x | x |
| v7 | 6.2 Activate audit logging | x | x | x |
Profile
Level 1 | Manual