1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613
|
<pre>Internet Engineering Task Force (IETF) P. Hoffman
Request for Comments: 8162 ICANN
Category: Experimental J. Schlyter
ISSN: 2070-1721 Kirei AB
May 2017
Using Secure DNS to Associate Certificates with Domain Names for S/MIME
Abstract
This document describes how to use secure DNS to associate an S/MIME
user's certificate with the intended domain name, similar to the way
that DNS-Based Authentication of Named Entities (DANE), <a href="./rfc6698">RFC 6698</a>,
does for TLS.
Status of This Memo
This document is not an Internet Standards Track specification; it is
published for examination, experimental implementation, and
evaluation.
This document defines an Experimental Protocol for the Internet
community. 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). Not
all documents approved by the IESG are a candidate for any level of
Internet Standard; see <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="http://www.rfc-editor.org/info/rfc8162">http://www.rfc-editor.org/info/rfc8162</a>.
Copyright Notice
Copyright (c) 2017 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="http://trustee.ietf.org/license-info">http://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">Hoffman & Schlyter Experimental [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc8162">RFC 8162</a> DNS-Based Authentication for S/MIME May 2017</span>
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-1.1">1.1</a>. Terminology . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-1.2">1.2</a>. Experiment Goal . . . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-2">2</a>. The SMIMEA Resource Record . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-3">3</a>. Location of the SMIMEA Record . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
4. Email Address Variants and Internationalization
Considerations . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-5">5</a>. Mandatory-to-Implement Features . . . . . . . . . . . . . . . <a href="#page-6">6</a>
<a href="#section-6">6</a>. Application Use of S/MIME Certificate Associations . . . . . <a href="#page-6">6</a>
<a href="#section-7">7</a>. Certificate Size and DNS . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-8">8</a>. IANA Considerations . . . . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-9">9</a>. Security Considerations . . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-9.1">9.1</a>. Response Size . . . . . . . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-9.2">9.2</a>. Email Address Information Leak . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-10">10</a>. References . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-10.1">10.1</a>. Normative References . . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-10.2">10.2</a>. Informative References . . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
S/MIME [<a href="./rfc5751" title=""Secure/Multipurpose Internet Mail Extensions (S/MIME) Version 3.2 Message Specification"">RFC5751</a>] messages often contain a certificate (some messages
contain more than one certificate). These certificates assist in
authenticating the sender of the message and can be used for
encrypting messages that will be sent in reply. In order for the
S/MIME receiver to authenticate that a message is from the sender
identified in the message, the receiver's Mail User Agent (MUA) must
validate that this certificate is associated with the purported
sender. Currently, the MUA must trust a trust anchor upon which the
sender's certificate is rooted and must successfully validate the
certificate. There are other requirements on the MUA, such as
associating the identity in the certificate with that of the message,
that are out of scope for this document.
Some people want to authenticate the association of the sender's
certificate with the sender without trusting a configured trust
anchor. Others to want mitigate the difficulty of finding
certificates from outside the enterprise. Given that the DNS
administrator for a domain name is authorized to give identifying
information about the zone, it makes sense to allow that
administrator to also make an authoritative binding between email
messages purporting to come from the domain name and a certificate
that might be used by someone authorized to send mail from those
servers. The easiest way to do this is to use the DNS.
<span class="grey">Hoffman & Schlyter Experimental [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc8162">RFC 8162</a> DNS-Based Authentication for S/MIME May 2017</span>
This document describes a mechanism for associating a user's
certificate with the domain that is similar to that described in DANE
itself [<a href="./rfc6698" title=""The DNS-Based Authentication of Named Entities (DANE) Transport Layer Security (TLS) Protocol: TLSA"">RFC6698</a>], as updated by [<a href="./rfc7218" title=""Adding Acronyms to Simplify Conversations about DNS-Based Authentication of Named Entities (DANE)"">RFC7218</a>] and [<a href="./rfc7671" title=""The DNS-Based Authentication of Named Entities (DANE) Protocol: Updates and Operational Guidance"">RFC7671</a>]; it is also
similar to the mechanism given in [<a href="./rfc7929" title=""DNS-Based Authentication of Named Entities (DANE) Bindings for OpenPGP"">RFC7929</a>] for OpenPGP. Most of the
operational and security considerations for using the mechanism in
this document are described in <a href="./rfc6698">RFC 6698</a> and are not described here at
all. Only the major differences between this mechanism and those
used in <a href="./rfc6698">RFC 6698</a> are described here. Thus, the reader must be
familiar with <a href="./rfc6698">RFC 6698</a> before reading this document.
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a>. Terminology</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.
This document also makes use of standard PKIX, DNSSEC, and S/MIME
terminology. See PKIX [<a href="./rfc5280" title=""Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile"">RFC5280</a>], DNSSEC [<a href="./rfc4033" title=""DNS Security Introduction and Requirements"">RFC4033</a>] [<a href="./rfc4034" title=""Resource Records for the DNS Security Extensions"">RFC4034</a>]
[<a href="./rfc4035" title=""Protocol Modifications for the DNS Security Extensions"">RFC4035</a>], and S/MIME [<a href="./rfc5751" title=""Secure/Multipurpose Internet Mail Extensions (S/MIME) Version 3.2 Message Specification"">RFC5751</a>] for these terms.
<span class="h3"><a class="selflink" id="section-1.2" href="#section-1.2">1.2</a>. Experiment Goal</span>
This specification is one experiment in improving access to public
keys for end-to-end email security. There are a range of ways in
which this can reasonably be done for OpenPGP or S/MIME, for example,
using the DNS, SMTP, or HTTP. Proposals for each of these have been
made with various levels of support in terms of implementation and
deployment. For each such experiment, specifications such as this
will enable experiments to be carried out that may succeed or that
may uncover technical or other impediments to large- or small-scale
deployments. The IETF encourages those implementing and deploying
such experiments to publicly document their experiences so that
future specifications in this space can benefit.
This document defines an RRtype whose use is Experimental. The goal
of the experiment is to see whether encrypted email usage will
increase if an automated discovery method is available to Mail
Transfer Agents (MTAs) and if MUAs help the end user with email
encryption key management.
It is unclear if this RRtype will scale to some of the larger email
service deployments. Concerns have been raised about the size of the
SMIMEA record and the size of the resulting DNS zone files. This
experiment hopefully will give the IETF some insight into whether or
not this is a problem.
<span class="grey">Hoffman & Schlyter Experimental [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc8162">RFC 8162</a> DNS-Based Authentication for S/MIME May 2017</span>
If the experiment is successful, it is expected that the findings of
the experiment will result in an updated document for Standards Track
approval.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. The SMIMEA Resource Record</span>
The SMIMEA DNS resource record (RR) is used to associate an end
entity certificate or public key with the associated email address,
thus forming a "SMIMEA certificate association". The semantics of
how the SMIMEA resource record is interpreted are given later in this
document. Note that the information returned in the SMIMEA record
might be for the end entity certificate, or it might be for the trust
anchor or an intermediate certificate. This mechanism is similar to
the one given in [<a href="./rfc7929" title=""DNS-Based Authentication of Named Entities (DANE) Bindings for OpenPGP"">RFC7929</a>] for OpenPGP.
The type value for the SMIMEA RRtype is defined in <a href="#section-8">Section 8</a>. The
SMIMEA resource record is class independent.
The SMIMEA wire format and presentation format are the same as for
the TLSA record as described in <a href="./rfc6698#section-2.1">Section 2.1 of [RFC6698]</a>. The
certificate usage field, the selector field, and the matching type
field have the same format; the semantics are also the same except
where <a href="./rfc6698">RFC 6698</a> talks about TLS as the target protocol for the
certificate information.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Location of the SMIMEA Record</span>
The DNS does not allow the use of all characters that are supported
in the "local-part" of email addresses as defined in [<a href="./rfc5322" title=""Internet Message Format"">RFC5322</a>] and
[<a href="./rfc6530" title=""Overview and Framework for Internationalized Email"">RFC6530</a>]. Therefore, email addresses are mapped into DNS using the
following method:
1. The "left-hand side" of the email address, called the "local-
part" in both the mail message format definition [<a href="./rfc5322" title=""Internet Message Format"">RFC5322</a>] and in
the specification for internationalized email [<a href="./rfc6530" title=""Overview and Framework for Internationalized Email"">RFC6530</a>]) is
encoded in UTF-8 (or its subset ASCII). If the local-part is
written in another charset, it MUST be converted to UTF-8.
2. The local-part is first canonicalized using the following rules.
If the local-part is unquoted, any comments and/or folding
whitespace (CFWS) around dots (".") is removed. Any enclosing
double quotes are removed. Any literal quoting is removed.
3. If the local-part contains any non-ASCII characters, it SHOULD be
normalized using the Unicode Normalization Form C from [<a href="#ref-UNICODE" title=""The Unicode Standard"">UNICODE</a>].
Recommended normalization rules can be found in <a href="./rfc6530#section-10.1">Section 10.1 of
[RFC6530]</a>.
<span class="grey">Hoffman & Schlyter Experimental [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc8162">RFC 8162</a> DNS-Based Authentication for S/MIME May 2017</span>
4. The local-part is hashed using the SHA2-256 [<a href="./rfc5754" title=""Using SHA2 Algorithms with Cryptographic Message Syntax"">RFC5754</a>] algorithm,
with the hash truncated to 28 octets and represented in its
hexadecimal representation, to become the left-most label in the
prepared domain name.
5. The string "_smimecert" becomes the second left-most label in the
prepared domain name.
6. The domain name (the "right-hand side" of the email address,
called the "domain" in [<a href="./rfc5322" title=""Internet Message Format"">RFC5322</a>]) is appended to the result of
step 5 to complete the prepared domain name.
For example, to request an SMIMEA resource record for a user whose
email address is "hugh@example.com", an SMIMEA query would be placed
for the following QNAME: "c93f1e400f26708f98cb19d936620da35eec8f72e57
f9eec01c1afd6._smimecert.example.com".
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Email Address Variants and Internationalization Considerations</span>
Mail systems usually handle variant forms of local-parts. The most
common variants are upper and lower case, often automatically
corrected when a name is recognized as such. Other variants include
systems that ignore "noise" characters such as dots, so that local-
parts 'johnsmith' and 'John.Smith' would be equivalent. Many systems
allow "extensions" such as 'john-ext' or 'mary+ext' where 'john' or
'mary' is treated as the effective local-part, and the 'ext' is
passed to the recipient for further handling. This can complicate
finding the SMIMEA record associated with the dynamically created
email address.
[<a id="ref-RFC5321">RFC5321</a>] and its predecessors have always made it clear that only
the recipient MTA is allowed to interpret the local-part of an
address. Therefore, sending MUAs and MTAs supporting this
specification MUST NOT perform any kind of mapping rules based on the
email address. In order to improve the chances of finding SMIMEA
resource records for a particular local-part, domains that allow
variant forms (such as treating local-parts as case-insensitive)
might publish SMIMEA resource records for all variants of local-
parts, might publish variants on first use (for example, a webmail
provider that also controls DNS for a domain can publish variants as
used by owner of a particular local-part), or might just publish
SMIMEA resource records for the most common variants.
<a href="#section-3">Section 3</a> above defines how the local-part is used to determine the
location in which one looks for an SMIMEA resource record. Given the
variety of local-parts seen in email, designing a good experiment for
this is difficult as a) some current implementations are known to
lowercase at least US-ASCII local-parts, b) we know from (many) other
<span class="grey">Hoffman & Schlyter Experimental [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc8162">RFC 8162</a> DNS-Based Authentication for S/MIME May 2017</span>
situations that any strategy based on guessing and making multiple
DNS queries is not going to achieve consensus for good reasons, and
c) the underlying issues are just hard -- see <a href="./rfc6530#section-10.1">Section 10.1 of
[RFC6530]</a> for discussion of just some of the issues that would need
to be tackled to fully address this problem.
However, while this specification is not the place to try to address
these issues with local-parts, doing so is also not required to
determine the outcome of this experiment. If this experiment
succeeds, then further work on email addresses with non-ASCII local-
parts will be needed, and that would be better based on the findings
from this experiment, rather than doing nothing or starting this
experiment based on a speculative approach to what is a very complex
topic.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Mandatory-to-Implement Features</span>
S/MIME MUAs conforming to this specification MUST be able to
correctly interpret SMIMEA records with certificate usages 0, 1, 2,
and 3. S/MIME MUAs conforming to this specification MUST be able to
compare a certificate association with a certificate offered by
another S/MIME MUA using selector types 0 and 1, and matching type 0
(no hash used) and matching type 1 (SHA-256), and SHOULD be able to
make such comparisons with matching type 2 (SHA-512).
S/MIME MUAs conforming to this specification MUST be able to
interpret any S/MIME capabilities (defined in [<a href="./rfc4262" title=""X.509 Certificate Extension for Secure/ Multipurpose Internet Mail Extensions (S/MIME) Capabilities"">RFC4262</a>]) in any
certificates that it receives through SMIMEA records.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Application Use of S/MIME Certificate Associations</span>
The SMIMEA record allows an application or service to obtain an
S/MIME certificate or public key and use it for verifying a digital
signature or encrypting a message to the public key. The DNS answer
MUST pass DNSSEC validation; if DNSSEC validation reaches any state
other than "Secure" (as specified in [<a href="./rfc4035" title=""Protocol Modifications for the DNS Security Extensions"">RFC4035</a>]), the DNSSEC
validation MUST be treated as a failure.
If no S/MIME certificates are known for an email address, an SMIMEA
DNS lookup MAY be performed to seek the certificate or public key
that corresponds to that email address. This can then be used to
verify a received signed message or can be used to send out an
encrypted email message. An application whose attempt fails to
retrieve a DNSSEC-verified SMIMEA resource record from the DNS should
remember that failed attempt and not retry it for some time. This
will avoid sending out a DNS request for each email message the
application is sending out; such DNS requests constitute a privacy
leak.
<span class="grey">Hoffman & Schlyter Experimental [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc8162">RFC 8162</a> DNS-Based Authentication for S/MIME May 2017</span>
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Certificate Size and DNS</span>
Due to the expected size of the SMIMEA record, applications SHOULD
use TCP -- not UDP -- to perform queries for the SMIMEA resource
record.
Although the reliability of the transport of large DNS resource
records has improved in the last years, it is still recommended to
keep the DNS records as small as possible without sacrificing the
security properties of the public key. The algorithm type and key
size of certificates should not be modified to accommodate this
section.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. IANA Considerations</span>
This document uses a new DNS RRtype, SMIMEA, whose value (53) was
allocated by IANA from the "Resource Record (RR) TYPEs" subregistry
of the "Domain Name System (DNS) Parameters" registry.
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Security Considerations</span>
Client treatment of any information included in the trust anchor is a
matter of local policy. This specification does not mandate that
such information be inspected or validated by the domain name
administrator.
DNSSEC does not protect the queries from pervasive monitoring as
defined in [<a href="./rfc7258" title=""Pervasive Monitoring Is an Attack"">RFC7258</a>]. Since DNS queries are currently mostly
unencrypted, a query to look up a target SMIMEA record could reveal
that a user using the (monitored) recursive DNS server is attempting
to send encrypted email to a target.
Various components could be responsible for encrypting an email
message to a target recipient. It could be done by the sender's MUA,
an MUA plugin, or the sender's MTA. Each of these have their own
characteristics. An MUA can ask the user to make a decision before
continuing. The MUA can either accept or refuse a message. The MTA
might deliver the message as is or encrypt the message before
delivering. Each of these components should attempt to encrypt an
unencrypted outgoing message whenever possible.
In theory, two different local-parts could hash to the same value.
This document assumes that such a hash collision has a negligible
chance of happening.
If an obtained S/MIME certificate is revoked or expired, that
certificate MUST NOT be used, even if that would result in sending a
message in plaintext.
<span class="grey">Hoffman & Schlyter Experimental [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc8162">RFC 8162</a> DNS-Based Authentication for S/MIME May 2017</span>
Anyone who can obtain a DNSSEC private key of a domain name via
coercion, theft, or brute-force calculations can replace any SMIMEA
record in that zone and all of the delegated child zones. Any future
messages encrypted with the malicious SMIMEA key could then be read.
Therefore, a certificate or key obtained from a DNSSEC-validated
SMIMEA record can only be trusted as much as the DNS domain can be
trusted.
Organizations that are required to be able to read everyone's
encrypted email should publish the escrow key as the SMIMEA record.
Mail servers of such organizations MAY optionally re-encrypt the
message to the individual's S/MIME key. This case can be considered
a special case of the key-replacement attack described above.
<span class="h3"><a class="selflink" id="section-9.1" href="#section-9.1">9.1</a>. Response Size</span>
To prevent amplification attacks, an Authoritative DNS server MAY
wish to prevent returning SMIMEA records over UDP unless the source
IP address has been confirmed with DNS Cookies [<a href="./rfc7873" title=""Domain Name System (DNS) Cookies"">RFC7873</a>]. If a query
is received via UDP without source IP address verification, the
server MUST NOT return REFUSED but answer the query with an empty
answer section and the truncation flag set ("TC=1").
<span class="h3"><a class="selflink" id="section-9.2" href="#section-9.2">9.2</a>. Email Address Information Leak</span>
The hashing of the local-part in this document is not a security
feature. Publishing SMIMEA records will create a list of hashes of
valid email addresses, which could simplify obtaining a list of valid
email addresses for a particular domain. It is desirable to not ease
the harvesting of email addresses where possible.
The domain name part of the email address is not used as part of the
hash so that hashes can be used in multiple zones deployed using
DNAME [<a href="./rfc6672" title=""DNAME Redirection in the DNS"">RFC6672</a>]. This makes it slightly easier and cheaper to brute-
force the SHA2-256 hashes into common and short local-parts, as
single rainbow tables [<a href="#ref-Rainbow" title=""Making a Faster Cryptanalytic Time-Memory Trade-Off"">Rainbow</a>] can be reused across domains. This
can be somewhat countered by using NSEC3 [<a href="./rfc5155" title=""DNS Security (DNSSEC) Hashed Authenticated Denial of Existence"">RFC5155</a>].
DNS zones that are signed with DNSSEC using NSEC [<a href="./rfc4033" title=""DNS Security Introduction and Requirements"">RFC4033</a>] for denial
of existence are susceptible to zone walking, a mechanism that allows
someone to enumerate all the SMIMEA hashes in a zone. This can be
used in combination with previously hashed common or short local-
parts (in rainbow tables) to deduce valid email addresses. DNSSEC-
signed zones using NSEC3 for denial of existence instead of NSEC are
significantly harder to brute-force after performing a zone walk.
<span class="grey">Hoffman & Schlyter Experimental [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc8162">RFC 8162</a> DNS-Based Authentication for S/MIME May 2017</span>
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. References</span>
<span class="h3"><a class="selflink" id="section-10.1" href="#section-10.1">10.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="http://www.rfc-editor.org/info/rfc2119">http://www.rfc-editor.org/info/rfc2119</a>>.
[<a id="ref-RFC4033">RFC4033</a>] Arends, R., Austein, R., Larson, M., Massey, D., and S.
Rose, "DNS Security Introduction and Requirements",
<a href="./rfc4033">RFC 4033</a>, DOI 10.17487/RFC4033, March 2005,
<<a href="http://www.rfc-editor.org/info/rfc4033">http://www.rfc-editor.org/info/rfc4033</a>>.
[<a id="ref-RFC4034">RFC4034</a>] Arends, R., Austein, R., Larson, M., Massey, D., and S.
Rose, "Resource Records for the DNS Security Extensions",
<a href="./rfc4034">RFC 4034</a>, DOI 10.17487/RFC4034, March 2005,
<<a href="http://www.rfc-editor.org/info/rfc4034">http://www.rfc-editor.org/info/rfc4034</a>>.
[<a id="ref-RFC4035">RFC4035</a>] Arends, R., Austein, R., Larson, M., Massey, D., and S.
Rose, "Protocol Modifications for the DNS Security
Extensions", <a href="./rfc4035">RFC 4035</a>, DOI 10.17487/RFC4035, March 2005,
<<a href="http://www.rfc-editor.org/info/rfc4035">http://www.rfc-editor.org/info/rfc4035</a>>.
[<a id="ref-RFC5280">RFC5280</a>] Cooper, D., Santesson, S., Farrell, S., Boeyen, S.,
Housley, R., and W. Polk, "Internet X.509 Public Key
Infrastructure Certificate and Certificate Revocation List
(CRL) Profile", <a href="./rfc5280">RFC 5280</a>, DOI 10.17487/RFC5280, May 2008,
<<a href="http://www.rfc-editor.org/info/rfc5280">http://www.rfc-editor.org/info/rfc5280</a>>.
[<a id="ref-RFC5751">RFC5751</a>] Ramsdell, B. and S. Turner, "Secure/Multipurpose Internet
Mail Extensions (S/MIME) Version 3.2 Message
Specification", <a href="./rfc5751">RFC 5751</a>, DOI 10.17487/RFC5751, January
2010, <<a href="http://www.rfc-editor.org/info/rfc5751">http://www.rfc-editor.org/info/rfc5751</a>>.
[<a id="ref-RFC5754">RFC5754</a>] Turner, S., "Using SHA2 Algorithms with Cryptographic
Message Syntax", <a href="./rfc5754">RFC 5754</a>, DOI 10.17487/RFC5754, January
2010, <<a href="http://www.rfc-editor.org/info/rfc5754">http://www.rfc-editor.org/info/rfc5754</a>>.
[<a id="ref-RFC6698">RFC6698</a>] Hoffman, P. and J. Schlyter, "The DNS-Based Authentication
of Named Entities (DANE) Transport Layer Security (TLS)
Protocol: TLSA", <a href="./rfc6698">RFC 6698</a>, DOI 10.17487/RFC6698, August
2012, <<a href="http://www.rfc-editor.org/info/rfc6698">http://www.rfc-editor.org/info/rfc6698</a>>.
[<a id="ref-RFC7671">RFC7671</a>] Dukhovni, V. and W. Hardaker, "The DNS-Based
Authentication of Named Entities (DANE) Protocol: Updates
and Operational Guidance", <a href="./rfc7671">RFC 7671</a>, DOI 10.17487/RFC7671,
October 2015, <<a href="http://www.rfc-editor.org/info/rfc7671">http://www.rfc-editor.org/info/rfc7671</a>>.
<span class="grey">Hoffman & Schlyter Experimental [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc8162">RFC 8162</a> DNS-Based Authentication for S/MIME May 2017</span>
[<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="http://www.rfc-editor.org/info/rfc8174">http://www.rfc-editor.org/info/rfc8174</a>>.
<span class="h3"><a class="selflink" id="section-10.2" href="#section-10.2">10.2</a>. Informative References</span>
[<a id="ref-Rainbow">Rainbow</a>] Oechslin, P., "Making a Faster Cryptanalytic Time-Memory
Trade-Off", DOI 10.1007/978-3-540-45146-4_36, 2003,
<<a href="http://www.iacr.org/cryptodb/archive/2003/CRYPTO/1615/1615.ps">http://www.iacr.org/cryptodb/archive/2003/</a>
<a href="http://www.iacr.org/cryptodb/archive/2003/CRYPTO/1615/1615.ps">CRYPTO/1615/1615.ps</a>>.
[<a id="ref-RFC4262">RFC4262</a>] Santesson, S., "X.509 Certificate Extension for Secure/
Multipurpose Internet Mail Extensions (S/MIME)
Capabilities", <a href="./rfc4262">RFC 4262</a>, DOI 10.17487/RFC4262, December
2005, <<a href="http://www.rfc-editor.org/info/rfc4262">http://www.rfc-editor.org/info/rfc4262</a>>.
[<a id="ref-RFC5155">RFC5155</a>] Laurie, B., Sisson, G., Arends, R., and D. Blacka, "DNS
Security (DNSSEC) Hashed Authenticated Denial of
Existence", <a href="./rfc5155">RFC 5155</a>, DOI 10.17487/RFC5155, March 2008,
<<a href="http://www.rfc-editor.org/info/rfc5155">http://www.rfc-editor.org/info/rfc5155</a>>.
[<a id="ref-RFC5321">RFC5321</a>] Klensin, J., "Simple Mail Transfer Protocol", <a href="./rfc5321">RFC 5321</a>,
DOI 10.17487/RFC5321, October 2008,
<<a href="http://www.rfc-editor.org/info/rfc5321">http://www.rfc-editor.org/info/rfc5321</a>>.
[<a id="ref-RFC5322">RFC5322</a>] Resnick, P., Ed., "Internet Message Format", <a href="./rfc5322">RFC 5322</a>,
DOI 10.17487/RFC5322, October 2008,
<<a href="http://www.rfc-editor.org/info/rfc5322">http://www.rfc-editor.org/info/rfc5322</a>>.
[<a id="ref-RFC6530">RFC6530</a>] Klensin, J. and Y. Ko, "Overview and Framework for
Internationalized Email", <a href="./rfc6530">RFC 6530</a>, DOI 10.17487/RFC6530,
February 2012, <<a href="http://www.rfc-editor.org/info/rfc6530">http://www.rfc-editor.org/info/rfc6530</a>>.
[<a id="ref-RFC6672">RFC6672</a>] Rose, S. and W. Wijngaards, "DNAME Redirection in the
DNS", <a href="./rfc6672">RFC 6672</a>, DOI 10.17487/RFC6672, June 2012,
<<a href="http://www.rfc-editor.org/info/rfc6672">http://www.rfc-editor.org/info/rfc6672</a>>.
[<a id="ref-RFC7218">RFC7218</a>] Gudmundsson, O., "Adding Acronyms to Simplify
Conversations about DNS-Based Authentication of Named
Entities (DANE)", <a href="./rfc7218">RFC 7218</a>, DOI 10.17487/RFC7218, April
2014, <<a href="http://www.rfc-editor.org/info/rfc7218">http://www.rfc-editor.org/info/rfc7218</a>>.
[<a id="ref-RFC7258">RFC7258</a>] Farrell, S. and H. Tschofenig, "Pervasive Monitoring Is an
Attack", <a href="https://www.rfc-editor.org/bcp/bcp188">BCP 188</a>, <a href="./rfc7258">RFC 7258</a>, DOI 10.17487/RFC7258, May
2014, <<a href="http://www.rfc-editor.org/info/rfc7258">http://www.rfc-editor.org/info/rfc7258</a>>.
<span class="grey">Hoffman & Schlyter Experimental [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc8162">RFC 8162</a> DNS-Based Authentication for S/MIME May 2017</span>
[<a id="ref-RFC7873">RFC7873</a>] Eastlake 3rd, D. and M. Andrews, "Domain Name System (DNS)
Cookies", <a href="./rfc7873">RFC 7873</a>, DOI 10.17487/RFC7873, May 2016,
<<a href="http://www.rfc-editor.org/info/rfc7873">http://www.rfc-editor.org/info/rfc7873</a>>.
[<a id="ref-RFC7929">RFC7929</a>] Wouters, P., "DNS-Based Authentication of Named Entities
(DANE) Bindings for OpenPGP", <a href="./rfc7929">RFC 7929</a>,
DOI 10.17487/RFC7929, August 2016,
<<a href="http://www.rfc-editor.org/info/rfc7929">http://www.rfc-editor.org/info/rfc7929</a>>.
[<a id="ref-UNICODE">UNICODE</a>] The Unicode Consortium, "The Unicode Standard",
<<a href="http://www.unicode.org/versions/latest/">http://www.unicode.org/versions/latest/</a>>.
Acknowledgements
A great deal of material in this document is copied from [<a href="./rfc7929" title=""DNS-Based Authentication of Named Entities (DANE) Bindings for OpenPGP"">RFC7929</a>].
That material was created by Paul Wouters and other participants in
the IETF DANE WG.
Brian Dickson, Stephen Farrell, Miek Gieben, Martin Pels, and Jim
Schaad contributed technical ideas and support to this document.
Authors' Addresses
Paul Hoffman
ICANN
Email: paul.hoffman@icann.org
Jakob Schlyter
Kirei AB
Email: jakob@kirei.se
Hoffman & Schlyter Experimental [Page 11]
</pre>
|