Quantum-Safe IPsec VPNs: Migrating IKEv2 with RFC 9370 and ML-KEM
How to make IPsec VPNs quantum-safe: RFC 8784 pre-shared keys, RFC 9370 hybrid IKEv2 with ML-KEM, fragmentation limits and a tiered rollout plan.
Quantum-Safe IPsec VPNs: Migrating IKEv2 with RFC 9370 and ML-KEM
Site-to-site and remote-access VPNs are among the first places a post-quantum programme should look. They carry bulk traffic between sites, they are easy for an adversary with network access to record, and they usually rely on an IKEv2 key exchange that a cryptographically relevant quantum computer would break. This post covers the mechanisms available for IPsec today, what they cost operationally, and how to sequence a rollout across a mixed estate.
It assumes you already understand the harvest-now, decrypt-later threat model. If not, read our guide on that topic first and return here.
Why VPNs come first
An IPsec tunnel has two cryptographic layers that matter here:
- Key establishment. IKEv2 negotiates session keys using Diffie-Hellman, typically over an elliptic curve such as P-256 or Curve25519, or over a finite-field group. Shor's algorithm breaks both.
- Bulk protection. ESP encrypts traffic with AES-GCM or a similar cipher. With a 256-bit key this remains acceptable against Grover's algorithm, as our AES-256 post explains.
The weak link is therefore the handshake, not the cipher. An adversary who records the IKE exchange and the encrypted ESP traffic today can attempt to recover the session keys once a capable quantum computer exists. Increasing AES key sizes does nothing for that exposure.
What the standards and guidance say
- NIST FIPS 203 (ML-KEM) was finalised in August 2024 and is the primary standardised key-encapsulation mechanism.
- NIST IR 8547 sets the direction for retiring quantum-vulnerable public-key algorithms: deprecated after 2030 and disallowed after 2035.
- NSA CNSA 2.0 places traditional networking equipment, explicitly including VPNs and routers, on an earlier track than many other categories. It sets a support-and-prefer milestone in 2026 and exclusive use by 2030, and it specifies ML-KEM-1024. Confirm the current wording in the latest NSA advisory.
- The EU coordinated PQC implementation roadmap asks member states and organisations to begin transition planning early and to protect higher-risk use cases first. Long-lived confidential traffic over VPNs fits that description.
- NIST SP 800-77 Rev. 1 remains the baseline guide to IPsec VPN configuration and is probably the document your current policy cites. Treat it as a hardening reference, not a post-quantum one.
Three ways to add post-quantum protection to IKEv2
Option 1: Post-quantum pre-shared keys (RFC 8784)
RFC 8784, Mixing Preshared Keys in IKEv2 for Post-quantum Security, lets two peers mix a symmetric Post-quantum Pre-shared Key (PPK) into the IKEv2 key derivation. An attacker who records the handshake and later breaks the Diffie-Hellman exchange still lacks the PPK and therefore cannot derive the session keys.
Strengths:
- It uses only symmetric primitives, so there is no new public-key algorithm to validate.
- It has been available in several implementations for some years.
- It is a reasonable bridge for a small number of critical tunnels.
Limits:
- You must generate, distribute and rotate a secret for every peer pair, and the keys need high entropy. With 5 tunnels this is manageable. With 500 it is a key-management programme.
- Compromise of the PPK store removes the protection, and the protocol gives you no way to detect that.
- It does not move you toward the CNSA 2.0 end state of ML-KEM.
Option 2: Hybrid key exchange (RFC 9370 with ML-KEM)
RFC 9370, Multiple Key Exchanges in IKEv2, extends the protocol so that after the initial Diffie-Hellman exchange, peers can run up to seven additional key exchanges and combine the results into the session keys. This is the mechanism for hybrid operation: a classical ECDH exchange plus an ML-KEM exchange, with the final keys remaining secure if either one holds.
It relies on the IKE_INTERMEDIATE exchange defined in RFC 9242, which carries the larger post-quantum payloads after the initial negotiation. An IETF draft defines how ML-KEM is identified and used as an IKEv2 key exchange method. Check its current status and your vendor's implementation before committing to an interoperability plan.
Strengths:
- No per-peer secret distribution; the peers establish fresh key material each time.
- Hybrid operation hedges against flaws in new implementation code as well as against quantum attack.
- It is the natural stepping stone to ML-KEM-only operation.
Limits:
- Both endpoints must support it. Mixed-vendor estates and third-party tunnels will lag.
- Message sizes grow substantially, as the fragmentation section below shows.
- Regulated buyers need validated modules. Read our post on FIPS 140-3 and CAVP for ML-KEM before accepting a datasheet claim.
Option 3: ML-KEM only
This is the CNSA 2.0 end state: ML-KEM-1024 with no classical component. It is not where most commercial organisations should start, because hybrid operation gives a safety margin while implementations mature. Write it into your configuration policy as a destination, but do not make it your first deployment.
A note on authentication
IKEv2 peers authenticate with certificates or pre-shared keys. A forged signature has to be produced during the handshake, not years later, so authentication is a less urgent exposure than key exchange. It is not an exemption. Your VPN certificates need to follow the PKI plan described in our post on ML-DSA certificate hierarchies, and long-lived device certificates deserve particular attention.
Comparing the approaches
| Approach | What it protects | Standards status | Operational burden | Best fit |
|---|---|---|---|---|
| PPK (RFC 8784) | Session confidentiality against a recorded-handshake attack | Published RFC; symmetric primitives only | High at scale: per-peer secret generation, distribution and rotation | Few, high-value tunnels needing protection now |
| Hybrid IKEv2 (RFC 9370 plus ML-KEM) | Confidentiality, with classical and post-quantum protection combined | RFC 9370 published; ML-KEM method defined in IETF work, verify status | Medium: firmware upgrades, MTU and fragmentation testing | Default target for most estates |
| ML-KEM only | Confidentiality under post-quantum assumptions alone | FIPS 203 final; CNSA 2.0 direction | Medium; less margin for implementation error | National security systems and later-stage programmes |
What breaks: message size and fragmentation
The practical engineering problem is size. The FIPS 203 parameter sets give these figures:
- ML-KEM-768: public key 1,184 bytes, ciphertext 1,088 bytes.
- ML-KEM-1024: public key 1,568 bytes, ciphertext 1,568 bytes.
A classical X25519 public value is 32 bytes. An IKE message carrying an ML-KEM-768 public key plus headers approaches the 1,280-byte IPv6 minimum MTU, and an ML-KEM-1024 key exceeds a standard 1,500-byte Ethernet MTU on its own. IKE runs over UDP, so oversized messages are fragmented, and fragmentation is where VPNs tend to fail in practice.
Test the following before rollout:
- IKE fragmentation support (RFC 7383) on both peers, and confirm it is enabled rather than merely available.
- Middleboxes that drop fragmented UDP or rate-limit UDP ports 500 and 4500. Firewalls and carrier-grade NAT devices are the usual suspects.
- Path MTU across each underlay, including cellular and satellite links.
- Denial-of-service posture. Larger handshakes cost more to process and retransmit. Check responder behaviour under load and how cookies are handled.
- Rekey behaviour. Confirm that rekeys, not just initial establishment, include the additional exchange and succeed under packet loss.
None of these is a reason to delay. They are reasons to test on a representative subset first.
A worked example: 120 tunnels, three tiers
Consider an organisation with 120 IPsec tunnels across two vendors. The figures below are illustrative and are not drawn from any survey.
Step 1: classify by confidentiality lifetime.
- Tier 1 (20 tunnels): data-centre interconnects carrying regulated personal and financial data that must stay confidential for around 10 years.
- Tier 2 (80 tunnels): branch-office links carrying operational traffic with a shorter sensitivity window of around 3 years.
- Tier 3 (20 tunnels): third-party tunnels where the partner controls the other endpoint.
Step 2: apply Mosca's inequality. For Tier 1, confidentiality must last X = 10 years and migration is expected to take Y = 4 years, so X + Y = 14 years. If the organisation's planning assumption for the arrival of a capable quantum computer (Z) is 12 years, then 14 is greater than 12 and the tier is already exposed. Z is a judgement, so record it and the reasoning behind it. For Tier 2, X + Y = 3 + 3 = 6 years, which is below the same Z. Those tunnels are not urgent on this test, but they still fall under the 2030 and 2035 dates and should follow the vendor firmware cycle.
Step 3: choose the mechanism per tier.
- Tier 1: hybrid IKEv2 with ML-KEM where both vendors support it. Where one vendor does not yet, deploy RFC 8784 PPKs on the affected tunnels. Twenty secrets is a tractable number to generate, store in an HSM-backed vault and rotate, and the tunnels can move to hybrid later.
- Tier 2: hybrid IKEv2 as part of scheduled firmware upgrades, after a pilot proves fragmentation behaviour on the real underlays.
- Tier 3: raise it with each partner, ask for their roadmap, and add a post-quantum requirement to contract renewals. Our post on PQC vendor risk lists the questions and clauses.
Step 4: sequence the work.
- Months 0 to 3: inventory every tunnel, endpoint, vendor, firmware version and key exchange group in your cryptographic bill of materials. Establish a lab with the real MTU and middlebox conditions.
- Months 3 to 6: pilot hybrid IKEv2 on two or three Tier 1 tunnels and apply PPKs where needed. Measure handshake time, fragment loss and rekey success.
- Months 6 to 18: roll out across Tier 1, then Tier 2, with rollback configurations ready.
- In parallel: align VPN certificates with the PKI migration so that signature changes do not arrive as a surprise.
Where IQCDL fits
IPsec migration touches network engineering, PKI, procurement and risk, and it fails when those teams work from different assumptions. The IQCDL assessment shows where an individual or team stands on post-quantum fundamentals, the programmes build the practical skills for inventory, hybrid deployment and supplier assurance, and the standards page maps the material to FIPS 203, NIST IR 8547 and related guidance.
Frequently asked questions
Is an IPsec VPN already quantum-safe if it uses AES-256?
Only the bulk encryption is. The IKEv2 key exchange that produces the AES keys normally uses Diffie-Hellman over finite fields or elliptic curves, which Shor's algorithm breaks. A recorded session can be decrypted later unless the key exchange is hybridised with ML-KEM or a post-quantum pre-shared key is mixed in.
Should we use RFC 8784 pre-shared keys or RFC 9370 hybrid key exchange?
They solve different problems. RFC 8784 is a fast stopgap for a small number of high-value tunnels where you can distribute and rotate secrets safely. RFC 9370 with ML-KEM scales better because no per-peer secret has to be distributed, but it needs vendor support and careful handling of larger messages.
Do VPN authentication certificates need to change at the same time?
Not on the same schedule. Confidentiality of recorded traffic is the first exposure, so key exchange moves first. Authentication must be forged in real time, so signature migration to ML-DSA can follow through your PKI plan, but CNSA 2.0 and NIST IR 8547 still require it to be completed.
Which CNSA 2.0 date applies to VPN equipment?
CNSA 2.0 lists traditional networking equipment, including VPNs and routers, with a support-and-prefer milestone in 2026 and exclusive use of CNSA 2.0 algorithms by 2030. It specifies ML-KEM-1024 for key establishment. Check the current NSA advisory text for your programme, as guidance is updated.