This week the NSA released a statement that has been variously interpreted as “All cryptography is broken”, “Everything is fine”, or “It depends”. I am not a cryptographer, and nothing that I’m going to say here should be relied upon in any way, and if you want to ask questions about cryptography then you should be talking to someone qualified and not me. Anyway.
Let’s concentrate on what the NSA release does say.
Record which algorithms each system uses for key establishment, signatures,and certificates, particularly checking for algorithms not approved in CNSA 2.0 or CNSA 1.0 (e.g., DSA, elliptic curves other than P-384 or P-521 for ECDH or ECDSA, EdDSA, deprecated Diffie-Hellman groups, pairing-based cryptography).
CNSA is the “Commercial National Security Algorithm Suite”, a list of algorithms and parameters that the NSA recommends. That doesn’t inherently mean that the algorithm is insecure - the NSA typically only recommends one algorithm in any broad family, so having the NIST ECDH elliptic curves and not having ed25519 isn’t any sort of statement on the NSA’s part that ed25519 is insecure as such. But there’s a slight weirdness here. CNSA 1.0 includes ECDH with P-384 or stronger, and so flagging ECDH with a weaker key makes sense. But CNSA 1.0 also includes RSA with 3072 bits or more, and there’s no mention of “RSA with keys weaker than 3072 bits”. This seems… odd.
We do get a mention of RSA, though. In section 3, the NSA say
Verify the use of RSA 3K³ or P-384 as the base size for roots when updating infrastructure.
where footnote 3 is
2K may be required for legacy support in certain instances.
What can we conclude from this? First, while the overall recommendation is to move to modern algorithms like ML-DSA, P-384 and RSA-3072 are still considered adequate for now. That’s consistent with them being in CNSA 1.0, which has not been updated based on whatever the current threat is. And second, RSA-2048 is apparently considered acceptable if required for backwards compatibility. This is where things start getting interesting.
NIST defines the security level of a key in terms of the number of bits of security (which is, importantly, different from the bit length of the private key). Table 4 on page 48 of this document shows the current estimates of the number of bits of security for various algorithms. 128 bits of security is generally considered the minimum appropriate, and that corresponds to either RSA-3072 or P-256. In other words, in the absence of any identified weaknesses, P-256 has been considered about as secure as RSA-3072. So, if RSA-2048 is still ok for backwards compatibility, why is P-256 not also considered secure enough?
There’s two obvious interpretations of this. The first is that the NSA doesn’t want to encourage the use of anything weaker than they absolutely have to. RSA-2048 may be required because there’s deployed code that can’t handle anything else. In this universe, P-256 isn’t listed because the NSA aren’t aware of any code that supports P-256 but not P-384, so there’s no reason to special case it.
The other obvious interpretation, of course, is that P-256 is suddenly somewhere on the scale between “Weaker than RSA-2048” or “Proper fucked”, and this interpretation is backed up by Chrome and Mozilla have both announced movement away from using or trusting P-256, with Chrome’s timeline for revoking trust in P-256 certs effectively meaning that CAs need to be using P-384 intermediates and roots by the end of next week, otherwise certificates they issue will still be valid at the point that Chrome stops trusting them. That’s a strong indication that there’s something up here. But it still doesn’t answer the “Is P-256 proper fucked” question, and Chrome’s indication that they’ll continue trusting P-256 leaf certificates doesn’t really help us there.
Compromising an intermediate means you can sign certificates for any domain, so it’s important that they be secure (the eMudhra private key fuckup is a demonstration of what happens if they’re not). Compromising a leaf only lets you pretend to be the site (or sites) that leaf certificate was issued to, and that’s a reasonable local policy decision rather than one that has to be handled by CAs. The combination of these things does let us make some guesses. Chrome will distrust P-256 intermediates but continues to trust RSA-2048 intermediates. That’s an indication that there’s reason to believe P-256 is now weaker than RSA-2048. And Chrome continues to trust P-256 for leaf certificates while not trusting RSA-1024, so maybe that’s a lower bound? It’s almost certainly above “$5 on EC2” levels of security, but there’s still a huge gulf of uncertainty there.
What about other algorithms? EdDSA was listed as one of the types of keys to flag, and maybe that’s simply because it’s not in the CNSA, but RSA-2048 isn’t in the CNSA and wasn’t listed there. If we make the assumption that P-256 is now known to be weak, every algorithm other than EdDSA in the list is known to be weak. So maybe we should be assuming EdDSA is also affected by whatever’s giving us P-256 headaches, and moving away from ed25519 keys in SSH is a good plan? We don’t know for sure, but if this is a weakness that affects elliptic curve algorithms in general rather than being specific to the NIST curves, it’s reasonable to suspect that ed25519 is weakened to the same degree as P-256.
So, all we really know right now is P-256 is probably bad, but not how bad. ed25519 may also be bad, and if so it’s probably a reasonable assumption that secp256k1 is bad (this is probably not good for bitcoin), and maybe just get away from 256-bit EC everywhere. That might be P-384. It might be RSA-3072 or higher. But if you’re going to transition anyway, you should probably be doing the work to get ML-DSA supported so you don’t need to go through all of this again in a few years, which means ensuring all your services support modern algorithms, all your certificate infrastructure can issue them, and everything that’s consuming them works properly.
At least, that’s fine for software. What do we do with cases where we don’t have that flexibility? I’ve given a bunch of talks in the past about making use of TPMs to store private key material associated with a certificate that proves a device’s identity. Most TPM’s older than a couple of years only support RSA-2048 and P-256. Using RSA-2048 instead of P-256 is possible, but RSA signing is much slower than P-256 signing, and if every mTLS request is going through the TPM then that’s a problem. But if breaking P-256 is now possible but expensive, maybe I don’t care? The cost to extract a private key from a TPM is probably on the order of a small number of 10s of thousands of dollars at most, and as long as it costs more than that to break P-256 then I’m probably still safer keeping my weak keys in hardware than I am having strong keys on disk. Unfortunately I have no idea whatsoever how much it costs, and so I’m not able to figure that out.
There’s going to be a whole lot of other cases along the same lines. Migration comes with costs. Sometimes those costs are “just” engineer time and energy. Sometimes they’re the cost of replacing hardware that doesn’t support stronger algorithms. Almost nobody is currently in a position to judge whether those costs are worth it given the threats they face.
And given the hype around Anthropic having broken ML-DSA and then it turning out that required an entirely implausible attack, it’s understandable if people feel that the lack of information anyone’s providing here means it’s not worth doing anything at the moment. For what it’s worth, the vibe I’m getting from cryptographers is extremely different between these two cases. I think there’s strong reason to believe that P-256 is weak to a degree that matters, and unless you’re dealing with weird constraints that prevent using anything else you should get on that.
But, again, I’m not a cryptographer. If you have questions, you should probably be paying one of them.