

# Monitoring AWS Assurance interaction with AWS KMS

You can use CloudTrail to track the AWS KMS requests that AWS Assurance makes with your customer managed key. Because AWS Assurance calls AWS KMS with the caller’s credentials, each event’s `userIdentity` field shows the caller’s identity instead of an AWS Assurance service principal. During assessments, the events show the service-linked role `AWSServiceRoleForAssurance`.

 CloudTrail records the following AWS KMS event names for AWS Assurance activity:
+  `DescribeKey` 
+  `GenerateDataKeyWithoutPlaintext` 
+  `Encrypt` 
+  `Decrypt` 
+  `ReEncrypt` 

Each event includes an `encryptionContext` value in the `requestParameters` field. The encryption context contains the `aws:assurance:environmentArn` value, which identifies the environment for the request, and embeds the ID of the account that owns it.

For more information about finding AWS KMS events in CloudTrail, see [Logging AWS KMS API calls with AWS CloudTrail](https://docs.aws.amazon.com/kms/latest/developerguide/logging-using-cloudtrail.html) in the *AWS Key Management Service Developer Guide*.