Is IPsec quantum safe for long-lived data?

The published position is that IPsec's IKEv2 key exchange relies on Diffie-Hellman and elliptic curve Diffie-Hellman, which RFC 8784 says a quantum computer could solve, so traffic recorded today could be decrypted later. Organisations with long-lived data should plan post-quantum key exchange within the migration dates the NCSC and BSI set.

On this page

IPsec and quantum attack: what the published sources say

Teams responsible for VPN tunnels that carry long-lived data need to know whether IPsec's key exchange can be broken later by a quantum computer. RFC 8784 states that someone storing VPN communications today could decrypt them later once a quantum computer is available, because a quantum computer could solve the Diffie-Hellman and elliptic curve Diffie-Hellman problems that IKEv2 relies on. The UK NCSC sets 2035 as the date by which migration of all systems, services and products to post-quantum cryptography should be complete, with earlier milestones of 2028 and 2031 for planning and the highest-priority work. Network, security and compliance owners of long-lived data need this answer because the exposure is to recorded traffic, not only to live sessions.

IPsec is a suite, so the question splits along its parts. RFC 7296 describes IKE as the component that performs mutual authentication and establishes Security Associations, and it is IKE's Diffie-Hellman values in the IKE_SA_INIT exchange that RFC 8784 identifies as the quantum exposure. The keys protecting ESP or AH traffic are derived from that IKE SA, so an attacker who records the exchange and later breaks the Diffie-Hellman step can recover the traffic keys. RFC 8784 also notes that IKEv1 with strong preshared keys resists quantum attacks, because the preshared key is an input to key derivation, and it describes an IKEv2 extension that is quantum secure when the two end systems share a long secret key. Confirm with your vendor which IKE version and which of these options your gateways actually run.

What each body has published on IPsec and quantum attack

This table lists each RFC, NIST, NCSC and BSI publication relevant to IPsec and quantum attack, with its date and what it says about IKEv2 or IPsec. Read it to see which documents address the key exchange, which address authentication, and which set migration timelines. The main takeaway is that the IKEv2 extensions are standards-track options, while the agency documents set the timelines and the hybrid approach.

DocumentDateWhat it says about IKEv2 or IPsec
RFC 8784Not stated in supplied sourcesNotes that someone storing VPN traffic today could decrypt it later with a quantum computer, and extends IKEv2 to be quantum secure when the two ends share a long secret key.
RFC 9370May 2023Updates RFC 7296 to allow multiple key exchanges, so post-quantum key exchanges can run alongside an (EC)DH exchange.
NIST FIPS 20313 August 2024Defines ML-KEM, a key-encapsulation mechanism for establishing a shared secret over a public channel, in three parameter sets.
NIST IR 8547Final version 27 October 2026Describes NIST's approach to moving from quantum-vulnerable public-key algorithms to post-quantum key-establishment and signature schemes.
NCSC PQC timelines20 March 2025Lists VPNs in the estate assessment and names IKE as a protocol that lets specific certificates be negotiated, supporting side-by-side migration. Sets milestones for 2028, 2031 and 2035.
BSI quantum technologies pageGuideline TR-02102-1 version 2026-01Advises using post-quantum schemes in combination with classical schemes where possible, and names store-now-decrypt-later as a threat mainly to key agreement.

Why IKEv2 depends on public-key key exchange

The key exchange in IKEv2 is where IPsec's quantum exposure starts. In RFC 7296, the IKE_SA_INIT exchange carries nonces and Diffie-Hellman values in KE payloads. Both sides combine these values to derive SKEYSEED, and every key for the IKE SA is computed from that value. RFC 8784 states that a quantum computer could solve the Diffie-Hellman and elliptic curve Diffie-Hellman problems that IKEv2 relies on, so an attacker who records a VPN session today could decrypt it later. For data that must stay confidential for years, this means the IKE_SA_INIT exchange is the first place to check when you assess an IPsec deployment.

IKE_AUTH is the second place to check. RFC 7296 has each side prove knowledge of the secret tied to its identity, using either a shared secret or a certificate whose public key verifies the AUTH payload. The IKE SA then supplies the keys for the child SAs that protect ESP or AH traffic. Certificate-based authentication therefore depends on public-key signatures, while preshared-key authentication does not. RFC 8784 notes that IKEv1 with strong preshared keys resists quantum attack because the preshared key is one input to the key derivation function. It also describes an IKEv2 extension in which, assuming the two end systems share a long secret key, the exchange is quantum secure while the existing Diffie-Hellman and authentication steps are kept.

Confirm for each tunnel which exchange and authentication method it uses, and whether the platform or endpoint supports RFC 8784 or RFC 9370. RFC 9370, published in May 2023, extends IKEv2 to run post-quantum key exchanges alongside an (EC)DH exchange. Check the vendor documentation for your gateway version before you rely on either option, because support differs by implementation.

Where IPsec is used and what the sources say about each part

IPsec is not one thing to assess. The suite has several parts, each with a different relationship to quantum attacks, so the answer depends on which part protects your traffic. The cards below map each part to what the cited RFCs and NCSC guidance say.

Site-to-site and remote access VPN gateways

Gateways terminate IPsec tunnels for branch offices, partners and remote staff, so they are where the IKE and ESP configuration is actually set. The NCSC timelines guidance lists VPNs among the networking and communications hardware to include in an estate assessment. Start by inventorying every gateway, its IKE version and which key exchange and authentication methods each one negotiates. A gateway that cannot be upgraded still needs to be recorded, because it decides what traffic is exposed.

NCSC timelines

IKE SA and child SAs

The IKE SA is set up in IKE_SA_INIT, where both sides exchange Diffie-Hellman values, and RFC 8784 states that a quantum computer could solve the Diffie-Hellman and elliptic curve Diffie-Hellman problems IKEv2 relies on. The child SAs protecting ESP or AH traffic take their keys from the IKE SA, so their exposure follows from the key exchange. RFC 9370 allows post-quantum key exchanges to run alongside an (EC)DH exchange. Check which key exchange each SA negotiates, not only the IKE version.

RFC 7296

Certificates used in IKE_AUTH

In IKE_AUTH each side proves its identity with a shared secret or with a certificate whose public key verifies the AUTH payload. RFC 7296 defines this step, and the NCSC guidance names IKE as a protocol that allows specific certificates to be negotiated. That supports running traditional and post-quantum certificates side by side during migration. Inventory which certificate types each gateway accepts and which certificate authority issues them, since authentication is a separate question from key exchange.

RFC 7296

Preshared-key deployments

RFC 8784 notes that IKEv1 with strong preshared keys resists quantum attacks because the preshared key is one input to the key derivation function. It also extends IKEv2 so that, if the two end systems share a long secret key, the resulting exchange is quantum secure while the existing Diffie-Hellman and authentication steps are kept. The key length and how it is generated and distributed then decide the outcome. Check whether a deployment uses preshared keys, how long they are, and how they are rotated.

RFC 8784

Networking hardware in the estate assessment

The NCSC asks organizations to include networking and communications hardware in an estate assessment, so firewalls, routers and VPN appliances belong in the same inventory as applications. Each device may run its own IPsec implementation, firmware and update schedule, and the sources on this page do not say which devices support which RFCs. Ask each vendor which IKE versions, key exchanges and certificate types their firmware supports, and record the answers against the device.

NCSC timelines

What the sources say about VPN traffic that must stay confidential for years

The main reason IPsec traffic matters for post-quantum planning is store now, decrypt later. RFC 8784 states that someone storing VPN communications today could decrypt them later, once a quantum computer is available, and that a quantum computer could solve the Diffie-Hellman and elliptic curve Diffie-Hellman problems that IKEv2 uses for key agreement. The BSI describes the same threat in its own terms and says it mainly concerns key-agreement schemes. The NCSC asks organisations to record the data they hold, its expected lifetime and its value to an adversary, and it describes priority services as those processing the most valuable or long-lived data. For an IPsec tunnel carrying records that must stay confidential for years, the question is therefore whether the captured traffic could still be decrypted when it matters, which is a question about the key exchange.

The sources treat signatures differently. The BSI says signatures usually only need to be secure in the short term, although signature keys with long validity periods also need a timely change. So for IKEv2, the concern centres on the Diffie-Hellman key exchange in IKE_SA_INIT, not on the authentication step in IKE_AUTH. Confirm which key exchange your gateways negotiate and whether the peers also authenticate with a preshared key, since RFC 8784 notes that IKEv1 with strong preshared keys resists quantum attacks because those keys are one input to the key derivation function. Check the configured IKE proposals, the peer software versions and the lifetime of the data each tunnel protects, and record the result in your inventory before choosing a migration path.

Some sources describe options for the key exchange. RFC 8784 extends IKEv2 so that, assuming the two end systems share a long secret key, the resulting exchange is quantum secure while the existing Diffie-Hellman and authentication steps are kept. RFC 9370, published in May 2023 and updating RFC 7296, lets IKEv2 run multiple key exchanges while computing a shared secret, so that post-quantum key exchanges can run alongside an (EC)DH exchange. NIST FIPS 203 defines ML-KEM for establishing a shared secret, and the NCSC lists VPNs among the hardware to include in an estate assessment. Whether a particular gateway or client supports these extensions is a question for the vendor documentation and your own test environment, not something these sources establish.

What the guidance says to use instead of or alongside Diffie-Hellman in IKEv2

RFC 8784 extends IKEv2 for the case where the two end systems share a long secret key in advance. The extension keeps the existing Diffie-Hellman and authentication steps and adds the preshared secret as an additional input, so the resulting exchange is quantum secure under the stated condition. The RFC notes that IKEv1 with strong preshared keys already resists quantum attacks, because the preshared key is one input to the key derivation function. Its value therefore depends on the secret being long, random and kept secret.

  • Condition stated: the security holds assuming the two end systems share a long secret key.
  • Retained steps: the Diffie-Hellman and authentication steps stay in place.
  • Key distribution: the RFC does not describe how the shared key is provisioned, so plan that process yourself.
  • Scope: the protection applies to the key exchange that the extension modifies.
  • Prior art: RFC 8784 notes the same property for strong preshared keys in IKEv1.

Confirm the exact text of RFC 8784, including its section on the requirements for the shared key, before relying on this option for long-lived data.

What to do about IPsec in your environment

This sequence gives you a verified inventory of your IPsec estate, a dated view of when each system must change, vendor-confirmed support for post-quantum key exchange, and a recorded plan you can show auditors and customers. It turns general migration guidance into decisions about specific gateways and clients.

  1. Inventory every IPsec gateway and client

    Network and security engineers list every IPsec gateway, router, firewall and client that terminates a tunnel, including cloud and branch devices. For each one, record the IKE version (IKEv1 or IKEv2), the key exchange groups it negotiates, the authentication method (preshared key or certificate), and the firmware or software version. The step is done when every tunnel endpoint appears in one inventory with these fields filled in, and when the list has been checked against the firewall and routing configuration rather than memory.

  2. Record the data lifetime for each tunnel

    Data owners and the security lead write down what each tunnel carries, how long that data must stay confidential, and how much it is worth to an adversary who records traffic now. The NCSC timelines guidance asks organisations to keep this record, and treats the most valuable or long-lived data as the priority. The step is done when each tunnel is tagged with a lifetime and a value, so that the inventory from the previous step can be sorted by risk.

  3. Map your position to the NCSC and BSI milestones

    The security lead compares the data lifetimes with the NCSC milestones: define goals and build an initial plan by 2028, carry out the highest-priority migrations by 2031, and complete migration by 2035. The BSI guidance is read alongside it, including its point that key agreement is the main concern for store-now-decrypt-later, and that signature keys with long validity periods also need a timely change. The step is done when each tunnel group has a target date that the lifetime record supports, written in the migration plan.

  4. Ask each VPN vendor about RFC 9370 and ML-KEM

    Procurement and platform engineers send each VPN vendor a written question: which version of their product supports RFC 9370 multiple key exchanges, whether it supports ML-KEM as defined in FIPS 203 (ML-KEM-512, ML-KEM-768 or ML-KEM-1024), and which version and edition the support applies to. Ask also whether post-quantum certificates can be negotiated alongside traditional ones. The step is done when every vendor has answered in writing with product, version and edition, and the answers are stored with the inventory. Do not assume that support in one product line applies to another.

  5. Plan a hybrid or preshared-key change

    Network architects choose, for each tunnel group, between a hybrid key exchange that runs a post-quantum method alongside (EC)DH as RFC 9370 describes, and an IKEv2 extension in which two endpoints that already share a long secret key add a quantum-secure exchange as RFC 8784 describes. The BSI advises combining post-quantum schemes with classical ones where possible. Where a tunnel is IKEv1 with a strong preshared key, note that RFC 8784 says this resists quantum attacks, and plan to keep the key strong. The step is done when each tunnel group has a named option, a version to upgrade to, and an owner, and when the vendor answers from the previous step support that choice.

  6. Test the change in a non-production tunnel

    Network engineers enable the chosen option on one non-production gateway and one matching client, then confirm the tunnel establishes, the child SAs carry traffic, and throughput and rekeying behave as before. They also test fallback to classical key exchange, so that an unsupported peer does not silently break connectivity. The step is done when the test results are written down, including any peer that cannot negotiate the new option, and that peer has been added to the migration plan with its own date.

  7. Record the outcome for auditors and customers

    The security lead assembles a dated record that lists each tunnel, its data lifetime, its milestone, the vendor answer and version, the option chosen, the test result, and any open exceptions. This record is the evidence that auditors and customers will ask for. The step is done when the record is stored with the inventory, reviewed by the data owners, and scheduled for update when vendor versions change or when the milestones are reached. Keep the record factual: state what is in place and what is not, rather than describing the estate as compliant.

Claims readers meet about IPsec and quantum attack, and what the sources say

Several claims circulate about whether IPsec is quantum safe for long-lived data. Each card below sets one claim against what the cited sources say, so you can check the claim before relying on it. The sources distinguish the default key exchange from the options that change the risk.

IPsec is quantum safe as installed

The default IKEv2 key exchange relies on Diffie-Hellman and elliptic curve Diffie-Hellman. RFC 8784 states that a quantum computer could solve these problems, and that someone storing VPN traffic today could decrypt it later. A default IKEv2 deployment should not be treated as quantum safe for long-lived data. Check which key exchange your gateways negotiate, and whether captured traffic would still matter in the future.

RFC 8784

A larger Diffie-Hellman group fixes it

The sources reviewed here do not say that a larger Diffie-Hellman group resists a quantum computer. The quantum concern is that such a computer could solve the Diffie-Hellman problem itself, which a bigger group size does not address on the sources' account. Do not rely on a larger group as a quantum mitigation. Ask your vendor for a written statement on this point if you have a requirement to meet.

RFC 8784

Preshared keys remove the risk

RFC 8784 notes that IKEv1 with strong preshared keys resists quantum attacks, because the preshared key is one input to the key derivation function. It also says that, assuming the two end systems share a long secret key, its extension to IKEv2 yields a quantum secure exchange. The sources limit this to strong preshared keys under those conditions. Weak or reused keys do not carry the protection, so check key length, generation and distribution before counting this as a mitigation.

RFC 8784

Migration is required today

The NCSC sets three milestones: by 2028 define migration goals and build an initial plan, by 2031 carry out the highest-priority migration activities, and by 2035 complete migration of all systems. The NCSC asks organisations to record the data they hold along with its expected lifetime. Start the inventory and discovery work now, and plan the 2035 completion around the longest-lived data. The milestones describe a planning window, not a claim that a quantum computer exists today.

NCSC timelines

Post-quantum key exchange is standardized

NIST FIPS 203, published 13 August 2024, defines ML-KEM for establishing a shared secret. RFC 9370, published in May 2023, extends IKEv2 so that post-quantum key exchanges can run alongside an (EC)DH exchange. These are the building blocks for a hybrid IKEv2 setup. Whether your IPsec stack and peers support them depends on the implementation, so confirm support in your specific product version before planning around it.

RFC 9370

The NCSC migration milestones and the IKEv2 exchanges they affect

The diagram starts with the NCSC's three milestones: 2028 for goals, discovery and an initial plan, 2031 for the earliest highest-priority migration and a thorough roadmap, and 2035 for completing migration of all systems, services and products. The second flow follows the two IKEv2 exchanges. IKE_SA_INIT carries nonces and Diffie-Hellman values to derive SKEYSEED, and IKE_AUTH proves identity and sets up the child SAs. Under RFC 9370, an additional post-quantum key exchange can run alongside the (EC)DH exchange during the first step. Check which of your VPN endpoints support RFC 9370 before the 2031 roadmap is set.

Shows the NCSC 2028, 2031 and 2035 milestones and where RFC 9370 adds a post-quantum exchange to IKEv2.

Questions people search about IPsec and quantum attack

Does a larger key make IPsec quantum safe?

The sources supplied do not say that a larger key alone makes IPsec quantum safe. The concern in RFC 8784 is that a quantum computer could solve the Diffie-Hellman and elliptic curve Diffie-Hellman problems that IKEv2 uses for key exchange, and that concern concerns the key exchange method itself, not the size of a key. RFC 8784 notes that IKEv1 with strong preshared keys resists quantum attacks because the preshared key is one input to the key derivation function. For IKEv2, the sources point to adding a post-quantum key exchange alongside the existing one, as described in the next questions. Confirm with your vendor which key exchange their IKEv2 implementation supports before relying on any key size change.

Must IPsec be replaced now for quantum safety?

The UK NCSC does not require immediate replacement of IPsec. Its timelines guidance, published 20 March 2025, sets three milestones: by 2028, define migration goals, complete discovery and build an initial plan; by 2031, carry out the earliest, highest-priority migration activities and refine the plan into a thorough roadmap; by 2035, complete migration of all systems, services and products to post-quantum cryptography. The guidance tells organisations to record the data they hold, its expected lifetime and its value to an adversary, and names priority services as those handling the most valuable or long-lived data. VPNs appear in the estate assessment the guidance recommends. Where your VPN carries long-lived data, the guidance suggests that data should inform the order of migration.

What replaces Diffie-Hellman in IKEv2 for quantum safety?

The sources describe three pieces. RFC 9370, published in May 2023 and updating RFC 7296, extends IKEv2 to allow multiple key exchanges while computing a shared secret, so a post-quantum key exchange can run alongside an existing (EC)DH exchange. RFC 8784 extends IKEv2 so that, if the two end systems share a long secret key, the resulting exchange is quantum secure while the existing Diffie-Hellman and authentication steps are kept. NIST FIPS 203, published 13 August 2024, defines ML-KEM, a key-encapsulation mechanism for establishing a shared secret, with parameter sets ML-KEM-512, ML-KEM-768 and ML-KEM-1024. The sources do not say which ML-KEM parameter set a given IKEv2 product uses. Ask your vendor which of these mechanisms their IKEv2 implementation supports and at which version.

Is stored IPsec VPN traffic at risk today?

RFC 8784 states that someone storing VPN communications today could decrypt them later, once a quantum computer is available. This is the store-now-decrypt-later threat. It applies because a quantum computer could solve the Diffie-Hellman and elliptic curve Diffie-Hellman problems used by IKEv2. The BSI names store-now-decrypt-later as a threat that mainly concerns key-agreement schemes, while signatures usually only need security in the short term. The practical question is therefore how long the data you send through IPsec must stay confidential. The sources do not give a date for when a quantum computer capable of this attack will exist, so the decision rests on your data's required confidentiality lifetime rather than on a predicted date.

Can a hybrid IPsec setup remain a viable option?

The BSI states that post-quantum schemes should, where possible, be used only in combination with classical schemes, and that a hybrid of two or more post-quantum schemes may remain a viable option even after cryptographically relevant quantum computers exist. In IKEv2 terms, RFC 9370 is the mechanism that allows post-quantum key exchanges to run in conjunction with an (EC)DH exchange, which is the hybrid pattern the BSI describes. The BSI names TR-02102-1, version 2026-01, as the current document on quantum-safe key agreement and signature schemes. Check the current version of that guideline and confirm that your VPN implementation supports the combination you choose.

What should I ask my VPN vendor about IPsec and quantum risk?

Ask these four things in writing:

  • Which IKEv2 key exchange mechanisms does your product support, and does it implement RFC 9370 for multiple key exchanges?
  • Does your implementation support ML-KEM as defined in NIST FIPS 203, and which parameter set does it use?
  • Does it support the RFC 8784 approach for environments that share a long secret key, and under what conditions?
  • Which product version and release date introduced each of these features, and what is the upgrade path for the appliances or software we run?

Also ask how the product handles certificates during migration, because the NCSC guidance notes that IKE allows specific certificates to be negotiated, which supports running traditional and post-quantum certificates side by side.

Does the NIST guidance require IPsec changes for my organisation?

NIST IR 8547, final version dated 27 October 2026, describes NIST's approach to moving from quantum-vulnerable public-key algorithms to post-quantum signature and key-establishment schemes. Its abstract states that it supports Executive Order 14412 and OMB Memorandum M-26-15, which direct federal agencies to prioritise migrating their most sensitive systems to post-quantum cryptography. The sources do not say that this guidance binds commercial organisations, so treat it as a reference for the migration approach. If you are a federal contractor or work with federal customers, confirm with your contracting office which requirements apply to your IPsec deployments.

Why the sources treat hybrid use as the interim approach

The BSI, the German federal office for information security, states that post-quantum schemes should, where possible, be used only in combination with classical schemes. It adds that a hybrid of two or more post-quantum schemes may remain a viable option even after cryptographically relevant quantum computers exist. For IPsec, this position maps onto how the protocol already works. IKEv2 performs its key exchange with Diffie-Hellman or elliptic curve Diffie-Hellman, and RFC 9370 extends that exchange so that one or more post-quantum key exchanges run alongside an (EC)DH exchange and both feed into the shared secret. An engineer planning an IPsec migration should therefore expect the first deployable configuration to keep the classical exchange in place and add a post-quantum one next to it, rather than replace the classical step outright.

The reason the sources favor this arrangement is that it hedges two risks at once. A post-quantum key exchange that has been standardized is newer than the classical exchange it would replace, so keeping the classical exchange preserves protection if the newer scheme is weaker than expected. Conversely, the post-quantum exchange protects the session if a quantum computer later breaks the classical one. The BSI names "store now, decrypt later" as the threat that mainly concerns key-agreement schemes, which is why the key-agreement side of an IPsec tunnel carries most of the urgency for traffic whose secrecy must last for years. Signatures and authentication are treated differently, and that distinction belongs to the authentication part of this topic.

For a decision-maker, the practical questions are which IKEv2 implementation and version the gateways run, whether they support the RFC 9370 mechanism, and which post-quantum key-encapsulation parameter set the vendor offers. The NIST standard FIPS 203 defines ML-KEM-512, ML-KEM-768 and ML-KEM-1024, and a vendor's choice among them should be confirmed in its own documentation. Check the current BSI guideline TR-02102-1, version 2026-01, for the recommended combinations before writing them into a security policy.

How DeployOpen works on this

DeployOpen approaches IPsec migration as a scoped engineering project, starting from an inventory of where IPsec tunnels, IKEv2 negotiations and their certificates run in your estate. The work follows the timelines and guidance published by the UK NCSC and NIST, with deliverables agreed in writing before any change is made to live gateways.

How we scope

  • Inventory every IPsec gateway, client and IKEv2 peer, and record which tunnels carry data with long expected lifetimes.
  • Record the data each tunnel protects, its expected confidentiality lifetime and its value to an adversary, following the NCSC guidance.
  • Agree the scope in writing, covering which gateways, vendors and certificate chains are included before work starts.

How we build

  • Test candidate IKEv2 configurations in a lab that mirrors your gateways, using RFC 9370 multiple key exchanges where your products support them.
  • Plan hybrid key exchanges that combine a classical (EC)DH exchange with a post-quantum exchange, as the BSI recommends where possible.
  • Run traditional and post-quantum certificates side by side during the transition, and verify each peer negotiates the expected combination.

How we hand over

  • Deliver a dated migration roadmap aligned to the NCSC milestones for 2028, 2031 and 2035.
  • Document each gateway configuration, the negotiated algorithms, and the rollback steps for every change made.
  • Provide the evidence your compliance and security teams need to review the migration, without issuing any audit report or certification.

How we support

  • Offer ongoing support for gateway upgrades and certificate rotation as vendors publish new post-quantum options.
  • Continue testing after each change, so regressions in tunnel negotiation are caught before they affect production traffic.
  • Provide ongoing support and continuous testing as a retainer, with scope and pricing agreed separately from the initial engagement.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.