Protocol Analysis

TLS handshake analysis

Even when traffic is encrypted, the TLS handshake reveals a surprising amount of information. The domain being contacted, the certificates in use, and the cryptographic fingerprint of the client are all visible.

3 min readLesson 3

Captures used in this lesson

Why TLS matters for packet analysis

Most internet traffic today is encrypted with TLS. You cannot read the payload, but that does not mean encrypted traffic is invisible. The TLS handshake happens in plain sight before encryption starts, and it contains valuable information.

The TLS handshake

Every TLS connection starts with a handshake. This is where the client and server negotiate encryption parameters, exchange certificates, and establish the session keys. The handshake packets are not encrypted.

The key packets to look for:

Client Hello

This is the first packet the client sends. It contains:

  • Server Name Indication (SNI): the domain name the client wants to connect to. This is the most useful field for analysis because it tells you exactly which site the client is reaching, even though the rest of the traffic is encrypted.
  • Supported cipher suites: the list of encryption algorithms the client supports. Unusual cipher suites can indicate older software, malware, or custom tools.
  • TLS version: which versions the client supports (TLS 1.2, 1.3, etc.).
  • Extensions: additional capabilities the client advertises.

Filter: tls.handshake.type == 1

Server Hello

The server responds with its chosen parameters:

  • Selected cipher suite: which encryption algorithm will be used.
  • TLS version: the version agreed upon.
  • Session ID: for session resumption.

Certificate

The server sends its X.509 certificate chain. You can see:

  • The domain the certificate was issued for
  • The issuing Certificate Authority (CA)
  • The certificate expiration date
  • Whether it is self-signed

Self-signed certificates in production traffic are a red flag. Legitimate services use certificates from trusted CAs. Self-signed certs are commonly used by malware, testing environments, or man-in-the-middle proxies.

JA3 fingerprinting

JA3 is a method for creating a fingerprint of the TLS Client Hello. It hashes the TLS version, cipher suites, extensions, elliptic curves, and point formats into a single MD5 hash.

This fingerprint identifies the TLS client implementation, not the user. The same application always produces the same JA3 hash, regardless of what server it connects to. This makes JA3 useful for:

  • Identifying malware families (each malware has a unique TLS implementation)
  • Detecting non-browser traffic pretending to be a browser
  • Tracking specific tools across network captures

JA3 hashes are available in many threat intelligence feeds. If you see a JA3 hash associated with known malware, that is a strong indicator of compromise.

What you cannot see

Once the handshake completes and encryption starts, the actual HTTP requests, responses, headers, and bodies are all encrypted. You can see:

  • How much data is being transferred (packet sizes)
  • When data is sent (timing patterns)
  • That a connection exists between two endpoints

But you cannot see the content. This is by design.

Practical filters

  • tls.handshake.type == 1 to see all Client Hello packets
  • tls.handshake.type == 2 to see all Server Hello packets
  • tls.handshake.type == 11 to see certificates
  • tls.handshake.extensions_server_name to filter by SNI domain

What information is visible in the TLS Client Hello packet?

A TLS connection uses a self-signed certificate. What might this indicate?