Skip to main content

PQScan

Post-quantum readiness scanning for TLS, SSH, IPsec and email, scored against the Australian ASD Information Security Manual.

CI Python 3.11+ License: Apache 2.0

The Australian Signals Directorate (ASD) recommends that Australian organisations have a refined post-quantum transition plan by the end of 2026, have started transitioning by 2028, and have finished by 2030. The standard behind those dates is its Information Security Manual (ISM), and the ISM is what PQScan measures against. Every classification cites the ISM control behind it, and every control number is checked on each run against ASD's machine-readable OSCAL catalog.

PQScan tells you where you actually stand. It connects to your endpoints, reads what they negotiate, and reports each one against the ISM controls that govern it: the control numbers, a risk score, and what to change.

PQScan is an independent project. It is not affiliated with, endorsed by, or produced by ASD.

This is a beta (0.4). Every protocol it supports is exercised against public endpoints with known answers on each run, but it has not been used widely yet. Treat its output as evidence towards your transition plan, not as an assessment, and please report anything it gets wrong.

$ pqc www.ato.gov.au
Only scan systems you own or have permission to test.
Scan www.ato.gov.au? [y/N]: y

 Site             Result      What to do
 ───────────────────────────────────────────────────────────────────────────────
 www.ato.gov.au   Quick fix   Reorder the server's group preference so the
                              stronger group is negotiated by default.

Quick fix = supports post-quantum but does not use it, usually one setting

Full report: reports/www.ato.gov.au-20261121-093000.html

Quick fix means the server already supports a post-quantum key exchange and negotiates a classical one anyway. It is one configuration line from compliant, and no tool I am aware of reports that: a scanner that reads only the negotiated group cannot see it.

Every result is one of six plain verdicts: Ready, Almost ready, Quick fix, Not ready, Unsafe today or Not measured. Add --details for the scores, readiness bands and every finding behind them.

That example is a single TLS handshake against a public website, which is what any browser does on every visit. PQScan still asks first, every time, unless you pass -y.


Why this exists

Most scanners answer "is this TLS configuration good?". PQScan answers a different question: "does this endpoint meet the ISM, and what do I change?"

  • It maps to ASD ISM control numbers. 44 controls across TLS, SSH, IPsec, email and certificates, verified against ASD's published OSCAL catalog on every run. No tool I am aware of maps findings to ISM control numbers.
  • It measures what OpenSSL will not. Modern OpenSSL builds do not offer 3DES, RC4 or EXPORT suites at all, and offer NULL only at security level 0, so a host that speaks only those cannot be reached through Python's ssl module. PQScan builds its own ClientHello and measures them anyway — those are the hosts a readiness report most needs to name.
  • It separates can't from doesn't. A server that supports ML-KEM but negotiates x25519 scores as classical in the tools I have tried. PQScan calls it PQ capable, which is the difference between a morning's work and a procurement cycle.
  • It knows Australia is different. ASD does not recommend hybrid schemes, where NIST, NCSC and several European agencies do. Under the ISM, both halves of the world's default X25519MLKEM768 lose approval after 2030, so adopting the global default commits you to a second migration. Scoring quotes ASD's wording and shows the reasoning.

Install

Requires Python 3.11 or newer. Nothing else, not even OpenSSL.

pipx install pqscan      # or: uv tool install pqscan
pqc example.com

Plain pip install pqscan works too, inside a virtual environment.

From source, for development:

git clone https://github.com/NFH26/pqscan.git
cd pqscan
./pqc setup

Common commands

pqc example.com                        # one site; asks before it scans
pqc example.com --details              # scores, bands and every finding
pqc example.com --discover             # also check the host's mail, SSH and VPN
pqc --input hosts.csv -y               # many hosts, no question (for scripts and CI)
pqc --input hosts.csv -y -o reports/   # every report format: HTML, CSV, JSON, CBOM, SARIF, Markdown

Each run writes one HTML report to ./reports unless you pass -o. pqc scan ... still works exactly as before. Options for CI gates, scope files and rate limits are in Scanning.

Only scan what you are authorised to scan. -y (or --confirm-authorised) answers the permission question for you, so use it only when that is true for every target.

What it measures

Protocol How ISM controls
TLS (all versions) Own ClientHello; negotiated group, capability probe, certificate chain ISM-1139, 1369, 1372, 1373, 1374, 1453, 1553
SSH Unauthenticated KEXINIT read — every algorithm the server accepts ISM-1506, 0471
IPsec / IKEv2 One plaintext IKE_SA_INIT datagram; the responder's chosen transforms ISM-1233, 1771, 1772, 0998, 0999
STARTTLS SMTP, IMAP, POP3, FTP, LDAP, PostgreSQL as TLS
Domain SPF, DMARC, MTA-STS, HSTS via DNS and one HTTPS request ISM-0574, 1183, 1540, 1589, 1424
Certificates Signature and hash algorithms, key sizes, curves, chain validation ISM-0472, 0474, 0475, 0476, 1446, 1759, 1761-1766

DNS over TLS (ISM-2017) and SIP over TLS (ISM-0548) need no extra code — they are TLS on another port, and the port map already knows them.

Documentation

Guide What it covers
Getting started Install, first scan, reading the output
Scanning Host files, protocols, discovery, every flag
Scores and bands How the numbers are built and what they mean
ISM coverage Every control, what is measured, what cannot be
Output formats HTML, CSV, JSON, CBOM, SARIF, Markdown
CI and automation Exit codes, policy gates, GitHub Actions
Architecture How it works, and how to add a protocol

Verifying the tool

A compliance tool that quietly gets something wrong is worse than no tool. Two commands:

pqc test        # unit tests, no network, about ten seconds
pqc selftest    # a real scan of every protocol against endpoints with a known answer

selftest also checks the tool against itself: the scoring invariants, the output formats, and every ISM control number cited, against ASD's catalog — the ISM is reissued quarterly and control numbers are retired. CI and automation has the full list and the offline variant for pre-commit hooks.

What PQScan cannot measure

Some ISM controls are not observable from a network, and PQScan says so rather than guessing: full disk encryption (ISM-0459, 1059), code signing (ISM-1796, 1797), S/MIME version (ISM-0490), IPsec mode and SA lifetime (ISM-0494, 0496, 0498, 1000), and most SSH host configuration. Wi-Fi needs a radio in monitor mode and MACsec is link-local, so neither is reachable from a routed scanner.

An endpoint that could not be measured is reported as not measured, never as a pass.

Licence and attribution

Apache-2.0. Copyright 2026 Nayef Alharbi. See LICENSE and NOTICE.

ISM control identifiers in pqc_scan/rules/ism_controls.txt are extracted from the Australian Signals Directorate's OSCAL catalog, published under CC BY 4.0. This project is not affiliated with or endorsed by ASD.

Metadata

Release files for pqscan 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pqscan 0.5.1
File Size Uploaded Provenance Actions
pqscan-0.5.1.tar.gz 291.4 kB With provenance Details for pqscan-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pqscan 0.5.1
File Interpreter ABI Platform Actions
pqscan-0.5.1-py3-none-any.whl Python 3 none any Details for pqscan-0.5.1-py3-none-any.whl

Total release size: 470.2 kB

Release files / pqscan-0.5.1.tar.gz

Download URL pqscan-0.5.1.tar.gz
Size 291.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ad38be50f85adbc414d6ce0f8e86e7edb72875fe6bd51db33e63c80d527b23e9
BLAKE2b-256 checksum
How to use checksums
6f55e82b8d3fbb114b7f459bacb1fd6855d673c447eff69f36678ce106486816
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / pqscan-0.5.1-py3-none-any.whl

Download URL pqscan-0.5.1-py3-none-any.whl
Size 178.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
602329ebe7c048aaf397a2d79666709c4df0966df57abaf3f154dc701c102ea9
BLAKE2b-256 checksum
How to use checksums
82b04eb3ec3eaf07b00da5f22d7598fd96f0fe575373697d56b10cb7de6524d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for pqscan 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pqscan-0.5.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page