Pr0-quant: RSA is probably broken, check your servers A new Rust tool called pr0quant scans SSH servers and HTTPS services for post-quantum key exchange, automatically remediates SSH configurations where it can, and writes a report. pr0quant marks a target COMPLIANT only if it offers a hybrid post-quantum key exchange such as mlkem768x25519-sha256 (OpenSSH 9.9 and later, default from 10.0) or sntrup761x25519-sha512@openssh.com (OpenSSH 8.5 and later, default from 9.0), and flags servers as NON-COMPLIANT if they offer no hybrid PQ key exchange or only the withdrawn sntrup4591761x25519-sha512@tinyssh.org. The tool probes servers without credentials by reading SSH_MSG_KEXINIT, then uses authenticated facts such as the installed OpenSSH's ssh -Q kex output to decide whether a config change or an upgrade is needed, and it does not assess TLS signatures because public CAs do not yet issue post-quantum certificates. pr0quant checks whether servers and services use post-quantum key exchange , fixes SSH servers where it can, and writes a report. It is a Rust binary with a terminal UI and headless subcommands, shipped as a Docker image. | HTTPS target details | Settings and themes | |---|---| The screenshots show the test matrix: SSH servers checked from ssh config, two remediated NON-COMPLIANT → COMPLIANT , and HTTPS services found by scan . Both protocols use public-key cryptography in two places: | Where | Quantum risk | What pr0quant does | |---|---|---| | Key exchange SSH KEX, TLS key share | Harvest now, decrypt later : recorded sessions can be decrypted once a large quantum computer exists. | Requires a hybrid post-quantum key exchange classical + ML-KEM or NTRU Prime , so security never drops below today's level. Key-exchange keys are ephemeral, so nothing has to be generated. | | Signatures SSH host keys, TLS certificates | Forgery is only possible while the quantum attacker is live. Nothing is exposed retroactively. | SSH: reported, and if the server's OpenSSH build has a PQ signature type e.g. ssh-mldsa44-ed25519 , a host key of that type is reused or created. TLS: not assessed. Public CAs don't issue PQ certificates yet. | | Target | Compliant key exchange | Not counted | |---|---|---| | SSH | mlkem768x25519-sha256 OpenSSH ≥ 9.9, default from 10.0 , sntrup761x25519-sha512 @openssh.com OpenSSH ≥ 8.5, default from 9.0 | sntrup4591761x25519-sha512@tinyssh.org OpenSSH 7.9–8.4, withdrawn | | HTTPS | TLS 1.3 groups X25519MLKEM768 what browsers use , SecP256r1MLKEM768 , SecP384r1MLKEM1024 | X25519Kyber768Draft00 pre-standard draft, dropped by clients | Each target gets a verdict : | Verdict | Meaning | |---|---| | COMPLIANT | A hybrid PQ key exchange is offered. Under --strict , classical key exchange must be refused as well. | | PARTIAL | PQ is offered, but --strict was requested and classical methods are still accepted. | | NON-COMPLIANT | No hybrid PQ key exchange is offered, or only the obsolete ones. | | UNKNOWN | Unreachable, not SSH/TLS, or the check failed. Not saved, so it's retried next time. | 1. Unauthenticated probe. pr0quant opens a TCP connection, exchanges version banners and reads the server's SSH MSG KEXINIT . That gives the KEX, host key, cipher and MAC lists the server actually offers , independent of any SSH library. The verdict is based on this list alone, so a server can be checked without credentials. 2. Authenticated facts if a key or password works . These decide how a server can be fixed: - OS and package manager /etc/os-release , freebsd-version , init system systemd / FreeBSD rc.d / OpenRC / none ; - sshd binary and config path /etc/ssh or /usr/local/etc/ssh for FreeBSD's openssh-portable , whether sshd config includes sshd config.d/ .conf ; - what the installed OpenSSH supports ssh -Q kex , ssh -Q key versus what is configured sshd -T , run with root / sudo / doas ; - available privilege: root login, sudo password from --sudo-password or passwordless doas . 3. OS and package manager 4. Findings. Is PQ offered, is it preferred listed first , is ML-KEM available, are obsolete methods still offered, and the host key status classical, PQ offered, or a PQ type available but not configured . 5. Remediability , shown in the INFO column and the report:Result When - Already compliant and no PQ host key type left unconfigured config change The installed OpenSSH supports a PQ KEX: a config change fixes it upgrade needed The installed OpenSSH is too old below 8.5 for sntrup, 9.9 for ML-KEM no: … Logged in without root/sudo/doas, or no sshd binary found ? not authenticated Probe only. Supply a key or password for details HTTPS is checked with three kinds of raw TLS ClientHello. There's no TLS library in the way, so a group is reported only if the server really accepts it: | Probe | What it shows | |---|---| | Each PQ group alone , with an empty key share TLS 1.3 only | Which hybrid groups the server supports. A supporting server must answer with a HelloRetryRequest naming that group; one that doesn't sends an alert or closes. No ML-KEM key material is needed. | | Browser-like offer : X25519MLKEM768 + X25519 + P-256 + P-384, X25519 key share, TLS 1.2 + 1.3 | The negotiated TLS version TLS 1.2-only servers can't do PQ , and whether the server prefers PQ: it asks the client to retry with X25519MLKEM768 instead of accepting X25519. | | Classical-only offer | Whether clients without PQ are still accepted used by --strict . | SNI is sent when the target is a host name or --sni NAME . Certificates are not inspected, because TLS 1.3 encrypts them. HTTPS targets are check-only : remediate never changes them see HTTPS targets https-targets-1 under remediation for what to change on the server . pr0quant check --https --host www.example.com one service port 443; --sni NAME, --port P pr0quant add --https --host intranet.local --port 8443 saved; default alias https://intranet.local:8443 pr0quant scan 10.0.0.0/24 192.168.1.10-40 -P 443,8443 find TLS services, check them, save them pr0quant check --kind https only HTTPS targets --kind ssh for SSH only Scanning: - Ranges: CIDR 10.0.0.0/24 , a-b ranges 10.0.0.5-10.0.0.40 or 10.0.0.5-40 , single addresses, IPv6 /108 or smaller and host names. - Ports: 443 and 8443 by default. Change them with -P lists and ranges allowed, e.g. 443,8000-8010 . - Which ports count: every open port that answers a TLS ClientHello becomes a target named https://host:port . Plain HTTP and other services are skipped. - Saved services: found services and their results are saved in the database and appear in later runs --no-save to skip . - Limits: --max-hosts default 4096 caps the range size. --scan-concurrency 128 and --connect-timeout-ms 1500 control speed. - In the TUI: S opens a scan form, and + can add an HTTPS target switch Type with space . Only scan networks you are authorised to scan. docker build -t pr0quant . Interactive UI over every concrete Host in your ~/.ssh/config docker run --rm -it -v ~/.ssh:/ssh:ro -v "$PWD/out:/out" pr0quant One server, headless docker run --rm -v ~/.ssh:/ssh:ro -v "$PWD/out:/out" -e PR0QUANT SUDO PASSWORD \ pr0quant check --host 10.0.0.5 --user admin --accept-new Fix everything that only needs a config change; ask before upgrading packages docker run --rm -it -v ~/.ssh:/ssh:ro -v "$PWD/out:/out" pr0quant remediate Reports are written to /out : pr0quant-report-