PQC Gate

This is a real scan of a fictional repository with planted findings. Your report has the same structure and also comes as a PDF and a CycloneDX 1.7 CBOM.

SAMPLE REPORT · fictional company

Post-quantum readiness report: Acme Payments (fictional)

Repositoryacme/acme-payments @ main
Endpointpay.acme.example
Generated2026-12-04 09:00 UTC
Scanok · coverage full (archive) · rules rules-37cb93a682c792f9

An inventory and readiness assessment, not a certification. There is no immediate, widespread quantum threat today; this report helps you plan the migration, starting with data that must stay confidential for years.

Summary

15quantum-vulnerable uses in production code and config
9classical weaknesses (legacy TLS, disabled verification, weak hashes)
1in tests and fixtures (listed, never blocking)
5cryptography libraries

1 suppression comment(s) were found and ignored: nothing in a repository can hide a finding from this report.

Endpoint pay.acme.example

Legacy TLS accepted

  • Key exchange: Classical X25519 negotiated; hybrid X25519MLKEM768 rejected.
  • Legacy TLS: TLS 1.0 and TLS 1.1 accepted; TLS 1.2 static-RSA accepted (high confidentiality exposure).
  • Certificate: Trusted, hostname matches; RSA 2048 key — signature migration: plan for ML-DSA.

Observed 2026-12-04 09:00 UTC from 203.0.113.10, 2001:db8::10.

Fix first

  1. RSA key generation (cryptography) — app/payments.py:14 in TokenVault.__init__ · RSA 2048
  2. RSA encryption (OAEP) — app/payments.py:19 in TokenVault.wrap · RSA
  3. RSA key generation (Web Crypto) — web/src/browser.js:3 in makePair · RSA-OAEP 2048
  4. RSA key pair generation (node:crypto) — web/src/crypto.ts:6 in newSigningPair · RSA 1024
  5. Elliptic-curve key generation (cryptography) — app/payments.py:27 in session_material · EC 256
  6. X25519 / X448 key agreement (cryptography) — app/payments.py:31 in ephemeral · X25519
  7. Elliptic-curve key pair generation (node:crypto) — web/src/crypto.ts:10 in devicePair · EC 256
  8. ECDH key agreement (node:crypto) — web/src/crypto.ts:15 in Exchange.start · ECDH 256
  9. Legacy TLS protocol version (ssl) — app/payments.py:47 in old_context · TLSv1
  10. Load balancer TLS policy allows legacy TLS — deploy/main.tf:4 · ELBSecurityPolicy-2016-08
  11. nginx allows TLS 1.0/1.1 — deploy/nginx.conf:4 · TLSv1
  12. nginx cipher list allows static-RSA key exchange — deploy/nginx.conf:5 · RSA

Findings with evidence

RSA (key transport, encryption, signatures) (9, 8 in production)

RuleWhereAlgorithmContextEvidence
RSA key generation (cryptography)
PY-CRYPTO-RSA-KEYGEN · high
app/payments.py:14
in TokenVault.__init__
RSA 2048 production rsa.generate_private_key(public_exponent=65537, key_size=2048)
RSA encryption (OAEP)
PY-CRYPTO-RSA-OAEP · high
app/payments.py:19
in TokenVault.wrap
RSA production padding.OAEP(mgf=padding.MGF1(algorithm=hashes.SHA256()), algorithm=hashes.SHA256(), label=None)
RSA key generation (cryptography)
PY-CRYPTO-RSA-KEYGEN · high
tests/test_payments.py:5
in test_wrap
RSA 1024 test rsa.generate_private_key(public_exponent=65537, key_size=1024)
RSA key generation (Web Crypto)
JS-WEBCRYPTO-RSA · high
web/src/browser.js:3
in makePair
RSA-OAEP 2048 production window.crypto.subtle.generateKey( { name: "…", modulusLength: 2048, publicExponent: new Uint8Array([1, 0, 1]), hash: "…" }, true, ["…", "…"], )
RSA key pair generation (node:crypto)
JS-NODE-KEYPAIR-RSA · high
web/src/crypto.ts:6
in newSigningPair
RSA 1024 production crypto.generateKeyPairSync("…", { modulusLength: 1024 })
RSA PKCS#1 v1.5 padding
PY-CRYPTO-RSA-PKCS1V15 · medium
app/payments.py:23
in TokenVault.sign_receipt
RSA production padding.PKCS1v15()
JWT signed with RSA or ECDSA
PY-JWT-ASYMMETRIC · medium · medium confidence
app/payments.py:39
in issue_token
RS256 production jwt.encode(claims, signer, algorithm="…")
JWT signed with RSA or ECDSA
JS-JWT-ASYMMETRIC · medium · medium confidence
web/src/crypto.ts:23
in sessionToken
ES256 production jwt.sign(payload, signer, { algorithm: "…" })
sshd uses an RSA host key
CFG-SSHD-RSA-HOSTKEY · low
deploy/sshd_config:1 RSA production HostKey /etc/ssh/ssh_host_rsa_key

Elliptic-curve cryptography (ECDH, ECDSA, EdDSA) (6, 6 in production)

RuleWhereAlgorithmContextEvidence
Elliptic-curve key generation (cryptography)
PY-CRYPTO-EC-KEYGEN · high
app/payments.py:27
in session_material
EC 256 production ec.generate_private_key(ec.SECP256R1())
X25519 / X448 key agreement (cryptography)
PY-CRYPTO-XDH · high
app/payments.py:31
in ephemeral
X25519 production x25519.X25519PrivateKey.generate()
Elliptic-curve key pair generation (node:crypto)
JS-NODE-KEYPAIR-EC · high
web/src/crypto.ts:10
in devicePair
EC 256 production crypto.generateKeyPairSync("…", { namedCurve: "…" })
ECDH key agreement (node:crypto)
JS-NODE-ECDH · high
web/src/crypto.ts:15
in Exchange.start
ECDH 256 production crypto.createECDH("…")
nginx key-exchange groups without a post-quantum hybrid
CFG-NGINX-NO-HYBRID-GROUP · medium · medium confidence
deploy/nginx.conf:6 ECDH production ssl_ecdh_curve X25519:prime256v1;
sshd key exchange without a post-quantum hybrid
CFG-SSHD-NO-PQ-KEX · medium · medium confidence
deploy/sshd_config:2 ECDH production KexAlgorithms curve25519-sha256,diffie-hellman-group14-sha256

Legacy TLS versions and key exchange (5, 5 in production)

RuleWhereAlgorithmContextEvidence
Legacy TLS protocol version (ssl)
PY-SSL-LEGACY-PROTOCOL · high
app/payments.py:47
in old_context
TLSv1 production ssl.PROTOCOL_TLSv1
Load balancer TLS policy allows legacy TLS
CFG-TERRAFORM-LEGACY-SSL-POLICY · high
deploy/main.tf:4 ELBSecurityPolicy-2016-08 production ssl_policy = "…"
nginx allows TLS 1.0/1.1
CFG-NGINX-LEGACY-PROTOCOLS · high
deploy/nginx.conf:4 TLSv1 production ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
nginx cipher list allows static-RSA key exchange
CFG-NGINX-STATIC-RSA · high · medium confidence
deploy/nginx.conf:5 RSA production ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:AES128-SHA:!aNULL;
Legacy TLS version allowed (node:tls)
JS-TLS-LEGACY-VERSION · high
web/src/crypto.ts:26 TLSv1 production minVersion: "…"

Certificate verification disabled (2, 2 in production)

RuleWhereAlgorithmContextEvidence
HTTPS verification disabled (verify=False)
PY-REQUESTS-VERIFY-FALSE · high
app/payments.py:43
in call_partner
production verify=False
TLS certificate verification disabled (rejectUnauthorized false)
JS-TLS-REJECT-UNAUTHORIZED · high
web/src/crypto.ts:26 production rejectUnauthorized: false

Weak hashes (MD5, SHA-1) (3, 3 in production)

RuleWhereAlgorithmContextEvidence
MD5 hash
PY-HASHLIB-MD5 · medium
app/payments.py:35
in legacy_checksum
MD5 production hashlib.md5(blob)
MD5 hash (node:crypto)
JS-HASH-MD5 · medium
web/src/crypto.ts:20
in fingerprint
MD5 production crypto.createHash("…")
SHA-1 hash
PY-HASHLIB-SHA1 · low
app/payments.py:52
in hidden
SHA-1 production hashlib.sha1(b"…")

Cryptography libraries (5, 0 in production)

RuleWhereAlgorithmContextEvidence
node-forge library
LIB-JS-NODE-FORGE · low
web/package.json node-forge 1.3.1 library presence
Python cryptography library
LIB-PY-CRYPTOGRAPHY · info
requirements.txt:1 cryptography 43.0.1 library presence
PyJWT library
LIB-PY-PYJWT · info
requirements.txt:2 pyjwt 2.9.0 library presence
Paramiko SSH library
LIB-PY-PARAMIKO · info
requirements.txt:4 paramiko 3.5.0 library presence
jsonwebtoken library
LIB-JS-JSONWEBTOKEN · info
web/package.json jsonwebtoken 9.0.2 library presence

Suppression attempts (1, 1 in production)

RuleWhereAlgorithmContextEvidence
Scanner suppression comment ignored
SUPPRESSION-ATTEMPT · info
app/payments.py:51 production ast-grep-ignore

How to fix

nginx allows TLS 1.0/1.1 CFG-NGINX-LEGACY-PROTOCOLS · 1×

Set ssl_protocols TLSv1.2 TLSv1.3;

nginx cipher list allows static-RSA key exchange CFG-NGINX-STATIC-RSA · 1×

Remove kRSA / AES*-SHA / AES*-GCM-SHA* RSA suites; use ECDHE suites only (TLS 1.3 needs no ssl_ciphers).

Load balancer TLS policy allows legacy TLS CFG-TERRAFORM-LEGACY-SSL-POLICY · 1×

Use a TLS 1.2+/1.3 policy, e.g. ELBSecurityPolicy-TLS13-1-2-2021-06 (AWS) and a PQ-capable policy where offered.

ECDH key agreement (node:crypto) JS-NODE-ECDH · 1×

Classical ECDH is exposed to harvest-now-decrypt-later. Use a hybrid KEM (X25519 + ML-KEM-768) for long-lived confidentiality.

Elliptic-curve key pair generation (node:crypto) JS-NODE-KEYPAIR-EC · 1×

ECDSA/ECDH are quantum-vulnerable. Use hybrid key exchange (X25519MLKEM768 in TLS) and plan ML-DSA for signatures.

RSA key pair generation (node:crypto) JS-NODE-KEYPAIR-RSA · 1×

Plan ML-KEM (key transport) or ML-DSA (signatures). Until Node ships them, keep RSA at 3072+ bits and isolate key creation in one module.

Legacy TLS version allowed (node:tls) JS-TLS-LEGACY-VERSION · 1×

Require minVersion 'TLSv1.2' (TLSv1.3 where you control both ends).

TLS certificate verification disabled (rejectUnauthorized false) JS-TLS-REJECT-UNAUTHORIZED · 1×

Remove rejectUnauthorized false; trust a private CA with the `ca` option instead.

RSA key generation (Web Crypto) JS-WEBCRYPTO-RSA · 1×

Web Crypto has no ML-KEM yet in most runtimes; keep RSA at 3072+ bits and isolate it so it can be swapped.

Elliptic-curve key generation (cryptography) PY-CRYPTO-EC-KEYGEN · 1×

ECDSA/ECDH fall to Shor's algorithm. For key exchange use a hybrid (X25519MLKEM768); for signatures plan ML-DSA. Centralise key creation so the algorithm is configurable.

RSA key generation (cryptography) PY-CRYPTO-RSA-KEYGEN · 2×

Plan a move to ML-KEM (encryption/key transport) or ML-DSA (signatures). Until libraries ship them, keep RSA at 3072+ bits and isolate key use behind one module so the switch is a single change.

RSA encryption (OAEP) PY-CRYPTO-RSA-OAEP · 1×

Data encrypted to an RSA key today can be decrypted later by a quantum computer. For long-lived secrets move to a hybrid KEM (ML-KEM-768 + X25519) with an AEAD.

X25519 / X448 key agreement (cryptography) PY-CRYPTO-XDH · 1×

Classical key agreement is exposed to harvest-now-decrypt-later. Use a hybrid KEM (X25519 + ML-KEM-768) for anything that must stay confidential for years.

HTTPS verification disabled (verify=False) PY-REQUESTS-VERIFY-FALSE · 1×

Remove verify=False. For a private CA pass verify="/path/to/ca.pem".

Legacy TLS protocol version (ssl) PY-SSL-LEGACY-PROTOCOL · 1×

Require TLS 1.2 at minimum (ctx.minimum_version = ssl.TLSVersion.TLSv1_2), TLS 1.3 where you control both ends.

nginx key-exchange groups without a post-quantum hybrid CFG-NGINX-NO-HYBRID-GROUP · 1×

With OpenSSL 3.5+: ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1;

sshd key exchange without a post-quantum hybrid CFG-SSHD-NO-PQ-KEX · 1×

OpenSSH 9.9+: KexAlgorithms mlkem768x25519-sha256,sntrup761x25519-sha512,curve25519-sha256

MD5 hash (node:crypto) JS-HASH-MD5 · 1×

MD5 is broken classically. Use SHA-256 (createHash('sha256')).

JWT signed with RSA or ECDSA JS-JWT-ASYMMETRIC · 1×

Token signatures are usually short-lived; keep the algorithm configurable and track ML-DSA support in your JWT library.

RSA PKCS#1 v1.5 padding PY-CRYPTO-RSA-PKCS1V15 · 1×

PKCS#1 v1.5 is RSA-only and, for encryption, open to padding-oracle attacks. Prefer OAEP/PSS now and plan ML-KEM / ML-DSA.

MD5 hash PY-HASHLIB-MD5 · 1×

MD5 is broken classically. Use SHA-256 or SHA-3 (or BLAKE2); if it's only a non-security checksum, pass usedforsecurity=False to document that.

JWT signed with RSA or ECDSA PY-JWT-ASYMMETRIC · 1×

Token signatures are usually short-lived, so this is lower priority than key exchange. Keep the algorithm configurable and track ML-DSA support in your JWT library.

sshd uses an RSA host key CFG-SSHD-RSA-HOSTKEY · 1×

Prefer an Ed25519 host key.

node-forge library LIB-JS-NODE-FORGE · 1×

Pure-JS crypto; prefer node:crypto.

SHA-1 hash PY-HASHLIB-SHA1 · 1×

SHA-1 collisions are practical. Use SHA-256 or SHA-3; mark non-security uses with usedforsecurity=False.

jsonwebtoken library LIB-JS-JSONWEBTOKEN · 1×

Library presence only.

Python cryptography library LIB-PY-CRYPTOGRAPHY · 1×

Library presence only. Keep it current: post-quantum support arrives through OpenSSL 3.5+ builds.

Paramiko SSH library LIB-PY-PARAMIKO · 1×

Library presence only.

PyJWT library LIB-PY-PYJWT · 1×

Library presence only.

Scanner suppression comment ignored SUPPRESSION-ATTEMPT · 1×

PQC Gate ignores repository suppression comments; use an exception with an owner and an expiry instead.

Cryptography bill of materials (summary)

The full CBOM is delivered as CycloneDX 1.7 JSON, validated against the official schema.

AssetSizeLibraryOccurrences
EC2562
ECDH2
ECDH2561
ELBSecurityPolicy-2016-081
ES2561
MD52
RS2561
RSA4
RSA10242
RSA20481
RSA-OAEP20481
SHA-11
TLSv13
X255191
librarycryptography1
libraryjsonwebtoken1
librarynode-forge1
libraryparamiko1
librarypyjwt1

Scope and method

  • 10 files in the archive, 9 analysed; languages: javascript, python, typescript.
  • Not analysed (format unsupported): .md.
  • Skipped files: 0.
  • Tools: pqscan 0.5.0, ast-grep-py 0.51.3, cryptography 51.0.1; rules rules-37cb93a682c792f9.
  • Static analysis only: your code was never built, installed or run, and repository configuration (ignore files, tool configs, suppression comments) was not honoured. Source code was deleted after the scan; only the findings above were kept.

Request an audit for your repository