8301
PROPOSED STANDARD
Cryptographic Algorithm and Key Usage Update to DomainKeys Identified Mail (DKIM)
Authors: S. Kitterman
Date: January 2018
Area: art
Working Group: dcrup
Stream: IETF
Updates:
RFC 6376
Abstract
The cryptographic algorithm and key size requirements included when DomainKeys Identified Mail (DKIM) was designed a decade ago are functionally obsolete and in need of immediate revision. This document updates DKIM requirements to those minimally suitable for operation with currently specified algorithms.
RFC 8301
PROPOSED STANDARD
Internet Engineering Task Force (IETF) S. Kitterman
Request for Comments: 8301 Kitterman Technical Services
Updates: <a href="./rfc6376">6376</a> January 2018
Category: Standards Track
ISSN: 2070-1721
<span class="h1">Cryptographic Algorithm and Key Usage Update to</span>
<span class="h1">DomainKeys Identified Mail (DKIM)</span>
Abstract
The cryptographic algorithm and key size requirements included when
DomainKeys Identified Mail (DKIM) was designed a decade ago are
functionally obsolete and in need of immediate revision. This
document updates DKIM requirements to those minimally suitable for
operation with currently specified algorithms.
Status of This Memo
This is an Internet Standards Track document.
This document is a product of the Internet Engineering Task Force
(IETF). It represents the consensus of the IETF community. It has
received public review and has been approved for publication by the
Internet Engineering Steering Group (IESG). Further information on
Internet Standards is available in <a href="./rfc7841#section-2">Section 2 of RFC 7841</a>.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
<a href="https://www.rfc-editor.org/info/rfc8301">https://www.rfc-editor.org/info/rfc8301</a>.
Copyright Notice
Copyright (c) 2018 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="https://trustee.ietf.org/license-info">https://trustee.ietf.org/license-info</a>) 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.
<span class="grey">Kitterman Standards Track [Page 1]</span>
<span id="page-2" ></span>
<span class="grey"><a href="./rfc8301">RFC 8301</a> DKIM Crypto Usage Update January 2018</span>
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-2">2</a>. Conventions Used in This Document . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-3">3</a>. Updates to DKIM Signing and Verification Requirements . . . . <a href="#page-3">3</a>
<a href="#section-3.1">3.1</a>. Signing and Verification Algorithms . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-3.2">3.2</a>. Key Sizes . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-4">4</a>. Security Considerations . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-5">5</a>. IANA Considerations . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-6">6</a>. References . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-6.1">6.1</a>. Normative References . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-6.2">6.2</a>. Informative References . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
Author's Address . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
DKIM [<a href="./rfc6376" title=""DomainKeys Identified Mail (DKIM) Signatures"">RFC6376</a>] signs email messages by creating hashes of the message
headers and content and signing the header hash with a digital
signature. Message recipients fetch the signature verification key
from the DNS where it is stored in a TXT record.
The defining documents, <a href="./rfc6376">RFC 6376</a> [<a href="./rfc6376" title=""DomainKeys Identified Mail (DKIM) Signatures"">RFC6376</a>] and its predecessors,
specify a single signing algorithm, RSA [<a href="./rfc8017" title=""PKCS #1: RSA Cryptography Specifications Version 2.2"">RFC8017</a>], and recommend key
sizes of 1024 to 2048 bits (but require verification of 512-bit
keys). As discussed in US-CERT Vulnerability Note VU#268267
[<a href="#ref-VULNOTE" title=""Vulnerability Note VU#268267: DomainKeys Identified Mail (DKIM) Verifiers may inappropriately convey message trust"">VULNOTE</a>], the operational community has recognized that shorter keys
compromise the effectiveness of DKIM. While 1024-bit signatures are
common, stronger signatures are not. Widely used DNS configuration
software places a practical limit on key sizes, because the software
only handles a single 256-octet string in a TXT record, and RSA keys
significantly longer than 1024 bits don't fit in 256 octets.
Due to the recognized weakness of the SHA-1 hash algorithm (see
[<a href="./rfc6194" title=""Security Considerations for the SHA-0 and SHA-1 Message-Digest Algorithms"">RFC6194</a>]) and the wide availability of the SHA-256 hash algorithm
(it has been a required part of DKIM [<a href="./rfc6376" title=""DomainKeys Identified Mail (DKIM) Signatures"">RFC6376</a>] since it was
originally standardized in 2007), the SHA-1 hash algorithm MUST NOT
be used. This is being done now to allow the operational community
time to fully shift to SHA-256 in advance of any SHA-1-related
crisis.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Conventions Used in This Document</span>
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
<a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a> [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>] [<a href="./rfc8174" title=""Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words"">RFC8174</a>] when, and only when, they appear in all
capitals, as shown here.
<span class="grey">Kitterman Standards Track [Page 2]</span>
<span id="page-3" ></span>
<span class="grey"><a href="./rfc8301">RFC 8301</a> DKIM Crypto Usage Update January 2018</span>
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Updates to DKIM Signing and Verification Requirements</span>
This document updates [<a href="./rfc6376" title=""DomainKeys Identified Mail (DKIM) Signatures"">RFC6376</a>] as follows:
o <a href="#section-3.1">Section 3.1</a> of this document updates <a href="./rfc6376#section-3.3">Section 3.3 of [RFC6376]</a>.
o <a href="#section-3.2">Section 3.2</a> of this document updates <a href="./rfc6376#section-3.3.3">Section 3.3.3 of [RFC6376]</a>.
o The algorithm described in <a href="./rfc6376#section-3.3.1">Section 3.3.1 of [RFC6376]</a> is now
historic and no longer used by DKIM.
Sections <a href="#section-3.3.2">3.3.2</a> and <a href="#section-3.3.4">3.3.4</a> of [<a href="./rfc6376" title=""DomainKeys Identified Mail (DKIM) Signatures"">RFC6376</a>] are not affected.
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. Signing and Verification Algorithms</span>
DKIM supports multiple digital signature algorithms. Two algorithms
are defined by this specification at this time: rsa-sha1 and
rsa-sha256. Signers MUST sign using rsa-sha256. Verifiers MUST be
able to verify using rsa-sha256. rsa-sha1 MUST NOT be used for
signing or verifying.
DKIM signatures identified as having been signed with historic
algorithms (currently, rsa-sha1) have permanently failed evaluation
as discussed in <a href="./rfc6376#section-3.9">Section 3.9 of [RFC6376]</a>.
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>. Key Sizes</span>
Selecting appropriate key sizes is a trade-off between cost,
performance, and risk. Since short RSA keys more easily succumb to
off-line attacks, Signers MUST use RSA keys of at least 1024 bits for
all keys. Signers SHOULD use RSA keys of at least 2048 bits.
Verifiers MUST be able to validate signatures with keys ranging from
1024 bits to 4096 bits, and they MAY be able to validate signatures
with larger keys. Verifier policies can use the length of the
signing key as one metric for determining whether a signature is
acceptable. Verifiers MUST NOT consider signatures using RSA keys of
less than 1024 bits as valid signatures.
DKIM signatures with insufficient key sizes (currently, rsa-sha256
with less than 1024 bits) have permanently failed evaluation as
discussed in <a href="./rfc6376#section-3.9">Section 3.9 of [RFC6376]</a>.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Security Considerations</span>
This document does not change the Security Considerations of
[<a href="./rfc6376" title=""DomainKeys Identified Mail (DKIM) Signatures"">RFC6376</a>]. It reduces the risk of signature compromise due to weak
cryptography. The SHA-1 risks discussed in <a href="./rfc6194#section-3">Section 3 of [RFC6194]</a>
are resolved due to rsa-sha1 no longer being used by DKIM.
<span class="grey">Kitterman Standards Track [Page 3]</span>
<span id="page-4" ></span>
<span class="grey"><a href="./rfc8301">RFC 8301</a> DKIM Crypto Usage Update January 2018</span>
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. IANA Considerations</span>
IANA has updated the Reference and Status fields of the "sha1"
registration in the "DKIM Hash Algorithms" registry. The
registration now appears as follows:
+------+---------------------+----------+
| Type | Reference | Status |
+------+---------------------+----------+
| sha1 | [<a href="./rfc6376" title=""DomainKeys Identified Mail (DKIM) Signatures"">RFC6376</a>] [<a href="./rfc8301">RFC8301</a>] | historic |
+------+---------------------+----------+
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. References</span>
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. Normative References</span>
[<a id="ref-RFC2119">RFC2119</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>,
DOI 10.17487/RFC2119, March 1997,
<<a href="https://www.rfc-editor.org/info/rfc2119">https://www.rfc-editor.org/info/rfc2119</a>>.
[<a id="ref-RFC6376">RFC6376</a>] Crocker, D., Ed., Hansen, T., Ed., and M. Kucherawy, Ed.,
"DomainKeys Identified Mail (DKIM) Signatures", STD 76,
<a href="./rfc6376">RFC 6376</a>, DOI 10.17487/RFC6376, September 2011,
<<a href="https://www.rfc-editor.org/info/rfc6376">https://www.rfc-editor.org/info/rfc6376</a>>.
[<a id="ref-RFC8017">RFC8017</a>] Moriarty, K., Ed., Kaliski, B., Jonsson, J., and A. Rusch,
"PKCS #1: RSA Cryptography Specifications Version 2.2",
<a href="./rfc8017">RFC 8017</a>, DOI 10.17487/RFC8017, November 2016,
<<a href="https://www.rfc-editor.org/info/rfc8017">https://www.rfc-editor.org/info/rfc8017</a>>.
[<a id="ref-RFC8174">RFC8174</a>] Leiba, B., "Ambiguity of Uppercase vs Lowercase in <a href="./rfc2119">RFC</a>
<a href="./rfc2119">2119</a> Key Words", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc8174">RFC 8174</a>, DOI 10.17487/RFC8174,
May 2017, <<a href="https://www.rfc-editor.org/info/rfc8174">https://www.rfc-editor.org/info/rfc8174</a>>.
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. Informative References</span>
[<a id="ref-RFC6194">RFC6194</a>] Polk, T., Chen, L., Turner, S., and P. Hoffman, "Security
Considerations for the SHA-0 and SHA-1 Message-Digest
Algorithms", <a href="./rfc6194">RFC 6194</a>, DOI 10.17487/RFC6194, March 2011,
<<a href="https://www.rfc-editor.org/info/rfc6194">https://www.rfc-editor.org/info/rfc6194</a>>.
[<a id="ref-VULNOTE">VULNOTE</a>] US-CERT, "Vulnerability Note VU#268267: DomainKeys
Identified Mail (DKIM) Verifiers may inappropriately
convey message trust", October 2012,
<<a href="http://www.kb.cert.org/vuls/id/268267">http://www.kb.cert.org/vuls/id/268267</a>>.
<span class="grey">Kitterman Standards Track [Page 4]</span>
<span id="page-5" ></span>
<span class="grey"><a href="./rfc8301">RFC 8301</a> DKIM Crypto Usage Update January 2018</span>
Acknowledgements
The author wishes to acknowledge the following individuals for their
review and comments on this proposal: Kurt Andersen, Murray
S. Kucherawy, Martin Thomson, John Levine, Russ Housley, and Jim
Fenton.
Thanks to John Levine for his DKIM Crypto Update (DCRUP) work that
was the source for much of the introductory material in this
document.
Author's Address
Scott Kitterman
Kitterman Technical Services
3611 Scheel Dr
Ellicott City, MD 21042
United States of America
Phone: +1 301 325-5475
Email: [email protected]
Kitterman Standards Track [Page 5]
Annotations
Select text to annotate