| name | cis-aws-foundations-5.7 |
| description | Ensure disabling or scheduled deletion of customer created CMKs is monitored |
| category | cis-monitoring |
| version | 7.0.0 |
| author | cyberstrike-official |
| tags | ["cis","aws","monitoring","cloudwatch","cloudtrail","metric-filters","alarms","kms","cmk","encryption"] |
| cis_id | 5.7 |
| cis_benchmark | CIS AWS Foundations Benchmark v7.0.0 |
| tech_stack | ["aws"] |
| cwe_ids | [] |
| chains_with | ["cis-aws-foundations-4.1","cis-aws-foundations-4.2"] |
| prerequisites | [] |
| severity_boost | {} |
Ensure disabling or scheduled deletion of customer created CMKs is monitored
Description
Real-time monitoring of API calls can be achieved by directing CloudTrail Logs to CloudWatch Logs or an external Security Information and Event Management (SIEM) environment, and establishing corresponding metric filters and alarms.
It is recommended that a metric filter and alarm be established for customer-created CMKs that have changed state to disabled or are scheduled for deletion.
Rationale
CloudWatch is an AWS native service that allows you to observe and monitor resources and applications. CloudTrail logs can also be sent to an external Security Information and Event Management (SIEM) environment for monitoring and alerting.
Data encrypted with disabled or deleted keys will no longer be accessible. Changes in the state of a CMK should be monitored to ensure that the change is intentional.
Impact
Creation, storage, and management of CMK may require additional labor compared to the use of AWS-managed keys.
Audit Procedure
Using AWS CLI
If you are using CloudTrail trails and CloudWatch, perform the following to ensure that there is at least one active multi-region CloudTrail trail with the prescribed metric filters and alarms configured:
- Identify the log group name that is configured for use with the active multi-region CloudTrail trail:
- List all CloudTrail trails:
aws cloudtrail describe-trails
-
Identify multi-region CloudTrail trails: Trails with "IsMultiRegionTrail" set to true
-
Note the value associated with "Name":<trail-name>
-
Note the <trail-log-group-name> within the value associated with "CloudWatchLogsLogGroupArn"
- Example:
arn:aws:logs:<region>:<account-id>:log-group:<trail-log-group-name>:*
-
Ensure the identified multi-region CloudTrail trail is active:
aws cloudtrail get-trail-status --name <trail-name>
aws cloudtrail get-event-selectors --trail-name <trail-name>
- Ensure there is at least one event selector for a trail with set to and set to