5 ms·
Fun detail: their first-ever "emergency directive", owing to a rash of DNS hijacking attacks, and not one mention of DNSSEC, despite the fact that the US Govern
by tptacek 8y ago
Fun detail: their first-ever "emergency directive", owing to a rash of DNS hijacking attacks, and not one mention of DNSSEC, despite the fact that the US Government requires agencies to use it. And they do! Pull a list of random .GOV or .MIL domains and check if they have DNSSEC --- most will! And it did fuck-all to stop this attack.
- magila 8y agoThis attack vector is not something DNSSEC was ever intended to defend against, so why would it be mentioned? Once the registrar account associated with a domain is pwned the attacker can do pretty much anything they want with it, including obtain fraudulent certificates.
- tptacek 8y agoAs Colm MacCárthaigh noted on Twitter, not only does DNSSEC not defend against the most likely and damaging DNS attacks (hijacking between clients and servers, and hijacking at the registrar), it actually makes things worse: an attacker who has achieved the vantage point these attackers have can use DNSSEC to semipermanently poison records by using it to sign high-TTL records. It's not my claim that DNSSEC is what enabled this attack in the first place. But there's no way I'm going to leave the irony of USG agencies laboriously configuring their security-theater DNSSEC protocol while not being able to defend their registrar accounts or get basic MFA deployed.
- Abekkus 8y agoHijacked high-ttl records for signed zones aren't more dangerous than hijacked, high-ttl records for unsigned zones. Why do you claim that they are? They are both invalidated through the same mechanisms. It would be nice if there were reasonable limits on TTLs, but I'm not getting invited to those meetings.
- jessaustin 8y agoEffort spent on DNSSEC might have been better spent on e.g. CT.
- tptacek 8y agoCT: extensively remarked on in this advisory.
- jessaustin 8y agoYeah I read it; I was highlighting this for parent.
- tptacek 8y agoSorry, was emphasizing, not correcting.
- deleted 8y ago[deleted]
- anoncontractor 8y agoAs someone who has recently dealt with a major government agency, the requirement of DNSSEC means that agencies can’t use Route53 as it doesn’t support DNSSEC. This makes it much less likely that an agency will use something like Terraform for managing DNS, which would help in making sure all records are validated and easily auditable. Instead, many DNS records are managed by hand or with bespoke systems. The best case is that it’s managed by maybe Akamai, but records are still updated via support tickets and implemented by hand (as akamai’s Terraform support is pretty bad). So it’s relevent to mention DNSSEC because it’s spoken of within the government as a method of securing DNS, but in reality it makes things worse. It doesn’t protect against attacks like these and the end result is you are forced to use a crappy system that makes you even more vulnerable to these sorts of attacks. It’s the worst of all worlds. (Also, I was on the call they held for CIOs and tech leaders of all agencies, and it was astonishing how many of the questions in their chat made it obvious that many of the entrenched players didn’t even understand how this attack worked.)
- minaguib 8y agoTangential, but since you mentioned Akamai. I wrote a framework at work that maintains authoritative DNS configuration truth (static, and advanced GSLB variations) as text files going through git and regular PRs, auditing, etc. The truth is then flushed out via APIs to multiple DNS providers (active-active), Akamai being one of them. Nobody's APIs are perfect, but I don't recall it being too difficult to push the state to their system.
- anoncontractor 8y agoFor sure, you can totally make something like this happen, but again that means writing and securing a bespoke system. If you’re a team managing your AWS infrastructure with Terraform, it sucks to have to write a totally different system (and all the secrets management that goes along with it). Additionally, for a government agency you could have dozens of contractor teams, and you need a method of securing access for all of them. It’d be much easier to just use Route53 and delegated subdomains, as all teams are largely deployed and managing infra (with MFA) there. But it’s not allowed, because DNSSEC.
- microcolonel 8y agoTo be fair, most people by now are aware that DNSSEC is not just a PITA to set up, but also basically useless; not to mention it was not designed to do anything about attacks of this type.
- tptacek 8y agoThat's the problem: it was designed to deal with the IETF namedroppers favorite attack (server-server cache poisoning, a la Eugene Kashpureff) and not any part of the real-world threat model for DNS. In fact, at this point, DNSSEC has very little to do with securing the DNS (as it is used by the rest of the Internet) at all; rather, it's a self-justifying self-rationalizing mechanism for building random new things nobody uses on top of the DNS. So it won't protect your DNS records, but it will try its hardest to make sure the security of your SSH sessions somehow depend on the security of those records.
- microcolonel 8y agoAn actual good solution wouldn't really be that complex to implement. You basically just need to sign a record or set of complimentary records (for example, all of your NS records), and make it reasonably simple to select and return those signatures from a recursive resolver, and then build a certificate hierarchy the exact shape of the DNS itself. You install the public key for the super seekret ICANN cert, and the client either trusts the recursive resolver or caches the tld certs and recursively resolves those, or some combination of the two. Beyond that, it's all a clerical matter of being better or worse at verifying identity at the level of the registrar and the NIC. Maybe a third party could start implementing something like this (maybe just a directory of domains validated in the way we do that for TLS), and it could be grafted to a NIC's infrastructure (maybe I'll talk to CIRA about it), and then maybe ICANN would pay attention after that. I'd be up for it, if a handful of other people would try as well.
- loeg 8y agoThere are an awful lot of people who are unaware that DNSSEC is basically useless, unfortunately.
- Operyl 8y agoAlways a pleasure reading your rants on DNSSEC. How the hell was DNSSEC supposed to stop an attack against leaked credentials?
- tptacek 8y agoIt wasn't; that's not the point. The point is that it's expensive security theater that fails comprehensively in the face of real-world DNS attacks.
- Operyl 8y agoIt failed on this case, so it must equally fail in every? I don’t buy that ..
- eropple 8y agoNo. The assertion is that it does fail to provide a benefit in practical, real-world cases, but defends against a fairly niche attack. There's a reason that 'tptacek called it "security theater". Its implementors could better spend that time on actual security measures for things that are much more likely to happen...like defense in depth for credential leaking.
- rocqua 8y agoIt protects against targeted DNS poisoning, but that is already covered by TLS.
- ancarda 8y agoHow is that protected by TLS? Wouldn't you need a good A/AAAA record to make a connection to a TLS server? Or do you perhaps mean DNS over (TLS|HTTPS)? I never saw that as a complete replacement for DNSSEC; it provides transport security, yes, but how do we know we aren't talking to a malicious resolver? Maybe that's not as much of a threat if people aren't using DNS servers from their ISP -- which sometimes inject ads or otherwise tamper with traffic.
- walrus01 8y agoDNSSEC is not going to do anything if you have the username/password account for your domain registrar account hijacked, and somebody logs in and changes the authoritative nameservers for your domain. This whole notice really boils down to "seriously, people, if you lose control of your domain registrar account, all bets are off"