PQScan
Post-quantum readiness scanning for TLS, SSH, IPsec and email, scored against the Australian ASD Information Security Manual.
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 scan www.ato.gov.au -y
Endpoint Version Key exchange Status Conf risk Auth risk
─────────────────────────────────────────────────────────────────────────────────────────────────────
www.ato.gov.au:443 tls TLSv1.3 x25519 (can: X25519MLKEM768) 3 PQ capable 80 55
Status: 3 supports it but does not use it
Risk 0 = already meets the profile, 100 = worst. Lower is better.
Recommendations
# Effort Do this Applies to
1 config Enable a post-quantum key exchange. On TLS 1.3 add ... www.ato.gov.au:443 (tls)
2 config Reorder the server's group preference so the strong... www.ato.gov.au:443 (tls)
3 certificate At next renewal, move to the P-384 curve. www.ato.gov.au:443 (tls)
Read the Status column first. 3 PQ capable 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.
That example is a single TLS handshake against a public website, which is what any browser does
on every visit. Measuring an estate is different, and PQScan will not do it without
--confirm-authorised.
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
sslmodule. 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
X25519MLKEM768lose 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 doctor
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
# one endpoint
pqc scan example.com -y
# find what a host is running, then measure every service on it
pqc scan example.com -y --discover
# a whole estate, with every report format
pqc scan --input hosts.csv -y -o reports/
# a specific protocol, without writing a host file
pqc scan example.com -y --protocol domain
pqc scan vpn.example.com:500 -y
# check the tool itself against endpoints with a known answer
pqc selftest
-y is short for --confirm-authorised. It is deliberately required: only scan what you are
authorised to scan.
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.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pqscan-0.4.1.tar.gz | 279.7 kB | With provenance | Details for pqscan-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pqscan-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for pqscan-0.4.1-py3-none-any.whl |
Total release size: 452.9 kB
Release files / pqscan-0.4.1.tar.gz
| Download URL | pqscan-0.4.1.tar.gz |
|---|---|
| Size | 279.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bdd99d8dc766470d24c20472c8233117df6279c85412b8bad76306b13eff8cb9
|
|
BLAKE2b-256 checksum How to use checksums |
7261bc2497642a9c824fa991b721376754e61488adfe1e0680e9914e182fbf66
|
| 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 logRelease files / pqscan-0.4.1-py3-none-any.whl
| Download URL | pqscan-0.4.1-py3-none-any.whl |
|---|---|
| Size | 173.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eb101ce44ef8fdd4db80a25af287145b1dcbb029ebe381a6f51aead2eef8ef0f
|
|
BLAKE2b-256 checksum How to use checksums |
fb4acf89febe41e4c1a458f57fd30516bb9295d83e5acb24aeeb367f7bea2829
|
| 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 logSecurity for pqscan 0.4.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.
Attestation for pqscan-0.4.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 logA 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.