QShift Labs
Sign in

Open source

Aptos

github.com/aptos-labs/aptos-core

C

Scanned 5 Dec 2026 at commit 9fa79b1b8f: 3099 files, C/C++, Go, JavaScript, Python, Rust, Server config, TypeScript, graded against CNSA 2.0, qshift 0.2.4.

0 weak today, 62 quantum-vulnerable, 4 below the profile, 3 ready.

How to raise the grade

The changes that move the grade most, in this order. Each step counts the places from the list below.

  1. Replace Ed25519/X25519

    42 places, most of them in crates/aptos-crypto/src/ed25519/. Use the ml-dsa crate (MlDsa87) or ml-kem (MlKem1024), or aws-lc-rs.

  2. Replace ECDSA/ECDH

    13 places, most of them in crates/aptos-crypto/src/secp256r1_ecdsa/. Use the ml-dsa crate (MlDsa87) or ml-kem (MlKem1024), or aws-lc-rs.

  3. Replace RSA

    4 places, most of them in types/src/keyless/. aws-lc-rs has ML-DSA-87 (unstable::signature::ML_DSA_87_SIGNING); ring has no post-quantum algorithms.

2. Protect data in transit

Key exchange and encryption a future quantum computer could break. Traffic recorded today could be decrypted later, so these come before signatures.

Quantum-vulnerableEd25519/X25519 42 places

Ed25519, Ed448 or X25519 from ed25519-dalek, ed25519-compact, ed448-goldilocks or x25519-dalek

Fix: Use the ml-dsa crate (MlDsa87) or ml-kem (MlKem1024), or aws-lc-rs.

Quantum-vulnerableECDSA/ECDH 13 places

ECDSA or ECDH from the p256, p384, p521, p224 or k256 crates (RustCrypto)

Fix: Use the ml-dsa crate (MlDsa87) or ml-kem (MlKem1024), or aws-lc-rs.

Quantum-vulnerableRSA 1 place

RSA from the rsa crate (RustCrypto)

Fix: Use the ml-dsa crate (MlDsa87) or aws-lc-rs (ML_DSA_87) for signatures and ml-kem (MlKem1024) or aws-lc-rs (ML_KEM_1024) for key establishment.

3. Move signatures

Signatures and certificates a future quantum computer could forge. Nothing recorded today becomes readable through them, so they can follow the key exchange, ahead of the CNSA 2.0 and NIST dates.

4. Tidy up

Not broken, but below the strength the profile asks for. Worth doing when the code is changed anyway.

Below profilerustls 0.20.9 1 place

Versions before 0.23.27 do not prefer the hybrid X25519MLKEM768 key exchange by default

Fix: Use rustls 0.23.27 or later with the default aws-lc-rs provider.

Below profilerustls 0.21.12 1 place

Versions before 0.23.27 do not prefer the hybrid X25519MLKEM768 key exchange by default

Fix: Use rustls 0.23.27 or later with the default aws-lc-rs provider.

Below profilerustls 0.22.4 1 place

Versions before 0.23.27 do not prefer the hybrid X25519MLKEM768 key exchange by default

Fix: Use rustls 0.23.27 or later with the default aws-lc-rs provider.

Below profilepycryptodomex 3.24.2 1 place

Versions before 4.2.0 have no ML-KEM (ML-DSA came in 4.1.0, ML-KEM and hybrid KEMs in 4.2.0)

Fix: Require pycryptodome>=4.2 (or pycryptodomex>=4.2).

Already post-quantum or strong enough

Readyrustls 0.23.46 1 place

Prefers hybrid X25519MLKEM768 by default with the aws-lc-rs provider.

Fix: None needed.

This is what the qshift scanner found in the public code at the commit named, with test folders left out. A scanner reports what it finds; it cannot prove that no other cryptography is used. It is not an audit and says nothing about how the project is run.