Hybrid ML-KEM Behind the Firewall: Migrating Without Losing the Failover Path

When you enable hybrid ML-KEM key exchange, the inspection tier usually breaks before the cryptography does, because it assumes a ClientHello fits in one packet. An X25519 plus ML-KEM-768 key share carries a 1184 byte encapsulation key on its own, so the handshake routinely spans two TCP segments. Any stateful device that classifies a flow from the first segment is now guessing. The budget case has to start with the middleboxes, because they decide whether a partial failure degrades one flow or takes down a whole zone.

Where the old stack actually breaks

Most enterprise firewalls doing TLS inspection or SNI-based policy were tuned for classical handshakes that arrive whole. Feed them a split ClientHello and you get one of three outcomes, depending on firmware. The device reassembles correctly, or it times out the reassembly buffer and drops the flow, or it classifies on an empty SNI and applies the default rule. The last outcome hurts most, because nothing alarms. In an HA pair where only the active node has the updated parser, a routine failover silently changes how traffic is classified, and the incident looks like a policy bug rather than a crypto migration. Fixing it costs money in firmware or appliance refresh, and the measurable trade-off is reassembly memory per flow against concurrent session ceiling: holding two segments of handshake state per new connection cuts headroom on the same hardware, which we estimate at roughly a fifth of rated session capacity during connection storms.

Keep the classical half of the hybrid. When an ML-KEM implementation gets pulled for a side-channel fix, X25519 is what still protects you against today's attackers while you patch, and that protection is worth the extra bytes on every handshake.

Failover has to be tested under the new traffic

The resilience question is not whether each component handles hybrid key exchange. The question is whether the system still enforces policy when any one component is absent. That covers the standby firewall, the secondary HSM holding inspection keys, and the Zero Trust policy engine that has to accept classical and hybrid clients side by side during the transition. That dual acceptance is a downgrade path by construction, so you can't leave it open indefinitely without giving up the reason you migrated. The decision rule we apply is blunt: a microsegment flips to hybrid-required only after every enforcement point on its path, standby units included, has passed a forced failover under live hybrid traffic, and until then the segment stays in dual mode with downgrade attempts logged and counted.

What the budget actually buys

Each line item should map to a number someone can measure afterward. Appliance or firmware refresh buys back session ceiling under split handshakes. HSM firmware buys a failover time that stays inside your recovery objective once the key material and operations are post-quantum. Side-channel-hardened, constant-time decapsulation buys resistance to timing attacks on the inspection tier, and you pay for it in CPU per handshake, which we estimate at around a quarter more than the classical path on current inspection hardware. Running two policy regimes in parallel also doubles your test matrix for as long as the migration lasts, and that cost lands on staff hours, not capex. Conformance to NIST's post-quantum key-establishment standards and the IETF hybrid profiles built on them gets you interoperability, not resilience, and the failover testing above is the only thing that proves resilience.

Can we run the inspection tier fail-open during the migration to avoid outages?

You can, but treat it as a scoped exception with an expiry date. A fail-open inspection tier converts every reassembly fault into uninspected traffic, so first move the segments whose data needs long-term confidentiality to hybrid-required with fail-closed enforcement. Accept the higher outage risk on those segments in exchange for closing the harvest-now, decrypt-later exposure.

Back to MLKEMSecurity · Domains

← Back to MLKEMSecurity
Engineering & Architecture Brief

Hybrid ML-KEM Behind the Firewall: Migrating Without Losing the Failover Path

When you enable hybrid ML-KEM key exchange, the inspection tier usually breaks before the cryptography does, because it assumes a ClientHello fits in one packet. An X25519 plus ML-KEM-768 key share carries a 1184 byte encapsulation key on its own, so the handshake routinely spans two TCP segments. Any stateful device that classifies a flow from the first segment is now guessing. The budget case has to start with the middleboxes, because they decide whether a partial failure degrades one flow or takes down a whole zone.

Where the old stack actually breaks

Most enterprise firewalls doing TLS inspection or SNI-based policy were tuned for classical handshakes that arrive whole. Feed them a split ClientHello and you get one of three outcomes, depending on firmware. The device reassembles correctly, or it times out the reassembly buffer and drops the flow, or it classifies on an empty SNI and applies the default rule. The last outcome hurts most, because nothing alarms. In an HA pair where only the active node has the updated parser, a routine failover silently changes how traffic is classified, and the incident looks like a policy bug rather than a crypto migration. Fixing it costs money in firmware or appliance refresh, and the measurable trade-off is reassembly memory per flow against concurrent session ceiling: holding two segments of handshake state per new connection cuts headroom on the same hardware, which we estimate at roughly a fifth of rated session capacity during connection storms.

Keep the classical half of the hybrid. When an ML-KEM implementation gets pulled for a side-channel fix, X25519 is what still protects you against today's attackers while you patch, and that protection is worth the extra bytes on every handshake.

Failover has to be tested under the new traffic

The resilience question is not whether each component handles hybrid key exchange. The question is whether the system still enforces policy when any one component is absent. That covers the standby firewall, the secondary HSM holding inspection keys, and the Zero Trust policy engine that has to accept classical and hybrid clients side by side during the transition. That dual acceptance is a downgrade path by construction, so you can't leave it open indefinitely without giving up the reason you migrated. The decision rule we apply is blunt: a microsegment flips to hybrid-required only after every enforcement point on its path, standby units included, has passed a forced failover under live hybrid traffic, and until then the segment stays in dual mode with downgrade attempts logged and counted.

What the budget actually buys

Each line item should map to a number someone can measure afterward. Appliance or firmware refresh buys back session ceiling under split handshakes. HSM firmware buys a failover time that stays inside your recovery objective once the key material and operations are post-quantum. Side-channel-hardened, constant-time decapsulation buys resistance to timing attacks on the inspection tier, and you pay for it in CPU per handshake, which we estimate at around a quarter more than the classical path on current inspection hardware. Running two policy regimes in parallel also doubles your test matrix for as long as the migration lasts, and that cost lands on staff hours, not capex. Conformance to NIST's post-quantum key-establishment standards and the IETF hybrid profiles built on them gets you interoperability, not resilience, and the failover testing above is the only thing that proves resilience.

Technical FAQ: Can we run the inspection tier fail-open during the migration to avoid outages?

You can, but treat it as a scoped exception with an expiry date. A fail-open inspection tier converts every reassembly fault into uninspected traffic, so first move the segments whose data needs long-term confidentiality to hybrid-required with fail-closed enforcement. Accept the higher outage risk on those segments in exchange for closing the harvest-now, decrypt-later exposure.

Related Architecture Specifications (PQCECOSYSTEM): dronetpm.com · fheid.com · militarytpm.com

More Technical Articles on mlkemsecurity.com

Zero-Trust Architecture in the Quantum Era: Aligning NIST SP 800-207 with Post-Quantum Realities →High-Performance gRPC Microservices: Benchmarking Post-Quantum RPC over HTTP/2 →