Transport Layer Security (TLS) protects application traffic and exposes different handshake details depending on the protocol version and capture point. A passive sensor may see addresses, ports, timing and part of the handshake. A TLS endpoint can have a much fuller view because it participates in the encrypted exchange.
A useful TLS finding distinguishes the observed connection from what an application did inside it. A visible server name can support a destination hypothesis. Confirming an HTTP path, message body or account action calls for a separate authorized source with access to those details.
Key terms
- ClientHello
- The opening TLS handshake message. It advertises client capabilities and may expose names or offered protocols.
- Server Name Indication (SNI)
- A TLS extension for indicating the intended server name. Availability depends on which handshake fields the observer can access.
- Application-Layer Protocol Negotiation (ALPN)
- The TLS exchange used to offer and select an application protocol. An offered value carries a different evidentiary meaning from a selection.
- Session resumption
- A method of deriving a new TLS connection from previously established session material. It can change which handshake messages appear.
- Supported versions
- A TLS extension used to advertise or select versions. In TLS 1.3 it gives the negotiation context beyond legacy_version.
- GREASE
- Reserved TLS values used to exercise tolerance of unfamiliar code points. They can be legitimate entries in an offer.
More key terms (3)
- CertificateRequest
- A TLS message asking the client for certificate-based authentication. Check the response and validation decision.
- CertificateVerify
- A handshake signature that demonstrates possession of the private key corresponding to a presented certificate.
- close_notify
- A TLS alert that closes the sender’s write direction. Compare it with transport closure and application framing.
Distinguish Offers From Negotiated Values
The ClientHello can list supported versions, cryptographic choices and application protocols. A capability list shows what was offered. Find a parsed selection from the server side of the handshake before describing the negotiated value. For TLS 1.3, use the version selected through the supported versions extension when examining the underlying handshake.
Some dissectors can read enough of the handshake to report that a session was established. Check the tool’s definition of that state, especially when the capture is partial. A connection observed through its handshake can support a stronger statement than a ClientHello alone. A later application operation still requires application-level evidence.
Compare the record for the first connection attempt with later retries before combining handshake fields. A client may try several destinations or start a resumed connection after a prior exchange. Address and hostname matches alone can merge distinct attempts. Retain the original connection identifier and timestamp for each handshake, especially where the question is whether a particular attempt progressed far enough to negotiate a version.
Place Names and Certificates in Context
A visible Server Name Indication (SNI) value gives the client’s indicated name. The destination address may serve several domains or belong to a load balancer. SNI can help narrow the service, while certificate identity and validation need their own evidence. Use a source with direct visibility into certificate handling if the question concerns what a client accepted.
In a typical certificate-authenticated TLS 1.2 handshake, the server certificate may be visible to a passive observer. In TLS 1.3, certificate messages sent after the ServerHello are encrypted. Some resumed sessions omit certificate exchange. Missing certificate fields in a passive log therefore require the capture and handshake context before being interpreted. TLS 1.3 handshake specification, RFC 8446
Certificate data recorded by an authorized endpoint can help distinguish the names presented from a validation decision. Keep the relevant presented identity, the application’s trust result and the timestamp of that result where available. A certificate can list several names. The name indicated by the client tells you which one to compare with the transaction under review, while the certificate’s remaining names provide context.
Explain Reduced ClientHello Visibility
Encrypted Client Hello (ECH) protects an inner ClientHello. A passive observer may see an outer name used for reaching the service and have no access to the actual inner name. Check what the analyzer exports and distinguish a missing field from an outer name that it can report. Encrypted Client Hello specification, RFC 9849
A capture that begins midstream, sees only one direction or omits parts of packets may also lack handshake fields. Review capture start, packet completeness and sensor support when writing about an absent name. Identify a relevant authorized alternative, such as logs from the endpoint or TLS termination service.
Place the capture and the termination log on a simple observation diagram. A capture before the gateway can describe external endpoints and visible handshake facts. A log at the gateway may describe the selected protocol and request, and an upstream trace can see a second encrypted session. This diagram gives a reviewer a practical way to understand why an apparent field mismatch can be genuine across hops.
Tie TLS Observations to the Right Hop
A client may establish TLS to a gateway, which then creates a second TLS connection to an upstream service. Each hop has its own endpoints, version and handshake state. Label the hop before joining names, certificates or application outcomes. A connection identifier in a proxy or a request identifier propagated across the service can link the observations.
Timing, transfer sizes and handshake fingerprints can help group connections for review. Those patterns can also be shared by unrelated applications that use the same TLS library or service. Record the observed attributes and support any stronger identification with endpoint, proxy or application evidence that establishes the relevant activity.
Include the capture range and the analyzer’s established-state definition in a reproducible exhibit. If the capture begins near the suspected event, determine whether it includes the start of the relevant connection or only protected traffic from an earlier one. Record the first observed packet time as such. Inferring connection start from the first visible packet can misplace an established session in a timeline.
Corroborate Connection Outcomes
A transport summary can establish the connection timing or show a reset near the TLS handshake. A reset by itself gives limited information about the reason. Client application logs may record a trust failure, timeout or fallback, while a server may record its own handshake or policy outcome. Compare both sides before assigning a failure to a certificate, protocol version or intervening network control.
Report the fields together with their source types. A negotiated version in an endpoint log and a visible name in a passive trace can both be reliable while covering different parts of the exchange. Keep unobserved fields blank in the exhibit and explain the coverage in prose. This preserves the distinction between a source that records an empty value and one that never had access to the underlying message.
When a connection is long-lived, a packet time near the event can refer to protected traffic on a TLS session begun earlier. Verify the transport and TLS lifecycles separately from the timing of the suspected operation. If only the long-lived connection is visible, use the time-specific request identifier in an application or proxy log to establish when the operation was recorded.
Recognize a Retry Within One TLS Handshake
A TLS 1.3 server can send a HelloRetryRequest when it needs a different key share or additional information before continuing. The message uses the ServerHello format with a distinctive Random value that a dissector can recognize. The client then sends a second ClientHello within the same handshake. TLS 1.3 HelloRetryRequest
In a hypothetical practice trace from a test web service, frame 12 contains a ClientHello in TCP stream 4. Frame 15 decodes as HelloRetryRequest with a selected group, frame 17 contains a ClientHello with a key share for that group, and frame 19 contains the subsequent ServerHello. Record all four frames under the same transport conversation.
Check that the second ClientHello advances the TCP byte stream. A capture can repeat a dissection label for retransmitted bytes or display a reassembled message on a later frame. Byte sequence and reassembly references let the examiner distinguish a second ClientHello sent in response to the server from another copy of the original bytes.
The sequence documents one handshake that progressed through a retry to a ServerHello. A report that counts ClientHello messages as connections would count this exchange twice. Keep a separate count of transport connections, handshakes and retry messages if the investigation needs to compare connection behavior between two periods.
Separate Early Data Offers From Accepted Requests
TLS 1.3 can carry early application data, known as zero round-trip time or 0-RTT data, when the client has suitable pre-shared key material. The early_data extension in ClientHello signals an offer. The server signals acceptance in EncryptedExtensions. A passive trace may reveal the offer while the server’s decision remains encrypted. TLS 1.3 early data
In a hypothetical practice trace, a client offers early data while reconnecting to a test map service. A termination log for the same connection records that early data was rejected, while a later access log records a GET for /map.json. Preserve the TLS decision and the request entry as two sourced observations.
If an authorized client diagnostic ties the GET to a resend after handshake completion, annotate the request as a post-handshake resend. Without that diagnostic or equivalent request-level linkage, a later GET might be a different request for the same resource. Use the documented connection ID and request correlation fields throughout the exhibit.
An offered extension alone leaves the contents and number of early requests open. A server record of accepted early data would establish a TLS decision and still leave application handling to the application logs. Count observed operations from the service records, keeping their request identifiers and timestamp meanings intact.
Distinguish Legacy Fields and Reserved Values from Negotiation
In TLS 1.3, the ClientHello carries a compatibility version in legacy_version and advertises supported versions in the supported_versions extension. The TLS 1.3 ServerHello selects the version in that extension. Legacy record-header fields also serve compatibility purposes. When an export exposes several fields as version, retain the exact field path so the report shows what each value represents. TLS version negotiation, RFC 8446
In a hypothetical trace, a ClientHello shows legacy_version 0x0303 and a supported_versions list with 0x7a7a, 0x0304 and 0x0303. The decoded ServerHello selects 0x0304. The negotiation selects TLS 1.3. The 0x7a7a value in the offer belongs to Generate Random Extensions And Sustain Extensibility (GREASE), a set of reserved values used to keep peers tolerant of unknown code points. TLS GREASE values and semantics, RFC 8701
Record the selected cipher separately from the offered list and use the protocol registry for unfamiliar values. A log extractor that reports only legacy_version can label the exchange TLS 1.2 even when the selected extension reports TLS 1.3. Explain the discrepancy with field provenance and the decoded ServerHello. If the reply is missing, describe the offers and leave the selected version open.
For practice, compare two authorized traces that differ only in the reserved value displayed. Preserve the raw values, then note why the two observations support the same protocol interpretation. A difference in offer contents alone gives weak evidence for attributing the connection to a specific device or application.
Verify Client Certificate Authentication at the Terminating Hop
TLS 1.3 can request client authentication using a CertificateRequest message. A client can respond with an empty certificate list if it lacks an appropriate certificate. Where it does send a certificate in a nonempty message, CertificateVerify demonstrates possession of the corresponding private key in the handshake. The terminating service’s validation result supplies evidence of whether the offered identity was accepted. TLS CertificateRequest and authentication messages, RFC 8446 CertificateVerify, RFC 8446
In a hypothetical practice export, an organization’s gateway records a client certificate request on handshake G41 and logs an empty client certificate list. On handshake G42 it records a verified client certificate. A mapped service principal appears only for G42 in the gateway’s authentication log. Preserve the handshake identifiers and authentication results with the gateway name and policy in effect.
Check whether the TLS authentication occurred on the client-to-gateway hop or on a gateway-to-origin hop. A certificate presented to the origin by the gateway can identify the gateway’s own configured identity. A request audit row may provide the link from validated client certificate to application principal or policy outcome. Keep any certificate identifiers in a restricted exhibit where necessary.
If the supplied evidence is only a passive TLS 1.3 trace, the relevant certificate messages are protected after ServerHello. Use permitted endpoint diagnostics or the terminator’s own audit records to resolve client authentication. A certificate name alone leaves application permission and individual operation open.
Read TLS Closure Beside Transport and Application Records
The TLS close_notify alert marks the end of TLS messages from the sender. In TLS 1.3, each side can close its own write direction. An underlying TCP close arriving before close_notify leaves the receiver without TLS-level assurance that all sent data was received. A TCP FIN by itself shows transport closure in one direction. TLS closure alerts, RFC 8446
In hypothetical endpoint diagnostics, a client records receipt of close_notify from the server at 16:40:10. A matched TCP capture shows the server-side FIN a few milliseconds later. The authorized application log records a completed response with the expected body length. Show each as a separate row so the reader can distinguish the protected protocol’s closure, the TCP event and the application’s completion.
In another exchange, the capture has a FIN and the client logs unexpected end of file while reading the body. Check which direction shut down, whether the client record covers that connection and whether the missing report covers all application bytes. The endpoint can report the closure symptom, while upstream proxy logs may identify an earlier failure or show that upstream delivery completed.
Where only encrypted packets were collected, an opaque TLS 1.3 record immediately before a FIN cannot by timing alone be identified as close_notify. A bounded finding can describe the visible transport closure, then explain whether authorized endpoint or application evidence supports TLS closure or message completion.