Does ephemeral key exchange protect traffic recorded today?
A vendor, auditor or standard may describe a handshake as using ephemeral or static key exchange, and the difference decides what an attacker who records traffic today can read later. An ephemeral share is generated for each handshake and discarded afterward, while a static key is long-lived and reused across sessions. Because the ephemeral share is not kept, its session keys cannot be rebuilt from a key that is stolen later, and that property is what is called forward secrecy. A static key that is reused gives no such protection: anyone who obtains it can decrypt every session that used it.
Network, security and vendor-risk reviewers meet this question wherever a handshake is specified. In TLS 1.3, RFC 9846 places the ephemeral asymmetric share in the key_share extension, and it states that 0-RTT early data carries no forward secrecy guarantee unless a client knows otherwise out of band. IKEv2 raises the same concern: RFC 8784 notes that IKEv2 VPN traffic recorded today could be decrypted later if a quantum computer solves Diffie-Hellman and ECDH problems. HPKE (RFC 9180) and SSH follow the same pattern, with an ephemeral sender key in Encap and a separate static-key variant (AuthEncap) that RFC 9180 notes is vulnerable to key-compromise impersonation.
For a review, confirm three things for each product and version in scope: whether the handshake generates a fresh ephemeral share per session, whether any mode falls back to a static or pre-shared key without asymmetric exchange, and whether early data is in use. RFC 9846 says pre-shared keys can provide forward secrecy when combined with an asymmetric exchange, or lose it when used alone. OpenSSH 10.1 warns by default when a connection lacks post-quantum key agreement, which the warning describes as store now, decrypt later exposure. Confirm the exact behavior of your version in its documentation, since these sources describe specific releases.
Ephemeral and static key exchange side by side
This table compares how ephemeral and static keys differ in lifetime, forward secrecy and where they appear, with each cell tied to the document that states it. Rows the sources do not address are marked as not stated, so check the referenced specification for those points. The main takeaway is that ephemeral key shares carry the forward secrecy that protects recorded traffic, while static keys are used for authentication or as a pre-shared alternative.
| Attribute | Ephemeral key exchange | Static key exchange |
|---|---|---|
| What the key is | An ephemeral asymmetric key exchange share carried in the key_share extension that establishes handshake keys (RFC 9846). | The sender's long-term key in DHKEM AuthEncap and AuthDecap, which adds a second DH with that static key (RFC 9180). |
| Lifetime | Created for the exchange and carried in the handshake, as RFC 9180 describes the sender's ephemeral pair in Encap (RFC 9180). | Long-lived. The sources do not state a lifetime or rotation schedule for static keys. |
| Forward secrecy | All public-key based key exchange mechanisms in TLS 1.3 provide forward secrecy (RFC 8446). | Not stated for the static key in DHKEM AuthEncap. RFC 9180 notes AuthEncap is vulnerable to key-compromise impersonation. |
| Pre-shared keys in place of asymmetric exchange | Pre-shared keys combined with asymmetric key exchange provide forward secrecy (RFC 9846). | Pre-shared keys used alone lose forward secrecy for application data (RFC 9846). |
| 0-RTT early data | The protocol does not guarantee forward secrecy for 0-RTT data, so clients should assume it is not forward secret unless told otherwise out of band (RFC 9846). | Not stated. RFC 9846 gives the 0-RTT point without distinguishing key type. |
| Exposure to later decryption | RFC 8784 says recorded IKEv2 traffic could be decrypted later if a quantum computer breaks DH and ECDH, which is the exposure that forward secrecy addresses (RFC 8784). | Not stated for static keys in these sources. RFC 8784 offers a pre-shared key stopgap for IKEv2. |
| Governing document | RFC 8446 (TLS 1.3, August 2018) and RFC 9846 (TLS 1.3, July 2026, which obsoletes RFC 8446). | RFC 9180 (HPKE, February 2022) defines DHKEM and its AuthEncap and AuthDecap modes. |
| Where it is used | TLS 1.3 handshakes, hybrid TLS groups such as X25519MLKEM768 (RFC 10024), and rekeying in IKEv2 via IKE_FOLLOWUP_KE (RFC 9370). | HPKE public-key modes that authenticate the sender (RFC 9180). Confirm the use in your own protocol stack. |
What ephemeral and static keys are, and where they appear
An ephemeral key is generated for one session and discarded afterward, so the session key it helps establish cannot be recovered from the long-term keys alone. In TLS 1.3, the client and server each send a share generated for that connection, and the key_share extension is the field that carries the ephemeral asymmetric key exchange share used to establish the handshake keys. RFC 9846 states that pre-shared keys can be combined with asymmetric key exchange to provide forward secrecy, or used alone at the cost of forward secrecy for the application data. In HPKE, defined in RFC 9180, the sender's Encap step uses an ephemeral key pair to produce a fresh shared secret and its encapsulation for each message.
- Where it appears in TLS 1.3: The
key_shareextension in RFC 9846 carries the ephemeral share, and RFC 8446 said all public-key based key exchange mechanisms in TLS 1.3 provide forward secrecy. RFC 9846 notes that 0-RTT early data does not get that guarantee, so a client should assume such data is not forward secret unless it knows otherwise out of band. - Where it appears in HPKE: In RFC 9180, the sender uses an ephemeral key pair in
Encap, which is the step that gives a fresh shared secret per encapsulation. - Where it appears in IKEv2: RFC 8784 says that someone who records IKEv2 VPN traffic today could decrypt it later if a quantum computer solves DH and ECDH, which is why the ephemeral exchange is the part that needs post-quantum attention. RFC 9370 introduces
IKE_FOLLOWUP_KEfor rekeying an IKE SA or creating additional Child SAs with multiple key exchanges. - Where it appears in SSH: OpenSSH 10.1 warns by default when a connection does not use post-quantum key agreement, citing store now, decrypt later risk.
- What a hybrid changes: RFC 9954 defines hybrid key exchange as using multiple algorithms together so the session key stays secure while at least one component is unbroken.
Check which handshake messages in your product carry the ephemeral share, and whether 0-RTT or resumption paths are included in your forward secrecy review.
A static key is a long-lived key pair that identifies a party across many sessions, such as a server certificate key or a configured client identity. Static keys are used to authenticate a party and, in some constructions, to contribute to the shared secret, which changes what a compromise reveals. In RFC 9180, the AuthEncap and AuthDecap variant adds a second Diffie-Hellman computation with the sender's static key, so the recipient gets assurance about who sent the message. RFC 9180 notes that this variant is vulnerable to key-compromise impersonation, which is the point security reviewers need to read closely.
- Key-compromise impersonation: RFC 9180 notes that the
AuthEncapandAuthDecapvariant is vulnerable to key-compromise impersonation. If the static private key of one party leaks, an attacker holding that key may be able to impersonate other parties to that holder. - Static key in the sender role: In
AuthEncap, the sender's static key contributes a second Diffie-Hellman result alongside the ephemeral one, which is why its compromise matters to later decryption as well as to authentication. - Static keys in certificates: A TLS server certificate carries a long-lived public key, and the matching private key is static for the certificate's lifetime. Post-quantum migration of that key is a signature and certificate question, handled separately from the ephemeral share.
- Recorded traffic and static keys: If a static private key is later exposed or broken, traffic protected with a non-forward-secret construction may be decrypted, which is why the presence or absence of an ephemeral share matters.
- Pre-shared keys as a static option: RFC 9846 says pre-shared keys can be used alone at the cost of losing forward secrecy for the application data.
When reviewing a product, identify every long-lived key it uses and confirm which messages depend on it, then check whether the vendor documents its key-compromise impersonation exposure in the specification it implements.
Which differences change what a recorded session exposes
Ephemeral and static keys differ most in what a later key compromise or decryption effort can reach. The cards below cover where forward secrecy holds, where it does not, and what the cited RFCs and tools say about recorded traffic, so you can check each deployment against the same questions.
Long-lived key compromise under static exchange
If a static key used to derive session keys is later compromised, anyone holding a recording of the traffic protected under that key can derive the session keys and decrypt it. With an ephemeral exchange, each session's key material is discarded after use, so the same later compromise does not expose past sessions. Check which exchange your VPN, TLS endpoint and SSH server use, and how long any static key material is retained.
RFC 9846Forward secrecy in TLS 1.3 handshakes
RFC 8446 said all public-key based key exchange mechanisms in TLS 1.3 provide forward secrecy. RFC 9846, which obsoletes it, keeps the key_share extension as the ephemeral asymmetric exchange that establishes handshake keys. Pre-shared key modes can be used with asymmetric exchange for forward secrecy, or alone at the cost of forward secrecy for application data. Confirm which mode your servers negotiate.
RFC 98460-RTT early data is not forward secret
RFC 9846 says the protocol provides no forward secrecy guarantees for 0-RTT early data. It tells clients to assume such data is not forward secret unless they know otherwise out of band. Decide whether your applications send sensitive requests as early data, and review what replay and exposure risks that creates before enabling it.
RFC 9846IKEv2 traffic recorded today
RFC 8784 says someone who records IKEv2 VPN traffic today could decrypt it later if a quantum computer solves the Diffie-Hellman and ECDH problems. It offers a preshared-key stopgap for that exposure. Identify which IKEv2 tunnels carry data with long confidentiality lifetimes, and confirm with your VPN vendor whether the preshared-key option and IKE_FOLLOWUP_KE rekeying from RFC 9370 are available in your version.
RFC 8784Store now, decrypt later motivates hybrid exchange
RFC 9954 limits its scope to hybrid ephemeral key exchange. It says an adversary could record handshakes today and decrypt them later if the traditional assumption were broken. Hybrid exchange combines multiple algorithms so the session key stays secure while at least one component is unbroken. Ask whether your TLS stack offers hybrid named groups and which ones are enabled by default.
RFC 9954SSH warning for classical key agreement
OpenSSH 10.1 shows a warning by default when a connection does not use post-quantum key agreement. The warning says the session may be vulnerable to store now, decrypt later attacks. It can be disabled per host with WarnWeakCrypto no-pq-kex in ssh_config(5) under a Match host block. Review which hosts suppress this warning before treating the setting as a sign of protection.
OpenSSH PQ pageHow an ephemeral share and a long-lived key sit in one handshake
The diagram starts with the client and server each sending an ephemeral key_share through the key_share extension, which together establish the handshake keys. A long-lived key or pre-shared key can enter at the same stage, and RFC 9846 says a pre-shared key can be combined with asymmetric key exchange to keep forward secrecy, or used alone at the cost of losing it. Check which element is discarded after the session: the ephemeral private values are not kept, so a later compromise of a long-lived key does not expose them. The sources do not say how this applies to 0-RTT early data beyond noting that RFC 9846 gives it no forward secrecy guarantee.
Ephemeral key shares establish handshake keys, with an optional long-lived or pre-shared key entering alongside.
Where ephemeral and static keys show up in TLS, IKEv2 and SSH
The ephemeral versus static distinction shows up in a different place in each protocol, so a reviewer needs to check the specific field or exchange rather than the protocol name. In TLS 1.3, the ephemeral asymmetric key exchange share travels in the key_share extension, and RFC 9846 says this extension establishes the handshake keys. RFC 9846 also notes that pre-shared keys can be combined with asymmetric key exchange to provide forward secrecy, or used alone at the cost of losing forward secrecy for application data. Its 0-RTT early data is not forward secret unless the client knows otherwise out of band. RFC 9846 is the Standards Track document from July 2026 that obsoletes RFC 8446, which had stated that all public-key key exchange mechanisms in TLS 1.3 provide forward secrecy. Confirm which RFC your TLS stack implements before citing either.
In IKEv2, RFC 8784 (June 2020, Standards Track) says that IKEv2 VPN traffic recorded today could be decrypted later if a quantum computer solves DH and ECDH, and it offers a preshared-key stopgap. RFC 9370 adds the IKE_FOLLOWUP_KE exchange, which allows an IKE SA to be rekeyed or additional Child SAs to be created with multiple key exchanges. Reviewers should check whether their gateway supports this exchange and how it is configured, since the sources do not describe default behavior for any particular IKEv2 implementation.
In OpenSSH, the sources state that version 10.1 shows a warning by default when a connection does not use post-quantum key agreement, saying the session may be vulnerable to store now, decrypt later attacks. The OpenSSH PQ page says this warning can be disabled per host with WarnWeakCrypto no-pq-kex in ssh_config(5) under a Match host block. For TLS libraries, OpenSSL 3.5.0 offers X25519MLKEM768 and X25519 as default TLS key shares. Where a source does not state a default, such as for a server-side setting or a different library version, confirm it in that product's own configuration documentation.
How to tell which key exchange applies to your systems
This sequence shows how to determine whether each system you run negotiates an ephemeral key share for its handshake, and whether any path reuses a pre-shared key or 0-RTT data without forward secrecy. The result is a per-system record of which approach applies, confirmed against the RFC or vendor document that defines it.
Inventory every protocol that carries encrypted sessions
List each service that terminates TLS, IKEv2, SSH or other handshake-based protocols, including load balancers, VPN gateways, proxies and bastion hosts. Record the product, version and the component that performs the key exchange, since the component is often not the application itself. This list is the scope for the remaining steps. You know this step is complete when every encrypted entry point in your environment appears on the list with a named owner for its configuration.
Confirm the negotiated protocol version
For each entry on the inventory, check which protocol version is actually negotiated in live handshakes, not only which versions are configured. TLS 1.3 handshakes built on RFC 9846 carry an ephemeral key share through the key_share extension, and this is the first indicator that the handshake keys come from an ephemeral exchange. Capture a handshake with a packet inspection tool or the server's own logs and note the version in each case. You know this step is complete when each system has a recorded version tied to observed traffic.
Check whether a key_share is negotiated
Inspect the ClientHello and ServerHello of captured handshakes for the key_share extension and note which named group was selected. A key_share present in these messages means the handshake keys were established with an ephemeral key exchange. Where a system uses pre-shared keys, record whether an asymmetric key exchange is combined with them, because RFC 9846 states that pre-shared keys can be used alone, and doing so loses forward secrecy for the application data. You know this step is complete when every handshake on the inventory has a recorded key exchange and group.
Review 0-RTT and pre-shared key settings
Check whether 0-RTT early data or pre-shared key resumption is enabled on each system. RFC 9846 states the protocol does not provide forward secrecy guarantees for 0-RTT early data, and a client should assume such data is not forward secret unless it knows otherwise out of band. Record the configuration key or setting that controls early data and session resumption, and note which applications send requests through it. You know this step is complete when each system has a recorded yes or no for early data and resumption, with the application paths that depend on them.
Read vendor documentation for static or ephemeral modes
For each product, read the vendor's documentation on whether its key exchange uses an ephemeral or a static key pair, and whether a static mode is available or the default. Pay attention to modes where a long-lived key participates in the handshake, such as a static Diffie-Hellman component in an authenticated mode, because RFC 9180 notes that such variants add a second Diffie-Hellman with the sender's static key. Note the vendor's exact product version, since behavior often differs between releases. You know this step is complete when each product has a documented answer, or a written note that the documentation does not say.
Review OpenSSH and OpenSSL configuration
On hosts that run OpenSSH or OpenSSL, review the active configuration to see which key exchange algorithms and default key shares are offered. For OpenSSH 10.1, the sources state that a connection without post-quantum key agreement shows a warning by default, and that this warning can be disabled per host with WarnWeakCrypto no-pq-kex in ssh_config(5) under a Match host block. For OpenSSL 3.5.0, the sources list X25519MLKEM768 and X25519 as default TLS key shares. Record the effective settings for each host, and confirm them with a live test connection. You know this step is complete when the effective key exchange settings for each host match a recorded test handshake.
Confirm results against the cited RFC
Compare each recorded key exchange against the RFC or specification the vendor cites for that protocol, such as RFC 9846 for TLS 1.3, RFC 8784 for IKEv2 preshared-key use, or RFC 9370 for IKE_FOLLOWUP_KE rekeying. Check that the behavior you observed matches what the specification defines, and note any setting where the vendor and the RFC appear to disagree. Where the sources do not say how a product behaves, confirm with the vendor directly. You know this step is complete when each system has a written record that cites the specific RFC section it was checked against.
Questions people ask about ephemeral and static key exchange
Are ephemeral key exchange and forward secrecy the same thing?
No. Ephemeral key exchange is the mechanism, and forward secrecy is the property it is used to provide. An ephemeral key pair is generated for each handshake and discarded afterward, so a later compromise of a long-lived key does not expose the session keys derived from it. RFC 9846 describes the key_share extension as carrying the ephemeral asymmetric key exchange share that establishes the handshake keys. Forward secrecy then follows from that design only for the protected material it covers, which the RFC describes as the handshake keys and, when pre-shared keys are combined with asymmetric key exchange, the application data. Confirm the exact coverage for the protocol version and configuration you run.
Can static key exchange ever provide forward secrecy?
Not by itself. A static key exchange reuses the same long-lived key pair across sessions, so a later compromise of that key can expose traffic recorded earlier. RFC 8446, the earlier TLS 1.3 specification, stated that all public-key based key exchange mechanisms in TLS 1.3 provide forward secrecy, which means the protocol moved away from static exchange for that purpose. RFC 9846 notes that pre-shared keys used alone lose forward secrecy for the application data, which is a static-style trade-off. Where an organization still uses a static exchange, the sources do not describe a way to recover forward secrecy for those sessions, so confirm the design with the protocol documentation and the vendor.
Is 0-RTT early data forward secret?
The sources do not support assuming so. RFC 9846 states that the protocol does not provide forward secrecy guarantees for 0-RTT early data, and that a client should assume such data is not forward secret unless it knows otherwise out of band. This matters for systems that send sensitive requests in early data, because those requests can be exposed later even when the rest of the session uses ephemeral exchange. Check whether 0-RTT is enabled on each endpoint, restrict it to requests that can tolerate replay and reduced protection, and ask the vendor to state its 0-RTT behavior in writing.
What should a vendor state about long-lived keys?
Ask the vendor to state which keys are long-lived, where they are stored, how often they are rotated, and whether any handshake uses a static key pair in place of an ephemeral one. The answer should name the protocol version and the key exchange groups or modes in use, since the behavior differs between them. Ask whether the vendor's product supports ephemeral exchange for all supported modes, and whether 0-RTT or pre-shared key modes are enabled by default. For a comparable point, RFC 9180 notes that its authenticated modes add a second Diffie-Hellman operation with the sender's static key and are vulnerable to key-compromise impersonation, so ask whether any authenticated mode is in use. The sources do not give a standard set of answers, so treat the vendor's written response as the record.
Can ephemeral and static key exchange be used together?
Yes, in some designs. RFC 9846 says pre-shared keys can be used with asymmetric key exchange to provide forward secrecy, or used alone at the cost of losing forward secrecy for the application data. This shows that a long-lived secret can sit alongside an ephemeral exchange without removing the ephemeral protection. RFC 9180 shows a similar combination in its authenticated modes, where a static key is added alongside an ephemeral one. Whether a given combination keeps forward secrecy depends on the protocol and the specific modes enabled, so verify the configuration against the RFC for the version in use rather than assuming the combination is safe.
Does a post-quantum key exchange change which keys are ephemeral?
The sources describe hybrid key exchange as an addition to the ephemeral exchange, not a replacement for it. RFC 9954 defines hybrid key exchange as using multiple key exchange algorithms together so the session key stays secure while at least one component is unbroken, and states that recorded traffic could be decrypted later if the traditional assumption were broken. RFC 10024 defines TLS 1.3 hybrid named groups such as X25519MLKEM768, where the key shares are ephemeral within each handshake. The RFCs do not say that a hybrid group changes the forward secrecy properties of a static configuration, so confirm with the RFC and vendor whether any static element is in use.
What should I check first in a configuration review?
Start by listing the protocol version and each key exchange mode enabled on every endpoint. Check whether any handshake reuses a long-lived key pair, whether pre-shared key modes are active, and whether 0-RTT early data is accepted. For each finding, note the RFC that governs the behavior, such as RFC 9846 for TLS 1.3 and RFC 8784 for IKEv2 pre-shared key options, and record the owner who can change it. Ask the vendor to confirm the defaults in writing, because a default that differs from the documentation changes the exposure. Retest after each change, since a server update can alter which modes are offered.
How DeployOpen works on this
DeployOpen reviews how ephemeral and static keys are used in the protocols your teams run, starting from the systems that actually carry the traffic. We scope the review in writing, build and test any changes in your own infrastructure, and hand over documented findings your security and compliance teams can check.
How we scope
- We agree in writing which protocols, services and key exchange settings are in scope before work starts.
- We identify where each system uses ephemeral key shares and where it relies on pre-shared or long-lived keys.
- Engagements are fixed-scope, so deliverables and timelines are set in the written agreement.
- Ask for the scope document to confirm which 0-RTT or resumption paths are covered.
How we build
- We configure and test key exchange settings in your own cloud accounts, data centers or air-gapped networks.
- We check negotiated key shares and session behavior against the protocol specifications for the versions you run.
- We confirm which client and server versions support the named groups you intend to enable.
- Changes are tested in a staging environment before they reach production systems.
How we hand over
- You receive documentation of the key exchange configuration, the tests run and the results for each system.
- Findings list which connections keep forward secrecy and which depend on long-lived or pre-shared keys.
- Your security and compliance teams can review the evidence against their own control requirements.
- Where a version or setting cannot be confirmed, the handover says so and names what to check.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers.
- Retainers cover re-testing after software upgrades that change default key exchange groups.
- Support includes updating documentation when protocol versions or vendor defaults change.
- Quotes follow from the written scope, so ask for the scope and the retainer terms together.
Sources and further reading
- RFC 9846: The Transport Layer Security (TLS) Protocol Version 1.3 ↗
- RFC 9954: Hybrid Key Exchange in TLS 1.3 ↗
- RFC 8784: Mixing Preshared Keys in the Internet Key Exchange Protocol Version 2 (IKEv2) for Post-quantum Security ↗
- RFC 9180: Hybrid Public Key Encryption ↗
- OpenSSH post-quantum key agreement page ↗

