Disabling or deletion of Customer-Managed Keys should be monitored

Esta página aún no está disponible en español. Estamos trabajando en su traducción.
Si tiene alguna pregunta o comentario sobre nuestro proyecto de traducción actual, ¡no dude en contactarnos!

Description

AWS IAM accounts should have at least one active multi-region CloudTrail trail that captures all management events (an event selector with IncludeManagementEvents set to true and ReadWriteType set to All), sends logs to CloudWatch Logs, and has a metric filter matching customer-managed keys (CMKs) that are disabled or scheduled for deletion. The metric filter must be linked to a CloudWatch alarm that notifies an SNS topic with at least one confirmed subscriber, so that loss of access to encrypted data is detected quickly.

Remediation

  1. Create a metric filter on the multi-region trail’s log group using the pattern {($.eventSource = kms.amazonaws.com) && (($.eventName=DisableKey)||($.eventName=ScheduleKeyDeletion)) } as described in the AWS CloudWatch Alarms for CloudTrail User Guide and the put-metric-filter CLI reference.
  2. Create an SNS topic with at least one subscription following Subscribing to an Amazon SNS topic, then create a CloudWatch alarm on the metric (Sum, period 300, threshold 1, GreaterThanOrEqualToThreshold) whose alarm action targets the SNS topic ARN.

References