Skip to main content
Back to blog

DNSSEC and the Weaknesses Named in Its Threat Analysis

Technical

DNSSEC and the Weaknesses Named in Its Threat Analysis article illustration

The security extensions for DNS attach signatures to the records themselves. The specification points at a separate document for the threats it answers, and that same document carries a section on the scheme’s own weaknesses. There are eight of them. A best current practice note published in February 2023 makes it possible to work out which two of them have an answer.

Where the signature is attached

The overview document for the extensions was published in March 2005, under the title DNS Security Introduction and Requirements. Its opening summary states the capability and the limit together. The extensions “provide origin authentication and integrity protection for DNS data, as well as a means of public key distribution”, followed immediately by “These extensions do not provide confidentiality.”

The line it draws runs between the data and the delivery. A parenthesis in its third section names that split: the scheme “is concerned with object security of DNS data, not channel security of DNS transactions”. Each signature travels with the record, so it survives caching and any number of relays, and it conceals nothing from anyone who sees it pass. The security considerations section restates the position without softening: “Due to a deliberate design choice, DNSSEC does not provide confidentiality.”

What gets signed belongs to a zone and not to the machines serving it. The document is explicit that “the key that signs a zone’s data is associated with the zone itself and not with the zone’s authoritative name servers”, which is what lets an answer come from a cache and still be checkable. The pointer type “resides at a delegation point in a parent zone”, naming the key the child zone signs with, so a validating resolver builds a chain upward from a key it already trusts. That chain walks the same delegations a question does, which a resolver meets as referrals on the way down.

Four new record types carry all of it: signatures, public keys, the parent’s pointer, and a proof of absence. What else may occupy the same label is a restriction that turns on which types are already present.

The weaknesses the same analysis names

The overview document makes no claim to completeness. Its third section says the services “protect against most of the threats to the Domain Name System described in” a companion analysis, cited by number. That companion is Threat Analysis of the Domain Name System, dated August 2004, and its own third section is headed Weaknesses of DNSSEC.

It opens flatly: “DNSSEC has some problems of its own:”. Eight bullets follow. Three are bills rather than holes: the size of the replies, the work a resolver takes on, and the way a wildcard complicates proving a name absent. The first reports from the testbed rather than from theory, warning that “trivial zone configuration errors or expired keys can cause serious problems for a DNSSEC-aware resolver”.

The fourth concerns where trust has to begin. “Like DNS itself, DNSSEC’s trust model is almost totally hierarchical”, and “in the general case the root key is the one that matters”, so a compromise anywhere between the root and the name you asked about can damage what the scheme promises about it. One further sentence keeps the complaint fair: “This is not a change, since insecure DNS has the same model.”

The sixth introduces a dependency on the clock. A signature carries its validity period in absolute terms, so “a validating resolver must have the same concept of absolute time as the zone signer”. Move either clock and the check moves with it: “An attacker that can change a resolver’s opinion of the current absolute time can fool the resolver using expired signatures.”

The last of the eight points back at a threat earlier in the same document. “Even with DNSSEC, the class of attacks discussed in section 2.4 is not easy to defeat”, and what it offers instead of cryptography is configuration: a resolver has to be told which categories of record it should insist are signed, work that “may require manual configuration of the resolver”. The earlier threat is the server you were handed answering in its own interest, covered already in the case of a party entitled to answer.

What happened to two of the eight

The fifth bullet has gone unmentioned so far. “Key rollover at the root is really hard”, the analysis says, and then: “Work to date has not even come close to adequately specifying how the root key rolls over, or even how it’s configured in the first place.”

A note numbered 237 in the best current practice series, published in February 2023, gathers the DNSSEC documents in one place and settles that item in a sentence. An automated method for resolvers to update their stored starting keys exists, and “This method was used in 2018 to update the DNS root trust anchor.” The same note dates the signing of the root to 2010. One of the eight is shut.

The complexity bullet went the other way. The 2023 note records an omnibus update to the original three documents, describing “many important security and interoperability issues that arose during the deployment of the initial specifications”, and it adds a warning for anyone opening the set today: “some of the DNSSEC-related RFCs have significant errata, so reading the RFCs should also include looking for the related errata.”

And one entry on its reading list amounts to a standardised off switch. A 2015 document “defines Negative Trust Anchors (NTAs), which can be used to mitigate DNSSEC validation failures by disabling DNSSEC validation at specified domains”. The overview document had named that risk itself, warning that switching the check on “may cause entire legitimate zones to become effectively unreachable due to DNSSEC configuration errors or bugs”. Turning it back off for a single domain is now a documented procedure.

The cost of proving a name absent

The missing confidentiality traces back to an original assumption, quoted in the overview document. The system took it that “all data in the DNS is thus visible”, so the extensions were “not designed to provide confidentiality, access control lists, or other means of differentiating between inquirers”.

Signing an answer that says no is the awkward case. A signature can only cover a record that exists, so proving a name absent needed a record of its own, naming the next existing name in order. Chained, those records describe the gaps, and the security considerations section states the result without euphemism: the scheme “introduces the ability for a hostile party to enumerate all the names in a zone by following the NSEC chain”. It grants that this “is not an attack on the DNS itself”, while noting that somebody could map hosts and resources from the chain. Later work generates narrower records on demand, and a hashed alternative is now part of the core.

The branch holding a number’s own entries is a separate zone with a separate signer. The pointers published back from a block of addresses come from whoever holds the block, not from whoever runs the sites it serves, so a chain of signatures over one branch establishes nothing about the other. That branch is signed, or left unsigned, independently of the one you began with, and a query there is one put to the party holding the block.

How much of it reaches you

Start with the deployment figures. The 2023 note is candid that the scheme “is still not widely deployed”, and gives the position then: “Recent estimates are that fewer than 10% of the domain names used for websites are signed, and only around a third of queries to recursive resolvers are validated.” The note treats that as a judgement about cost rather than about merit.

Validation is a property of the resolver rather than of the zone. The overview document gives a validating resolver four possible conclusions: secure, insecure, bogus, and indeterminate. The last is where everything starts. “There is no trust anchor that would indicate that a specific portion of the tree is secure”, it says of that state, followed by: “This is the default operation mode.”

What a stub resolver is told is thinner still. A stub that does not check signatures itself has “no choice but to place itself at the mercy of the recursive name servers that it uses”. One header bit is the evidence on offer, and the wording about it is careful: the stub “can use this flag bit as a hint to find out whether the recursive name server was able to validate signatures”. When a check fails, the only defined signal back is a generic server failure, and the specification states that it “does not define a format for communicating why responses were found to be bogus or marked as insecure”. A site that is down and a site whose signatures are wrong look alike from where you are.

A signature says where a record came from, not whether the value inside it is worth contacting. A validated answer establishes that a zone’s owner published that value and that nothing altered it in transit. Which network the number belongs to is a separate enquiry, answered by handing one public number to a page reporting the provider and the autonomous system behind it.

The dates are August 2004, March 2005 and February 2023. Two of the eight items have an answer by now, one a fix and one a procedure for switching the check off. Whether any of it reaches you at all is decided by the resolver answering your questions, and not by whether a zone was signed.