Find encryption quantum computers will break, weak encryption, exposed cloud config and leaked keys. Writes a CycloneDX encryption inventory.
A free post-quantum readiness scanner. It finds encryption that quantum computers will break (RSA, elliptic curve and Diffie-Hellman), weak encryption, exposed infrastructure settings, and leaked keys or passwords in your code and infrastructure config, and with map and cloud, on your own websites, network equipment, cloud accounts and the machine you run it on.
It grades readiness from A+ to F and writes an encryption inventory (a CycloneDX cryptography bill of materials, or CBOM), SARIF for code scanning, and a plan for moving to post-quantum (PQC) methods on NIST's timeline. Use it from the command line or as a GitHub Action.
Free and open source under the Apache 2.0 license. No account and no dependencies. Your code and results stay on your machine; see Anonymized sharing for the one small summary it sends, and how to turn it off.
npx @hardkeel/quantum-scan
Scans the current folder and prints what to fix now and what to plan for:
Hard Keel Quantum Scan · 4 files scanned
Quantum readiness: C (75/100, Hard Keel method v1). Weak encryption or exposed settings hold the grade at C or lower until they are fixed.
Found 2 uses of weak encryption and 1 use of encryption quantum computers will break.
Fix now
payments.py:6 RSA-1024 key
Use 3072-bit keys or larger now, then plan the move to post-quantum methods.
payments.py:10 ECB mode
Switch to AES-256-GCM.
Plan for later
Safe today, but quantum computers will be able to break these. NIST plans to phase them out between 2030 and 2035.
auth.ts:6 ECDH key exchange
Move key exchange to ML-KEM (FIPS 203), or hybrid X25519 + ML-KEM-768 for TLS.
| Option | What it does |
|---|---|
--cbom <file> | Write the encryption inventory as a CycloneDX 1.6 CBOM |
--report <file> | Write the migration report, in the order to fix things |
--badge <file> | Write a quantum readiness badge (SVG) to put on your README |
--format text|json|sarif|cyclonedx|sonar | What to print. SARIF works with GitHub code scanning; cyclonedx prints the encryption inventory (CBOM); sonar writes SonarQube external issues |
--output <file> | Write that output to a file |
--fail-on <list> | Exit with 1 on secret, weak-now, exposed, quantum-vulnerable, increase, policy, or none. Default secret,weak-now,exposed |
--policy <file> | Check results against your own policy file. Without it, .quantum-scan.yml at the top of the scanned folder is used if there is one |
--profile cnsa2 | Also list what NSA's CNSA 2.0 suite doesn't allow, like AES-128, SHA-256, ML-KEM-768 or SLH-DSA. With --fail-on profile, exit with 1 if there is any. Doesn't change the grade |
--baseline <file> | Compare with an earlier run (a CBOM from --cbom, or --format json output) and show what went up or down. With --fail-on increase, exit with 1 if anything quantum-breakable went up |
--quiet | Leave out the closing line about installing on GitHub |
--offline | Send nothing to Hard Keel |
Every scan ends with a grade from A+ to F and a score out of 100. The method is open and versioned: how the score works.
Put the grade on your README with --badge quantum-readiness.svg, or install Hard Keel Quantum Scan on GitHub to keep a live badge current for public repositories.
InsecureSkipVerify, rejectUnauthorized: false, verify=False).x5c entries). JSON Web Keys, JOSE algorithm settings, and Ethereum signatures (EIP-712, EIP-2612 permit, EIP-3009, ecrecover) on secp256k1. TLS key exchange group settings without ML-KEM in nginx, Apache, HAProxy, Caddy, OpenSSL, Envoy, Traefik and Java, and AWS load balancer policies that aren't post-quantum.A comment after code on the same line is left out, so # was RS256 doesn't count as RSA and # TODO: ML-KEM doesn't count as post-quantum work.
It reads code the way it's written, not one line at a time. A key size or algorithm held in a constant is read where it's used (key_size=KEY_BITS), a call spread over several lines is read as one, Python import aliases are followed (RSA as PyRSA), and import lines, type names and regular expressions that only mention an algorithm don't count.
It reads Python, JavaScript and TypeScript, Go, Java, plus Rust, C#, PHP, Ruby, Swift and C or C++ with OpenSSL through community rules, and Terraform and OpenTofu, CloudFormation, Kubernetes manifests, Dockerfiles, and nginx, Apache and HAProxy configs. A plain scan looks at files only. To check live websites and this machine too, use quantum-scan map. To check your AWS, Azure or Google Cloud account, use quantum-scan cloud.
docker save shop/api:1.4 -o api.tar
npx @hardkeel/quantum-scan image api.tar
Scans a saved image offline: docker save or podman save archives, OCI layouts, and unpacked root filesystems, with gzip or zstd layers (zstd needs Node 22.15 or later). Nothing is pulled or run. It applies the layers in order (deleted files stay deleted) and reports:
ENV in the image's build history.