The Best DNSSEC Analogy I Could Come Up With
We all know what counterfeit money is. Now imagine a sudden flood of it hits your town, and you own a small shop. Fake twenties are turning up in tills up and down the street, and every one your cashier accepts is money you never get back. What would you do to protect yourself?
Hold that thought, because that’s how we’re going to explain DNSSEC.
Unsigned DNS records are cash
Every time someone in your organization visits a website, a DNS resolver, usually one your organization runs, asks “what’s the address for certifiedproducts.com?” That resolver is the merchant. It’s the one that has to decide whether to accept the answer it gets back, and it’s the one that gets hurt if it’s fooled.
An unsigned DNS record is cash. It arrives over UDP port 53 with nothing to prove where it came from, so the resolver accepts the first answer that looks right. An attacker who floods it with counterfeit answers only needs one to arrive first. This is called cache poisoning, and once a counterfeit is accepted, your users are sent to the attacker’s copy of the site, usually built to harvest their credentials.
Counterfeits also travel. A poisoned internet service provider hands the bad answer to your resolver, which hands it to your users’ computers. One counterfeit bill, accepted once, gets passed along three times.
Signed DNS records are credit card transactions
One simple answer might be to stop taking cash. A card payment can’t be counterfeited at the counter, because the terminal checks it with the card issuer before accepting it. The validity of the card and the availability of the funds are all checked at the same time for credit card transactions. A signed DNS record works the same way: it carries signatures your resolver can check, the same way a card’s number, expiration date and security code get checked.
What protects them is a chain of trust, and the pieces map neatly onto a card payment:
- The root zone is the card network. Its key is the trust anchor, built into every validating resolver the way every terminal already trusts the network.
- Your domain’s authoritative servers are the bank. They issue the records, and signing them is what turns each one from cash into a transaction the merchant can verify.
- The resolver is the merchant’s terminal. It checks each transaction back through the bank to the network, and declines anything that doesn’t verify.
The terminal doesn’t just glance at the card. It checks the same few things on every transaction, and a signed DNS record carries each of them:
| What the terminal checks | In a signed DNS record |
|---|---|
| The card number: which account this is | The key tag: which of the zone’s keys made the signature, checked against keys the zone published and its parent vouched for |
| The expiration date | The signature’s validity window: every signature has a start and end date, and an expired one is declined. Expired signatures are one of the most common causes of real DNSSEC failures. |
| The security code: the three digits on the back, which prove you have the real card when you buy online. At the register, the card’s chip does the same job. | The signature itself: made with the zone’s private key, which only the domain owner holds. A forger can copy everything printed on the card but can’t produce this. |
| The signature strip: which the cashier is supposed to check | Even better: DNSSEC’s signatures are checked on every single answer. |
Each zone in the chain, root, top-level domain and second-level domain, publishes two keys. The key-signing key (KSK) signs the zone’s own keys. The zone-signing key (ZSK) signs the zone’s actual records. The link between zones is a hash of the child’s KSK, published in the parent zone and signed with the parent’s ZSK. So root vouches for .gov, .gov vouches for doi.gov, and doi.gov’s own keys vouch for its records. A forged answer can’t produce valid signatures, so a validating resolver rejects it.
The merchant also knows which customers carry cards. When a domain is signed, its parent zone publishes a record saying so (the DS record), and a validating resolver will then refuse any unsigned answer for that domain. A forger can’t fall back to cash. For a domain that isn’t signed, there’s nothing to check, and the resolver is still taking cash on trust.
Two jobs: signing and checking
If you publish a domain, you’re the bank, and you decide whether your records go out as cash or card. No bank would choose cash. Sign your zone and link it to its parent, so the merchants who look you up can insist on a card. That’s SC-20 in NIST SP 800-53.
If you run resolvers, you’re the merchant: they have to check every card and refuse the ones that don’t verify. That’s SC-21. A group policy on your endpoints doesn’t do either job.
The video goes further: how to test both controls, the settings for Windows and BIND, and SC-22, which covers how the DNS servers themselves are laid out.
NIST Control Freak: SC-20, SC-21, SC-22 on YouTube
If you’d rather have someone sort out DNSSEC, or the rest of your 800-53 controls, before an assessor does, get in touch.