QShift Labs
Sign in

Open source

CockroachDB

github.com/cockroachdb/cockroach

D

Scanned 5 Dec 2026 at commit 11147ab574: 6671 files, C/C++, Go, JavaScript, Python, Server config, TypeScript, graded against CNSA 2.0, qshift 0.2.4.

14 weak today, 26 quantum-vulnerable, 1 below the profile, 0 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. Fix what is weak today: MD5/SHA-1D to C

    14 places. Use crypto/sha512 (sha512.New384 or sha512.New).

  2. Replace RSA

    14 places. Go 1.27 has crypto/mldsa, Go 1.24+ crypto/mlkem (use the 1024 variants); plan the move per use.

  3. Replace RSA/ECDSA

    9 places. Store new keys as PKCS#8 (x509.MarshalPKCS8PrivateKey) so ML-DSA and ML-KEM keys fit the same code.

1. Fix now: weak today

Broken or too weak today, without any quantum computer. These hold the grade at D or F.

Weak todayMD5/SHA-1 14 places

MD5 or SHA-1 from crypto/md5 / crypto/sha1

Fix: Use crypto/sha512 (sha512.New384 or sha512.New).

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-vulnerableRSA/ECDSA 9 places

RSA or EC private keys read or written in PKCS#1 or SEC 1 form

Fix: Store new keys as PKCS#8 (x509.MarshalPKCS8PrivateKey) so ML-DSA and ML-KEM keys fit the same code.

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 profileclassic ECDHE groups only 1 place

go 1.23.7 in go.mod keeps the hybrid ML-KEM key exchange of crypto/tls off for programs built from this module (GODEBUG default tlsmlkem=0)

Fix: Raise the go line and any godebug default to 1.24 or later (go mod edit -go=1.24), or add godebug tlsmlkem=1 to go.mod.

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.