39 points · by ca98am79 · 5y ago · 74 comments
It was clear that somebody (presumably nation state actors, although likely not via the DNS hierarchy itself) tampers with DNS, in particular for military or "civil order" type authorities in certain countries. However, they don't usually bother using this to obtain a Web PKI certificate even though they easily could.
Can you guess why? What they want is credentials. So, hijack DNS answers for the mail server, user likely connects without TLS (or in a "fail open" setup supported by many mail clients so that TLS was abandoned once it didn't work) and you get their credentials - they don't even need to do anything, their mail client probably passively does this every few minutes while they sleep. But even for the web a lot of lay users don't type https://server.name.example/ to reach the site, they just type server.name.example and the redirect secures it... until one day it doesn't. You'd notice. I'd notice. 99% of users would not notice, especially before browsers all added affirmative warnings in the last few years.
Let me turn around your question: Now that Let's Encrypt and ZeroSSL give (almost) anyone certs, why should we bother implementing all new system with less features and less accountability?
With Let's Encrypt and the CA system, you have to trust Let's Encrypt, the DNS servers[2] Let's Encrypt uses, every router between Let's Encrypt and the DNS servers[2], and in most setups every other CA Mozilla/Google/your OS vendor ships too.
With DANE, you need to trust the people with the keys for the DNS servers[2] still, but you don't have the MITM risk, assuming local validation which is the only thing that makes sense with modern computers.
What features are possible with the CA system but not DANE?
[1]: This would require making a TLS connection to the server since only the hash is in the TLSA record which isn't ideal, but it would be possible.
[2]: I'm talking about the DNS servers needed for recursive resolution, so the root servers, the domain's TLD's namesevers, and the authoritative nameserver for the domain.
[1] transcript (search for DNSSEC or DANE): https://securitycryptographywhatever.buzzsprout.com/1822302/...
(I revere Sleevi and, while I think he's totally wrong about this, I believe he's grudgingly wrong about it, not gleefully wrong like the people who got Slack into this mess.)
The transcript you linked in particular is a giggle if you actually know what's going on because of course it's wrong all over the place in ways somebody who doesn't know can't fix. A few of them are generic (e.g. it's normal for English speakers to say "fifty-two eighty" to mean 5280 and then of course the transcript renders that as 52 80, and it's normal to pronounce ETSI "Etsy") but many more are not (if you know Ryan is saying PKIX then you can recognise that, but if you don't then "Peak X" or indeed "Peacocks" is a fair stab). [Maybe one of the many PKIX implementations should name itself "Peacocks" in the same way that "Secret Rabbit Code" stands out from other Sample Rate Converter libraries]
I assume the transcript is at least human curated to be as coherent as it is, but maybe not.
Ryan doesn't mention it on that podcast because it wasn't official yet, but much of the public role of Ryan (Sleevi) is now played by Ryan (Dickson).
The entire "How to be a Certificate Authority" podcast premise seems to be er, what if the "Honest Achmed" Bugzilla ticket, but a podcast. Which you know, fine but you are very late people - did you already do a "Steamed Hams" episode? Also, I'd be fascinated to hear from anybody, in any sector with auditors, who thinks they're actually getting something like that Affleck / Kendrick movie "The Accountant". Maybe Thomas thinks he's Ben Affleck? I've worked with auditors, both internal and external. They're like a code review from a junior. They might see something you missed but they aren't going to find anything you actually hid. Thus audit is valuable, until it isn't. Should I talk about that?
In fact Thomas has already brought up Symantec so why not, if you go back and look at that, one of the things I highlighted very early there was that Symantec are relying on auditors, and we know auditors are the worst option other than nothing. So, this is the right choice if your alternative was nothing, but Symantec had lots of better alternatives and didn't take them.
And this is one of the many places where I think Thomas is just obviously wrong, he describes CAs as "A force for evil" but er, no. We don't see a lot of evil. Now, honestly I'm not looking for evil, but even if I looked I don't expect to find much. What we see are the usual human failings: Laziness and incompetence. Maybe some greed. But mostly laziness and incompetence. I talked about hiding earlier. Isn't that evil? Nope. Just laziness again. You could fix the problem but it's a lot of work, so lie instead. Not evil, just lazy.
https://news.ycombinator.com/item?id=10019029
It's sad that advocating for Internet security requires advocating against a major DNS security protocol, but that's the way the cookie bounces.
Also, this ignores the main argument against DNSSEC / DANE:
> With DANE, you only have to trust ICANN, the country your TLD resides in, and your DNS service provider. This is far from ideal, but the traditional CA system requires trusting all of those entities and over 600 others.
Those 600 CAs are accountable to browsers -- the bad certificates are detected, and companies which misbehave are kicked out (see StartCom [0] for example). With DANE, there is no such mechanism. Your TLD provider leaked the key and is denying it? Nothing you (or anyone) can do without losing your domain name. The crypto has been broken and needs upgrades (see SHA-1), but provider does not want to do this? No way to force this.
In the field of cybersecurity, I trust a combination of Mozilla/Apple/Google more than any government agency.
Incorrect. You can sign your own root zone anytime you like, and we could see alt-roots if the root misbehaves.
With WebPKI there are many roots that can MITM you.
With DNSSEC there is only one.
Once we have CT for DNSSEC it will be easier to watch that root and the CA for each label in the domainname on the way to the QName than it is to watch tens of CAs in WebPKI.
Anyway, without HSTS, if your resolver is lying you are in bad waters and most (all?) CAs allow validation through dns records already.
I'd much much prefer that as it would not be more insecure than "trusting" hundreds of third parties but would bypass a ton of useless organisations.
A slightly less obvious problem with storing certificate chains in the DNS is that you can't revoke the DNS. You can, in fact, revoke entire chunks of the WebPKI. Not only have Chrome and Mozilla done so before, they did it to the largest and most famous CA. Google cannot revoke .COM; in fact, in practical terms, they can't even leave .COM, because hundreds of millions of users are trained to reach them at .COM.
An even less obvious problem with storing certificate chains in the DNS is that virtually no software --- especially not the low-level library code that everything is built on --- is designed to assume that the DNS can fail for policy reasons. When certificates are for whatever reason rejected, you get a UI flow telling you what's going on. It doesn't do a very good job, but it's better than nothing, which is what you get with DNSSEC: your site silently falling off the Internet, as if it had never existed.
There are other reasons too, but these are some of the high-level ones.
I don't think I have a chance of noticing if certificates are just TXT records and someone can compromise DNS (especially if it's selective). Maybe if you also require DANE certificates to have certificate transparency records, but automation of ACME is probably simpler than automation of DNS changes.
1. Compromised local network (such as bad public wifi, tampering by ISP)
2. Compromised registrar (DNS or CA)
3. Compromised backbone internet (possibly because of state-level interference)
4. Compromised infrastructure of the website I am visiting
("4" is all the way at the end of the list because if the website is compromised, they likely can get access to DB/web server directly, and DNS/TLS things don't really matter)
So even without HSTS, you are protected against 1 and 3; and, thanks to Certificate Transparency, have a good way to detect 2 (because Let's Encrypt does DNS queries from multiple regions and writes all certificates to CT Log). This is all live and works right now. And the threat of browser removal really causes CA to pay attention to browser security.
Compared to this, the DNSSEC solves 1 (at least so I've heard, the original spec was vulnerable); does not solve 2 and removes all the pressure for registrars to improve; and just gives up on 3 when the state is involved.
Additionally, your "upload a certificate chain" approach sounds like you want to skip using CT, which means that detection of 2 and 3 is also gone.
In the past there were more reasons to use DNSSEC. But now, when Let's Encrypt exists, and the state-endorsed internet interference happens in multiple countries, it simply makes no sense.
Problem #1 is why DoH exists. DoH does a good job at dealing with untrusted local DNS! In fact: it addresses most of the real on-the-wire threats to DNS, full stop. But it has nothing to do with DNSSEC.
1. It doesn't exist right now.
2. Getting CT working for the WebPKI was a lot of work, done in tandem by a lot of very talented people, and because virtually nobody in the industry uses DNSSEC (go look!), there's no incentive for that work to happen.
There's no question that the IETF could get a working group together to specify a transparency log for DNSSEC... eventually. I'd happily start a pool to bet on how long it would take them to bikeshed it out. But actually getting it deployed to the level of effectiveness that CT has today is a totally different story.
It has been over twenty years of work just getting DNSSEC to the (very bad) place it's at today. We should factor that in when we talk about what DNSSEC can and can't do. A think DNSSEC can't do today: provide transparency logs, like the WebPKI does.
Don't tempt the IETF...
The ADD group has been working on service bindings for DNS to signal the supported set of secure transports for a DNS server. The DNS Privacy Working Group is working on this topic. And now there is DANCE, attempting to apply DANE for network client authentication. And there’s DNSOP of course. One should never underestimate the potential for the IETF to solve the same problem thirty times in thirty different ways. Just think 'IPv6 Transition Mechanisms' to understand just how well the IETF can explore and standardize every possible option, to the inevitable confusion of all! https://blog.apnic.net/2021/11/18/dns-at-ietf-112/
3. The lack of a standardised DELEGATION_ONLY flag.
work on which was being pursued in the IETF[0] (and included a little shout out to you[1]) but sadly seems to have stagnated.
[0] https://datatracker.ietf.org/doc/html/draft-ietf-dnsop-deleg...
[1] https://datatracker.ietf.org/doc/html/draft-ietf-dnsop-deleg...
yes: Cloudflare
no: easyDNS, Google, Apple, Facebook, Wikipedia/media, Twitter, Reddit
I knew DNSSEC wasn't well-deployed, but I didn't realize how little.
It has been said about fundamental science that progress happens one funeral at a time... Something like that is applicable to core infrastructure, it is rarely upgraded, more typically replaced. So the lifecycles are somewhat longer.
In fact ECDSHAP256SHA256(13) will shortly be the most prevalent DNSSEC algorithm, and already has been a few times but for recent algorithm rollovers from the deprecated RSASHA1(7) (90% down from peak and falling) to RSASHA256(8) that temporarily put RSA(8) back in front.
The supremacy of RSA(8) over EC(13) is not for long: <https://stats.dnssec-tools.org/images/ksk-algs.png>. A month ago there was a 1.2M zone gap, it is now down to ~150k, and will soon be gone.
The TLDs have been a bit slower to adopt P256, just 45 so far, but these include e.g. .cz, .br, .ch and .fr. There will be more TLDs switching to ECDSA in 2022.
But even for off-path attacks, non-DNSSEC cache poisoning countermeasures have everything hanging by a thread and occasionally those fail, eg like this: https://www.bleepingcomputer.com/news/security/dns-cache-poi... - this is not often the easiest way to break into something, but it's not exactly good and robust either.
> Imagine if a DNS cache your computer (the client) had been relying on to lookup bleepingcomputer.com's IP, returned to you an incorrect IP address instead of ours?
A "certificate not valid" error would let me know, or since they don't enable HSTS, in the HTTP downgrade case, my browser would at least show "not secure". Yeah there may be some UI issues but "vital to the security of the internet" this is not.
No it wouldn't. If you can force the registry to change name servers records then they can change DS records as well and your new bogus name servers are nicely signed and legit.
I think DNSSEC has potential but its a chicken and egg. So few places use it that its more of a risk than a benefit.
The number one issue I see at the registries I manage happen when someone moves their shiny domain to a new provider who know nothing about DNSSEC, but the previous registrar had it signed. Instant foot gun which of course seems to be working for most places but not all because not that many recursive nameservers are set up to check for dnssec. Its really hard to diagnose if you've never used DNSSEC before.
Some of the arguments brought up ("but Libya could pown bit.ly") are complete nonsense because as the TLD owners, they already control EVERYTHING, including who the rightful owner is. With DV certificates like Let's Encrypt the whole idea of CA's somehow stopping the regime from a takeover becomes completely silly. If you want control not to fall in the hands of a foreign military regime, don't host your domain with said military regime.
All this talk reminds me about the strong resistance against HTTPS in browsers. Certificate validation was broken in many browsers just like validation of DNSSEC responses is broken today.
The outages due to DNSSEC Slack reported were all because of buggy software, with buggy software written by Amazon in their last failed rollout. Route 53 was incredibly late to the party, only introducing DNSSEC less than a year ago, so it makes sense that their implementation still contains bugs. I fail to see why this would be DNSSEC's fault.
European TLDs (.no, .cz, .nl, .se) seem to be ahead of the curve on DNSSEC with adoption rates already above 50% and most American TLDs have basically no DNSSEC adoption at all. It'll take a while for DNS to be verifiable with no interest from the major TLDs and no suggested alternatives.
I'd have a problem with DNSSEC even without the wretched design it has now (it would remain a government-controlled PKI), but the 1990s design is most of what animates me about it.
I don't really see what the "1990s design" argument is all about. If we'd design such a system today, we'd get the same system with maybe some more JSON or a blockchain of sorts, centralised around a few profit-oriented companies. Look at DoH (the version with and without the intermediate proxy server) to see what I mean.
You're right that the idea of assumptions about CPU power for DNS servers are outdated, but with modern software that's hardly a problem. DNS servers already solve this problem in every existing DNSSEC server I know.
dig +dnssec nsa.gov
It's not strictly required, but it makes everyone a lot happier, since most consumer oriented operating systems don't include a recursive resolver (or they're not enabled out of the box). I can't find a changelog for the root hints, but I don't think they change that often. I can see L changed IPs in 2007 (and IPv6 in 2015), D in 2012, H in 2015; B in 2017 (and also 2004); I'm not sure if there were changes before then too, but I'm pretty sure even if you had a really old list from 1991, at least a few of the roots are still there, and you could bootstrap from there.
There's value in a shared, somewhat local cache though. And also value in your ISP doing the recursion without the delay imposed by the last mile physical protocol.