Skip to content

Lesson 7 of 9 · 24m

TLS Inspection Limits

What TLS still exposes — endpoints, timing, certificates, SNI, and failure behavior — and what packet capture cannot honestly claim to reveal.

TLS does not make packet capture useless. It makes packet capture honest. You can still see who talked, when, how much, in what order, and often which handshake failed. What you usually cannot see is the application content. Senior analysts state that boundary clearly instead of pretending metadata is payload evidence.

TLS is a layered negotiation

A normal TLS 1.3 flow over TCP starts after the TCP handshake:

client -> server   TLS ClientHello
server -> client   TLS ServerHello, encrypted handshake data
client/server      application data records

The ClientHello can reveal the TLS version offered, cipher suites, extensions, ALPN values, and often SNI. TLS 1.3 encrypts much of the certificate exchange, so the old habit of reading the server certificate directly often fails unless you capture earlier protocol versions or decryption keys.

A TLS failure is not an HTTP failure

These are different incidents:

TCP resets before ClientHello
ClientHello sent, no response
TLS alert after ServerHello
TLS handshake completes, then silence
HTTP response arrives inside encrypted records but application reports failure

The first is network or service reachability. The second may be a TLS terminator problem or middlebox interference. The third often indicates certificate, protocol, cipher, or client-trust failure — but the alert text requires care because TLS alerts are terse and sometimes misleading. The fourth is application or upper-layer behavior. The last cannot be decoded from payload, but timing and size still bound the problem.

SNI and ALPN are useful, not omniscient

tshark -r incident.pcapng -Y 'tls.handshake.type == 1'   -T fields -e frame.time -e ip.src -e ip.dst   -e tls.handshake.extensions_server_name   -e tls.handshake.extensions_alpn_str

SNI is a plaintext hint in many TLS 1.2 and TLS 1.3 flows, but Encrypted ClientHello can hide it. ALPN tells you what application protocol was negotiated (h2, http/1.1) when visible. Neither proves what content moved. A TLS connection to a CDN hostname is not proof of which tenant or object the user requested.

Decryption requires keys or controlled interception

You cannot retroactively decrypt modern TLS sessions just because you control Wireshark. Your legitimate options are narrow:

  • use SSLKEYLOGFILE secrets captured by the client or server process during the session
  • terminate TLS at a controlled proxy you operate and capture at the plaintext side
  • capture inside the host before encryption or after decryption, subject to policy and privacy constraints
  • rely on endpoint, application, or load balancer telemetry instead of payloads

Perfect forward secrecy means a server private key alone does not unlock ordinary modern sessions. If someone claims they decrypted a TLS 1.3 capture with only the certificate key, challenge the claim.

Metadata remains powerful

Even fully encrypted traffic reveals endpoints and ports, connection timing and duration, bytes per direction, bursts, retransmissions, resets, TLS version, cipher, and some extensions. That is enough to answer many operational questions: Was the handshake reached? Did one side stop sending? Did the connection die at an idle timeout? Was data transferred at all? Do not overreach beyond those answers.

Field notes

  • Never paste private keys or key logs into ticket systems casually; they decrypt user data.
  • QUIC moves HTTP/3 traffic onto UDP and encrypts transport metadata more aggressively; classic TCP stream logic does not apply.
  • TLS record sizes can hint at request/response boundaries, but hints are not content.
  • If policy requires TLS interception, make it explicit and controlled; ad hoc middlebox captures create legal, privacy, and trust problems.

Was this lesson helpful?

Sign in to rate