A new open-source tool called pqsniff shows which connections on your home or office network already use post-quantum TLS. It runs on a Linux or OpenWrt router, reads each handshake as it passes, and logs whether the connection is protected by a hybrid key exchange such as X25519MLKEM768. The project is released under the MIT license.
Scanners show what a website supports in theory. pqsniff reports what your own devices negotiated in practice.
What pqsniff records
Each connection produces a single JSON record. It lists the key-exchange groups the device offered, the group the server chose, the TLS version, the server name, and a simple true or false flag for post-quantum protection. It also computes a JA4 fingerprint of the client.
On TLS 1.2 connections it goes a step further and reads the server certificate, checking expiry, hostname match and whether the certificate is self-signed.
Only two unencrypted messages are needed, the ClientHello and the ServerHello, so a router can read them without breaking any encryption. Commercial network monitors sell similar visibility as an enterprise feature, but the author built this one from the published RFCs.
How it reads TCP and QUIC handshakes
On the capture side, pqsniff uses a Linux packet socket with a kernel BPF filter that lets only handshake packets through. Bulk traffic such as video is discarded in the kernel before the program sees it.
TCP handshakes need some reassembly. A post-quantum ClientHello is about 1.8 KB, so it spans two packets, and the tool stitches them together before parsing.
QUIC and HTTP/3 are harder, and they matter because roughly half the traffic on the tested network was QUIC. Initial packets are encrypted, but the keys can be derived from public values, as RFC 9001 describes. pqsniff derives them, decrypts the packets and reassembles the CRYPTO frames, which browsers send in a shuffled order on purpose.
After both hellos are parsed, pqsniff discards the buffers for that connection and stores no payload.
What it found on a home network
On the author’s own network, about 78% of connections already used post-quantum TLS. The split by transport was wide: 95% of HTTP/3 connections were post-quantum, against 65% of plain TCP connections.
Phones and browsers propose the hybrid exchange on every connection. Laggards include servers that decline it, some workplace software that never proposes it, and typical smart-home hardware.
A side finding: a security camera was contacting its maker’s cloud by raw IP address, presenting a mismatched certificate that was about to expire.
Install and query
You can install it with cargo install pqsniff or download a static binary from the GitHub releases. A basic run listens on one network interface for a chosen number of seconds. On OpenWrt, the interface is br-lan. It can also write hourly log files when run as a service, or read a saved capture file offline on any operating system.
Because the output is line-based JSON, jq does most of the analysis. One query counts how many connections are post-quantum. Another lists the servers that rejected a post-quantum offer from a client that made one.
Small enough to leave running
- The static binary weighs roughly 470 KB and needs neither libpcap nor tcpdump.
- Targets include 64-bit and 32-bit ARM (so any Raspberry Pi) and x86_64, with no cross-compiling setup.
- Measured on the author’s router, it took around 0.15% of a single core and 0.5 MB of memory.
For testing, the author compared its output with independent references, including the RFC 9001 QUIC key test vectors, a known JA4 result, OpenSSL’s reports on post-quantum, classic and retry handshakes, and badssl.com’s deliberately faulty certificates.
Planned additions
Next on the list is a view mode that renders the stream as a live terminal dashboard. The author also plans ready-made lnav and DuckDB recipes for summarizing the logs.
For anyone tracking how fast post-quantum TLS is spreading, a per-device log is a more direct measure than a scan of public sites. It shows which of your own clients and servers still fall back to classic key exchange.
Source: xydac