Check post-quantum readiness
A large quantum computer will break today's public-key cryptography: RSA, Diffie-Hellman and elliptic curves. Attackers can record encrypted traffic now and decrypt it later, so data that must stay secret for years is already exposed. NIST has published the replacements and set the schedule: the old algorithms are deprecated after 2030 and disallowed after 2035 (NIST IR 8547).
The first step of any migration is knowing where the old cryptography is in your code. The free post-quantum readiness rules for Bearer CLI find it and point to the NIST replacement for each finding.
Getting started
If you haven't already, install Bearer CLI using the instructions on the installation page or the quick start.
Download the rules:
git clone https://github.com/Bearer/pqc-rules.git
Then scan your project with them, using the --external-rule-dir flag:
bearer scan /path/to/your/code --external-rule-dir pqc-rules/rules --disable-default-rules
--disable-default-rules keeps the report to post-quantum findings only. Remove it to run the built-in rules in the same scan. Add --severity high to see only the most urgent findings.
What the rules find
The 66 rules cover Go, Java, JavaScript, TypeScript, PHP, Python and Ruby. They report:
- Key exchange and RSA encryption (high severity): secrets that can be recorded now and decrypted later. Move to ML-KEM (FIPS 203), or a hybrid key exchange.
- TLS and SSH settings that cap TLS below 1.3 or pin classical curves and algorithms, switching off the quantum-safe defaults.
- Signatures, certificates and JWT algorithms that use RSA, DSA, ECDSA or EdDSA. Plan a move to ML-DSA (FIPS 204).
- Key generation and cloud KMS keys (AWS, Google Cloud, Azure), as an inventory of the keys you will need to replace.
- Pre-standard algorithms such as Kyber and Dilithium, to move to their final versions.
Each finding has a plain explanation, a before and after code example in your language and the standard it maps to.
Learn more
The pqc-rules repository explains where to start, what each rule matches, the standards each finding maps to and what the rules cannot see.