@hardkeel/quantum-scan
v0.8.0
Published
Post-quantum readiness scanner: finds encryption quantum computers will break (RSA, ECC, DH), weak encryption, exposed infrastructure settings and leaked keys in code, config, websites, networks, servers and AWS, Azure and Google Cloud accounts. Writes a
Downloads
2,151
Maintainers
Readme
Hard Keel Quantum Scan
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 to use and source available under the PolyForm Shield 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.
Run it
npx @hardkeel/quantum-scanScans 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.Options
| 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 |
Quantum readiness score
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.
- A+: nothing to fix, and post-quantum encryption (ML-KEM, ML-DSA, SLH-DSA) is already in use.
- A: nothing to fix now, or only signatures left to move before 2035.
- B: key exchange that quantum computers will break, due to move by 2030.
- C or lower: weak encryption or exposed settings to fix now. A leaked key or password holds the grade at D or lower.
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.
What it looks for
- Encryption quantum computers will break: RSA, elliptic-curve (ECDSA, ECDH, Ed25519, X25519) and Diffie-Hellman.
- Weak encryption: MD5, SHA-1, DES, 3DES, RC4, ECB mode, DSA, RSA under 2048 bits, TLS 1.0 and 1.1.
- Exposed infrastructure settings: storage or databases open to the public, admin and database ports open to the whole internet, encryption at rest turned off, unencrypted traffic allowed, and certificate checks turned off, in config and in application code (
InsecureSkipVerify,rejectUnauthorized: false,verify=False). - Weak TLS in config: old TLS versions and weak cipher suites in nginx, Apache, HAProxy, load balancer and CDN settings.
- Keys and certificates in files: PEM certificates, certificate requests and public keys, read for their real algorithm, curve and size (including ones pasted into JSON or code strings and JWKS
x5centries). 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. - Encryption libraries you depend on: package.json, requirements.txt, pyproject.toml, go.mod, pom.xml, build.gradle, Cargo.toml, Gemfile, composer.json and .csproj are read for JWT, JOSE, TLS, SSH, wallet and post-quantum libraries, with what each one offers. Only runtime dependencies count. They're listed in the inventory and the CBOM (with package URLs) and never change the grade.
- Wallet addresses: Ethereum account addresses in code and settings are listed to check, since an account someone holds a key for is controlled by secp256k1.
- Hash-based signature parameters: LMS and XMSS parameter sets that SP 800-208 doesn't approve, or that use SHA-256 where a SHAKE256 set gives more margin, are listed as worth a look. They never change the grade.
- Leaked keys and passwords: private keys, cloud and API tokens, passwords in connection strings, Terraform, CloudFormation, Dockerfiles and Kubernetes Secrets. They are masked in all output.
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.
Container images
npx @hardkeel/quantum-scan image ghcr.io/shop/api:1.4Pulls the image straight from its registry, read-only, using the docker login or podman login already on your machine (credential helpers included). No Docker daemon is needed and nothing in the image is run. Every manifest and layer is checked against its digest, and what each layer gave is cached by that digest, so a second image on the same base only reads its own layers (--no-cache turns that off). Multi-platform images default to linux/amd64; pick another with --platform linux/arm64.
A saved image works too, 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).
docker save shop/api:1.4 -o api.tar
npx @hardkeel/quantum-scan image api.tarIt applies the layers in order (deleted files stay deleted) and reports:
- System encryption packages from the Debian, Ubuntu or Alpine package list: OpenSSL, OpenSSH, Java, Go, GnuTLS, NSS and others, with whether that version can do post-quantum key exchange.
- Encryption built into programs that no package list shows: OpenSSL compiled in statically or shipped as the app's own
libssl.so, BoringSSL, AWS-LC, LibreSSL, Mbed TLS, wolfSSL, Libgcrypt, libsodium, liboqs and Rust's ring, found by the version text each library compiles in. A program that links to the system's OpenSSL isn't counted twice. - Go programs built into the image, read for the Go version and modules they were built with. Go 1.24 and later use hybrid ML-KEM by default.
- Java keystores (JKS, JCEKS and PKCS #12) left in the image: which entries hold private keys, and the key type and size of the certificates stored with them. No password is ever tried.
- Settings in the image: sshd and OpenSSL config, nginx, Apache and HAProxy, host keys and certificates.
- Package signing keys the distribution ships (Alpine's keys and the OpenPGP keyrings apt and rpm use), counted by type and size, post-quantum ones included.
- Your application code and keys or passwords left in any layer, and secrets set with
ENVin the image's build history.
It takes the same options as a folder scan, so --cbom, --format sarif and --fail-on work the same way.
How accurate it is
Measured, and repeatable with one command. On a labeled corpus of 104 findings with many look-alike negatives, it reports 102 of them and nothing wrong. On 14 public repositories at pinned commits, 206 of the 217 findings it reports are right (94.9%), each one labeled by hand. The method, the caveats and every wrong finding are in docs/ACCURACY.md; run it yourself with npm run bench and npm run bench:real.
Checking a release
Every release is built and signed by this repository's release workflow, with npm provenance and Sigstore build attestations for the package, its SBOM and the built Action files. No long-lived signing keys exist. To check one:
npm audit signatures
gh attestation verify hardkeel-quantum-scan-<version>.tgz --repo Hard-Keel/quantum-scan-cliMore in docs/VERIFYING.md.
Encryption map
npx @hardkeel/quantum-scan mapChecks more than code, one area at a time, and asks before each one. For every area it says what it will touch, what it reads and what it never does. The answer is no unless you type yes.
Code and config: the same checks as a plain scan.
Websites and public services: the encryption your sites, APIs and SSH servers offer, from about six normal connections each, a quarter second apart. It never logs in or sends attack traffic. It checks only domains you've proved are yours, with one DNS record that covers the domain and everything under it:
npx @hardkeel/quantum-scan prove example.comJust want to know whether a site offers quantum-safe TLS?
quantum-scan tls example.com api.example.com:8443makes two ordinary handshakes with each host you name (up to 20) and reports whether hybrid ML-KEM key exchange was agreed, plus the certificate's key. For SSH, namessh://git.example.com: it reads the key exchange and host key methods the server announces before any login, and sends nothing but a client banner. Add--require-pqto exit with 1 if any host doesn't offer it, or--cbom <file>for the result as a CBOM. It contacts only the hosts you list and sends nothing to Hard Keel.Not sure which hostnames you have?
quantum-scan hosts example.comlists the names under your domain from public certificate logs (crt.sh), including old APIs and staging sites people forget. It reads the public log only and contacts none of the hosts; paste the list intomapto check them. Add--allfor names seen only on certificates that expired in the last year, or--json.For each proved website that answers,
mapalso reads its sign-in setup, if it has one, and reports how its tokens are signed: the OpenID Connect discovery document at/.well-known/openid-configurationand its signing keys, or SAML metadata if you list the metadata URL (for examplehttps://adfs.example.com/FederationMetadata/2007-06/FederationMetadata.xml). RSA and ECDSA signatures are quantum-breakable, and SAML signing certificates tend to live for years, so they rank high. Unsigned tokens (none), RSA keys under 2048 bits and SHA-1 signatures are flagged as broken now. Keys hosted on a domain you haven't proved are not fetched.Network and connected equipment: routers, switches, printers, cameras, storage boxes and smart devices on your own network. For each address it checks whether about 30 common ports answer, reads the title of any web page they serve and the certificate on secure admin pages, and reads the router's list of automatic port forwards (UPnP) if it publishes one. It flags Telnet and plain FTP, open remote desktop, VNC and remote support tools, devices still on their setup page, admin pages without encryption or with the factory certificate, open print ports, camera and recorder ports, unencrypted MQTT, open databases and Docker, and router forwards from the internet. It never logs in, tries a password, sends commands to equipment or changes a setting. Only private address ranges this computer is on (or other segments of your own network that you confirm), at most 1,024 addresses, one connection at a time per device. List fragile equipment, like older industrial or medical controllers, under
excludeand it's never touched:"network": { "ranges": ["192.168.1.0/24"], "routed": ["192.168.20.0/24"], "exclude": ["192.168.1.250"] }This machine: SSH server settings and host keys, OpenSSL settings, certificates on disk, and on Windows the TLS settings and machine certificate store. Read only. It changes nothing and never reads private key files.
Two more parts of the report aren't scans:
- Who can read your cloud data: where your Terraform or CloudFormation stores data in cloud storage, databases, disks or backups with keys the provider holds, or with your key in the provider's key service. Those keys protect against a stolen disk, not against the provider, someone working there, or a legal demand made to them. For data no third party should be able to read, it recommends encrypting before upload or keeping the keys in an external key store you hold. Listed as advice, not scored.
- People and process: 18 optional yes/no questions about what no scan can see: phishing and social-engineering training, call-back checks on payment and password requests, multi-factor sign-in, admin accounts, leavers, vendor access, default passwords, firmware, printer job storage, guest and payment network separation, containment, sandboxing, cloud keys, backups, a breach plan and logs. Your answers get their own score next to the technical findings. They're saved in
quantum-scan-map/people.json, kept out of the scope file, and never sent anywhere.
Results get the same readiness grade as a code scan, and are ranked by when to act: broken now, at risk from data recorded now and read later, long-lived signatures, then the rest. Each finding is also rated high, medium or low: internet-facing systems and keys that must stay trusted for years come first, short-lived signatures inside your own systems last. The map is written to quantum-scan-map/ as map.html (a report you can open in any browser and save as a PDF), map.json, a CycloneDX CBOM (map.cbom.json), the findings as SARIF (map.sarif.json, for security tools that read SARIF; code findings point at their file and line) and activity.log, which lists every connection and every file read, with the time and the reason. Nothing leaves your machine except the summary below.
For pipelines, save your answers to quantum-scan.scope.json when asked, then run quantum-scan map --scope quantum-scan.scope.json. It checks only what the file lists. Add --fail-on broken to fail the build when anything is broken now.
Cloud accounts
npx @hardkeel/quantum-scan cloud --provider awsReads the encryption settings of your AWS, Azure or Google Cloud account through the provider's own command line tool (aws, az or gcloud) and the sign-in already on your machine, including profiles and single sign-on. It makes only list, describe, get and show calls, from a fixed list built into the tool. It never creates, changes or deletes anything, never uses a key, never reads secrets or private keys, and never asks for, stores or sends credentials.
- AWS: KMS keys (RSA and elliptic-curve signing and encryption keys, ML-DSA keys), ACM and uploaded IAM certificates (key type, size, expired certificates still in use), and Private CA certificate authorities (including ML-DSA). TLS on Application, Network and Classic Load Balancers (old TLS versions, weak ciphers, plain HTTP with no redirect, and whether key exchange is post-quantum with
ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09), API Gateway custom domains and REST APIs (including the post-quantumSecurityPolicy_TLS13_1_2_PQ_2025_09), CloudFront (minimum TLS, plain HTTP to viewers or origins), OpenSearch domains and Transfer Family SFTP and FTP servers (SSH algorithms, and post-quantum key exchange withTransferSecurityPolicy-2025-03). Encryption in transit and at rest for ElastiCache, RDS, Aurora, Redshift, EFS and MSK, RDS certificate authorities that have expired or expire soon, default EBS encryption, SSH key pair types, and S3 buckets that accept requests without TLS. CloudFront already offers hybrid ML-KEM to browsers, so that's listed as a strength. - Azure: Key Vault keys and certificates in every vault you can read, storage accounts that accept plain HTTP, App Service and Functions apps (HTTPS only, minimum TLS version, plain FTP for deployments), and Azure Cache for Redis with its unencrypted port open. Settings Azure now enforces itself, like TLS 1.2 on Storage and SQL, aren't reported.
- Google Cloud: Cloud KMS keys in every location and key ring, including post-quantum ML-DSA, SLH-DSA and ML-KEM keys, load balancer SSL policies (including front ends left on Google's default policy, which accepts TLS 1.0), load balancer certificates, and Cloud SQL databases that accept unencrypted connections or whose server certificate authority is expiring.
A full AWS account with every region takes a few minutes, because each region is read separately. Use --region to check fewer.
quantum-scan cloud --provider aws --profile prod --region us-east-1,us-west-2
quantum-scan cloud --provider aws,azure,gcp --cbom cloud.cbom.json --report cloud-report.md --html cloud.html
quantum-scan cloud --provider gcp --project my-project --format sarif --output cloud.sarif.json| Option | What it does |
| --- | --- |
| --provider aws,azure,gcp | Which accounts to read. Required |
| --profile <name> | AWS profile. Default: your default profile |
| --region <list> | AWS regions. Default: every region enabled for the account |
| --subscription <list> | Azure subscriptions. Default: the current one |
| --project <list> | Google Cloud projects. Default: the current one |
| --location <list> | Google Cloud KMS locations. Default: all |
| --html <file> | Write the report as HTML, ready to save as a PDF |
--cbom, --report, --format, --output, --fail-on broken and --offline work as they do for a code scan. Results get the same tiers and high, medium and low ratings as map. You can also add cloud accounts to quantum-scan map, which asks first, or to a scope file:
"cloud": { "aws": { "profile": "prod", "regions": ["us-east-1"] }, "azure": { "subscriptions": ["..."] }, "gcp": { "projects": ["my-project"] } }Nothing about your account leaves your machine. The anonymized summary holds only rule ids and algorithm names, never account ids, ARNs, resource names or regions.
Read-only permissions
AWS: attach this policy to the role or user you sign in with. The AWS-managed ReadOnlyAccess policy also covers it. Checking who you're signed in as needs no permission. A KMS key whose key policy doesn't allow IAM access is listed as not checked. Reading an uploaded certificate returns only the public certificate, never its private key.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "QuantumScanReadOnly",
"Effect": "Allow",
"Action": [
"ec2:DescribeRegions",
"ec2:GetEbsEncryptionByDefault",
"ec2:DescribeKeyPairs",
"kms:ListKeys",
"kms:ListAliases",
"kms:DescribeKey",
"acm:ListCertificates",
"acm-pca:ListCertificateAuthorities",
"iam:ListServerCertificates",
"iam:GetServerCertificate",
"elasticloadbalancing:DescribeLoadBalancers",
"elasticloadbalancing:DescribeListeners",
"elasticloadbalancing:DescribeSSLPolicies",
"elasticloadbalancing:DescribeLoadBalancerPolicies",
"cloudfront:ListDistributions",
"apigateway:GET",
"es:ListDomainNames",
"es:DescribeDomains",
"elasticache:DescribeReplicationGroups",
"elasticache:DescribeCacheClusters",
"rds:DescribeDBInstances",
"rds:DescribeDBClusters",
"redshift:DescribeClusters",
"elasticfilesystem:DescribeFileSystems",
"kafka:ListClustersV2",
"transfer:ListServers",
"transfer:DescribeServer",
"transfer:DescribeSecurityPolicy",
"s3:ListAllMyBuckets",
"s3:GetBucketPolicy"
],
"Resource": "*"
}
]
}apigateway:GET covers only reads. API Gateway has no narrower read permission.
Azure: Reader on the subscription and Key Vault Reader on the vaults (or, for vaults using access policies, Get and List on keys and certificates). Reader can't see app settings or connection strings, and the tool doesn't ask for them.
Google Cloud: roles/cloudkms.viewer, roles/compute.viewer and roles/cloudsql.viewer on the project.
If a permission is missing, that service is listed as not checked and the rest still runs.
Leaving out findings you've reviewed
Add a .quantum-scan-ignore file to the scanned folder:
# a check everywhere
rule:py-weak-hash
# a folder or a file
legacy/
tools/migrate.py
# one check in one file
src/hash.py:py-weak-hashA leaked key or password can only be left out by naming its file, never by check alone.
For quantum-scan map, the same file in the folder you run it from can accept a known leftover on a website or this machine, for example a setting your host won't let you change:
# one check on one site
example.com:443:web-tls-static-rsa
# everything on one site, any port
legacy.example.comAccepted items still appear in the report, in their own section, but don't count toward the score.
Your own policy
Put a .quantum-scan.yml at the top of the repository, or pass --policy <file>:
name: Acme encryption policy
deny: [SHA-1, 3DES, RSA-1024] # not allowed anywhere, in findings or the inventory
min-key-size:
RSA: 3072
AES: 256
allow: # agreed exceptions, each with a reason
- path: legacy/**
algorithm: RSA
reason: The payments partner only takes RSA until its 2027 upgrade
expires: 2027-06-30
severity: # by algorithm or rule id
MD5: critical
fail: true # same as --fail-on policyEach break of the policy is listed with its file and line. An exception past its expires date stops counting and is reported, and so is an exception that no longer matches anything. A policy changes severities in the report, SARIF, SonarQube and JSON output, but never the grade, which is the same for everyone. A mistake in the file stops the run with exit code 2 and the line it's on.
Comparing two inventories
quantum-scan diff before.cbom.json after.cbom.jsonLists the encryption methods and libraries added, removed and changed (risk, version, properties or where they're used) between two CycloneDX CBOMs, from this tool or any other. Assets are matched on their OID plus parameter set or curve, so two tools that name the same algorithm differently (ML-DSA-65 and ML-DSA (FIPS 204)) still line up; names are only compared when an asset has no OID. Between two tools, a field only one of them writes isn't counted as a change. Add --format json for the full result, and --fail-on added,removed,changed,new-risk to fail CI. new-risk fails only when something weak or quantum-breakable was added or got worse.
How findings are traced
A constant is followed from where it's set to where it's used, in the same file or in another file that imports it. A value passed into a function is followed to the call inside it, up to three calls deep, and a default value counts when a caller leaves the argument out. Calls from tests, examples and docs don't count. A traced finding shows the lines it came through:
python/digest.py:5 MD5 hash
from python/accounts.py:3 LEGACY_HASH = "md5"
from python/accounts.py:7 password_digest() is called with algo = "md5"In SARIF the same lines are related locations and a code flow, and in SonarQube they're secondary locations. This is not full data-flow analysis: values built at run time, kept in objects, or reached through dynamic dispatch are not followed.
Anonymized sharing
We share anonymized, aggregated usage stats about how our checks perform and what kinds of encryption they find, to improve our products. It never includes your code, keys, files, server names, IP addresses or company name. You can turn this off at any time, or run fully offline.
In CI pipelines nothing is sent. When CI or GITHUB_ACTIONS is set, the scan makes no outbound call unless you turn sharing on with QUANTUM_SCAN_SHARING=on. A build that must not call out to anything it hasn't approved can run the scan as is.
Everything is rounded into bands and tied to a random ID that links to nothing. Industry and company size are optional, and asked once. To see exactly what a run sends, run quantum-scan config show-shared. Details: hardkeel.com/privacy.
| Command | What it does |
| --- | --- |
| quantum-scan config show-shared | Shows exactly what the last run sent, or would have sent |
| quantum-scan config sharing off | Turns sharing off (or set QUANTUM_SCAN_SHARING=off) |
| QUANTUM_SCAN_SHARING=on | Turns sharing on in a CI pipeline, where it is off by default |
| --offline | Sends nothing at all (or set QUANTUM_SCAN_OFFLINE=1, or quantum-scan config offline on) |
DO_NOT_TRACK=1 is respected too.
SARIF and CycloneDX
Results drop into the security tools you already use.
SARIF 2.1.0 (--format sarif) for GitHub code scanning and any tool that reads SARIF.
- One rule per kind of problem, with ids that stay the same from run to run, like
weak-now/md5-hash,quantum-vulnerable/rsa-keyorsecret/aws-access-key. - Each rule carries a
security-severityscore, so code scanning sorts alerts into Critical, High, Medium and Low. Anything to fix now (weak encryption, exposed settings, leaked keys) is an error. Encryption quantum computers will break is a warning, scored Medium or lower, so it lands in the plan rather than ahead of what is broken today. - Rules have help text with the fix. Paths are relative to the repository root, even when you scan a subfolder, and each result has a fingerprint that survives lines moving.
quantum-scan mapalso writesmap.sarif.json. Code findings point to files and lines; findings on websites, network equipment and this machine name the site, address or setting instead. GitHub code scanning only shows results tied to a file, so upload the code scan's output there.
CycloneDX 1.6 CBOM (--cbom <file>, or --format cyclonedx to print it) for Dependency-Track and other CycloneDX tools.
- Every encryption method in use is a cryptographic asset, not only the ones to fix, with its primitive, key size or parameter set, what it's used for, its object identifier where one applies, its NIST quantum security level (0 means no protection against a quantum attacker), and every file and line or host where it was seen.
- TLS and SSH findings are protocol assets of the right type. Certificate problems, like an expired certificate, are findings, not encryption methods, so they stay out of the inventory.
- Certificates and public keys found in files or on websites are their own assets, with subject, issuer, validity dates, signature algorithm and key, linked to the algorithm they use. Curves and classical security levels are listed too.
- Post-quantum encryption already in use (ML-KEM, ML-DSA, SLH-DSA and hybrids) is marked
quantum-safe, so the inventory shows progress as well as problems.
SonarQube (--format sonar) in SonarQube's generic external issue format, read by SonarQube Server 10.3 and later and SonarQube Cloud. Point sonar.externalIssuesReportPaths at the file:
quantum-scan . --offline --format sonar --output quantum-scan.sonar.json
sonar-scanner -Dsonar.externalIssuesReportPaths=quantum-scan.sonar.jsonEach kind of problem is its own rule, with severity and impact set from ours (critical is Blocker, high is High, and so on), an effort estimate, and traced lines as secondary locations. This uses SonarQube's own import, so there's no plugin to install.
SARIF and CycloneDX output are checked against the official SARIF 2.1.0 and CycloneDX 1.6 schemas.
In GitHub Actions
- uses: actions/checkout@v4
- uses: Hard-Keel/quantum-scan-cli@v0
- uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: quantum-scan.sarifThe migration report goes to the job summary. Code scanning results need a public repository or GitHub Advanced Security, and the job needs security-events: write. A complete workflow, with a weekly scan and the encryption inventory saved as an artifact, is in docs/examples/code-scanning.yml. Nothing is sent from a pipeline unless you set QUANTUM_SCAN_SHARING: on in the job's env.
Contributing rules
Detection rules for new languages and libraries are plain JSON files in rules/community/, each with examples it must and must not match. See rules/README.md and CONTRIBUTING.md.
On every pull request
Install Hard Keel Quantum Scan on GitHub to run the same checks on every pull request with nothing to set up. It comments on the pull request, posts a check result, and keeps a report link for each repository that stays current.
Built by Hard Keel. Questions: [email protected]. Security reports: [email protected].
License
Source available under the PolyForm Shield License 1.0.0 (PolyForm-Shield-1.0.0). You can read, build and audit every line, and use the scanner on your own code and systems, at work too. The one thing it rules out is using it, or something built from it, to compete with Hard Keel: offering a product that competes with the scanner or with anything Hard Keel offers using it.
What the scanner makes for you (reports, CBOMs, SARIF files, badges and plans) is yours to use however you want. The license covers the scanner's code only.
Versions 0.7.0 and earlier were released under the Apache License 2.0 and stay under it.
Copyright 2026 Hard Keel (hardkeel.com).
