3.9 Ensure Monitoring and Logging is Enabled (Manual)
Description
This control ensures that monitoring and logging are enabled for Amazon RDS instances to detect, investigate, and respond to security events and operational issues.
Rationale
Monitoring and logging provide visibility into database activity, enabling detection of unauthorized access, performance issues, and security incidents.
Impact
If the individual is not monitoring and logging their activity it allows the attacker to attack the system and extract or destroy data.
Audit Procedure
Using AWS Console
Sign into the AWS Management Console
Open the Amazon RDS Console
Select the RDS Instance
- Choose the Amazon RDS instance you want to enable monitoring and logging.
- Click on the instance name to access its details page.
- In the instance details page, navigate to the
Configuration or Monitoring & Logs section.
Enable Enhanced Monitoring
- Under the
Monitoring section.
- Click on the
Modify button or Edit option to enable enhanced monitoring.
- Choose the desired monitoring granularity (1-minute or 5-minute intervals) and the retention period for the monitoring data.
- Click
Continue or Save to apply the changes.
Enable Enhanced Logging
- Under the
Logs or Monitoring & Logs section.
- Click on the
Modify button or Edit option to enable enhanced logging.
- Choose the desired log types to enable, such as general, error, slow query, or audit logs.
- Configure the log file retention period based on your needs.
- Select the destination for the logs, such as Amazon CloudWatch Logs or an Amazon S3 bucket.
- Configure the log format and other settings if applicable.
- Click
Continue or Save to apply the changes.
Configure CloudWatch Alarms (Optional)
- Click
Alarms in the Amazon RDS console menu.
- Click
Create alarm to create a CloudWatch alarm to monitor specific metrics or log events.
- Configure the alarm threshold, actions to take when the threshold is breached, and notification settings.
- Click
Create to create the CloudWatch alarm.
Monitor and Analyze the Metrics and Logs
- Monitor the metrics and logs in the Amazon RDS console or by accessing CloudWatch or the configured log destination.
- Use the metrics and logs to gain insights into your RDS instance's performance, behavior, and issues.
- Analyze the metrics and logs to identify areas for optimization, troubleshoot problems, or detect anomalies.
Set Up Automated Actions (Optional)
- In the Amazon RDS console, click on
Event subscriptions in the left-side menu.
- Click
Create event subscription to set up automated actions based on specific events or log entries.
- Configure the event pattern, target actions, and notification settings.
- Click
Create to create the event subscription.
Monitor and Respond to Alerts
- Monitor the CloudWatch alarms and event notifications for any alerts or triggers based on the configured thresholds.
- Respond to alerts promptly by investigating and resolving the underlying issues or taking appropriate actions.
Expected Result
Enhanced Monitoring should be enabled, and appropriate log types (general, error, slow query, audit) should be configured and published to CloudWatch Logs or S3.
Remediation
Using AWS Console
Follow the audit steps above to enable Enhanced Monitoring and configure logging. Set up CloudWatch alarms for critical metrics and event subscriptions for automated alerting.
Default Value
Enhanced Monitoring is disabled by default. Basic monitoring with 1-minute CloudWatch metrics is available by default. Database engine logs must be explicitly enabled and published.
References
- https://aws.amazon.com/products/databases/
CIS Controls
| Controls Version |
Control |
IG 1 |
IG 2 |
IG 3 |
| v8 |
8 Audit Log Management |
|
|
|
| v7 |
6 Maintenance, Monitoring and Analysis of Audit Logs |
|
|
|
Profile
Level 1 | Manual
1---2name: cis-aws-database-3-93description: Ensure Monitoring and Logging is Enabled4---56# 3.9 Ensure Monitoring and Logging is Enabled (Manual)78## Description910This control ensures that monitoring and logging are enabled for Amazon RDS instances to detect, investigate, and respond to security events and operational issues.1112## Rationale1314Monitoring and logging provide visibility into database activity, enabling detection of unauthorized access, performance issues, and security incidents.1516## Impact1718If the individual is not monitoring and logging their activity it allows the attacker to attack the system and extract or destroy data.1920## Audit Procedure2122### Using AWS Console23241. Sign into the AWS Management Console25 - Sign into the AWS Management Console at https://console.aws.amazon.com/ with your AWS account credentials.26272. Open the Amazon RDS Console28 - Navigate to the service using the `Find Services` search bar or by directly accessing the console at https://console.aws.amazon.com/rds/.29303. Select the RDS Instance31 - Choose the Amazon RDS instance you want to enable monitoring and logging.32 - Click on the instance name to access its details page.33 - In the instance details page, navigate to the `Configuration` or `Monitoring & Logs` section.34354. Enable Enhanced Monitoring36 - Under the `Monitoring` section.37 - Click on the `Modify` button or `Edit` option to enable enhanced monitoring.38 - Choose the desired monitoring granularity (1-minute or 5-minute intervals) and the retention period for the monitoring data.39 - Click `Continue` or `Save` to apply the changes.40415. Enable Enhanced Logging42 - Under the `Logs` or `Monitoring & Logs` section.43 - Click on the `Modify` button or `Edit` option to enable enhanced logging.44 - Choose the desired log types to enable, such as general, error, slow query, or audit logs.45 - Configure the log file retention period based on your needs.46 - Select the destination for the logs, such as Amazon CloudWatch Logs or an Amazon S3 bucket.47 - Configure the log format and other settings if applicable.48 - Click `Continue` or `Save` to apply the changes.49506. Configure CloudWatch Alarms (Optional)51 - Click `Alarms` in the Amazon RDS console menu.52 - Click `Create alarm` to create a CloudWatch alarm to monitor specific metrics or log events.53 - Configure the alarm threshold, actions to take when the threshold is breached, and notification settings.54 - Click `Create` to create the CloudWatch alarm.55567. Monitor and Analyze the Metrics and Logs57 - Monitor the metrics and logs in the Amazon RDS console or by accessing CloudWatch or the configured log destination.58 - Use the metrics and logs to gain insights into your RDS instance's performance, behavior, and issues.59 - Analyze the metrics and logs to identify areas for optimization, troubleshoot problems, or detect anomalies.60618. Set Up Automated Actions (Optional)62 - In the Amazon RDS console, click on `Event subscriptions` in the left-side menu.63 - Click `Create event subscription` to set up automated actions based on specific events or log entries.64 - Configure the event pattern, target actions, and notification settings.65 - Click `Create` to create the event subscription.66679. Monitor and Respond to Alerts68 - Monitor the CloudWatch alarms and event notifications for any alerts or triggers based on the configured thresholds.69 - Respond to alerts promptly by investigating and resolving the underlying issues or taking appropriate actions.7071## Expected Result7273Enhanced Monitoring should be enabled, and appropriate log types (general, error, slow query, audit) should be configured and published to CloudWatch Logs or S3.7475## Remediation7677### Using AWS Console7879Follow the audit steps above to enable Enhanced Monitoring and configure logging. Set up CloudWatch alarms for critical metrics and event subscriptions for automated alerting.8081## Default Value8283Enhanced Monitoring is disabled by default. Basic monitoring with 1-minute CloudWatch metrics is available by default. Database engine logs must be explicitly enabled and published.8485## References86871. https://aws.amazon.com/products/databases/8889## CIS Controls9091| Controls Version | Control | IG 1 | IG 2 | IG 3 |92| ---------------- | ---------------------------------------------------- | ---- | ---- | ---- |93| v8 | 8 Audit Log Management | | | |94| v7 | 6 Maintenance, Monitoring and Analysis of Audit Logs | | | |9596## Profile9798Level 1 | Manual