News for hackers. Stuff that matters.
Re:Juniper Networks will drop code tied to National Security... by tptacek on Saturday January 09, 2016 @11:39AM (#10871812)
After the reversing revelations published at RWC about the 2008 introduction of Dual EC to their code, it's been more or less established that Dual EC was deliberately introduced to their code by their development team as a backdoor.

When they reverted the "unauthorized" changes from 2012 (the backdoor in the news from a few weeks back), they were merely reverting to an older backdoor configuration.

The Reuters story isn't especially precise.

Dual EC, the construction, was designed by NSA (that's the "designed by NSA" referred to by the article.

NSA didn't write the code that appeared in ScreenOS in 2008 (or at least there's no evidence that they did).

Virtually nobody believes the 2012 Dual EC backdoor was implanted by NSA (Edward Snowden stated on Twitter that he believed NSA notified Juniper of that backdoor).

The big question now is how to attribute the 2008 backdoor (the original introduction of Dual EC to the platform). I lean towards believing it was sanctioned by NSA, because the changeset that introduced it included subtle tweaks to the rest of the system to make it easier to exploit, and those tweaks were --- I personally think --- not common knowledge among practitioners in 2008.

But there are arguments that it wasn't NSA; in particular, while the tweaks were subtle, the code introducing them is extremely hamfisted, easily reversed, and something of a dead giveaway about the nature of Dual EC, which, while known to be problematic in 2008, wasn't 100% believed to be the key escrow system it turns out to be.

If it's not NSA that introduced the original 2008 Dual EC backdoor, that's a devastating argument against policy officials who think we should design crypto backdoors: here's a backdoor concept designed in secret at NSA, turned against the US shortly after its introduction and undiscovered by the "good guys" for almost 10 years.

Re:Juniper Networks will drop code tied to National Security... by sandworm101 on Saturday January 09, 2016 @01:47PM (#10872339)
It doesn't really matter imho what the NSA did or did not do in relation to the code. What matters is what they could have done once that code was in place.

Given the revelations of recent years, we must assume that they exploited anything they could. Even if they didn't, that is still the prudent security assumption to make. Juniper speaks of a "knowledgeable attacker". Who is more knowledgeable an attacker than NSA? Perhaps Juniper employees? And how many are now working at/for NSA or some like agency?

This is the problem with secret organizations that are willing to spin stories and tell lies. The only prudent option is to fill all the blank spots in out knowledge with worst case scenarios. Maybe NSA had nothing to do with this, but there is nothing they or Juniper can say to substantiate that fact because they are no longer completely trustworthy. Math, code, these are not lies.

Re:Juniper Networks will drop code tied to National Security... by tptacek on Saturday January 09, 2016 @03:06PM (#10872653)
No, that's not how this backdoor works. If NSA didn't implant it, they don't have the private key corresponding to the parameters hardcoded into the software. That's why it's called a "NOBUS backdoor"; it's cryptographically locked to whoever implants it.
Re:Juniper Networks will drop code tied to National Security... by sandworm101 on Saturday January 09, 2016 @03:50PM (#10872821)
We don;t know that yet. This may have been the case of nsa-supported standards/devices/code being integrated without the agency being directly involved. Or it could have been a known tap put in place by someone without authority so to do. Either way, NSA may have access to things they don't even realize until they scan for whether their door has been installed.

Beyond juniper, This is a growing worry amongst open source projects.

Re:Juniper Networks will drop code tied to National Security... by tptacek on Saturday January 09, 2016 @05:09PM (#10873100)
You think Dual EC is a worry for open source projects?

Can you find any open source projects that use it? Or ever have used it?

Re:Juniper Networks will drop code tied to National Security... by sandworm101 on Saturday January 09, 2016 @06:03PM (#10873232)
Not DuelEC specifically, the concept that someone like NSA might be out there promoting open code or standards with known faults, even backdoors, in hope that they will be integrated without proper evaluation.
Re:Juniper Networks will drop code tied to National Security... by tptacek on Sunday January 10, 2016 @01:56PM (#10876578)
NSA doesn't need to do anything like this. Watch the CFRG standards process some time, or anywhere else on the IETF. They can sit back and let the standards committees do this stuff for them.
Re:Juniper Networks will drop code tied to National Security... by baby on Saturday January 09, 2016 @01:03PM (#10872167)
> After the reversing revelations published at RWC about the 2008 introduction of Dual EC to their code

So we already knew that, what made the beans tilt at RWC is when they announced that the Dual EC introduction was accompanied with the increase of the nonce length during an IKE: from 20 to 32bytes. Which basically means "hey, now we have the Dual EC backdoor in place, _AND_ we have the full 30 bytes of output + 2 bytes of the next output for easy use of the backdoor".

> Virtually nobody believes the 2012 Dual EC backdoor was implanted by NSA

Doesn't mean it's a bad theory though, it could have been them, as well as a rogue employee or a remote french spy...

Re:Juniper Networks will drop code tied to National Security... by revelation on Saturday January 09, 2016 @12:37PM (#10872055)
I think you're referencing this:

http://www.realworldcrypto.com/rwc2016/program/rwc16-shacham...

Shame there is no recording (and no paper).

Re:Juniper Networks will drop code tied to National Security... by baby on Saturday January 09, 2016 @01:06PM (#10872178)
Re:Juniper Networks will drop code tied to National Security... by acqq on Saturday January 09, 2016 @02:41PM (#10872535)
The interesting part:

"When they introduced Dual EC in their code (Juniper), they also changed the nonce length from 20 bytes to 32 bytes (which is perfect for easy use of the Dual EC backdoor). Juniper did that! Not the hackers.

- they are aware, through their disclosure, that it is "exploitable"

- the new patch (17 dec 2015) removed the SSH backdoor and restored the Dual EC point.

A really good question from Tom Ritter: "how many bytes do you need to do the attack". Answer: truncated output of Dual EC is 30 bytes (instead of 32), so you need to bruteforce the 2 bytes. To narrow the search space, 2 bytes from the next output is practical and enough. So ideally 30 bytes and 2 bytes from a following output allows for easy use of the Dual EC backdoor."

Re:Juniper Networks will drop code tied to National Security... by rhizome on Saturday January 09, 2016 @12:47PM (#10872092)
Would that Juniper had access to "git blame."
Re:Juniper Networks will drop code tied to National Security... by superuser2 on Saturday January 09, 2016 @01:25PM (#10872245)
Not really. You can put any name and email on any git commit - it's not tied to your SSH credential or anything. They'd need to be using signed commits.
Re:Juniper Networks will drop code tied to National Security... by rhizome on Saturday January 09, 2016 @05:10PM (#10873101)
Sure, but this is company code. There's no way to say they wouldn't obscure this information, but there is a chain of internal controls, presumably at least back to the person who merged the problematic commits.