| name | cis-aws-database-4.7 |
| description | Ensure Monitor and Audit Activity is enabled |
| category | cis-database |
| version | 2.0.0 |
| author | cyberstrike-official |
| tags | ["cis","aws","database","dynamodb","monitoring","cloudtrail","cloudwatch","audit"] |
| cis_id | 4.7 |
| cis_benchmark | CIS AWS Database Services Benchmark v2.0.0 |
| tech_stack | ["aws"] |
| cwe_ids | [] |
| chains_with | ["cis-aws-database-4.6"] |
| prerequisites | [] |
| severity_boost | {} |
4.7 Ensure Monitor and Audit Activity is enabled
Description
Regular monitoring and auditing of activity in Amazon DynamoDB help ensure your database's security, performance, and compliance.
Rationale
This keeps track and ensures who has recently modified a document and monitors all activity within the database. This information allows the individual to use the details provided for auditing purposes and to address any compliance requirements.
Impact
N/A
Audit Procedure
Using AWS Console
-
Enable CloudTrail Logging for DynamoDB
- Sign in to the AWS Management Console and open the CloudTrail console at https://console.aws.amazon.com/cloudtrail/.
- Choose
Trails from the left-side menu.
- Click
Create trail or select an existing trail.
- Specify a trail name, choose an S3 bucket for storing logs, and configure other trail settings.
- Under
Data events, select the checkbox for DynamoDB to enable logging of DynamoDB data events.
- Click
Create trail or Save changes to save the CloudTrail configuration.
-
Enable DynamoDB Streams
- Sign in to the AWS Management Console and open the DynamoDB console at https://console.aws.amazon.com/dynamodb/.
- Select the DynamoDB table you want to monitor.
- Click on the
Overview tab.
- Under the
DynamoDB Streams section, click Manage stream.
- Enable DynamoDB Streams with the desired view type (e.g.,
New and old images).
- Click
Enable.
-
Configure Amazon CloudWatch Alarms
- Sign in to the AWS Management Console and open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/.
- In the left-side menu, click on
Alarms.
- Click
Create alarm.
- Select a DynamoDB metric to monitor (e.g., Read or Write capacity units).
- Configure the threshold, conditions, and actions for the alarm.
- Choose the actions to take when the alarm state is triggered (e.g., send notifications, auto-scaling actions, etc.).