Dan Kaminsky and the day DNS got fixed
In 2008, Dan Kaminsky found a flaw in DNS — the system that turns domain names into IP addresses — that let an attacker redirect the traffic of an entire domain. It was not a bug in one product, but in how the protocol worked.
The response was as unusual as the discovery: competing vendors fixed it in secret, together, and shipped the patches on the same day. Kaminsky died in 2021, aged 42. What he left behind is more than a CVE.
What DNS cache poisoning actually was
When your browser asks for a site’s address, the question reaches a resolver — a server that finds the answer and keeps it in cache for whoever asks next. If somebody manages to slip a forged answer into that cache, every user of that resolver ends up wherever the attacker wants, even though they typed the correct address.
The only real protection was a 16-bit transaction ID: 65,536 possible values the attacker had to guess. Not many, but enough as long as you only got one attempt.
And that was the known limitation: if you missed, the legitimate answer entered the cache and stayed there until it expired. You had to wait, sometimes hours. That made the attack theoretically interesting and practically uninteresting.
The idea that changed everything: ask for subdomains that do not exist
Kaminsky noticed that nothing forces you to ask for the name you want to poison. You can ask for an invented subdomain — something random, certainly not in the cache. The resolver has to go and look, and you get a fresh attack window.
Miss? Invent another subdomain and try again. No waiting at all. The limitation that made the attack impractical was gone.
The second element mattered just as much: in the forged answer you injected not only the address of your invented subdomain, but also information about which server is authoritative for the whole domain. You were not poisoning one entry — you were taking over the domain.
Combined, the two ideas turned a laboratory attack into something executable in seconds. And the flaw was not in one implementation but in the protocol: it affected everyone at once.
The patch of 8 July 2008
Kaminsky worked at IOActive as director of penetration testing. Rather than publish, he did something that rarely happens: he got the vendors around one table. In March 2008 a discreet meeting took place at Microsoft’s campus, with representatives of companies that spent the rest of their time competing.
On 8 July 2008 they released the patches simultaneously. Kaminsky publicly asked other researchers for a thirty-day grace period before speculating about the details, so administrators could update. He would present everything at Black Hat that August.
The grace period did not hold. The details became public ahead of the deadline, and from there to working exploit code took days, not weeks. The lesson stayed in the textbooks: coordinated disclosure buys time, but less than everyone hopes, and the plan has to assume the leak rather than the silence.
What the patch fixed, and what it did not
The solution was source port randomisation. On top of the transaction ID’s 16 bits, resolvers have since used an unpredictable source port, raising the guessing effort from tens of thousands of attempts to orders of magnitude more.
How that solution was presented from the very start matters: as a mitigation, not a repair. Guessing becomes impractical, but remains possible. The only complete answer was DNSSEC, which cryptographically signs responses so a forged one can be rejected no matter how well it was guessed.
That is a distinction worth keeping in your own decisions: a measure that raises an attack’s cost enough is often all you can ship on the day, but it is not the same as solving the problem. Confusing the two is how organisations come to believe they closed something they merely made harder.
The rest of the legacy
The common thread is not DNS. It is the habit of measuring what is actually happening in the world, instead of reasoning about what ought to be happening.
- ▸In 2005 he drew attention to the severity of the Sony BMG rootkit by measuring how far it had actually spread, rather than debating principles
- ▸In 2010, ICANN named him one of the Trusted Community Representatives for the DNSSEC root — the people with a ceremonial role in handling the keys that anchor trust in DNS
- ▸He was co-founder and chief scientist at White Ops, today HUMAN Security, a company focused on detecting automated fraud and bots
- ▸He previously worked at Cisco, Avaya and IOActive
The person, not only the researcher
Dan Kaminsky was born on 7 February 1979 in San Francisco and died on 23 April 2021, aged 42, of diabetic ketoacidosis.
What colleagues recalled most often after his death was not the discoveries but the availability: he would talk to anyone, paid some young researchers’ conference entrance fees out of his own pocket, and let them sleep on his hotel room floor.
That belongs in a technical article, because security is a field where knowledge travels through people willing to pass it on. A protocol flaw is fixed with a patch. A field where nobody explains anything to anybody does not get fixed at all.
What still holds for you
- ▸Protocol flaws do not appear in your product inventory, but reach you through every product implementing the protocol
- ▸Check whether the resolution you applied is a repair or a mitigation — and write down which one it is
- ▸A coordinated disclosure plan has to assume details leak before the deadline
- ▸The window between patch and exploitation is measured in days; your update process has to be sized for that window, not for the quarterly cycle
- ▸DNSSEC, for the domains you own, is still the complete answer to this class of attack — and still far from universal
How to monitor CVEs and get alerts for products in your inventory