How Capy is getting ready for post-quantum cryptography
Your secrets in Capy are already encrypted with algorithms that hold up against quantum computers. One flow, capy pair, still uses classical elliptic-curve key exchange, and we're moving it to a hybrid post-quantum scheme now.
On 2 December, the US Office of the National Cyber Director (ONCD), NSA and CISA said in a joint statement that companies had privately disclosed discoveries that "impact the security of some cryptography currently in use", while noting these "do not present an immediate and widespread threat". The statement doesn't name the algorithms.
What happened, and who said what
- Anthropic published a theoretical quantum attack on 30 November against the structured lattice problems under ML-KEM and ML-DSA. Anthropic says it is not practical at the standardized sizes.
- The Cryptography Incident Review Group (CIRG) reviewed it independently and found that even 2^1000 quantum operations would be far below its cost against the smallest ML-KEM and ML-DSA parameters. Its advice is to keep migrating, choose the highest security level you can, use hybrids, and design for agility.
- ONCD, NSA and CISA issued the joint statement. NSA's companion advisory flags elliptic curves other than P-384 and P-521, plus EdDSA, which points away from P-256 and X25519. That's the reason
capy pairis moving off P-256 to P-384 paired with ML-KEM-1024. - The UK's NCSC called Anthropic's papers significant theoretical work, not a threat to deployed ML-KEM or ML-DSA, and left its advice unchanged.
- Germany's BSI said a threat cannot be reliably ruled out and that migration timelines may need to shorten.
- NIST standardized ML-KEM in FIPS 203 and sets out how to use and combine key-encapsulation mechanisms in SP 800-227. It had not commented publicly on the papers as of 3 December, and its standards are unchanged.
An inventory of Capy’s cryptography
Anything built on 256-bit symmetric keys and hashes keeps roughly 128-bit security even against a quantum computer. That covers almost everything the capy CLI does.
| What it protects | Algorithm | Post-quantum status |
|---|---|---|
Your secret values (capy push, pull, run) | AES-256-GCM, keys from HKDF-SHA256 | Safe |
| Project keys from your org master key | HKDF-SHA256 | Safe |
| Master key from your 24-word recovery phrase | BIP-39 + PBKDF2-SHA256, 600,000 iterations | Safe |
Master key on your machine (key.enc) | AES-256-GCM under a per-machine key, plus an AWS KMS outer layer | Safe |
| Local-only mode passphrase | PBKDF2-SHA256, 200,000 iterations, random salt | Safe |
Invites (capy invite / capy redeem) | Random 32-byte token sent out of band, HKDF, AES-256-GCM, AWS KMS | Safe |
Deploys (capy deploy, CI secrets) | HKDF, AES-256-GCM, AWS KMS | Safe |
Moving keys to a new machine (capy transport) | One-time 256-bit key in the link, AES-256-GCM | Safe |
Pairing a machine through Keep (capy pair) | P-256 ECDH, then HKDF and AES-256-GCM | Upgrading to P-384 + ML-KEM-1024 |
| HTTPS from the CLI to api.capy.sc | TLS 1.3, classical key exchange | Upgrading to hybrid post-quantum TLS |
The service only ever stores ciphertext. Nothing in this table gives Capy, or anyone who breaks into Capy, your plaintext secrets.
What we're changing
Pairing moves to a hybrid key exchange: P-384 ECDH plus ML-KEM-1024. The pairing QR code and link never carried keys. But the envelope that carries your machine key from Keep to the CLI is sealed with P-256, so that is what we're replacing. The service keeps each sealed envelope for only a few minutes before deleting it, so nothing decryptable persists.
- Hybrid, not post-quantum alone. Both shared secrets feed the key derivation, so an attacker has to break both. If a weakness turns up in either family, the other still protects you.
- Highest standard levels. ML-KEM-1024 (NIST FIPS 203) and P-384 are the levels in NSA's CNSA 2.0 guidance, and the highest level is what CIRG recommends.
- Versioned envelopes. Every envelope carries a suite ID, so the next change is an update, not a redesign.
- Post-quantum TLS. We're also moving api.capy.sc and the CLI's runtime to hybrid post-quantum TLS, so traffic recorded today can't be opened later.
What you need to do
When the release ships, update the CLI the way you installed it, through Homebrew, npm or the install script. There's nothing else to do. Your stored secrets don't need re-encrypting, and your keys don't change.
Sources
- ONCD, NSA and CISA joint statement, 2 Dec 2026
- MIT Technology Review on Anthropic's lattice result
- CIRG assessment of the recent lattice research
- Filippo Valsorda on the NSA advisory
- UK NCSC response, via AI Security Wire
- NCSC, BSI and NIST responses, via i10x
- NIST FIPS 203: ML-KEM
- NIST SP 800-227: Recommendations for key-encapsulation mechanisms