News for hackers. Stuff that matters.
Re:Speculation on "BULLRUN" by wbl on Sunday September 08, 2013 @01:12AM (#6347890)
What you said makes no sense. The assumption is that a block cipher is secure to differential cryptanalysis. CBC mode requires unpredictable IV, and as the BEAST attack shows, chaining is a bad idea. RFC 3602 specifies using a random IV. Could you please cite minutes and an RFC, and maybe some more information so we can judge for ourselves?
Re:Speculation on "BULLRUN" by marshray on Sunday September 08, 2013 @01:30AM (#6347924)
> The assumption is that a block cipher is secure to differential cryptanalysis.

That assumption was not taken for granted back in the 90's. It was only with years of cryptanalysis of AES (which had had resistance to known plaintext an explicit design goal) that designers felt comfortable with things like CTR mode.

In practice, we've learned that the block ciphers are by far the strongest part of the system, and it's the block cipher modes that provide the weakness for attackers.

IMHO this is the type of poisoned knowledge that the US spies should be blamed for.

Re:Speculation on "BULLRUN" by diminish on Sunday September 08, 2013 @02:19AM (#6348003)
..isn't a good place to be paranoid the core of AES, namely substitution-permutation network hocus-pocus. (Joan Daemen' and Vincent Rijmen's). A backdoor transformation would suffice to make all other paranoia superfluous.
Re:Speculation on "BULLRUN" by marshray on Sunday September 08, 2013 @02:33AM (#6348019)
I'm not saying its impossible, but decades of public cryptanalysis have failed to produce a significant dent in the security of 3DES or AES. On the other hand, we've seen a total discrediting of LFSR-based schemes and a steady flow of issues resulting from the block modes (padding and timing oracles).

We should be paranoid, but mostly that we might be not worrying about the right things.

Re:Speculation on "BULLRUN" by diminish on Sunday September 08, 2013 @03:02AM (#6348063)
You are right that padding/timing attacks on block modes and weaknesses in PRGs form the bulk of contemporary cryptanalysis. Nonetheless, if there is one single backdoor transform with a unique key on AES substitution-permutation network which would make further attacks possible, it would be nearly impossible to devise a adversary/challenge to reveal it using current cryptanalysis techniques. The standardization history for AES, and the organizations involved does not give much hope neither.
Re:Speculation on "BULLRUN" by marshray on Sunday September 08, 2013 @03:26AM (#6348091)
There are a couple of reasons I have some hope for the security of AES:

1. There's this proof that a trapdoored symmetric cipher is equivalent to a public key system (there's a link in the metzdowd thread somewhere). No one seems to have figured out how to build a public key system with anything close to the efficiency of AES.

2. The specification of AES itself isn't that large. It's not minimal, but neither does it seem to have large arbitrary-looking constants. https://en.wikipedia.org/wiki/Kolmogorov_complexity https://en.wikipedia.org/wiki/Nothing_up_my_sleeve_number

The NIST Dual-EC DRBG fails on both counts: 1. it is based on an obvious public key system, and 2. it recommends the use of large arbitrary constants that could easily be a trapdoor.

Now is it possible that NSA occasionally intentionally fails to backdoor a NIST standard in order to help us underestimate how often they succeed? Can we ever develop a coherent threat model with the possibility of this kind of adversary?

Re:Speculation on "BULLRUN" by tptacek on Sunday September 08, 2013 @10:48AM (#6348843)
I think if you're going to be a paranoid, Marsh, you might as well be an equal-opportunity paranoid and not exempt the algorithms you happen to like (or need, professionally). I think you're obligated to provide a real rationale for why we shouldn't all switch to Camellia.
Re:Speculation on "BULLRUN" by marshray on Monday September 09, 2013 @12:07AM (#6351791)
How about RC4 -> GOST -> AES -> Camellia, all with unrelated keys?
Re:Speculation on "BULLRUN" by wbl on Sunday September 08, 2013 @02:38AM (#6348031)
Now I am genuinely curious: at what point did the standard game definitions of security become widespread/presented? Because given those it is obvious that CTR is secure given a PRP, which any block cipher should be to be semantically secure when encrypting a single block.
Re:Speculation on "BULLRUN" by marshray on Sunday September 08, 2013 @02:54AM (#6348050)
My impression is that it was NSA/NIST's AES specification process that made it "officially OK" to stop worrying about known plaintext.

But really we need to ask some the folks older than I am. It would be a good question for the randombit or metzdowd crypography lists. Also, I'll tweet at Bellovin.

Edit: https://twitter.com/marshray/status/376600321637638144

Re:Speculation on "BULLRUN" by tytso on Sunday September 08, 2013 @06:47AM (#6348388)
Um, so you realize that the BEAST attack is pretty TLS (and heck, pretty implementation specific --- it only works against certain websockets implementation). That's because it is a chosen-plaintext attack, so it is dependent on TLS being used to encrypt Javascript, where the Javascript libraries are hosted on a server under the attacker's control.

Also, remember in the early 90's, when IPSEC was still going through its indeterminable standardization process, this was pre-AES, and most of us were still using DES (or if we could afford the CPU --- CPU's were much slower back then) 3DES. Heck, some of this work was going on before Javascript was even invented! :-)

BTW, I was wrong, the comments about not using a counter did make it into an RFC. See RFC 2405, which does state that using a counter or some other low-hamming distance is preferred.

Note that there are dangers with using a random IV --- if you do this, the RNG used to generate your IV's had better be independent of the RNG used to generate your session keys, or else you might potentially leak information about your RNG state that might be yet another wedge into attacking the crypto. (In particular, I would NOT recommend using RDRAND in bare fashion --- see comments on my G+ post #ThinkLikeTheNSA --- about what fun and games you might have if you could compromise the RDRAND instructuction.)

If you really want to be paranoid, generate a separate key (different from the key used for encryption and for generation of the MAC) and use that key as the basis of a Cyptographic RNG, and then use the output of that CRNG for your IV.

Re:Speculation on "BULLRUN" by caf on Sunday September 08, 2013 @09:02AM (#6348576)
BEAST does not require encrypting of Javascript. It uses Javascript, which can just as well be delivered unencrypted, to induce the browser to make separate requests to the HTTPS site, which include the chosen plaintext.

In the context of network stacks rather than browsers, inducing the target to encrypt chosen plaintext is often possible - ICMP ECHO, for example. Of course it seems rather difficult to arrange for your chosen plaintext to be right at the start of an IPSEC packet, since there will usually be a TCP or UDP header - but perhaps it is possible (and even if it isn't, that looks like rather flimsy protection).

Re:Speculation on "BULLRUN" by tptacek on Sunday September 08, 2013 @10:45AM (#6348833)
He is right about how specific the circumstances are that give rise to Bard's CBC IV attack. Not only that, but BEAST itself was the product of a former NSA cryptologist, now a Wisconsin university math professor; it is vanishingly unlikely that it was common knowledge inside of NSA, since the guy PUBLISHED it just a year or two after leaving the agency.

Either way, IPSEC was formulated in the dark ages of crypto. Almost nobody (except Phil Rogaway) knew this stuff about CBC back when the standard was being drafted.

Re:Speculation on "BULLRUN" by cryptbe on Sunday September 08, 2013 @01:28PM (#6349426)
> He is right about how specific the circumstances are that give rise to Bard's CBC IV attack. Not only that, but BEAST itself was the product of a former NSA cryptologist, now a Wisconsin university math professor; it is vanishingly unlikely that it was common knowledge inside of NSA, since the guy PUBLISHED it just a year or two after leaving the agency.

I don't think BEAST was a product of Bard. If we read Bard's papers then we probably never came up with BEAST [1]. Bard wanted to apply Rogaway-Dai's attack to SSL, but he didn't understand how browsers worked. His papers didn't target cookies - in fact he didn't even mention that word - but he wanted to decrypt short PIN sent in POST requests, which is impossible as far as I can tell. The reason we cited Bard was because his English is much better than us, so we'd thought that we could re-use his explanation of Rogaway-Dai's attack in the context of SSL. In other words, we both attempted to exploit the same vulnerability, but we used different approaches and targeted different secrets.

Another way to look at this: imagine if one reads Bard's do you think if he or she could use any of Bard's ideas to invent new BEASTies attacks, e.g., CRIME, Lucky 13, the RC4 attack, <your attack here>?

Re:Speculation on "BULLRUN" by tptacek on Sunday September 08, 2013 @02:17PM (#6349618)
I think it's fair to say that BEAST introduced and established the modern CPA browser attack methodology, and that (for instance) Lucky 13 depended on it.

But here, we're talking about IPSEC, not HTTPS/TLS, and the fundamental cryptographic design weakness we're talking about is, I think, Bard's. I could be wrong, though.

Re:Speculation on "BULLRUN" by cryptbe on Sunday September 08, 2013 @05:45PM (#6350499)
> But here, we're talking about IPSEC, not HTTPS/TLS, and the fundamental cryptographic design weakness we're talking about is, I think, Bard's. I could be wrong, though.

No, it wasn't Bard's. It's Rogaway and Dei's.

Re:Speculation on "BULLRUN" by wbl on Sunday September 08, 2013 @12:10PM (#6349166)
Rogaway published though: was lack of attention the result of the NSA influencing industry to ignore academic work?
Re:Speculation on "BULLRUN" by tptacek on Sunday September 08, 2013 @12:14PM (#6349182)
Rogaway didn't publish academically. He commented on the mailing list, and a bunch of standards group denizens pooped all over him. The same thing happened to Dan Bernstein on namedroppers. Is Perry Metzger an NSA agent? I have reason to doubt it.
Re:Speculation on "BULLRUN" by wbl on Sunday September 08, 2013 @02:38PM (#6349729)
http://www.cs.ucdavis.edu/~rogaway/papers/draft-rogaway-ipse... If you could provide some more information on responses, perhaps emails dismissing it, I think we can figure out what went wrong.
Re:Speculation on "BULLRUN" by tptacek on Sunday September 08, 2013 @03:03PM (#6349833)
What went wrong with IPSEC was that a bunch of standards group people set out to build a crypto standard that would impact every networking vendor on the planet, and did so with frank and open hostility towards academic cryptographers. The idea that NSA would have tried to subvert IETF implies that IETF was organized enough to subvert. But it wasn't and isn't. IETF is like the Internet's student council.

Lots of smart people have involved themselves with IETF, but those among them that I have talked to about it seem universally and profoundly frustrated by the whole process.

Re:Speculation on "BULLRUN" by wbl on Sunday September 08, 2013 @04:36PM (#6350206)
Could this hostility be the result of the NSA subversion? It seems as though the same few hardware vendors keep popping up as the people slowing down security fixes.
Re:Speculation on "BULLRUN" by tptacek on Sunday September 08, 2013 @04:45PM (#6350244)
No, I don't think so.
Re:Speculation on "BULLRUN" by anologwintermut on Sunday September 08, 2013 @01:13PM (#6349368)
Is the argument whether using either of the proposed IV generation modes is wrong or if it was do to NSA tampering? It certainly is wrong to do so (and should have been known to be wrong by the time of Rogaway's comment).
Re:Speculation on "BULLRUN" by tptacek on Sunday September 08, 2013 @02:19PM (#6349630)
I don't believe it was broadly known to be wrong during IPSEC standardization.
Re:Speculation on "BULLRUN" by anologwintermut on Sunday September 08, 2013 @02:41PM (#6349746)
Is that true for the LFSR proposal?I thought LFSRs were basically never thought to be cryptographically secure.
Re:Speculation on "BULLRUN" by tptacek on Sunday September 08, 2013 @02:55PM (#6349804)
I don't know the specific proposal, but I know how CBC designs with LFSR-generated IVs work, and why you'd want a deterministic generator for your IVs, and it's because it allows both sides to agree on a non-repeating progression of IVs without actually sending the extra block on every message.

LFSRs are also sometimes used in counter mode, too.

Again: obviously, a simple LFSR isn't cryptographically secure, and anyone who would deploy one in a cryptosystem probably already knows that. The question is: how are you mounting the attack you're talking about?

Re:Speculation on "BULLRUN" by anologwintermut on Sunday September 08, 2013 @04:41PM (#6350226)
Do you know of protocols that use LFSRs for IV generations of cryptographic purposes? Can you link to them ? I'd like to see if they are breakable.
Re:Speculation on "BULLRUN" by tptacek on Sunday September 08, 2013 @04:44PM (#6350242)
I've got nothing I can cite to you; it's also true that a lot of bespoke crypto enjoys a lack of usable attacker chosen plaintext, which is admittedly not a good property to rely on for a standard.