115 points · by kjw · 14y ago · 64 comments
It seems OpenDNS is interested in this technology only as far as it deflects from people being interested in DNSSEC, an ietf standard. Why don't they care for DNSSEC? Because it either discourages or prevents DNS poisoning or hijacking (depending on how you set up your client) and Open's business model relies on hijacking NXDOMAIN DNS responses to serve ad filled pages.
DNSSEC is a design-by-committee debacle. It's a good thing to have options here.
I'm a broken record on DNSSEC on HN; a decent starting point might be:
http://news.ycombinator.com/item?id=2078488 (Goals of DNSSEC v. DNSCurve)
http://news.ycombinator.com/item?id=1523704 (Bunch of things I think are wrong with DNSSEC)
I initially posted "Authentication, too" in response to this, but then I reread the page and it says it doesn't provide authentication.
...in which case, I don't really understand this at all. What good is integrity if there's no authentication? Doesn't that mean an active network attacker can completely swap out the DNS response for a different one, but just can't modify it (short of creating a brand new one)? If that's the case, it seems completely useless. It claims to protect against man-in-the-middle attacks, but I don't understand how that's possible if there's no authentication.
I'm sure I'm missing something here.
You can't MITM a DNSCurve request, because it's encrypted and signed using a pair of static keys.
"standards are great everyone should have some" snark aside, I guess it's nice to see someone really stepping forward and giving a crap about cryptographic authentication of DNS? the DNSSEC people don't seem to care that much and are perfectly willing to move at glacial speeds on implementation ...
* failed architecturally twice before reaching its current state (it is being, as Richard Stallman would put it, debugged into existence)
* required signin from multiple huge corporations to begin deployment, so much so that some (well known) DNSSEC proponents have unironically proposed alternate privately run roots just to get things kickstarted
* requires the maximum amount of re-education from DNS operators everywhere, being as it is a standard that imposes even greater levels of config complexity than HTTPS/TLS, but on a DNS record by DNS record basis
* is effectively a no-op in the current DNS architecture, where your desktop doesn't run a bona fide cache but instead delegates that task to a cache server (the thing you call a "DNS Server" in your Internet configuration, but which on reflection turns out to be something no Internet host actually needs if they're willing to run their own cache) --- because it only protects server-to-server traffic, and architecturally can't protect stub-to-server traffic.
* Will require upgrades to every "sockets"-style program ever written to properly function.
If a magic wand existed that could dispel any of these issues, I assure you that the IETF working group would wave that wand right away.
It improves my security and privacy without any cost I can perceive. So why not.
Considering it took me a while to understand the value to me, I wonder if it can be packaged in such a way to get broader adoption from the public. Will you have to bundle it with McAfee Internet Security for Mom & Pop to end up using it?
edit I didn't notice libnacl is provided, so I assume a good chunk of the crypto work is done by this. My comments were probably too harsh. But I would still like to see a professional look over the rest of their code to make sure there's no glaring problems.
Luckily, the library they're using (NaCl) is part of a project led by djb, thus we can assume it's going to be competently written and reviewed by him. I hadn't seen this so this makes me feel better about the crypto part of their project.
The crypto under the hood is Curve25519. http://cr.yp.to/ecdh.html I haven't looked at the source, but the most likely library for them to use (curve25519-donna) was written by the guy who does crypto for Chrome.
Since DNSCrypt relies on a proxy written in C, you'd want that reviewed, and can hope for a "looks clean" from the usual vulnerability research suspects. But you should understand that the people who submit Metasploit modules and the people who do real cryptosystem review are for the most part disjoint sets.
That would be the "don't bother encrypting that which is not authenticated"? ISTR a free DNS resolver company (I think it was OpenDNS) doing a MitM on my friend's Google searches when he used them.
Or are you just against anyone deploying new crypto protocols?
And tptacek's corollary: "If You're Typing The Letters A-E-S Into Your Code, You're Doing It Wrong" http://chargen.matasano.com/chargen/2009/7/22/if-youre-typin...
I bet every cryptographer in the world, other than Bruce Schneier and Ron Rivest, hears that all the damn time.
No wonder so few of them ever release any code.
Then again, DNSCurve does not seems to be bad at all. In fact, it seems rather good.
However, since you won't touch OpenDNS' encrypted DNS, the only logical reason for that is you feel unreviewed, encrypted DNS is more risky than the current unencrypted DNS.
† That assumption is where things may break down, of course. If you are already using DNSSec, then the reading becomes "I trust DNSSec more than OpenDNS' unreviewed client."
This is really only an improvement for open wifi, but then you can MITM the IP without having to hijack DNS.
On day one, it protects the desktops that opt into deployments provided by servers that opt into it.
But unlike with DNSSEC, which retains the DNS' architectural distinction between the stub resolver in your browser or OS and the cache server at your ISP, the same security protocol that secures the "last mile" with DNSCurve is also workable between servers. Most notably, deploying that secure option does not require the server to change its database.
The day 1 benefit of having a secure channel between browsers and resolver servers probably addresses 60% of the DNS security problem in reality --- that's not a small win, it's an immense win. But even in the long run, DNSCurve is a more workable path to secure name resolution than DNSSEC.
Don't most users use their ISP's DNS servers, making hijacking between the browser and resolvers nearly impossible?
Also, because it's insecure, you can't productively opt on to a more secure provider.
It works fine when I have the "use OpenDNS servers" box checked, but the moment I click the "use encrypted OpenDNS severs" box my internet connection doesn't resolve anything.
I tried to send them feedback but the form doesn't appear to submit. (Hardly reassuring.)
Also, you only need to "refresh" as often as your local machine's DNS cache clears.
Tor proxies your traffic through several random machines on the internet, so by the time it gets to the destination, no one knows who sent it.
This captures and relays your DNS queries to OpenDNS in a new way.
DNS queries are used to translate a site's name ( facebook.com ) into it's internet address - 123.456.789.
OpenDNS has run a service which did the translation for a long time, but when you ask them to translate, it passes through your ISP, so your ISP could, in theory, see what domain name you were asking about.
This has a way of encrypting the request, so that OpenDNS can answer the translation, without anyone but you being able to see what you asked for.
and without anyone being able to replace IP address of facebook.com with IP address of some MitM server (in the ISP network, for example)