Sample captures, TLS

TLS ClientHello with SNI

A TLS 1.3 ClientHello for login.badexample.net.

Packets
8
Duration
0.084 s
Size
679 bytes
Protocols
TCP, TLS
License
CC0

What it shows

A client opens a TLS connection and sends its ClientHello with the server name login.badexample.net. The capture ends there.

Suricata reads the name with tls.sni. Snort 3 rules match it in the raw bytes of the handshake.

Rules for this capture

Suricata 8 and 7

Try these rules
alert tls any any -> any any (msg:"TLS to login.badexample.net"; tls.sni; content:"login.badexample.net"; bsize:20; sid:1000001; rev:1;)
alert tcp any any -> any 443 (msg:"TLS to login.badexample.net"; flow:established,to_server; content:"|16 03|", depth 2; content:"login.badexample.net"; sid:1000001; rev:1;)

Packets

No.TimeSourceDestinationProtocolInfo
10.000192.0.2.10:50102198.51.100.20:443TCPSYN
20.012198.51.100.20:443192.0.2.10:50102TCPSYN ACK
30.024192.0.2.10:50102198.51.100.20:443TCPACK
40.036192.0.2.10:50102198.51.100.20:443TCPPSH ACK, TLS ClientHello
50.048198.51.100.20:443192.0.2.10:50102TCPACK
60.060192.0.2.10:50102198.51.100.20:443TCPFIN ACK
70.072198.51.100.20:443192.0.2.10:50102TCPFIN ACK
80.084192.0.2.10:50102198.51.100.20:443TCPACK

More TLS samples