kemspotter Check a site

Download

Check your own server

The scanner is free software, and the fix is usually one line

kemspotter is one small program with nothing else to install. It asks a server the first question of a connection, reads the reply and hangs up. It is published under the MIT licence, together with the survey data, for anyone to use, check or build on.

No terminal? The checker at check.kemspotter.com runs the same check from a web page. Type a site's name and read its grade.

It also comes as an extension for Chrome, further down this page.

Download version 0.1.0

The files come from the newest release in the project's repository. The same release has SHA256SUMS, the checksum of every file. Step 7 below shows how to compare.

Unpack it and run it

kemspotter runs in a terminal. There is no installer and nothing is added to your system. The programs are not signed with a paid developer certificate, so the first run needs one extra step on Windows and on macOS.

On Windows

Open PowerShell in the folder the file was downloaded to.

Expand-Archive kemspotter-windows-amd64.zip -DestinationPath kemspotter
cd kemspotter
.\kemspotter.exe example.com

Windows may show a SmartScreen notice the first time. Choose More info, then Run anyway.

On macOS

Open Terminal in the folder the file was downloaded to. On an Intel Mac the file name ends in amd64 where this one says arm64.

tar -xzf kemspotter-macos-arm64.tar.gz
cd kemspotter-macos-arm64
xattr -d com.apple.quarantine ./kemspotter
./kemspotter example.com

macOS refuses a downloaded program that it cannot check with Apple. The third line clears the download mark, and is needed once.

On Linux

On an ARM machine the file name ends in arm64 where this one says amd64.

tar -xzf kemspotter-linux-amd64.tar.gz
cd kemspotter-linux-amd64
./kemspotter example.com

Point it at a server

./kemspotter example.com
./kemspotter --retain-years 25 intranet.example:8443
./kemspotter --json example.com example.org

It follows the site's own redirects first, so you get the server a browser really reaches. Tell it how long your data has to stay secret and it will say how much of that is exposed. A name is looked up the way your machine looks up everything, so servers inside a private network work too.

Read the answer

example.com:443  grade B
----------------------------------------------------------------
  terminator: Cloudflare (high confidence: header Cf-Ray; Server: cloudflare)
  addresses: 2 of the 2 that answered for this name offer a hybrid group
  harvest exposure: none. traffic recorded today is not retroactively decryptable

  key exchange offered
    + X25519MLKEM768         ML-KEM-768 with X25519; RFC 10024. …
    ! x25519                 256-bit curve. …
    ! secp256r1 (P-256)      256-bit curve. …
    …
  findings
    + Post-quantum key exchange available
    ! Certificate chain is not quantum-resistant
    …

What the scanner printed for example.com when this page was written, shortened. The full output also lists the certificate chain and explains each finding.

The grade is mostly about one question. Can traffic recorded today be opened later?

A
A hybrid key exchange, and nothing flagged in the certificate chain. Recorded traffic stays closed.
B
A hybrid key exchange, with flagged algorithms in the chain. Recorded traffic stays closed.
C
TLS 1.3 without a hybrid exchange a visitor can count on. This is usually one configuration change away.
D
TLS 1.3 with no hybrid exchange in use, and a flagged curve among the classical groups on offer.
F
No TLS 1.3, so no hybrid exchange is possible until the protocol is upgraded.

A server that accepts the hybrid group and then prefers a classical one when a browser offers both is graded as if it had none. So is a name where only some of its addresses offer it.

Fix what it finds

nginx, built against OpenSSL 3.5 or newer
ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1;
Apache httpd, built against OpenSSL 3.5 or newer
SSLOpenSSLConfCmd Groups X25519MLKEM768:X25519:prime256v1
HAProxy
ssl-default-bind-curves X25519MLKEM768:X25519:secp256r1
Anything on OpenSSL 3.5 with default settings

Already on. If your server still lacks it, look for a list of curves or groups pinned in the configuration years ago. That line is the usual reason.

Go 1.24 or newer, and Caddy 2.10 or newer

Already on. A Go program that sets tls.Config.CurvePreferences itself needs tls.X25519MLKEM768 added to the front of that list.

Behind a CDN or a cloud load balancer

Check the TLS policy for your site. Most CDNs have it on for every customer. Many load balancers only offer it under a named policy that you have to select, and a minimum TLS version below 1.3 on an old policy can hold everything back.

Then run the scanner again. If the address list says only some of your addresses offer the exchange, the change has reached part of your fleet.

Keep it fixed

A setting that was right can be lost with the next change of server, CDN plan or load balancer policy. Run the scanner on a schedule, or as a step before a release, and let it stop the job.

./kemspotter --fail-below B www.example.com api.example.com

The program ends with status 0 when every server grades B or better. It ends with status 1 when one grades lower or cannot be measured, and names that server. The project's README has a weekly job for GitHub Actions to copy.

Repeat the survey

curl -o tranco.csv https://tranco-list.eu/download/94LZ2/1000000
./kemspotter --sample tranco.csv --regional \
         --per-band 250 --seed 20261203 \
         --markdown report.md --json-out rows.json

The ranked list and the seed are published, so the random draw can be repeated exactly. Every row behind every number on this site is published too, with a number in place of the site's name, so the analysis can be redone without scanning anyone again. The full report is PQC-ADOPTION.md in the repository.

To survey a list of your own, write one domain,sector pair on each line of a file and pass it with --survey. Add --hide-names before you publish what it finds.

Check the download

Each release carries a file called SHA256SUMS with the checksum of every archive. Download it into the same folder and compare before you run anything.

Linux

sha256sum --ignore-missing -c SHA256SUMS

macOS

shasum -a 256 --ignore-missing -c SHA256SUMS

Windows, in PowerShell

Get-FileHash kemspotter-windows-amd64.zip
Select-String kemspotter-windows-amd64.zip SHA256SUMS

On Linux and macOS the answer should end in OK. On Windows the two lines should show the same string of letters and digits, whatever the capitals.

Or build it yourself

The program is written in Go and uses nothing beyond Go's standard library. With Go 1.23 or newer:

git clone https://github.com/kemspotter/kemspotter
cd kemspotter
go build -o kemspotter ./cmd/kemspotter

The source and the survey data are at https://github.com/kemspotter/kemspotter.

A release is built the same way on every machine, so two builds of the same source with the same version of Go give the same bytes. go run ./tools/release makes the archives and their checksums.

Or check from your browser

kemspotter also comes as an extension for Chrome. Press its button and it grades the site in the tab you are on. A switch in it checks every site you visit, and that switch is off until you turn it on.

Fourteen seconds, without sound. The extension checks www.nitinjaiswal.com. Its button is pressed once, the checker is asked, and the answer is grade A with the key exchange the site agreed to. Then the switch for checking every site is turned on. The site and the extension's panel are shown as Chrome drew them. The window around them, the pointer and the captions were drawn for the video.

Install it

The extension is not in the Chrome Web Store. Until it is, you load it from the source, which takes about a minute. It works in Chrome, and in Edge and Brave, which are built on it.

  1. Open the repository on GitHub. Choose Code, then Download ZIP, and unpack the file.
  2. In Chrome, open chrome://extensions.
  3. Turn on Developer mode, at the top right of that page.
  4. Choose Load unpacked and pick the extension folder inside the folder you unpacked.
  5. Press the puzzle piece in the toolbar and pin kemspotter, so that its button stays in view.

Chrome loads the extension from that folder each time it starts, so keep the folder where it is.

The extension's source, and each permission it asks the browser for, are in its folder on GitHub.

Give it a checker

An extension cannot send the hand-built hellos the check is made of. So it asks a kemspotter checker about the site and shows the answer. The first time you open it, it asks for the address of a checker. The program on this page is one. Start it this way.

kemspotter --serve 127.0.0.1:8080

Then give the extension http://127.0.0.1:8080/ and press Save. Chrome asks once whether the extension may reach that address.

What it sends

The name of the site, such as www.example.com, and nothing else. It never reads a page, a path, a cookie or anything you type. With the switch off, a name is sent only when you press the button. With the switch on, the name of every https site you open is sent. That includes a site inside a company network whose name looks public.