Internet-Draft | Intentionally Temporarily Insecure | February 2021 |
Hardaker | Expires 25 August 2021 | [Page] |
Performing DNSKEY algorithm transitions with DNSSEC signing is unfortunately challenging to get right in practice without decent tooling support. This document weighs the correct, completely secure way of rolling keys against an alternate, significantly simplified, method that takes a zone through an insecure state.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 25 August 2021.¶
Copyright (c) 2021 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.¶
Performing DNSKEY [RFC4035] algorithm transitions with DNSSEC [RFC4033] signing is unfortunately challenging to get right in practice without decent tooling support. This document weighs the correct, completely secure way of rolling keys against an alternate, significantly simplified, method that takes a zone through an insecure state.¶
Section 4.1.4 of [RFC6781] describes the necessary steps required when a new signing key is published for a zone that uses a different signing algorithm than the currently published keys. These are the steps that MUST be followed when zone owners wish to have uninterrupted DNSSEC protection for their zones. The steps in this document are designed to ensure that all DNSKEY records and all DS [RFC4509] records (and the rest of a zone records) are properly validatable by validating resolvers throughout the entire process.¶
Unfortunately, there are a number of these steps that are challenging to accomplish either because the timing is tricky to get right or because current software doesn't support automating the process easily. For example, the second step in Section 4.1.4 of [RFC6781] requires that a new key with the new algorithm (which we refer to as K_new) be created, but not yet published. This step also requires that both the old key (K_old) and K_new sign and generate signatures for the zone, but with only the K_old key is published even though signatures from K_new are included. After this odd mix has been published for a sufficient time length, based on the TTL, can K_new be safely introduced and published into the zone as well.¶
Although many DNSSEC signing solutions may automate the algorithm rollover steps (making operator involvement unnecessary), many other tools do not support automated algorithm updates. In these environments, the most challenging step is requiring that certain RRSIGs be published without the corresponding DNSKEYs that created them. This will likely require operators to use a text editor on the contents of a signed zone to carefully select zone records to extract before publication. This introduces potentially significant operator error(s).¶
This document proposes an alternate, potentially more operationally robust but less secure, approach to performing algorithm DNSKEY rollovers for use in these situations.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
An alternate approach to rolling DNSKEYs, especially when the toolsets being used do not provide easy algorithm rollover approaches, is to intentionally make the zone become insecure while the DNSKEYs and algorithms are swapped. At a high level, this means removing all DS records from the parent zone during the removal of the old key and the introduction of a new key using a new algorithm. Zone TTLs may be significantly shortened during this period to minimize the period of insecurity.¶
Below are the enumerated steps required by this alternate transition mechanism. Note that there are still two critical waiting time requirements (steps 2 and 6) that must be followed carefully.¶
The process of replacing a DNSKEY with an older algorithm, such as RSAMD5 or RSASHA1 with a more modern one such as RSASHA512 or ECDSAP256SHA256 can be a daunting task if the zone's current tooling doesn't provide an easy-to-use solution. This is the case for zone owners that potentially use command line tools that are integrated into their zone production environment.¶
This document describes an alternative approach to rolling DNSKEY algorithms that may be significantly less prone to operational mistakes. However, understanding of the security considerations of using this approach is paramount.¶
The document recommends waiting 2 times TTL values in certain cases for added assurance that the waiting period is long enough for caches to expire. In reality, waiting only 1 TTL may be sufficient assuming all clocks around the world are operating with perfection.¶
DNSSEC provides an data integrity protection for DNS data. This document specifically calls out a reason why a zone owner may desire to deliberately turn off DNSSEC while changing the zone's DNSKEY's cryptographic algorithms. Thus, this is deliberately turning off security which is potentially harmful if an attacker knows when this will occur and can use that time window to launch DNS modification attacks (for example, cache poisoning attacks) against validating resolvers or other validating DNS infrastructure.¶
Most importantly, this will deliberately break certain types of DNS records that must be validatable for them to be effective. This includes for example, but not limited to, all DS records for child zones, DANE [RFC6698][RFC7671][RFC7672], PGP keys [RFC7929], and SSHFP[RFC4255]. Zone owners must carefully consider which records within their zone depend on DNSSEC being available before using the procedure outlined in this document.¶
Given all of this, it leaves the question of: "why would a zone owner want to deliberately turn off security temporarily then?", to which there is one principal answer. Simply put, if the the complexity of doing it the correct way is difficult with existing tooling then the chances of performing the more complex procedure and introducing an error, likely making the entire zone unavailable during that time period, may be significantly higher than the chances of the zone being attacked during the transition period of the simpler approach where zone availability is less likely to be impacted. Simply put, an invalid zone created by a botched algorithm roll is potentially worse than an unsigned but still available zone.¶
The author has discussed the pros and cons of this approach with multiple people, including Viktor Dukhovni and Warren Kumari.¶
While this document is under development, it can be viewed, tracked, issued, pushed with PRs, ... here:¶
https://github.com/hardaker/draft-hardaker-dnsop-intentionally-temporarily-insecure¶