News for hackers. Stuff that matters.
Re:Distrustful U.S. allies force spy agency to back down in ... by wallace_f on Thursday September 21, 2017 @11:16AM (#15304257)
>it's mostly a political decision, not a technical one.

Is there a good reason to trust the NSA's motivations?

The NSA's stated motivation from the article:

>encryption tools [...] without requiring a lot of computer processing power.

But it was noted that:

>“There are probably some legitimate questions around whether these ciphers are actually needed,” said Curtis Dukes, who retired earlier this year. Similar encryption techniques already exist, and the need for new ones is theoretical, he said.

The NSA's purpose is as a spy agency. No matter how effective that clear coat they're selling you might actually be, they're probably selling you on something you really don't need because it has a benefit to their purpose.

Re:Distrustful U.S. allies force spy agency to back down in ... by dfox on Thursday September 21, 2017 @01:30PM (#15305680)
The use-case for Simon/Speck are things like IoT and other places where you are not only limited by CPU power, but also by message sizes, while on the other hand the amount of traffic is so small that you can live with significantly smaller Ns in various 2^n attack difficulties than normal use cases. For such applications it is certainly better to use Simon/Speck than rolling you own proprietary algorithm (see KeeLog, NXP "Crypto-1" as used on MIFARE Classic and so on).

Probably only other algorithm with similar level of scalability which was openly peer reviewed is RC5. In comparison to Speck/Simon, RC5 is significantly more complex (due to it's key schedule) and is not constant time on platforms without barrel shifter. (X)TEA and such things can be similarly tuned for various block and key sizes, but there are no recommended parameters for doing that and thus you get into the "rolling your own crypto" territory very fast.

Re:Distrustful U.S. allies force spy agency to back down in ... by tptacek on Thursday September 21, 2017 @11:34AM (#15304470)
No, there's no reason to trust the NSA's motivations. I'm just not sure what the NSA's motivations have to do with this.

If you're asking, "do we actually need lightweight ciphers", well, the NSA isn't the only organization designing them; it's a whole field of research. If you want cryptographic security on machines that don't have multipliers and count their capacity for program text space in single-digit kilobytes, you're probably going to reach for special-purpose designs.

Re:Distrustful U.S. allies force spy agency to back down in ... by Programmatic on Thursday September 21, 2017 @12:54PM (#15305331)
Running an algorithm chosen by an attacker with extensive resources is foolhardy, because you can never be certain that your resources are sufficient to detect a trap carefully hidden by their resources. We have a history of the NSA performing attacks and standards subversion. Why accept their potential trojan horse when you can have algorithms designed by those without that checkered past, keep up the same amount of scrutiny for potential trojan horses, and have decreased odds of a backdoor being present if the provider is more trustworthy?

It seems that taking motivations into account could lead you into a false sense of security, but that if you keep up the same amount of security and distrust known bad actors that you increase it.

Re:Distrustful U.S. allies force spy agency to back down in ... by tptacek on Thursday September 21, 2017 @12:55PM (#15305334)
Re:Distrustful U.S. allies force spy agency to back down in ... by throwaway2048 on Thursday September 21, 2017 @12:54PM (#15305333)
The NSA massively violated trust in the technical standards processes, now they get to lay down in their bed.

If your response to this is "don't worry about it, its unlikely these ciphers are backdoored", you are missing the point.

Re:Distrustful U.S. allies force spy agency to back down in ... by tptacek on Thursday September 21, 2017 @12:55PM (#15305340)
This isn't responsive to anything I wrote on this thread. I am interested in talking about cipher design, or about the technical intersection between trust and cipher design. I've already stipulated the politics of the story, which are deeply boring to me. You're addressing arguments I haven't made.
Re:Distrustful U.S. allies force spy agency to back down in ... by ethbro on Thursday September 21, 2017 @11:20AM (#15304320)
The NSA is dual purpose. Both as a signals spy agency and a signals counterintelligence agency.

And ultimately, what's the difference between a publicly vetted algorithm proposed by the NSA and a publicly vetted algorithm proposed by someone else?

Everyone points at the Dual EC fiasco, but if vulnerabilities are possible either way it seems like throwing the baby out with the bathwater.

Re:Distrustful U.S. allies force spy agency to back down in ... by gnode on Thursday September 21, 2017 @11:41AM (#15304568)
Any food could be poisonous, possibly with a poison you don't know how to detect. Would you rather eat food prepared by someone known to have poisoned you before, with obvious motivation to poison you again, or someone with no history of poisoning people? In no case are you guaranteed to not have poisoned food, but I know which I'd prefer.
Re:Distrustful U.S. allies force spy agency to back down in ... by tptacek on Thursday September 21, 2017 @11:48AM (#15304634)
There's a strain of anti-intellectualism here. It's actually not true that any algorithm might be backdoored. Algorithms aren't unknowable.

Furthermore, people act like there's a track record of super-sneaky NSA backdoors, and that Dual EC shows we can't trust anything NSA produces. I don't trust the NSA at all. But Dual EC wasn't sneaky. There were only two surprising things about Dual EC:

(1) That they actually managed to get anyone to use it, despite how clunky and slow and unreasonable the design was.

(2) That having produced a design that stuck out like a sore thumb for clunkiness, slowness, and unreasonableness, that design would be their backdoor; we gave them a lot more credit for tradecraft than that.

People knew there was something shady about Dual EC almost from the jump. It is a random number generator that works by encrypting random state with a public key for which the private key is undisclosed. It's obviously weird.

That's not the case with SPECK and SIMON. They're mainstream designs, and, more importantly, if you can hide a backdoor in a simple ARX Feistel block cipher that can be implemented in 100 lines of code, we probably have bigger concerns than these algorithms.

Should you use SIMON and SPECK? Of course not. You shouldn't go anywhere near lightweight ciphers unless you know exactly what you're doing, and if you know exactly what you're doing, there are less politically controversial lightweight ciphers to use. The problem here isn't that the world is being deprived of SIMON and SPECK; it's that we're getting too practiced at turning our brains off.

Re:Distrustful U.S. allies force spy agency to back down in ... by schoen on Thursday September 21, 2017 @12:58PM (#15305372)
Hi Thomas, I have a conceptual question.

In the past there was a common idea that NSA's classified research might be a decade or more ahead of the academic world, even in an era when the academic world had gotten interested in crypto in earnest, and that they might know of entire classes of vulnerability that other people didn't. Probably the clearest precedent in support of this concern was differential cryptanalysis.

Recently I've heard more of a suggestion that we understand crypto dramatically better than we used to, that cryptanalysis that appears to be hard generally is hard, and that spy agencies have been migrating largely to side-channel attacks and exploitation of vulnerabilities (and maybe also supply-chain attacks). (The weak Diffie-Hellman thing is apparently not a counterexample because there was open literature giving appropriate defensive guidance about that for many years.) Famously Snowden said that "crypto works" and reportedly leaked very little information about novel cryptanalysis, although there's also the counterargument that he might not have access to the relevant compartments to know how crypto doesn't work.

I've even heard the claim that most of the unknowns for pure cryptanalytic attacks are in some way now known unknowns. At least, academic understanding of the mathematical problems has really matured significantly.

What do you think about this question? If someone said "but what if NSA has the next mathematical breakthrough akin to to differential cryptanalysis, which Nadia Heninger is only going to discover in 2027?", would you say "that's really implausible nowadays given the maturity of our understanding of the math here"?

(And I know Nadia mainly works on number theory and algebra rather than block ciphers.)

Re:Distrustful U.S. allies force spy agency to back down in ... by tptacek on Thursday September 21, 2017 @01:42PM (#15305778)
This is a carefully written question that deserves a better response than I can give it. My basic answer is, "I don't know". I can give you some hunches, but you should be aware that they're based on the same kinds of first-principles reasoning that I'm so skeptical about in other people's HN comments. So:

* I have been very unimpressed with the quality of NSA "TAO's" tooling, and, when I have conversations with people closer to NSA offensive cyber stuff than I am, what shakes out generally is that they people at the tip of that particular spear tend to be super young people in basically their first ever software job.

* But Stuxnet was sort of impressive.

* But then, what was impressive about Stuxnet was domain knowledge about a particular piece of industrial equipment, not hardcore computer science. The software engineering details of Stuxnet were kind of unimpressive.

* But there's Flame, which is impressive in a CS kind of way.

* NSA's original advantage in these kinds of systems probably stems largely from the fact that they were a monopsony buyer of cryptographic talent for many decades. You'd expect there to be a period of catching up.

* But cryptography is now one of the better known pipelines for applied mathematics research, particularly for people who cross over between math and CS, and there's a lot of those people, so it's hard to see why NSA's advantage would be sustainable over the long term.

* But also NSA does have a sustainable advantage in the kinds of cryptanalytic work that can only be done with massive, specialized compute resources, and for all I know when you can casually conduct research on gigantic ASIC clusters as easily as I can fire up Sage and add generate a curve point, you learn a whole bunch of stuff that is broadly applicable.

* But academics get to collaborate directly with everyone in their field and NSA not so much, which is a mitigating factor.

I think it's very healthy that we assume that NSA has space-alien capabilities. It adds rigor to our security models. And again I don't think we should use things like SIMON and SPECK.

I just don't think we have to stop talking about the engineering aspects of SIMON and SPECK simply because they came from the NSA.

Re:Distrustful U.S. allies force spy agency to back down in ... by treebeard901 on Thursday September 21, 2017 @04:46PM (#15307198)
For most people the reaction to something proposed by a spy agency is to immediately assume there is an ulterior motive. Your rational explanation helps control this thought process and is much appreciated.
Re:Distrustful U.S. allies force spy agency to back down in ... by linkregister on Thursday September 21, 2017 @11:59PM (#15309298)
> I have been very unimpressed with the quality of NSA "TAO's" tooling, and, when I have conversations with people closer to NSA offensive cyber stuff than I am, what shakes out generally is that they people at the tip of that particular spear tend to be super young people in basically their first ever software job.

Are you trying to find out who the TAO employees on HN are? They'll be itching to defend themselves.

Re:Distrustful U.S. allies force spy agency to back down in ... by tr1ck5t3r on Thursday September 21, 2017 @02:37PM (#15306239)
Just add random data so every encrypted has to be brute forced and then you'll see the NSA applying for more Bluffingdales, a bigger budget, and more side channel attacks, like the Intel ME.
Re:Distrustful U.S. allies force spy agency to back down in ... by pbsd on Thursday September 21, 2017 @03:21PM (#15306548)
One thing that tends to get overlooked in these discussions is what being 'a decade ahead' really means. Suppose you go back to 2007. What ciphers are you able to break now that you couldn't then?

In the past decade, I can think of 2 sort of new general cryptanalytic attacks: invariant subspace attacks, and the division property. The division property didn't really break anything; it claimed a full break of MYSTY1 with complexity 2^70, in case you happen to have the entire codebook already. It doesn't work well mostly for the same reason cube attacks haven't: most cipher designers know how dangerous a low algebraic degree can be.

The invariant subspace attack has been more successful, mainly in the lightweight space, mostly because it exploits the symmetries that tend to make a design smaller and elegant. But once again, against vetted ciphers it has not done so well.

So let's posit the NSA does have another couple of attacks in hand we don't know about. Chances are they're not going to be very useful. Do they specifically affect SIMON and/or SPECK? It would require an intersection of conditions that seems very implausible, and it seems tricky to have it affect both designs at the same time without being noticeable. But I guess we'll know in 2027.

In another note, if I was going to make a cipher with a hidden weakness to dupe the world into using, I probably wouldn't go with a block cipher---literally the most heavily analyzed kind of primitive in the public sphere. I would probably go with a stream cipher, or a stream-like dedicated authenticated cipher, whose security is much less studied than block ciphers, and can still be used in most places a block cipher would be.

Re:Distrustful U.S. allies force spy agency to back down in ... by tptacek on Thursday September 21, 2017 @04:10PM (#15306916)
As an engineer and not a researcher, are invariant subspace attacks worth digging into? Is there a better starting point than the PRINTcipher paper?
Re:Distrustful U.S. allies force spy agency to back down in ... by pbsd on Thursday September 21, 2017 @05:05PM (#15307341)
Probably not, I don't know. There's a better paper from a couple of years ago [1], which even manage to include code [2]. One of the attacks on NORX [3] was essentially exploiting a bigger-than-expected invariant subspace, it might be easier to get the gist of it that way.

By the way, I have the feeling that these attacks are more the consequence of these sort of designs becoming more popular than any particular breakthrough in cryptanalysis. For example, the symmetry properties of the AES round were already well known long ago, but it wasn't until people started taking the AES round and building primitives out of it without adding symmetry-breaking constants that this became a problem.

[1] https://eprint.iacr.org/2015/068

[2] http://invariant-space.gforge.inria.fr/

[3] http://dx.doi.org/10.13154/tosc.v2017.i1.156-174

Re:Distrustful U.S. allies force spy agency to back down in ... by Programmatic on Thursday September 21, 2017 @01:02PM (#15305404)
Referred from your reply to my comment[0]; Algorithms can be backdoored due to having a novel technique to defeat them that you have not disclosed and has not otherwise been discovered yet. We are constantly adopting and discarding encryption algorithms that have not withstood the test of time.

If someone has gotten a jump on research and found a novel attack against their math, but the math looks good enough to convince others to use, that is an enormous advantage.

[0]: https://news.ycombinator.com/item?id=15305331

Re:Distrustful U.S. allies force spy agency to back down in ... by tptacek on Thursday September 21, 2017 @01:16PM (#15305539)
And my rebuttal to that notion is that if the NSA has secret math that breaks a simplified, stripped down standard ARX/Feistel design, we probably have bigger problems than the NSA's preferred lightweight cipher. I'm not fond of citing Schneier, but he's an authority to a lot of people here, and look what he has to say about Speck: that it's basically an improved version of Threefish.

The "unknowable secret math" argument works both ways. As I said upthread: if you believe this, how do you rule out the possibility that ARX designs are the ones NSA can't break, that they have secret math that only works against iterated ciphers built solely on bitwise primitives, and that they published this particular cipher --- something they rarely do! --- precisely to create the kind of suspicion we're seeing on the thread?

If you want to play Kremlinology instead of talking about engineering, arguments like that are fair game too. I'd rather rule both of them out.

Re:Distrustful U.S. allies force spy agency to back down in ... by Drdrdrq on Friday September 22, 2017 @02:06AM (#15309751)
Of course, this could be NSA's test of community trust and an attempt to gain some goodwill. Surely they know they are not the most popular kid on the block... :)
Re:Distrustful U.S. allies force spy agency to back down in ... by bonzini on Thursday September 21, 2017 @07:21PM (#15308141)
> if you can hide a backdoor in a simple ARX Feistel block cipher that can be implemented in 100 lines of code, we probably have bigger concerns than these algorithms.

It wasn't a backdoor, but doesn't this sound a lot like SHA-0? The NSA fixed the mistake and published SHA-1, but they didn't say why. They might as well have designed the cyphers a similar issue and kept it hidden.

SIMON and SPECK have been analyzed by the wider cryptography community, but in principle something like the above wouldn't be surprising from the NSA...

Re:Distrustful U.S. allies force spy agency to back down in ... by tptacek on Thursday September 21, 2017 @08:11PM (#15308374)
I'm reasonably confident, as I assume you are, that if NSA actually has a practical weakness in SPECK, they're not going to disclose it, despite having promoted it as a standard.
Re:Distrustful U.S. allies force spy agency to back down in ... by jlarocco on Thursday September 21, 2017 @05:45PM (#15307635)
> That's not the case with SPECK and SIMON. They're mainstream designs, and, more importantly, if you can hide a backdoor in a simple ARX Feistel block cipher that can be implemented in 100 lines of code, we probably have bigger concerns than these algorithms.

Isn't the bigger concern that the NSA may be proposing these because they already know how to break them, and not necessarily that they'll sneak back doors into implementations?

Re:Distrustful U.S. allies force spy agency to back down in ... by tptacek on Thursday September 21, 2017 @05:48PM (#15307656)
I'm not really distinguishing between NSA knowing how to break a conventional block cipher and NSA having snuck a backdoor into it. To me, the implications are basically the same either way, as is my rebuttal.
Re:Distrustful U.S. allies force spy agency to back down in ... by dfox on Thursday September 21, 2017 @01:59PM (#15305924)
Can you point me to some other publicly analyzed lightweight ciphers that are better choices than speck/simon? From my review of that space I got the impression that speck and simon are the more reasonable (and probably also more reviewed) designs.
Re:Distrustful U.S. allies force spy agency to back down in ... by cortesoft on Thursday September 21, 2017 @12:19PM (#15304997)
If we have a fairly robust system for detecting poison in the food, and we successfully detected the poisoned food the last time they tried to poison us, and the food looks really tasty because the chef was pretty good, even if he was a poisoner...... I might eat it.
Re:Distrustful U.S. allies force spy agency to back down in ... by ethbro on Thursday September 21, 2017 @05:57PM (#15307699)
I'd eat it for the same reason I prefer more used open source packages: my threat model ranks "not enough smart people looked at this" a lot higher than "only a few people in the world know a secret about this."