4 min read

QUIC Traffic Analysis: Capturing and Decrypting HTTP/3

QUIC moves the transport layer into user space, so captures look nothing like TCP. This article breaks down QUIC packet structure, the encryption mechanics of Initial packets, and how to extract meaningful intelligence from QUIC traffic with PcapDecoder.

QUIC Traffic Analysis: Capturing and Decrypting HTTP/3
SummaryKey Points
  • QUIC runs on UDP: Initial packets are recognizable in the clear, and everything after the handshake is encrypted
  • Initial packets use fixed-key derivation (the salt is public), so connection details can be decrypted
  • Real-sample verification: the key-log decryption path for the quic-with-secrets sample
  • PcapDecoder identifies key QUIC fields such as version, DCID, and retries

QUIC vs. TCP: The Fundamental Differences

QUIC (Quick UDP Internet Connections) is a transport protocol designed by Google and standardized by the IETF; HTTP/3 runs on top of it. Its core changes versus TCP:

DimensionTCPQUIC
CarrierKernel protocol stackUDP in user space
HandshakeTCP three-way + TLS 1.2/1.3 two-way = 3-4 RTTTransport and cryptographic handshakes merged: 1-RTT, 0-RTT on reconnect
Head-of-line blockingA single lost packet blocks all streams on the connectionIsolated at the stream level
Connection migrationConnection is bound to the four-tuple; switching networks drops itConnection is bound to the Connection ID; switching networks keeps it alive
EncryptionOptional; plaintext is the normMandatory — QUIC has no unencrypted option

For packet capture analysis, the biggest shock is: all QUIC traffic is UDP. You can no longer reason about it the TCP way (SYN, windows, sequence numbers) — you need a new mental model.

Packet Forms: Long Header and Short Header

QUIC packets come in two broad classes, flagged by the highest bit of the first byte:

Long Header (high bit of the first byte = 1) — handshake-phase packets; the header carries a version number and Connection ID:

Initial (type 0)   — carries the TLS ClientHello/ServerHello; plaintext (decryptable)
0-RTT (type 1)     — application data sent directly on reconnect
Handshake (type 2) — key negotiation after the handshake completes
Retry (type 3)     — the server asks the client to reconnect from a new address
Version Negotiation — version negotiation

Short Header (high bit of the first byte = 0) — application data packets after the handshake completes; only the destination Connection ID (DCID) and payload, fully encrypted.

Why Initial Packets Can Be Parsed

This is the most counterintuitive point in QUIC analysis: Initial packets are "sent in the clear," but their contents are actually encrypted — except the encryption key does not come from handshake negotiation; instead, both sides derive it from a fixed salt using a fixed algorithm. The salt value is published in an appendix of RFC 9001.

This means: anyone can decrypt Initial packets. So from Initial packets you can see:

  • The complete contents of the TLS ClientHello / ServerHello;
  • Plaintext information such as the SNI, ALPN, and supported versions;
  • The Connection IDs of both the client and the server.

Once past Initial, the Handshake phase completes key negotiation, and only then do all subsequent packets become truly undecryptable (unless you have an SSLKEYLOG exported by the client).

How-to: Analyzing Traffic in PcapDecoder

Step 1: Open the file and identify QUIC traffic. PcapDecoder automatically recognizes QUIC packets on UDP and classifies them by Long/Short Header. Each QUIC connection in the session list is identified by its DCID.

Step 2: Open an Initial packet to extract connection details. The detail view shows the QUIC-layer fields (version, DCID/SCID, packet number, Token) and the decrypted TLS-layer fields (SNI, ALPN, key exchange parameters).

!Protocol details

Step 3: With a key log, decrypt everything. If you have an SSLKEYLOGFILE exported by the client (generated by setting an environment variable in the browser or app), import it and PcapDecoder can decrypt all application data — HTTP/3 request headers and response codes become fully visible. The quic-with-secrets.pcapng sample in our test corpus is a keyed sample whose decryption path has been fully verified.

Step 4: No key? You can still observe behavior. Even without keys, the size distribution and inter-packet timing of Short Header packets still tell a story: abnormally regular full-size 1200-byte packets (path MTU probing), reconnect storms (dense 0-RTT packets), connection migration (DCID changes but the flow continues).

Common QUIC Analysis Questions

SymptomExplanation
Large numbers of 1200-byte UDP packetsNormal: QUIC sends to the path MTU; filling 1200 bytes is the norm
Retry packets appearThe server is validating the client's address (anti-amplification); the connection will be rebuilt
Version Negotiation visibleThe client used a QUIC version the server does not support
All Short Header after InitialThe normal path: Initial negotiates, everything after is encrypted
Application data cannot be decryptedMissing SSLKEYLOG, or a key version mismatch

Related reading: "How to Analyze a TLS 1.3 Handshake".

QUICHTTP/3GoogleUDPProtocol Analysis
Share
Back to home