QuantumScan — Open-Source PQC Vulnerability Scanner for Substrate/Polkadot

[Discussion] QuantumScan — Open-Source PQC Vulnerability Scanner for Substrate/Polkadot

TL;DR

We built and shipped an open-source CLI scanner (MIT) that detects post-quantum cryptography vulnerabilities specifically in Substrate/Polkadot codebases. The tool is live at quantumscan.io, fully tested, and documented. We’re requesting ~2,000 DOT (≈ $9,500 USD) from the Polkadot Treasury — retroactive recognition for work already delivered, plus one remaining deliverable: a technical article on this forum.

The Problem

Every asymmetric cryptographic algorithm securing the Polkadot ecosystem today is vulnerable to quantum computers — and the migration window is narrowing:

  • BABE/GRANDPA consensus uses sr25519 (Schnorr/Ristretto255 — broken by Shor’s algorithm)
  • Parachain pallets commonly implement ECDSA, ed25519, and RSA key operations
  • XCM message verification relies on classical signature schemes
  • ink! smart contracts expose ecdsa_recover() as a host function
  • NIST FIPS 203/204/205 mandated migration by 2030; CNSA 2.0 (US national security) already in effect; EU DORA requires crypto-agility for financial infrastructure

Until now, there was no dedicated tool to audit Substrate codebases for these vulnerabilities.

What We Built

QuantumScan is an open-source, privacy-first PQC vulnerability scanner. The --substrate flag activates 19 Substrate-specific detection patterns across 5 categories:

Category What We Detect PQC Migration Path
BABE/GRANDPA sr25519::Pair, BabeId, GrandpaId, VRF outputs ML-DSA (FIPS 204)
Pallet Crypto sp_runtime::traits::Verify, MultiSignature, sp_core::ecdsa ML-DSA
XCM Messages OriginKind::SovereignAccount, xcm_executor signatures ML-DSA
ink! Contracts ink::env::ecdsa_recover, secp256k1 host calls ML-DSA / SLH-DSA
Workspace Dependencies schnorrkel, ed25519-dalek, x25519-dalek, libp2p-noise ML-KEM + ML-DSA

Try it on any parachain:

npx quantumscan ./my-parachain --substrate

Delivery Status

Everything technical is already shipped. This is not a speculative proposal.

Deliverable Status Evidence
19 Substrate-specific patterns :white_check_mark: Live scanner-core v1.9.1, --substrate flag
Documentation :white_check_mark: Complete README with migration paths for each pattern group
Test suite (60+ tests) :white_check_mark: Complete Node.js built-in runner, zero external dependencies
Docker image :white_check_mark: Complete Dockerfile at repo root
Public scanner endpoint :white_check_mark: Live quantumscan.io (free, 233+ scans completed)
Technical article (Forum) :hourglass_not_done: Pending Planned 2 weeks post-approval

Context: We had an active Level 1 application at the W3F Grants Program (PR #2774, $9,500). The program was discontinued on 2026-06-25. All pending PRs were closed without technical rejection — the program itself was shut down. All deliverables except the article were completed before that date.

Requested Amount

~2,000 DOT (≈ $9,500 USD at time of writing)
Track: Small Spender
Beneficiary: 16LTGtVBbeq7SbCvTDJoeXzzE7Kp4ma5QvrU2iAggJxjy5pu

Item Amount
Retroactive: 19 patterns + 60 tests + Docker + docs + public endpoint ~$7,500
D0e: Technical article — PQC vulnerabilities in Substrate (Polkadot Forum) ~$1,000
6-month maintenance: issues, pattern updates as Substrate evolves ~$1,000
Total ~$9,500

Remaining Deliverable — Technical Article

Within 2 weeks of Treasury approval, we will publish on this forum:

“Post-Quantum Cryptography Vulnerabilities in Substrate: A Practical Scanner Analysis”

Contents:

  • How sr25519, ed25519, and ECDSA are used across the Polkadot ecosystem today
  • Why these are quantum-vulnerable (Shor’s algorithm timeline)
  • NIST FIPS 203/204/205 migration paths for each pattern group
  • Step-by-step guide: scanning your parachain with QuantumScan
  • Aggregated findings from 233+ public repo scans

Team

Rodolfo Carvalho — Solo founder, Guatemala

Timeline

Period Activity
Now → +2 weeks Forum discussion, community feedback
Week 3 On-chain submission via Polkassembly
Week 4–5 (post-approval) Publish technical article on this forum
Ongoing (6 months) Maintain scanner, update patterns as Substrate evolves

Why This Matters for Polkadot

The quantum threat to blockchain infrastructure is not hypothetical — it is a compliance and security timeline that every parachain team needs to plan for. QuantumScan gives every Polkadot developer a free, open-source tool to understand their cryptographic exposure today.

We are not asking you to fund an idea. We are asking you to recognize work already delivered to the ecosystem and ensure it is maintained.

Questions, feedback, and technical scrutiny welcome.

You might want to review the current DOT exchange rate

(post deleted by author)

(post deleted by author)

@florentina57 — você tem razão e agradeço o alerta. Cometi um erro sério no post original. Com o DOT a ~$0,88 atualmente, 2.000 DOT equivalem a apenas ~$1.770 — não $9.500. Para cobrir o escopo original precisaríamos de ~10.750 DOT, o que excede o limite do track Small Spender (10.000 DOT). Revisão antes da submissão on-chain: Vou solicitar 10.000 DOT (máximo do Small Spender), calculado pela média de 7 dias no momento da submissão. A preços atuais isso representa ~$8.840 — ligeiramente abaixo do escopo original, mas vamos absorver a diferença. O post principal será atualizado com os números corretos antes de ir on-chain em 09/07.

@gaiabio12-design Thanks for posting. Since this is the main Polkadot Forum and most discussion here takes place in English, could you please keep the discussion in English or include an English translation?

It makes it easier for the wider community to follow and participate in the discussion. Thank you! :slight_smile: