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)
| Repository | acme/acme-payments @ main |
|---|---|
| Endpoint | pay.acme.example |
| Generated | 2026-12-04 09:00 UTC |
| Scan | ok · 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
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
- RSA key generation (cryptography) —
app/payments.py:14inTokenVault.__init__· RSA 2048 - RSA encryption (OAEP) —
app/payments.py:19inTokenVault.wrap· RSA - RSA key generation (Web Crypto) —
web/src/browser.js:3inmakePair· RSA-OAEP 2048 - RSA key pair generation (node:crypto) —
web/src/crypto.ts:6innewSigningPair· RSA 1024 - Elliptic-curve key generation (cryptography) —
app/payments.py:27insession_material· EC 256 - X25519 / X448 key agreement (cryptography) —
app/payments.py:31inephemeral· X25519 - Elliptic-curve key pair generation (node:crypto) —
web/src/crypto.ts:10indevicePair· EC 256 - ECDH key agreement (node:crypto) —
web/src/crypto.ts:15inExchange.start· ECDH 256 - Legacy TLS protocol version (ssl) —
app/payments.py:47inold_context· TLSv1 - Load balancer TLS policy allows legacy TLS —
deploy/main.tf:4· ELBSecurityPolicy-2016-08 - nginx allows TLS 1.0/1.1 —
deploy/nginx.conf:4· TLSv1 - 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)
| Rule | Where | Algorithm | Context | Evidence |
|---|---|---|---|---|
| RSA key generation (cryptography) PY-CRYPTO-RSA-KEYGEN · high |
app/payments.py:14in 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:19in 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:5in 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:3in 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:6in newSigningPair |
RSA 1024 | production | crypto.generateKeyPairSync("…", { modulusLength: 1024 }) |
| RSA PKCS#1 v1.5 padding PY-CRYPTO-RSA-PKCS1V15 · medium |
app/payments.py:23in TokenVault.sign_receipt |
RSA | production | padding.PKCS1v15() |
| JWT signed with RSA or ECDSA PY-JWT-ASYMMETRIC · medium · medium confidence |
app/payments.py:39in 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:23in 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)
| Rule | Where | Algorithm | Context | Evidence |
|---|---|---|---|---|
| Elliptic-curve key generation (cryptography) PY-CRYPTO-EC-KEYGEN · high |
app/payments.py:27in session_material |
EC 256 | production | ec.generate_private_key(ec.SECP256R1()) |
| X25519 / X448 key agreement (cryptography) PY-CRYPTO-XDH · high |
app/payments.py:31in ephemeral |
X25519 | production | x25519.X25519PrivateKey.generate() |
| Elliptic-curve key pair generation (node:crypto) JS-NODE-KEYPAIR-EC · high |
web/src/crypto.ts:10in devicePair |
EC 256 | production | crypto.generateKeyPairSync("…", { namedCurve: "…" }) |
| ECDH key agreement (node:crypto) JS-NODE-ECDH · high |
web/src/crypto.ts:15in 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)
| Rule | Where | Algorithm | Context | Evidence |
|---|---|---|---|---|
| Legacy TLS protocol version (ssl) PY-SSL-LEGACY-PROTOCOL · high |
app/payments.py:47in 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)
| Rule | Where | Algorithm | Context | Evidence |
|---|---|---|---|---|
| HTTPS verification disabled (verify=False) PY-REQUESTS-VERIFY-FALSE · high |
app/payments.py:43in 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)
| Rule | Where | Algorithm | Context | Evidence |
|---|---|---|---|---|
| MD5 hash PY-HASHLIB-MD5 · medium |
app/payments.py:35in legacy_checksum |
MD5 | production | hashlib.md5(blob) |
| MD5 hash (node:crypto) JS-HASH-MD5 · medium |
web/src/crypto.ts:20in fingerprint |
MD5 | production | crypto.createHash("…") |
| SHA-1 hash PY-HASHLIB-SHA1 · low |
app/payments.py:52in hidden |
SHA-1 | production | hashlib.sha1(b"…") |
Cryptography libraries (5, 0 in production)
| Rule | Where | Algorithm | Context | Evidence |
|---|---|---|---|---|
| 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)
| Rule | Where | Algorithm | Context | Evidence |
|---|---|---|---|---|
| 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.
| Asset | Size | Library | Occurrences |
|---|---|---|---|
| EC | 256 | 2 | |
| ECDH | 2 | ||
| ECDH | 256 | 1 | |
| ELBSecurityPolicy-2016-08 | 1 | ||
| ES256 | 1 | ||
| MD5 | 2 | ||
| RS256 | 1 | ||
| RSA | 4 | ||
| RSA | 1024 | 2 | |
| RSA | 2048 | 1 | |
| RSA-OAEP | 2048 | 1 | |
| SHA-1 | 1 | ||
| TLSv1 | 3 | ||
| X25519 | 1 | ||
| library | cryptography | 1 | |
| library | jsonwebtoken | 1 | |
| library | node-forge | 1 | |
| library | paramiko | 1 | |
| library | pyjwt | 1 |
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.