Open-source TLS scanners tested on known post-quantum servers

In short

Why test a TLS scanner at all?

Organisations moving to post-quantum cryptography need to show which of their servers now use it. In practice that evidence often comes from scanners: tools that connect to a server and print which key-exchange groups it supports. If the scanner is wrong, an audit built on it is wrong too, and without a server whose behaviour is known in advance nobody can tell. The authors say scanners "are rarely tested against servers whose behaviour is known".

A known-answer test (our term for it) fixes that: build servers where the right answer is certain, run the tool, and mark each of its answers right, wrong or missing.

What is hybrid key exchange?

In TLS 1.3, the client and server agree a shared secret through a "group". A hybrid group such as X25519MLKEM768 runs a classical exchange (X25519) and a post-quantum one (ML-KEM-768, standardised in NIST's FIPS 203) together, so the secret stays safe if either one holds. A "pure" ML-KEM group such as MLKEM768 uses only the post-quantum part.

A server that supports a hybrid group does not always use it. The paper's lab shows two cases where a hybrid-capable server gives a client a classical group: one where the server lists a classical group first, and one where it forces a retry to the classical secp256r1. So "what does this server support?" and "what did this client actually get?" are different questions, and a scanner can answer one without the other.

What the lab contains

All twelve endpoints run nginx 1.30.4 with OpenSSL on an isolated Docker network and a lab-only certificate authority. Eleven of the twelve use OpenSSL 3.5.7; the twelfth, a control, uses OpenSSL 3.5.5, a build from before the fix for CVE-2026-2673, with the same configuration as one fixed endpoint.

(Table abridged by us: the paper's Table 1 also lists KX-02-t13, KX-03a and PV-01.)

Six client offers probe each endpoint, using OpenSSL's s_client and Go's crypto/tls. A label counts only if two capture parsers agree and the client's own report matches, in at least two separate executions. Across six recorded runs the lab holds 1,764 handshakes. The authors froze their scoring adapters before reading the main scored output (after a scored pilot they disclose), and captured all 27,387 port-443 connections the scanners made.

How the four scanners scored

The authors ask four accuracy questions per endpoint and score each answer as correct, wrong or abstained. The table gives the paper's primary results under its strict policy, which counts an omitted group as a negative answer (48 cells per tool).

Three points the table hides:

What did the scanners not show?

A further question asked what a defined client would actually obtain (the "P1" offer, a fixed test offer rather than a real browser). Under the authors' strict same-connection rule, no claim from sslscan, testssl.sh or SSLyze could be tied to a connection carrying that offer. None of the 22,845 initial ClientHellos the parser could list exactly matched P1's three ordered offer fields. The authors say this is a property of their rule, "not evidence that the tools cannot report negotiated groups".

Bugs found in the captured traffic

Because every connection was recorded, the authors could inspect what the scanners themselves sent.

Rerunning the lab on sslscan 2.2.4 and a testssl.sh 3.3dev commit confirmed both fixes. One side effect: the authors' pre-set rule discards testssl.sh output after any nonzero exit, and every 3.3dev run exited nonzero for reasons outside key exchange, so its primary view shows 0 correct, 0 wrong and 48 abstained. Counting completed sections instead gives the same 48 correct as before.

Caveats

Terms in plain English

Where things stand

The data, code and evidence are released for byte-for-byte replay: the GitHub repository securagenai/pqc-tls-benchmark-dataset (code Apache-2.0, data CC BY 4.0) and a Zenodo archive. The authors hope scanner developers will use it as a regression suite. Commercial and newer open-source scanners are named as candidates for a later release.

Sources

Sources

Related stories

More from Wi-Fi Wizards

All stories from Wi-Fi Wizards