Repository navigation
Releases
Releases · xydac/pqsniff
pqsniff v0.1.1
- The interface is put into promiscuous mode for pqsniff's own socket, so a switch mirror
port works (frames addressed to other machines were dropped by the NIC). Undone on exit.
--no-promisc/-Pskips it; the OpenWrt service uses it. - armv6 build (
arm-unknown-linux-musleabihf) for Raspberry Pi 1, Zero and Zero W. - README: Raspberry Pi install,
cargo install, citation (CITATION.cff). - Published on crates.io.
Downloads
Static binaries, no dependencies. Pick by uname -m:
uname -m |
file |
|---|---|
aarch64 |
pqsniff-aarch64-unknown-linux-musl |
armv7l |
pqsniff-armv7-unknown-linux-musleabihf |
armv6l (Raspberry Pi 1, Zero, Zero W) |
pqsniff-arm-unknown-linux-musleabihf |
x86_64 |
pqsniff-x86_64-unknown-linux-musl |
T=aarch64-unknown-linux-musl
curl -LO https://github.com/xydac/pqsniff/releases/download/v0.1.1/pqsniff-$T
curl -LO https://github.com/xydac/pqsniff/releases/download/v0.1.1/SHA256SUMS
sha256sum -c --ignore-missing SHA256SUMS && chmod +x pqsniff-$T
sudo ./pqsniff-$T -i eth0 -s 30 # OpenWrt: -i br-lan --no-promiscOr with Rust: cargo install pqsniff. Full install steps are in the README.
pqsniff v0.1.0
First release.
pqsniff watches a Linux interface (or reads a pcap file) and writes one JSON line per TLS or QUIC handshake, showing which key-exchange groups each device offered, which one the server picked, and whether the connection is post-quantum (X25519MLKEM768 and friends).
What's in it
- Post-quantum visibility:
offered,key_share,chosen,pq,client_pq, and HelloRetryRequest detection (hrr). - QUIC / HTTP/3: Initial packets are decrypted with the public RFC 9001 keys (v1 and v2), CRYPTO frames reassembled out of order.
- TCP: handshakes reassembled across segments (a post-quantum ClientHello is ~1.8 KB). Common TLS ports in full, plus the first handshake segment on any port.
- JA4 client fingerprints, SNI, ALPN, ECH.
- TLS 1.2 and older: server certificate (issuer, subject, SHA-256 fingerprint, validity) and the ECDHE curve; risk flags numbered like nDPI/netifyd: expiring (29), expired (30), hostname mismatch (31), validity over 398 days (32), no SNI (35), TLS older than 1.2 (36), self-signed (37), weak cipher (41).
- Light: kernel BPF filter keeps bulk traffic out of userspace. On a home router it used about 0.15% of one CPU core and ~0.5 MB of memory.
- Hourly output files (
-d),--help, OpenWrt procd and systemd service files incontrib/.
Downloads
Static binaries, no dependencies. Pick by uname -m:
uname -m |
file |
|---|---|
aarch64 |
pqsniff-aarch64-unknown-linux-musl |
armv7l |
pqsniff-armv7-unknown-linux-musleabihf |
x86_64 |
pqsniff-x86_64-unknown-linux-musl |
T=aarch64-unknown-linux-musl
curl -LO https://github.com/xydac/pqsniff/releases/download/v0.1.0/pqsniff-$T
curl -LO https://github.com/xydac/pqsniff/releases/download/v0.1.0/SHA256SUMS
sha256sum -c --ignore-missing SHA256SUMS && chmod +x pqsniff-$T
sudo ./pqsniff-$T -i eth0 -s 30 # OpenWrt: -i br-lanMIPS routers: build from source with nightly and -Zbuild-std (Rust's MIPS targets are tier 3).
Full install steps (OpenWrt, systemd, offline pcap) and jq recipes are in the README.
Checked against
- RFC 9001 Appendix A QUIC key vectors, a JA4 known answer, and end-to-end tests with synthetic packets (
cargo test). - Live on an OpenWrt-based router against OpenSSL 3.6's own reports (post-quantum, classic, and HelloRetryRequest cases), and badssl.com's expired, self-signed and wrong-host certificates.
Known limits
- Live capture is Linux only; Ethernet interfaces with at most one VLAN tag.
- Certificates only on TLS 1.2 and older, and only on the listed TLS ports.
- QUIC over IPv6 is less tested than IPv4; pcapng isn't read directly.
It records which sites every device on the network talks to. Run it only on networks you own or administer.