TLS Decryption & PQC
Enterprises inspect TLS traffic at the network edge for threat prevention, data-loss prevention and compliance. Post-quantum key exchange changes that picture: a middlebox that does not understand PQC can no longer decrypt the traffic it is meant to inspect — and the common workaround, stripping PQC to force classical cryptography, directly undermines a PQC migration. This page uses Palo Alto Networks' NGFW decryption as a concrete, well-documented example.
What network decryption is
A next-generation firewall (NGFW) performs decryption to gain visibility into otherwise opaque SSL/TLS and SSH traffic, then re-encrypts it after inspection. It acts as a trusted man-in-the-middle using public/private-key cryptography. The main modes are:
| Mode | Direction | Purpose |
|---|---|---|
| SSL Forward Proxy | Outbound | Inspect traffic from internal clients to the internet (the NGFW presents a re-signed certificate). |
| SSL Inbound Inspection | Inbound | Inspect traffic to internal servers using a copy of the server's key/certificate. |
| SSH Proxy | Both | Inspect and control SSH tunnels. |
Decryption policies select which traffic is decrypted and how; decryption profiles pin the allowed protocol versions and cipher suites. Perfect Forward Secrecy (DHE/ECDHE) is typically enabled by default — which already means the inspector must participate in the key exchange rather than passively decrypt with a static key.
Why PQC collides with inspection
TLS 1.3 hybrid key exchange (for example X25519MLKEM768) negotiates the shared secret
with a post-quantum KEM. A decrypting middlebox has to sit inside that key exchange. If it does not
implement the PQC KEM, it simply cannot derive the session keys — so it cannot inspect the session
at all. This creates two bad outcomes that a security team must choose between:
- Lose visibility — allow the PQC session through undecrypted (a monitoring/DLP/threat blind spot), or
- Force a downgrade — make the client fall back to classical-only cryptography so the box can still decrypt — which defeats the purpose of deploying PQC and re-exposes the traffic to "harvest now, decrypt later".
How firewalls detect & control PQC today
Before PQC-aware decryption existed, NGFWs handled PQC by editing the handshake. The firewall
inspects the supported_groups extension in the TLS ClientHello and
compares the advertised group code points against known PQC and hybrid-PQC algorithms. When a
Forward Proxy or Inbound Inspection rule applies:
- If the client offers both classical and PQC groups, the NGFW removes the PQC and hybrid-PQC groups from the ClientHello, forcing the server to negotiate a classical algorithm it can decrypt.
- If the client offers only PQC/hybrid groups, the NGFW drops the session and logs
Client only supports Post-Quantum algorithms. - Under a no-decrypt rule (or no decryption policy at all), the NGFW lets the PQC handshake proceed — gaining privacy but leaving a session it cannot inspect.
Even when it cannot decrypt, this gives security teams traceability: the firewall can detect, log and block PQC/hybrid-PQC usage in TLS 1.3, so an organization can at least measure where PQC is appearing on its network.
PQC-aware inline decryption
The durable fix is for the inspection device itself to speak PQC. PAN-OS 12.1+ introduces PQC dataplane decryption and inspection, covering SSL Forward Proxy and SSL Inbound Inspection; it also provides PQC Cipher Translation, management-plane TLS PQC, site-to-site VPN and related capabilities. The exact feature boundaries, version numbers and configuration options should be confirmed against Palo Alto Networks' current online documentation. In the decryption profile you can:
- enable NIST-standardized PQ KEMs (ML-KEM, per FIPS 203) or non-standardized experimental options;
- enable hybrid post-quantum key exchange — a classical algorithm such as ECDH combined with a PQC KEM (e.g.
X25519MLKEM768) so the session is safe against both classical and future quantum attackers while remaining inspectable.
Separately, the firewall's own management-plane TLS has been gaining PQC support, so administrative connections to the device are themselves quantum-safe.
What this means for your migration
- Inventory your middleboxes. Firewalls, proxies, load balancers and TLS-terminating gateways are exactly the places where PQC rollout breaks — add them to your cryptographic inventory.
- Sequence inspection with rollout. Upgrade inspection devices to PQC-aware decryption before enabling hybrid PQC on endpoints, or you will be forced into downgrade-stripping.
- Prefer hybrid. Hybrid key exchange (classical + PQC) is what both browsers and PQC-aware inspectors converge on; it keeps you interoperable during the transition.
- Watch for silent downgrades. A middlebox that strips PQC can mask the fact that "PQC is enabled" end-to-end — verify the negotiated group on the wire, not just the client config.
Standards & references
- Palo Alto Networks — Decryption overview — modes, policies and profiles.
- PQC Detection and Control — ClientHello
supported_groupsinspection and stripping behavior. - PQC and Decryption — PAN-OS PQC visibility/control overview.
- PQC support for TLS 1.3 inline decryption (PAN-OS 12.1) — PQ KEMs in decryption profiles.
- draft-ietf-tls-ecdhe-mlkem — the X25519MLKEM768 hybrid group these features negotiate.
- Resources — full standards register
TLS 解密与 PQC
企业会在网络边界对 TLS 流量做解密检测,用于威胁防护、数据防泄露与合规。后量子密钥交换改变了这一格局: 不理解 PQC 的中间设备无法再解密它本应检测的流量;而常见的应对手段——剥离 PQC 强制回退经典算法——又会直接破坏 PQC 迁移。 本页以 Palo Alto Networks NGFW 的解密能力为有据可查的具体案例。
什么是网络解密
下一代防火墙(NGFW)通过解密获得对本不可见的 SSL/TLS 与 SSH 流量的可见性,检测后再重新加密。它借助公私钥密码学 充当受信任的中间人。主要模式有:
| 模式 | 方向 | 用途 |
|---|---|---|
| SSL Forward Proxy | 出站 | 检测内网客户端到互联网的流量(NGFW 出示重签名证书)。 |
| SSL Inbound Inspection | 入站 | 用服务器密钥与证书副本检测进入内网服务器的流量。 |
| SSH Proxy | 双向 | 检测并管控 SSH 隧道。 |
解密策略决定哪些流量被解密以及如何处理;解密配置文件限定允许的协议版本与密码套件。 前向保密(DHE/ECDHE)通常默认开启——这本身就意味着检测设备必须参与密钥交换,而不能用静态密钥被动解密。
PQC 为何与检测冲突
TLS 1.3 混合密钥交换(例如 X25519MLKEM768)用后量子 KEM 协商共享密钥。做解密的中间设备必须置身于该密钥交换之中。
若它没有实现该 PQC KEM,就根本推不出会话密钥,也就完全无法检测该会话。安全团队因此被迫在两个糟糕的结果之间二选一:
- 失去可见性——放行未解密的 PQC 会话(监控/DLP/威胁检测盲区),或
- 强制降级——让客户端回退到仅经典算法,使设备仍能解密——但这等于放弃了部署 PQC 的意义,并让流量重新暴露于“先收集、后解密(Harvest Now, Decrypt Later, HNDL)”。
当前防火墙如何检测与管控 PQC
在具备 PQC 感知的解密能力之前,NGFW 通过改写握手来处理 PQC。防火墙检查 TLS ClientHello 中的
supported_groups 扩展,将其中通告的组码点与已知 PQC、混合 PQC 算法比对。当命中 Forward Proxy 或 Inbound Inspection 规则时:
- 若客户端同时提供经典与 PQC 组,NGFW 会从 ClientHello 中删除 PQC 与混合 PQC 组,迫使协商出它能解密的经典算法。
- 若客户端仅提供 PQC/混合组,NGFW 会丢弃该会话,并记录日志
Client only supports Post-Quantum algorithms。 - 在不解密规则下(或根本没有解密策略),NGFW 放行 PQC 握手——保住了隐私,却留下一条它无法检测的会话。
即便无法解密,这也为安全团队提供了可追溯性:防火墙能检测、记录并阻断 TLS 1.3 中的 PQC/混合 PQC 使用, 组织至少能掌握 PQC 在自身网络中出现的范围。
具备 PQC 感知的内联解密
长久的解法是让检测设备自身会说 PQC。PAN-OS 12.1+ 开始提供 PQC Dataplane 解密与检测能力,覆盖 SSL Forward Proxy 与 SSL Inbound Inspection;同时还提供 PQC Cipher Translation、管理面 TLS PQC、站点到站点 VPN 等能力。具体功能边界、版本号和配置项应以 Palo Alto Networks 当前在线文档为准。在解密配置文件中可以:
- 启用 NIST 标准化 PQ KEM(ML-KEM,见 FIPS 203)或非标准化的实验性选项;
- 启用混合后量子密钥交换——把 ECDH 等经典算法与 PQC KEM(如
X25519MLKEM768)组合,使会话既能抵御经典与未来量子攻击,又保持可检测。
此外,防火墙自身的管理面 TLS 也在逐步获得 PQC 支持,使对设备的管理连接本身具备抗量子能力。
对你迁移的意义
- 盘点中间设备。防火墙、代理、负载均衡、TLS 终结网关正是 PQC 推广最易出问题之处——把它们纳入密码资产清查。
- 让检测先于推广。在端侧启用混合 PQC 之前先把检测设备升级到 PQC 感知解密,否则只能被迫降级剥离。
- 优先混合。浏览器与 PQC 感知检测设备都收敛于混合密钥交换(经典 + PQC),它能在过渡期保持互操作。
- 警惕静默降级。剥离 PQC 的中间设备会掩盖“端到端已启用 PQC”的假象——请核对链路上实际协商的组,而不只是客户端配置。
标准与参考
- Palo Alto Networks——解密总览——模式、策略与配置文件。
- PQC 检测与管控——ClientHello
supported_groups检查与剥离行为。 - PQC 与解密——PAN-OS PQC 可见性与管控总览。
- TLS 1.3 内联解密的 PQC 支持(PAN-OS 12.1)——解密配置文件中的 PQ KEM。
- draft-ietf-tls-ecdhe-mlkem——这些特性所协商的 X25519MLKEM768 混合组。
- 资源链接——完整标准登记册