Inspecting Unencrypted Handshake Metadata, Flow Timing, Byte Ratios & Baseline Deviations Without Breaking End-to-End Encryption
With HTTPS, TLS 1.3, and encrypted management channels used across almost all network traffic, payload inspection alone cannot read application bodies. Encrypted Traffic Analysis (ETA) and behavioral Network Detection & Response (NDR) address this by examining handshake metadata, certificate attributes, packet timing, and flow volume baselines to identify anomalous communication patterns.
| Signal Category | Observable Attributes | Detection & Triage Value |
|---|---|---|
| TLS Handshake & Certificates | SNI, TLS version, cipher/extension profile, issuer/subject, validity window, validation status. | Highlights self-signed or newly issued certificates, mismatched hostnames, or unusual SNI patterns. |
| Connection Periodicity | Inter-arrival intervals, jitter, recurring connection counts over time windows. | Helps distinguish regular check-in intervals from sporadic or user-driven browsing traffic. |
| Volume & Directionality | Origin vs. responder byte/packet counts, session duration, transfer bursts. | Surfaces large outbound encrypted transfers or asymmetric sessions that warrant closer review. |
| Host & Peer Novelty | First-seen internal-to-external pairs, rare destination ports, unusual internal-to-internal paths. | Reduces alert fatigue on chatty routine services while spotlighting atypical communication graphs. |
jq -c '{ts, uid, src: ."id.orig_h", dst: ."id.resp_h", dst_p: ."id.resp_p", server_name, version, validation_status}' \
ssl.log | head -n 20
{"ts":1795679102.41,"uid":"C8x92kLmNpQrStUvWx","src":"10.10.24.55","dst":"198.51.100.72","dst_p":443,"server_name":"cdn-sync-check.example","version":"TLSv12","validation_status":"self signed certificate in certificate chain"}
{"ts":1795679108.19,"uid":"C9p14rTzAbCdEfGhIj","src":"10.10.14.22","dst":"93.184.216.34","dst_p":443,"server_name":"www.example.com","version":"TLSv13","validation_status":"ok"}
jq -c 'select(.validation_status != null and (.validation_status | startswith("ok") | not)) |
{ts, uid, src: ."id.orig_h", dst: ."id.resp_h", server_name, validation_status}' \
ssl.log
{"ts":1795679102.41,"uid":"C8x92kLmNpQrStUvWx","src":"10.10.24.55","dst":"198.51.100.72","server_name":"cdn-sync-check.example","validation_status":"self signed certificate in certificate chain"}
{"ts":1795679421.88,"uid":"C2n77vWxYzKlMnOpQr","src":"10.10.18.90","dst":"203.0.113.44","server_name":"internal-gw.local","validation_status":"unable to get local issuer certificate"}
jq -c 'select(.server_name == null or .server_name == "") |
{ts, uid, src: ."id.orig_h", dst: ."id.resp_h", dst_p: ."id.resp_p", version}' \
ssl.log
{"ts":1795679510.12,"uid":"C5w33mNbVcXzAsDfGh","src":"10.10.12.64","dst":"203.0.113.88","dst_p":443,"version":"TLSv12"}
{"ts":1795679804.67,"uid":"C7q88pOiUyTrEwQaSd","src":"10.10.12.64","dst":"203.0.113.88","dst_p":8443,"version":"TLSv12"}
jq -r '[."id.orig_h", ."id.resp_h", ."id.resp_p", (.server_name // "-")] | @tsv' ssl.log | \
sort | uniq -c | sort -nr | head -n 20
142 10.10.24.55 198.51.100.72 443 cdn-sync-check.example
64 10.10.14.22 93.184.216.34 443 www.example.com
19 10.10.12.64 203.0.113.88 443 -
jq -c 'select(."id.resp_p" == 443 and ((."orig_bytes" // 0) > 10485760)) |
{ts, uid, src: ."id.orig_h", dst: ."id.resp_h", duration, orig_bytes, resp_bytes}' \
conn.log
{"ts":1795680120.04,"uid":"C3e44rTyUiOpLkJhGf","src":"10.10.30.12","dst":"198.51.100.120","duration":48.62,"orig_bytes":28450912,"resp_bytes":18420}
import json
timestamps = []
with open("conn.log") as f:
for line in f:
rec = json.loads(line)
if rec.get("id.orig_h") == "10.10.24.55" and rec.get("id.resp_h") == "198.51.100.72":
timestamps.append(float(rec["ts"]))
timestamps.sort()
deltas = [round(timestamps[i] - timestamps[i - 1], 2) for i in range(1, len(timestamps))]
print("Connection count:", len(timestamps))
print("Inter-arrival deltas (sec):", deltas[:20])
Connection count: 142
Inter-arrival deltas (sec): [60.02, 59.98, 60.05, 60.01, 59.95, 60.03, 60.0, 60.04, 59.97, 60.01]
jq -c '{id, certificate.subject, certificate.issuer, certificate.not_valid_before, certificate.not_valid_after}' \
x509.log | head -n 15
{"id":"F4a91bC2dE3fG4h5I6","certificate.subject":"CN=temp-node-01","certificate.issuer":"CN=temp-node-01","certificate.not_valid_before":1795478400,"certificate.not_valid_after":1798156800}
{"id":"F9z88yX7wV6uT5s4R3","certificate.subject":"CN=www.example.com","certificate.issuer":"CN=DigiCert Global G2 TLS RSA SHA256 2020 CA1","certificate.not_valid_before":1770000000,"certificate.not_valid_after":1801536000}
jq -r '[."id.resp_h", ."id.orig_h"] | @tsv' ssl.log | \
sort -u | awk '{dst_srcs[$1] = (dst_srcs[$1] ? dst_srcs[$1] "," : "") $2; count[$1]++}
END {for (d in count) if (count[d] == 1) print count[d], d, dst_srcs[d]}'
1 198.51.100.72 10.10.24.55
1 203.0.113.88 10.10.12.64
1 198.51.100.120 10.10.30.12
tshark -r traffic.pcap -Y "tls.handshake.type == 1" \
-T fields -e frame.time -e ip.src -e ip.dst -e tls.handshake.extensions_server_name
Nov 26, 2026 08:45:02.410291000 IST 10.10.24.55 198.51.100.72 cdn-sync-check.example
Nov 26, 2026 08:45:08.191042000 IST 10.10.14.22 93.184.216.34 www.example.com
TARGET_IP="10.10.24.55"
jq -c "select(.\"id.orig_h\" == \"$TARGET_IP\") | {ts, uid, query, qtype_name, answers}" dns.log
{"ts":1795679102.18,"uid":"D1m22nB3vC4xZ5lK6j","query":"cdn-sync-check.example","qtype_name":"A","answers":["198.51.100.72"]}
Select a network behavior scenario below to review the encrypted traffic signal and recommended investigation workflow: