AWS Security ChangesHomeSearch

AWS cognito medium security documentation change

Service: cognito · 2025-08-28 · Security-related medium

File: cognito/latest/developerguide/user-pool-lambda-custom-sender-triggers.md

Summary

Updated encryption guidance to recommend AWS Encryption SDK instead of direct KMS Decrypt API

Security assessment

The change emphasizes using AWS Encryption SDK for decryption operations instead of direct KMS API calls. This improves security by enforcing best practices for handling encrypted secrets, reducing the risk of improper cryptographic implementations. The AWS Encryption SDK provides additional security safeguards compared to raw API usage.

Diff

diff --git a/cognito/latest/developerguide/user-pool-lambda-custom-sender-triggers.md b/cognito/latest/developerguide/user-pool-lambda-custom-sender-triggers.md
index e91e1b72b..5b4d6a3ab 100644
--- a//cognito/latest/developerguide/user-pool-lambda-custom-sender-triggers.md
+++ b//cognito/latest/developerguide/user-pool-lambda-custom-sender-triggers.md
@@ -82 +82 @@ To use custom logic to send SMS or email messages for your user pool, set up cus
-  1. Create a [symmetric encryption key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#symmetric-cmks) in AWS Key Management Service (AWS KMS). Amazon Cognito generates secrets—temporary passwords, verification codes, authentication one-time passwords, and confirmation codes—then uses this KMS key to encrypt the secrets. You can then use the [Decrypt](https://docs.aws.amazon.com/kms/latest/APIReference/API_Decrypt.html) API operation in your Lambda function to decrypt the secrets and send them to the user in plaintext. The [AWS Encryption SDK](https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/introduction.html) is a useful tool for AWS KMS operations in your function.
+  1. Create a [symmetric encryption key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#symmetric-cmks) in AWS Key Management Service (AWS KMS). Amazon Cognito generates secrets—temporary passwords, verification codes, authentication one-time passwords, and confirmation codes—then uses this KMS key to encrypt the secrets with [AWS Encryption SDK](https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/introduction.html). You can then use the AWS Encryption SDK in your Lambda function to decrypt the secrets and send them to the user in plaintext.