View a markdown version of this page

Using hybrid post-quantum TLS with AWS KMS - AWS Key Management Service

Using hybrid post-quantum TLS with AWS KMS

The data that you send to AWS Key Management Service (AWS KMS) is protected in transit by the encryption provided by a Transport Layer Security (TLS) connection. The classic cipher suites that AWS KMS supports for TLS sessions make brute force attacks on the key exchange mechanisms infeasible with current technology. However, if large-scale quantum computing becomes practical, the classic cipher suites used in TLS key exchange mechanisms will be susceptible to these attacks.

In August 2024, NIST finalized its first post-quantum cryptography standards. These include Module-Lattice-Based Key-Encapsulation Mechanism (ML-KEM) specified in FIPS 203 on the NIST website. AWS KMS now supports a hybrid post-quantum key exchange option for TLS which combines Elliptic Curve Diffie-Hellman (ECDH) with ML-KEM. This hybrid key exchange retains the strength of today's classic cipher suites while adding resilience against future quantum-capable adversaries. For more information, see ML-KEM post-quantum TLS now supported in AWS KMS, ACM, and Secrets Manager in the AWS Security Blog.

If your applications rely on the long-term confidentiality of data passed over a TLS connection, you should use post-quantum cryptography. Otherwise, an adversary may be able to capture data encrypted with classic cipher suites today and decrypt it once quantum computers become available. This strategy is known as harvest now, decrypt later.

Using hybrid post-quantum TLS with AWS KMS

You can use hybrid post-quantum TLS for all your API calls to AWS KMS. When setting up your HTTP client, be aware of the following information.

AWS KMS Endpoints

AWS KMS supports hybrid post-quantum TLS in all AWS Regions where it is available, on all endpoints including FIPS 140-3 validated endpoints. For a list of AWS KMS endpoints for each AWS Region, see AWS Key Management Service endpoints and quotas in the Amazon Web Services General Reference. For information about FIPS endpoints, see FIPS endpoints in the Amazon Web Services General Reference.

Supported Systems

Many AWS SDKs support hybrid post-quantum TLS, as described in Enabling hybrid post-quantum TLS in the AWS SDKs and Tools Reference Guide. For a Java example, see Configure hybrid post-quantum TLS.

Verifying Hybrid Post-Quantum TLS

You can confirm that a specific AWS KMS API call used hybrid post-quantum TLS by inspecting its CloudTrail log entry. Find the tlsDetails section in the log entry for the call. The keyExchange field names the key exchange algorithm that was used. For a hybrid post-quantum connection, this field shows a hybrid algorithm such as X25519MLKEM768. For an example log entry, see Decrypt with a standard symmetric encryption key over a post-quantum TLS connection.

Note

The tlsDetails field is not present in the log entry when an AWS service calls AWS KMS on your behalf. For details about the fields in a CloudTrail log entry and when they are present, see CloudTrail record contents in the AWS CloudTrail User Guide.

Performance

Hybrid key exchange slightly increases the size and processing time of some TLS handshake messages, but the overall performance impact is imperceptible for most workloads. Because these messages are larger, we recommend that you test your AWS KMS API calls from different locations on your network.

Depending on the network path your request takes, legacy intermediate hosts, proxies, or firewalls with deep packet inspection (DPI) might block the request. This can result from the new key exchange groups in the ClientHello part of the TLS handshake, or from the larger key exchange messages. If you have trouble resolving these issues, work with your security team or IT administrators to unblock the new TLS key exchange groups.

Encryption in Transit

The hybrid cipher suites are used only for encryption in transit. They protect your data while it is traveling from your client to the AWS KMS endpoint. AWS KMS does not use these cipher suites to encrypt data under AWS KMS keys.

Instead, when AWS KMS encrypts your data under KMS keys, it uses symmetric cryptography with 256-bit keys and the Advanced Encryption Standard in Galois Counter Mode (AES-GCM) algorithm, which is already quantum resistant. Theoretical future, large-scale quantum computing attacks on ciphertexts created under 256-bit AES-GCM keys reduce the effective security of the key to 128 bits. For more information, see the Quantum Safe Cryptography and Security paper on the ETSI website. This security level is sufficient to make brute force attacks on AWS KMS ciphertexts infeasible.

Learn more about post-quantum TLS in AWS KMS

For more information about using hybrid post-quantum TLS in AWS KMS, see the following resources.