Open Specification · Formally Verified in Lean 4
PQCScope Grading Methodology
PQCScope grades external endpoints against NSA Cybersecurity Advisory PP-26-4956 (Dec 2, 2026), IETF RFC 10024 (Hybrid ML-KEM for TLS 1.3), NSA CNSA 2.0, and NIST IR 8547 Final (Oct 2026).
1. Headline Grade Pillars (HTTPS Port 443)
Your headline letter grade (A+ to F) measures HTTPS (port 443) across 100 points plus strict hard caps. Auxiliary surfaces (DNSSEC, Email/MX, SSH) are graded separately on the 4-surface scorecard so third-party email providers never unfairly tank your web badge.
| Pillar | Condition | Pts | Cap |
|---|---|---|---|
| Key Exchange (60 pts) | X25519MLKEM768 / SecP384r1MLKEM1024 / ML-KEM-768+ | 60 | None (A+) |
| SecP256r1MLKEM768 | 58 | None (A+) | |
| Classical P-384 / P-521 only | 25 | C | |
| Classical X25519 / P-256 only (or TLS 1.2 only) | 10 / 0 | D / F | |
| Cert Chain Weakest Link (30 pts) | ML-DSA (FIPS 204) | 30 | None (A+) |
| ECDSA P-384/P-521 or RSA-3072+ everywhere (NSA Interim) | 26 | A | |
| RSA-2048 legacy stopgap (zero 256-bit ECC) | 21 | A- | |
| ECDSA P-256 or Ed25519 in leaf or any intermediate | 10 | B | |
| Broken / Expired / Hostname mismatch / SHA-1 / RSA < 2048 | 0 | F | |
| TLS & Cipher (10 pts) | TLS 1.3 (+5) · AES-256-GCM-SHA384 (+5) / ChaCha20 (+4) / AES-128 (+3) | 10 | No TLS 1.3 → F |
2. Lean 4 Formal Verification
Both our grading rubric (verification/lean/PQCScan/Grading.lean) and our SSRF network boundary (verification/lean/PQCScan/Ssrf.lean) are formally verified in Lean 4 with zero sorry axioms, and differential Vitest suites assert 100% agreement across all 240 rubric combinations and 90 IPv4/IPv6 CIDR boundary vectors:
- Score/Grade Consistency:
gradeOfScore (effectiveScore i) = grade i— scores and letter grades can never contradict. - 4-Axis Monotonicity: Upgrading KEX, cert chain, TLS version, or cipher can never lower your grade.
- Strict Cap Guarantees: 256-bit ECC certs are strictly capped at ≤ B; classical 256-bit KEX is strictly capped at ≤ D; A+ strictly requires RFC 10024/ML-KEM-768+ KEX and ML-DSA auth.
- IPv6 Global-Unicast Allowlist: Only
2000::/3minus reserved sub-ranges is allowed, provably blocking AWS IMDSv2 (fd00:ec2::254), IPv4-mapped (::ffff:0:0/96), IPv4-compatible (::/96), 6to4 (2002::/16), and NAT64 (64:ff9b::/96).