Skip to content
QuantumScan for DeFi · v1.5.0

Scan Solidity contracts for quantum vulnerabilities

Quantum computers running Shor's algorithm will break secp256k1 and ECDSA — the cryptographic foundation of every EVM wallet, oracle signature, and multi-sig. Scan your contracts before deployment.

$2.5T+ in DeFi TVL relies on quantum-vulnerable ECDSA

What QuantumScan detects in .sol files

HIGHecrecover() / ECDSA.recover()
address signer = ECDSA.recover(hash, sig);

Direct secp256k1 signature verification. Broken by Shor's algorithm.

HIGHEIP-712 typed data signatures
_hashTypedDataV4(structHash)

Structured signing used in permits, votes, and meta-transactions. ECDSA underneath.

HIGHAssembly ecrecover precompile (0x1)
staticcall(gas(), 0x1, ptr, 0x80, ptr, 0x20)

Low-level call to ecrecover precompile — common in gas-optimized contracts.

HIGHChainlink oracle (secp256k1 DON)
AggregatorV3Interface(feed).latestRoundData()

Chainlink DON uses threshold ECDSA secp256k1 for price feed aggregation.

HIGHERC-2612 permit() gasless approvals
IERC20Permit(token).permit(owner, spender, value, deadline, v, r, s)

Signature-based token approvals will break post-quantum — no PQC standard yet.

HIGHGnosis Safe / MultiSig N-of-M ECDSA
safe.execTransaction(..., signatures)

Each signer key is a secp256k1 key pair. All N signers are quantum-vulnerable.

Vulnerable Solidity dependencies

@openzeppelin/contracts

ECDSA.sol, EIP712.sol, SignatureChecker.sol

@openzeppelin/contracts-upgradeable

Upgradeable ECDSA/EIP712 contracts

@chainlink/contracts

Oracle interfaces — DON uses secp256k1 ECDSA

@safe-global/safe-contracts

Gnosis Safe N-of-M secp256k1 multi-sig

How to scan your contracts

  1. 1Run the CLI on your Foundry or Hardhat project:
  2. 2Review findings — every HIGH-severity pattern is quantum-vulnerable
  3. 3Add // quantumscan-ignore to suppress false positives
  4. 4Share your scan report with your auditor or DAO
$ npx quantumscan .

Scan now — free, no account required

QuantumScan is open-source (MIT). No code leaves your machine when using the CLI.

Scan a GitHub repo →

QuantumScan for DeFi is supported by the open-source security community. If your protocol uses this tool, consider funding the project via Open Collective or GitHub Sponsors.

Ready to migrate?

Step-by-step migration path for every pattern: ecrecover → ERC-4337, permit() circuit breaker, Safe PQC module and more.

PQC Migration Guide →
← Back to home