# pqprobe Check whether a TLS server accepts post-quantum key exchange. One file, standard library only. ``` $ python3 pqprobe.py cloudflare.com github.com api.openai.com cloudflare.com: accepts post-quantum key exchange (X25519MLKEM768) github.com: classical only (TLS 1.3) api.openai.com: accepts post-quantum key exchange (X25519MLKEM768) ``` Results above are from 3 December 2026 and will change as servers are upgraded. ## How it works The probe sends a single TLS 1.3 ClientHello that: - lists only post-quantum groups in `supported_groups`: X25519MLKEM768, SecP256r1MLKEM768, SecP384r1MLKEM1024, MLKEM768 and MLKEM1024 - sends a `key_share` extension with no entries A server that supports one of those groups has to answer with a HelloRetryRequest that names it. A server that supports none of them answers with an alert. Because the probe stops at the first reply, it never needs to generate an ML-KEM key, which is why there are no dependencies. A host that refuses is tested once more with an ordinary ClientHello (classical groups, TLS 1.2 allowed). It is reported as `classical only` only if that works. Otherwise it is reported as `no-tls`, so a broken or misrouted host is not counted as a classical one. ## Usage ``` python3 pqprobe.py host [host ...] python3 pqprobe.py --json host [host ...] ``` Needs Python 3.8 or newer. It connects to port 443 and sends at most two ClientHello messages per host. You can cross-check any result with OpenSSL 3.5 or newer: ``` openssl s_client -connect example.com:443 -servername example.com -groups X25519MLKEM768 `. ## Limits - A classical-only host is not vulnerable today. This measures readiness for "record now, decrypt later", nothing else. - Most API host names were guessed as `api.`. A guessed host may not carry production traffic. That is why the data has no names. - One run, from one location in India. A host served from several networks can answer differently elsewhere, and at least one host changed its answer within the same day. - Key exchange only. The probe says nothing about certificates, signatures, outbound connections or stored data. - The list leans towards startups, so the totals describe this list and not the internet. - The result usually reflects the CDN or load balancer in front of a host, not the company's own code. ## Please be considerate The probe is one or two small handshakes per host, the same as any client connecting. If you scan many hosts, keep the rate low. ## License MIT. Corrections and issues are welcome.