pqcmap logo: an engraving of a tardigrade

Find what a host protects with cryptography, and grade it against the NSA post-quantum advisory.

pqcmap

pqcmap is an open-source command-line tool, written in Go with the standard library only, that grades a system's cryptography against the post-quantum recommendations in the NSA advisory PP-26-4956. It has two grading profiles: pragmatic, which targets widely deployable post-quantum hybrids, and cnsa, which grades against CNSA 2.0 and the CNSA 1.0 interim path.

Pre-release. There is no packaged release yet. Each item below is marked in the current source (written, but not yet in a release) or with the release in which it is planned. Plans can change. See Download for status.

What pqcmap does

  • Grades the TLS and SSH endpoints you name: key exchange groups, protocol versions and certificate keys for TLS; key exchange algorithms, host key algorithms and the version banner for SSH. in the current source
  • Grades SMTP and IMAP servers: whether they offer STARTTLS (smtp:// and imap:// targets), then the same TLS checks on the upgraded connection. in the current source; first release 0.2.0
  • Gives every grade an anchor, the source the grade rests on (the advisory action, CNSA 2.0, CNSA 1.0 or a named reference), and prints per-software fix guidance with pqcmap explain. in the current source
  • Writes a plain text report or a versioned JSON report. in the current source
  • Writes Markdown or Prometheus-format reports, reads targets from a file (--targets), and re-renders a stored JSON report with pqcmap render. in the current source; first release 0.2.0
  • Discovers what a host listens on (discover), including sockets bound to localhost only, and identifies the protocol by a polite banner or handshake exchange, never by port number alone. check then grades what it found. in the current source; first release 0.2.0
  • Audits the configuration behind each service: sshd, Caddy, WireGuard, GnuPG and certificate files. planned for 0.2.0 nginx, Apache httpd, HAProxy, Postfix, Dovecot, OpenSSL and OpenVPN follow. planned for 0.3.0
  • Reports what it could not check. discover and check reports carry an unchecked list and a coverage manifest: which sources were examined, which were skipped and why, and which protocols have no check yet. scan reports have no such manifest. in the current source; first release 0.2.0
  • Discovers remote hosts by reading nmap XML that you pipe in (check --from-nmap -). in the current source; first release 0.2.0

What pqcmap never does

  • It never scans ports. scan probes only the targets you name. discover and check contact only listeners found on this host. With --from-nmap they contact the ports in the nmap file you supply; the scan itself is a scanner you ran yourself.
  • It never sends HTTP. A TLS probe completes handshakes and sends no application data and no ALPN.
  • It never authenticates to a mail server and never sends mail. STARTTLS probes stop after the upgrade exchange.
  • It never attempts SSH authentication. It reads the server banner and the key exchange initialisation message, and performs no key exchange.
  • It never changes anything on the host. The only file it writes is the report you ask for with --out.
  • It never probes port 2019, the Caddy admin API.

Details are on the Security page. Use pqcmap only against systems you own or are authorised to test.

Sample output

Text output of the current source against a local test server. The target name was replaced with a documentation name, example.net; no real host was scanned.

$ pqcmap scan --format text tls://example.net:443
tls://example.net:443  WARN
  warn  tls.certificate.key_p256  Leaf uses ECDSA P-256 [cnsa: fail]
                                  issuer CN: "example.net"
  warn  tls.groups.classical_accepted_alone  X25519 or P-256 accepted alone [cnsa: fail]
                                             accepted alone: X25519, P-256
  warn  tls.versions.tls12_accepted  TLS 1.2 accepted
  pass  tls.groups.default_hybrid  Post-quantum hybrid selected
                                   selected: X25519MLKEM768
  info  tls.groups.no_interim_fallback  P-384 and P-521 both rejected alone
                                        P-384: rejected, P-521: rejected
Run "pqcmap explain <reason>" for what it means and how to fix it.
Summary: 1 target, 0 pass, 1 warn, 0 fail, 0 error

Each line is an outcome, a reason code and a title. The line below the title shows what was observed. Only some warn and fail lines carry a [cnsa: ...] note, which shows how the cnsa profile grades the same finding.

Quick start

Works in the current source. Building it is described on the Download page.

# grade a TLS and an SSH endpoint with the default (pragmatic) profile
$ pqcmap scan tls://example.net:443 ssh://example.net:22

# grade against CNSA and exit 1 on warnings as well as failures
$ pqcmap scan --profile cnsa --fail-on warn tls://example.net

# what does a reason mean, and how do I fix it?
$ pqcmap explain tls.groups.classical_accepted_alone

These are in the current source and first released in 0.2.0:

# check whether mail servers offer STARTTLS, then grade their TLS
$ pqcmap scan smtp://mail.example.net:25 imap://mail.example.net:143

# grade targets listed in a file and write a Markdown report
$ pqcmap scan --targets targets.txt --format markdown --out report.md

# re-render a stored JSON report as Prometheus text, without touching the network
$ pqcmap render --format prom report.json

# inventory what this host listens on, without grading
$ pqcmap discover

# inventory and grade the host you are logged in to (root also reads root-only sources)
$ sudo pqcmap check

# grade what an nmap run found on a host you are authorised to test
$ nmap -sT -oX - 192.0.2.10 | pqcmap check --from-nmap -

News

2026-12-06
The project is now called pqcmap. The tool was developed under the working name pqgrade; that name is already in use by another public project, so it was changed before any release. This site, the commands and the binary name use pqcmap. The code and repository are being renamed to match.
2026-12-06
Project site and mascot. This site and the tardigrade mascot are published ahead of the first release. Nothing is downloadable yet.