The Harder You Try, The Harder You Fail: The KeyTrap Denial-of-Service Algorithmic Complexity Attacks on DNSSEC
Elias Heftrig, Haya Schulmann, Niklas Vogel, Michael Waidner

TL;DR
This paper reveals a critical vulnerability in DNSSEC called KeyTrap, which allows attackers to cause severe denial-of-service attacks by exploiting protocol design flaws, affecting all major DNS implementations.
Contribution
The paper introduces KeyTrap, a novel algorithmic complexity attack on DNSSEC, demonstrating its impact and working with vendors to develop mitigations.
Findings
KeyTrap causes up to 2 million times CPU spike in DNS resolvers
All major DNS implementations are vulnerable to KeyTrap
Industry has assigned CVE-2023-50387 to these DNSSEC vulnerabilities
Abstract
Availability is a major concern in the design of DNSSEC. To ensure availability, DNSSEC follows Postel's Law [RFC1123]: "Be liberal in what you accept, and conservative in what you send." Hence, nameservers should send not just one matching key for a record set, but all the relevant cryptographic material, e.g., all the keys for all the ciphers that they support and all the corresponding signatures. This ensures that validation succeeds, and hence availability, even if some of the DNSSEC keys are misconfigured, incorrect or correspond to unsupported ciphers. We show that this design of DNSSEC is flawed. Exploiting vulnerable recommendations in the DNSSEC standards, we develop a new class of DNSSEC-based algorithmic complexity attacks on DNS, we dub KeyTrap attacks. All popular DNS implementations and services are vulnerable. With just a single DNS packet, the KeyTrap attacks lead to a…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNetwork Security and Intrusion Detection · IPv6, Mobility, Handover, Networks, Security · Network Packet Processing and Optimization
