Skip to content

Seen pqdoctor in your logs?

If you run a server and found pqdoctor in your logs, someone checked whether your server supports post-quantum key exchange. This page explains what that traffic is.

pqdoctor is a free command-line tool that checks TLS, SSH and mail servers for post-quantum key exchange (ML-KEM). It is run by whoever installed it, from their own machine or CI. There is no central pqdoctor scanner: the traffic comes from the person who ran it, not from pqdoctor.com.

Protocol What you see
HTTP (one plain HEAD / on port 80) User-Agent: pqdoctor/<version> (post-quantum TLS check; handshake-only; +https://pqdoctor.com/scanner/), sometimes with contact: … from the person running it
SSH Client version string SSH-2.0-pqdoctor_<version>
SMTP (STARTTLS) EHLO pqdoctor.invalid
TLS A few ClientHellos that hang up after the server’s first reply. TLS has no field to name the client, so these can only be matched by timing next to the requests above

The checker on Try it, and the one Flarebox can deploy to your own Cloudflare account, runs from Cloudflare’s network and sends only the TLS probes (no HTTP request), one host per check.

Versions up to 0.4.0 send the same User-Agent without the +https://pqdoctor.com/scanner/ link.

  • It reads, it doesn’t attack. Each probe sends a TLS ClientHello and reads only the server’s first reply (ServerHello or alert), the same thing any browser learns when it connects. No exploit, no password guessing, no application data.
  • It’s light. One host costs about 15 short connections, up to about 28 for a server that isn’t post-quantum (plus seven for each other address of the name). Scans default to 4 hosts at a time and at most 2 new hosts a second. Every byte is documented in Probes and wire format.
  • It tells the person running it whether your server negotiates post-quantum key exchange, and if not, why and how to fix it.
  • If the request carries a contact:, that’s the person to ask. Courteous scanners keep an exclude list and will add your domain to it.
  • To block it yourself, match the User-Agent or the SSH client string above at your firewall or WAF, or block the source address. These strings can be changed by whoever runs the tool, so they help with the polite majority, not with someone determined to hide.
  • If you think someone is using pqdoctor to target you, report it to the owner of the source IP address (the abuse contact in its WHOIS record). You can also tell us at hi@kalyangopalam.com. We can’t see or stop other people’s scans, but we want to know about misuse.

Only scan systems you own or have permission to test. Pass --contact so owners can reach you, keep the default pacing, and honour opt-outs with --exclude. See Being a good neighbour.