upvote
Yeah, the DES S-boxes were handed down by the NSA and later discovered to be resistant to differential cryptanalysis--indicating that the NSA discovered it before public mathematicians did.

But that doesn't mean that they're always two steps ahead of the public and that they couldn't be surprised by something coming out of OpenAI/Anthropic.

There's also a middle road where the NSA "bet" correctly that 256-bit EC crypto would be vulnerable to a non-galactic N/3 bit attack, but didn't actually have the attack themselves. Signs of them dropping P-256 for P-384 may just mean that they were acting conservatively on the basis of the publicly-known galactic N/3-bit attack.

reply
I believe the NSA is the single largest employer of mathematicians in the world. So maybe not that surprising.
reply
They are the largest single-employer, but the vast majority of mathematicians don't work for the NSA.

They are secretive though and so we have no clue exactly what they know or don't. Most mathematicians by contrast are publishing in public and so the NSA knows pretty much everything everyone else knows. Encryption is very important to lots of real world things and so there are lots of public mathematicians publishing and it's generally suspected the NSA doesn't know much more than we do but they probably know something.

reply
They don't know much, but "it is generally suspected that they know something"? I sure hope so! Surely we're not wasting all of those tax dollars to be at parity with poorly funded public institutions.
reply
And they’re pretty well funded and connected, if someone needed massive amounts of compute for something I’m quite sure the NSA knows how to get it.
reply
The NSA knew about "asymmetric cryptography" (what we'd call public-key cryptography) since the 1950's. They've always been far ahead of the outside world. It was the main draw of working there, which until very recently most (by numbers) cryptographers in America did.
reply
Why the "until very recently"? They probably increased those numbers in recent times.
reply
Because cryptography is now mainstream. It protects our internet communications, and as a result there are cryptographers employed and supported at public institutions, paid with public grants or industry support, and no-longer-niche conferences and trade shows. This is without even considering the substantial boost to cryptography that the cryptocurrency boom provided.
reply
Probably not. The top people can Make millions which the nsa won’t pay
reply
Academia doesn't seem to have any issue finding willing participants despite not paying well.
reply
Tenure positions in US academia (at least in most PhD granting institutions) pay well and are very comfortable.
reply
Academia pays with job security and a light workload after tenure.
reply
Occam's razor: The simplest explanation is that the NSA did not make this discovery a decade ago. They simply deemed that 128 bits of security strength is unacceptable for National Security Systems as part of the transition from Suite B to CNSA [1].

One detail that seems to be lacking from these conversations is that CNSA dropped many more algorithms, including AES-128 and SHA-256. All three algorithms (SHA-256, AES-128, and P-256) are assumed to provide 128 bits of effective security strength. Dropping them at the same time is reasonable assuming that 128 bits of security strength is not acceptable for use in National Security Systems. The NSA specifically said they dropped these algorithms for concerns over advancements in quantum computing at the time the change was made.

We don't need to go into conspiracy-brained territory to explain any of this. The NSA has not magically known how to break ECC all this time. They are just cautiously making rational decisions based on their threat model.

The NSA isn't stupid. They know that security through obscurity does not work [2].

[1]: https://pomcor.com/2016/02/09/nsas-faqs-demystify-the-demise...

[2]: https://catless.ncl.ac.uk/Risks/25.71.html#subj19

reply
> They simply deemed that 128 bits of security strength is unacceptable for National Security Systems as part of the transition from Suite B to CNSA [1].

Doesn't check out, CNSA 1.0 retained 128 bit strength DH and RSA.

reply
The total number of mathematicians in the world isn't that huge, they're not like software engineers. Only a subset of mathematicians work in fields that would be useful in crypto. The NSA is the world's largest employer of mathematicians and has an essentially unlimited budget. Give lots of mathematicians the task of working on cryptography and cryptanalysis, without having to write grant proposals or other administrative trivia of academia, and give them a team of programmers who can implement experiments or run computations on supercomputers, then it's quite likely they will be years ahead of public research. It also helps that NSA mathematicians get to read all academic research but don't publish their results.

And other countries with the capability to do this sort of research probably also snap up quite a few mathematicians capable of this sort of work. I'm sure China's MSS or Israel's Unit 8200 have also made some discoveries ahead of the public community.

reply
I would say: Manhattan Project and project Ultra (Enigma). In the sense that an organization with ample funding, serious brainpower, time and a clear mission can create a circumstances where they can outperform. Math is (or: was) a game for prodigees. But that is not neccesarily the best form of cooperation.
reply
Why do we assume the NSA didn't have LLMs or something similarly powerful a decade ago? They have the largest compute clusters in the world.
reply
No, they do not.
reply
Were there actually tons of mathematicians outside the intelligence community working on it? Outside a handful of university maths department or the NSA, who would be paid to work on such problems?
reply
Where is the source of this rumor that the NSA had already figured this out?
reply
I’m rather doubtful myself, but the possibility can’t be excluded.
reply
I'm more inclined to believe that the NSA was the one responsible to steer the standard setting bodies towards the encryption algos they already knew had flaws, and not the other way around. It's a lot easier to create something with a backdoor preinstalled and make it the standard, than to try and find a flaw after the fact.
reply
NSA will always attempt to weaken the cryptographic standards, but they are nonetheless limited by the fact that they must avoid making them so weak as to make possible the discovery of the weaknesses by adversaries.

Today, NSA must take into consideration the fact that anything that has been discovered by OpenAI and Anthropic with LLMs is likely to have been discovered or to be soon discovered by China too.

OpenAI and Anthropic may have obtained some hidden cryptographic results that could be important, but among the public announcements those made by Chinese are much more impressive than anything shown by OpenAI/Anthropic, i.e. they have broken a great number of candidates to recent cryptographic competitions including several proposed quantum-resistant algorithms, and also even a winner at such a competition, and also a new cipher proposed by NSA.

Therefore I do not think that NSA is pushing the adoption of certain quantum-resistant algorithms (ML-KEM and ML-DSA) because they know how to break them, because if that had been the case they should have been afraid that whatever attack they know now, it will soon also be discovered by China, which could then hack unimpeded all US "National Security Systems".

Thus I think that the promotion by NSA of the "Commercial National Security Algorithm (CNSA) Suite 2.0" is done in good faith, so those algorithms are secure enough for most purposes, even if they are not the best.

reply
NSA has demonstrably and repeatedly strengthened cryptographic standards. The last time they "attempted to weaken" a standard was back in the 1970s with DES. 25 years ago, just after the conclusion of the key escrow debate, they inserted a backdoor into standards, but even that backdoor was cryptographically strong. Since then, we have repeated counterexamples to your claim:

* AES, selected by NIST with NSA's approval, remains the gold standard for bulk encryption.

* SHA2, NSA's response to SHA1, is so solid JP Aumasson believes it may never be broken.

* SHA3, selected by NIST with NSA's approval, is a European academic cryptography artifact.

* P-256 was until last week the best known classical-setting mainstream key exchange; implementations caught up to the engineering improvements in Curve25519, and we now know conclusively where the seeds came from (spoiler: benign and dumb).

People will read this and assume I'm saying "you should trust NSA". I don't believe that. A healthy distrust of NSA is a good thing. But it's also important to understand how the world actually works, or you'll end up saying things like "every NSA-approved standard has been weakened", and this is how you end up doing block cipher cascades and SRP.

Everything would be so much easier if NSA could simply be counted on to fuck everything up. But they can't. Cryptography is hard, and to reason about it, people need to actually learn at least a little bit of cryptography math; heuristics like the one you propose here are always counterproductive.

reply
I think the big part of the tension is the NSA has two jobs when it comes to data security and protection.

1. Gather intelligence on non-domestic entities.

2. Protect domestic entities from foreign entities trying to do the same.

The question basically Comes down to which of those two you think they value more. The thing is they probably know if you back door something and you’re using it and that back door ever leaks or is found out you have also compromised your self.

reply
Dual EC drbg?
reply
Conspiracy theories about backdoors excusing doesn't mean it's weaker.
reply
It's a protocol that clearly can have a backdoor inserted, that has no reasons to exist (because it's a slow and not very random RNG), which the NSA payed $10 million to get included as a default for several projects. Oh and the NYT has said they've seen in some of the unpublished Snowden documents that it has a backdoor.
reply
As I have already said, NSA has an ambivalent attitude against cryptographic standards, so indeed there are examples for both actions, when they have strengthened standards and when they have weakened standards.

Whether they have more often strengthened or weakened is debatable.

Your examples are not very good, because NSA has not contributed to Rijndael (AES) and Keccak (SHA3), it has just accepted these 2 good algorithms to be standardized, so it neither strengthened nor weakened the AES and SHA3 standards.

SHA3 has no relationship whatsoever with the European academic environment. Its origin comes from the European industry, more precisely from European manufacturers of embedded micro-controllers, for automotive and industrial applications.

The BDAP team, i.e. Guido Bertoni, Joan Daemen, Gilles Van Assche & Michaël Peeters, are employees of NXP Semiconductor and STMicroelectronics. This background explains why SHA3 is optimized for a hardware implementation in ASICs, and not for a software implementation.

I agree about the excellent strength of SHA2, which was developed by NSA, but it was not "NSA's response to SHA1", because SHA-1 had also been developed by NSA, but at a time when they had much less experience in designing one-way hash functions.

The original SHA from 1993 was just a slightly improved MD4. It had some serious defects, which were discovered internally by NSA before any widespread use of SHA, so the original standard was replaced after a couple of years by the corrected SHA-1, which resisted many more years until becoming broken.

After the standardization of AES, there was the obvious problem that there existed no standard one-way hash function with a strength comparable with AES, because SHA-1 was much weaker, so NSA solved this by designing SHA2, which offers a range of hash functions strong enough to be paired with the various variants of AES (originally also a variant to be paired with Triple-DES, which was deprecated later), and by that time they had learned how to design a good one-way hash function.

reply
I don't think these rebuttals are really at all responsive to what I wrote. There are conspiracy theories about SHA-1 and the NSA's "tweaks" to it, and you've conceded that they're bogus by acknowledging that NSA's last mainstream NSA-authored standard has excellent security.

As of like 20 years ago, there will likely never again be an NSA-authored fundamental cryptography standard. The AES competition was too successful, and NSA's reputation is too complicated. NSA's influence on cryptography is now measured through their influence on open cryptography competitions.

You say there are examples "in both directions". I put up DES from the 1970s, and SHA2 from 2002. What are your other examples? What do you have besides Dual EC? Examples where NSA took a standard we all ended up using and depending on and weakened it. Do you have another example?

reply
Since the standardization of AES, NSA has mostly laid low, but before that, for a decade there had been a continuous fight between NSA and those who wanted to use cryptography freely.

Fortunately, at that time there were in USA many more people willing to fight for their rights, and also the justice was much less biased and much less obedient to the executive than today.

One could write a book describing everything that NSA did during that time. There was the failed attempt to impose the universal use of the Skipjack cipher and of its Clipper implementation. There were the Internet browsers with crippled RC2 and RC4 ciphers. There were lawsuits, attempts to block some publications at conferences or in books.

More specifically and more recently about attempts to weaken standards, I have seen many very questionable decisions during the standardization work for the creation of some of the IEEE standards for cryptography, and some have wondered whether those were attempts to weaken those standards, but in such cases it is pretty much impossible to distinguish honest mistakes or instances of incompetence, from intentionally trying to make the standard weaker.

reply
I'm noticing that you're not giving me examples of the phenomenon you claimed.
reply
Extraordinary. USG has repeatedly weakened, sabotaged and hacked cryptographic systems for decades!

Crypto AG - Swiss global leader in cryptography. Owned by USG and sold compromised encryption until 2018.

40 bit limit on US TLS/SSL exports. Weak on purpose.

RSA. USG paid a $10m bribe to RSA Security to distribute Dual_EC_DRBG. Confirmed to be compromised by USG in snowden files.

Extended Random TLS. Designed to trigger the Dual_EC_DRBG compromise.

This speculative attack (subexponential in ecc) - in 2015 NSA randomly advises companies they don't need to move to P-384 any more. Bizarre at the time.

reply
[dead]
reply
Well, we'll see if R-1 and K-1 are equally affected.
reply
DES S-boxes perhaps?
reply