Feature request: detector for quantum-vulnerable signature schemes (ecrecover / ECDSA.recover)
Describe the desired feature
Desired feature
A detector that flags contracts relying on ecrecover() or OpenZeppelin's ECDSA.recover()
for signature verification, informational-severity, noting that secp256k1/ECDSA-based signatures
are not resistant to a cryptographically-relevant quantum computer (CRQC).
Motivation
The Ethereum Foundation formed a dedicated Post-Quantum Security team in January 2026 (pq.ethereum.org), and NIST's PQC standards (ML-DSA, ML-KEM) are now finalized. As migration tooling starts to matter for the ecosystem, static analysis for "which contracts even rely on quantum-vulnerable signature verification" seems like a useful, currently-missing capability I couldn't find an existing detector or open proposal covering this (searched issues for "quantum" and "post-quantum": no results).
Distinct from #1950
This is a different concern from #1950 ("Improper usage of ecrecover"), which is about correctness of ecrecover usage (malleability, missing zero-address checks, yellow-paper compliance). This proposal is about cryptographic-scheme readiness flagging that a contract uses ECDSA at all, regardless of whether it's used correctly, since even a "correct" ecrecover call is still quantum-forgeable in the long run. Different severity model (informational/awareness, not a bug), different audience (protocol teams doing PQ migration planning, not auditors looking for exploitable bugs).
Proposed scope (v1)
- Detect calls to
ecrecover()andECDSA.recover()(OpenZeppelin) - Classification: Informational
- Output message references NIST PQC standards and links to pq.ethereum.org for migration context
- No changes to detection of ecrecover misuse that stays in #1950's scope
Happy to build this if the maintainers think it's a good fit let me know if you'd want it scoped differently before I put together a PR.
I've opened PR #3093 implementing the v1 scope proposed here (informational,
built-in ecrecover + OpenZeppelin-style ECDSA.recover, message pointing at the NIST
PQC standards and pq.ethereum.org, no changes to misuse detection).
It covers the builtin call, using ECDSA for bytes32 library calls, qualified
ECDSA.recover(...) calls, and includes e2e test data with negative cases (a recover
function in a differently-named library is not flagged). Happy to adjust naming,
matching strictness, or severity if maintainers prefer something different.