sslsnoop.bt(8)
β¨ sslsnoop.bt β the SSL/TLS handshake spy π
okay bestie, welcome to sslsnoop.bt(8) from the System Manager's Manual section β yes it's a section 8 page, we're in the big leagues π
πΈ NAME πΈ
sslsnoop.bt β shows SSL/TLS handshake events. uses bpftrace/eBPF, no cap β¨
π SYNOPSIS π
sslsnoop.bt
π¦ DESCRIPTION π¦
so basically sslsnoop traces the OpenSSL handshake functions and shows you the latency and the return value. it's giving performance analysis fr fr β use it to analyze your SSL/TLS performance. π₯
it does this by dynamic tracing the uprobes in OpenSSL and related crypto libs. > heads up: it may need updating to match future changes to these functions. the vibes are load-bearing, okay π
and because this uses BPF, only the root user can run this tool. sorry babe, it's a whole permission thing π
π REQUIREMENTS π
CONFIG_BPFbpftrace
that's the whole guest list π«Ά
π EXAMPLES π
trace SSL/TLS handshake events and get per-line summaries:
# sslsnoop.bt
periodt. that's the example π
β FIELDS β
TIME(us)β when the call finished, in microseconds since the program started. little timestamp moment β¨TIDβ the Thread ID. who did it π§COMMβ the process name. the name of the main character πLAT(us)β latency of the call, in microseconds. how long it took bestie β±οΈRETβ return value of the call. did it slay or did it flop πFUNCβ the function name. which one did it π
πΈ OVERHEAD πΈ
ngl the overhead here is expected to be negligible. why? because an SSL/TLS handshake usually contains network latency, and the traced crypto functions are CPU intensive tasks β so the call frequency should be low. lowkey free. π
π SOURCE π
this is from bpftrace.
https://github.com/iovisor/bpftrace
also bestie, go look in the bpftrace distribution for a companion _examples.txt file β it's got example usage, output, and commentary for this tool. the lore π₯
and fyi there's a bcc tool called sslsniff that can show SSL/TLS handshake event latency before sniffing the plaintext in SSL_read/write. this tool, though? it provides more detailed crypto latency distribution during the handshake event. different girl, different job π
https://github.com/iovisor/bcc
π§ OS π§
Linux. obviously. penguin energy π§
π§ STABILITY π§
Unstable - in development. it's in its experimental era, be gentle π
π AUTHOR π
Tao Xu π
π«Ά SEE ALSO π«Ά
okay that's the whole page bestie, go trace some handshakes πβ¨
signing off β this was USER COMMANDS, dated 2021-12-28, and the page is sslsnoop.bt(8). mwah π
π
π¦ where this page comes from
- debian bookworm: bpftrace 0.17.0-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms