p≡p I-Ds (IETF Internet-Drafts)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1290 lines
75 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  4. <head profile="http://www.w3.org/2006/03/hcard http://dublincore.org/documents/2008/08/04/dc-html/">
  5. <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
  6. <title>Header Protection for S&#8288;/&#8288;MIME</title>
  7. <style type="text/css" title="Xml2Rfc (sans serif)">
  8. /*<![CDATA[*/
  9. a {
  10. text-decoration: none;
  11. }
  12. /* info code from SantaKlauss at http://www.madaboutstyle.com/tooltip2.html */
  13. a.info {
  14. /* This is the key. */
  15. position: relative;
  16. z-index: 24;
  17. text-decoration: none;
  18. }
  19. a.info:hover {
  20. z-index: 25;
  21. color: #FFF; background-color: #900;
  22. }
  23. a.info span { display: none; }
  24. a.info:hover span.info {
  25. /* The span will display just on :hover state. */
  26. display: block;
  27. position: absolute;
  28. font-size: smaller;
  29. top: 2em; left: -5em; width: 15em;
  30. padding: 2px; border: 1px solid #333;
  31. color: #900; background-color: #EEE;
  32. text-align: left;
  33. }
  34. a.smpl {
  35. color: black;
  36. }
  37. a:hover {
  38. text-decoration: underline;
  39. }
  40. a:active {
  41. text-decoration: underline;
  42. }
  43. address {
  44. margin-top: 1em;
  45. margin-left: 2em;
  46. font-style: normal;
  47. }
  48. body {
  49. color: black;
  50. font-family: verdana, helvetica, arial, sans-serif;
  51. font-size: 10pt;
  52. max-width: 55em;
  53. }
  54. cite {
  55. font-style: normal;
  56. }
  57. dd {
  58. margin-right: 2em;
  59. }
  60. dl {
  61. margin-left: 2em;
  62. }
  63. ul.empty {
  64. list-style-type: none;
  65. }
  66. ul.empty li {
  67. margin-top: .5em;
  68. }
  69. dl p {
  70. margin-left: 0em;
  71. }
  72. dt {
  73. margin-top: .5em;
  74. }
  75. h1 {
  76. font-size: 14pt;
  77. line-height: 21pt;
  78. page-break-after: avoid;
  79. }
  80. h1.np {
  81. page-break-before: always;
  82. }
  83. h1 a {
  84. color: #333333;
  85. }
  86. h2 {
  87. font-size: 12pt;
  88. line-height: 15pt;
  89. page-break-after: avoid;
  90. }
  91. h3, h4, h5, h6 {
  92. font-size: 10pt;
  93. page-break-after: avoid;
  94. }
  95. h2 a, h3 a, h4 a, h5 a, h6 a {
  96. color: black;
  97. }
  98. img {
  99. margin-left: 3em;
  100. }
  101. li {
  102. margin-left: 2em;
  103. margin-right: 2em;
  104. }
  105. ol {
  106. margin-left: 2em;
  107. margin-right: 2em;
  108. }
  109. ol p {
  110. margin-left: 0em;
  111. }
  112. p {
  113. margin-left: 2em;
  114. margin-right: 2em;
  115. }
  116. pre {
  117. margin-left: 3em;
  118. background-color: lightyellow;
  119. padding: .25em;
  120. }
  121. pre.text2 {
  122. border-style: dotted;
  123. border-width: 1px;
  124. background-color: #f0f0f0;
  125. width: 69em;
  126. }
  127. pre.inline {
  128. background-color: white;
  129. padding: 0em;
  130. }
  131. pre.text {
  132. border-style: dotted;
  133. border-width: 1px;
  134. background-color: #f8f8f8;
  135. width: 69em;
  136. }
  137. pre.drawing {
  138. border-style: solid;
  139. border-width: 1px;
  140. background-color: #f8f8f8;
  141. padding: 2em;
  142. }
  143. table {
  144. margin-left: 2em;
  145. }
  146. table.tt {
  147. vertical-align: top;
  148. }
  149. table.full {
  150. border-style: outset;
  151. border-width: 1px;
  152. }
  153. table.headers {
  154. border-style: outset;
  155. border-width: 1px;
  156. }
  157. table.tt td {
  158. vertical-align: top;
  159. }
  160. table.full td {
  161. border-style: inset;
  162. border-width: 1px;
  163. }
  164. table.tt th {
  165. vertical-align: top;
  166. }
  167. table.full th {
  168. border-style: inset;
  169. border-width: 1px;
  170. }
  171. table.headers th {
  172. border-style: none none inset none;
  173. border-width: 1px;
  174. }
  175. table.left {
  176. margin-right: auto;
  177. }
  178. table.right {
  179. margin-left: auto;
  180. }
  181. table.center {
  182. margin-left: auto;
  183. margin-right: auto;
  184. }
  185. caption {
  186. caption-side: bottom;
  187. font-weight: bold;
  188. font-size: 9pt;
  189. margin-top: .5em;
  190. }
  191. table.header {
  192. border-spacing: 1px;
  193. width: 95%;
  194. font-size: 10pt;
  195. color: white;
  196. }
  197. td.top {
  198. vertical-align: top;
  199. }
  200. td.topnowrap {
  201. vertical-align: top;
  202. white-space: nowrap;
  203. }
  204. table.header td {
  205. background-color: gray;
  206. width: 50%;
  207. }
  208. table.header a {
  209. color: white;
  210. }
  211. td.reference {
  212. vertical-align: top;
  213. white-space: nowrap;
  214. padding-right: 1em;
  215. }
  216. thead {
  217. display:table-header-group;
  218. }
  219. ul.toc, ul.toc ul {
  220. list-style: none;
  221. margin-left: 1.5em;
  222. margin-right: 0em;
  223. padding-left: 0em;
  224. }
  225. ul.toc li {
  226. line-height: 150%;
  227. font-weight: bold;
  228. font-size: 10pt;
  229. margin-left: 0em;
  230. margin-right: 0em;
  231. }
  232. ul.toc li li {
  233. line-height: normal;
  234. font-weight: normal;
  235. font-size: 9pt;
  236. margin-left: 0em;
  237. margin-right: 0em;
  238. }
  239. li.excluded {
  240. font-size: 0pt;
  241. }
  242. ul p {
  243. margin-left: 0em;
  244. }
  245. .comment {
  246. background-color: yellow;
  247. }
  248. .center {
  249. text-align: center;
  250. }
  251. .error {
  252. color: red;
  253. font-style: italic;
  254. font-weight: bold;
  255. }
  256. .figure {
  257. font-weight: bold;
  258. text-align: center;
  259. font-size: 9pt;
  260. }
  261. .filename {
  262. color: #333333;
  263. font-weight: bold;
  264. font-size: 12pt;
  265. line-height: 21pt;
  266. text-align: center;
  267. }
  268. .fn {
  269. font-weight: bold;
  270. }
  271. .hidden {
  272. display: none;
  273. }
  274. .left {
  275. text-align: left;
  276. }
  277. .right {
  278. text-align: right;
  279. }
  280. .title {
  281. color: #990000;
  282. font-size: 18pt;
  283. line-height: 18pt;
  284. font-weight: bold;
  285. text-align: center;
  286. margin-top: 36pt;
  287. }
  288. .vcardline {
  289. display: block;
  290. }
  291. .warning {
  292. font-size: 14pt;
  293. background-color: yellow;
  294. }
  295. @media print {
  296. .noprint {
  297. display: none;
  298. }
  299. a {
  300. color: black;
  301. text-decoration: none;
  302. }
  303. table.header {
  304. width: 90%;
  305. }
  306. td.header {
  307. width: 50%;
  308. color: black;
  309. background-color: white;
  310. vertical-align: top;
  311. font-size: 12pt;
  312. }
  313. ul.toc a::after {
  314. content: leader('.') target-counter(attr(href), page);
  315. }
  316. ul.ind li li a {
  317. content: target-counter(attr(href), page);
  318. }
  319. .print2col {
  320. column-count: 2;
  321. -moz-column-count: 2;
  322. column-fill: auto;
  323. }
  324. }
  325. @page {
  326. @top-left {
  327. content: "Internet-Draft";
  328. }
  329. @top-right {
  330. content: "December 2010";
  331. }
  332. @top-center {
  333. content: "Abbreviated Title";
  334. }
  335. @bottom-left {
  336. content: "Doe";
  337. }
  338. @bottom-center {
  339. content: "Expires June 2011";
  340. }
  341. @bottom-right {
  342. content: "[Page " counter(page) "]";
  343. }
  344. }
  345. @page:first {
  346. @top-left {
  347. content: normal;
  348. }
  349. @top-right {
  350. content: normal;
  351. }
  352. @top-center {
  353. content: normal;
  354. }
  355. }
  356. /*]]>*/
  357. </style>
  358. <link href="#rfc.toc" rel="Contents">
  359. <link href="#rfc.section.1" rel="Chapter" title="1 Introduction">
  360. <link href="#rfc.section.1.1" rel="Chapter" title="1.1 Requirements Language">
  361. <link href="#rfc.section.1.2" rel="Chapter" title="1.2 Terms">
  362. <link href="#rfc.section.2" rel="Chapter" title="2 Problem Statement">
  363. <link href="#rfc.section.2.1" rel="Chapter" title="2.1 Privacy">
  364. <link href="#rfc.section.2.2" rel="Chapter" title="2.2 Security">
  365. <link href="#rfc.section.2.3" rel="Chapter" title="2.3 Usability">
  366. <link href="#rfc.section.2.4" rel="Chapter" title="2.4 Interoperability">
  367. <link href="#rfc.section.3" rel="Chapter" title="3 Use Cases">
  368. <link href="#rfc.section.3.1" rel="Chapter" title="3.1 Interactions">
  369. <link href="#rfc.section.3.1.1" rel="Chapter" title="3.1.1 Main Use Case">
  370. <link href="#rfc.section.3.1.2" rel="Chapter" title="3.1.2 Backward Compatibility Use Cases">
  371. <link href="#rfc.section.3.2" rel="Chapter" title="3.2 Protection Levels">
  372. <link href="#rfc.section.4" rel="Chapter" title="4 Specification">
  373. <link href="#rfc.section.4.1" rel="Chapter" title="4.1 Main Use Case">
  374. <link href="#rfc.section.4.1.1" rel="Chapter" title="4.1.1 MIME Format">
  375. <link href="#rfc.section.4.1.2" rel="Chapter" title="4.1.2 Inner Message Header Fields">
  376. <link href="#rfc.section.4.1.3" rel="Chapter" title="4.1.3 Wrapper">
  377. <link href="#rfc.section.4.1.4" rel="Chapter" title="4.1.4 Outer Message Header Fields">
  378. <link href="#rfc.section.4.1.5" rel="Chapter" title="4.1.5 Receiving User Facing Message Header Fields">
  379. <link href="#rfc.section.4.1.6" rel="Chapter" title="4.1.6 Header Field Flow">
  380. <link href="#rfc.section.4.1.7" rel="Chapter" title="4.1.7 Sending Side Message Processing">
  381. <link href="#rfc.section.4.1.8" rel="Chapter" title="4.1.8 Receiving Side Message Processing">
  382. <link href="#rfc.section.4.2" rel="Chapter" title="4.2 Backward Compatibility Use Cases">
  383. <link href="#rfc.section.4.2.1" rel="Chapter" title="4.2.1 Receiving Side MIME-Conformant">
  384. <link href="#rfc.section.4.2.2" rel="Chapter" title="4.2.2 Receiving Side Not MIME-Conformant">
  385. <link href="#rfc.section.5" rel="Chapter" title="5 Security Considerations">
  386. <link href="#rfc.section.6" rel="Chapter" title="6 Privacy Considerations">
  387. <link href="#rfc.section.7" rel="Chapter" title="7 IANA Considerations">
  388. <link href="#rfc.section.8" rel="Chapter" title="8 Acknowledgments">
  389. <link href="#rfc.references" rel="Chapter" title="9 References">
  390. <link href="#rfc.references.1" rel="Chapter" title="9.1 Normative References">
  391. <link href="#rfc.references.2" rel="Chapter" title="9.2 Informative References">
  392. <link href="#rfc.appendix.A" rel="Chapter" title="A Additional information">
  393. <link href="#rfc.appendix.A.1" rel="Chapter" title="A.1 Stored Variants of Messages with Bcc">
  394. <link href="#rfc.appendix.B" rel="Chapter" title="B Document Changelog">
  395. <link href="#rfc.appendix.C" rel="Chapter" title="C Open Issues">
  396. <link href="#rfc.authors" rel="Chapter">
  397. <meta name="generator" content="xml2rfc version 2.40.0 - https://tools.ietf.org/tools/xml2rfc" />
  398. <link rel="schema.dct" href="http://purl.org/dc/terms/" />
  399. <meta name="dct.creator" content="Hoeneisen, B. and A. Melnikov" />
  400. <meta name="dct.identifier" content="urn:ietf:id:draft-ietf-lamps-header-protection-00" />
  401. <meta name="dct.issued" scheme="ISO8601" content="2020-07-09" />
  402. <meta name="dct.abstract" content="Privacy and security issues with email header protection in S&#8288;/&#8288;MIME have been identified for some time. However, the desire to fix these issues has only recently been expressed in the IETF LAMPS Working Group. The existing S&#8288;/&#8288;MIME specification is to be updated regarding header protection. This document describes the problem statement, generic use cases, and the S&#8288;/&#8288;MIME specification for header protection. " />
  403. <meta name="description" content="Privacy and security issues with email header protection in S&#8288;/&#8288;MIME have been identified for some time. However, the desire to fix these issues has only recently been expressed in the IETF LAMPS Working Group. The existing S&#8288;/&#8288;MIME specification is to be updated regarding header protection. This document describes the problem statement, generic use cases, and the S&#8288;/&#8288;MIME specification for header protection. " />
  404. </head>
  405. <body>
  406. <table class="header">
  407. <tbody>
  408. <tr>
  409. <td class="left">Network Working Group</td>
  410. <td class="right">B. Hoeneisen</td>
  411. </tr>
  412. <tr>
  413. <td class="left">Internet-Draft</td>
  414. <td class="right">pEp Foundation</td>
  415. </tr>
  416. <tr>
  417. <td class="left">Intended status: Informational</td>
  418. <td class="right">A. Melnikov</td>
  419. </tr>
  420. <tr>
  421. <td class="left">Expires: January 10, 2021</td>
  422. <td class="right">Isode Ltd</td>
  423. </tr>
  424. <tr>
  425. <td class="left"></td>
  426. <td class="right">July 09, 2020</td>
  427. </tr>
  428. </tbody>
  429. </table>
  430. <p class="title">Header Protection for S&#8288;/&#8288;MIME<br />
  431. <span class="filename">draft-ietf-lamps-header-protection-00</span></p>
  432. <h1 id="rfc.abstract"><a href="#rfc.abstract">Abstract</a></h1>
  433. <p>Privacy and security issues with email header protection in S&#8288;/&#8288;MIME have been identified for some time. However, the desire to fix these issues has only recently been expressed in the IETF LAMPS Working Group. The existing S&#8288;/&#8288;MIME specification is to be updated regarding header protection.</p>
  434. <p>This document describes the problem statement, generic use cases, and the S&#8288;/&#8288;MIME specification for header protection.</p>
  435. <h1 id="rfc.status"><a href="#rfc.status">Status of This Memo</a></h1>
  436. <p>This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.</p>
  437. <p>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/.</p>
  438. <p>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."</p>
  439. <p>This Internet-Draft will expire on January 10, 2021.</p>
  440. <h1 id="rfc.copyrightnotice"><a href="#rfc.copyrightnotice">Copyright Notice</a></h1>
  441. <p>Copyright (c) 2020 IETF Trust and the persons identified as the document authors. All rights reserved.</p>
  442. <p>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.</p>
  443. <hr class="noprint" />
  444. <h1 class="np" id="rfc.toc"><a href="#rfc.toc">Table of Contents</a></h1>
  445. <ul class="toc">
  446. <li>1. <a href="#rfc.section.1">Introduction</a>
  447. </li>
  448. <ul><li>1.1. <a href="#rfc.section.1.1">Requirements Language</a>
  449. </li>
  450. <li>1.2. <a href="#rfc.section.1.2">Terms</a>
  451. </li>
  452. </ul><li>2. <a href="#rfc.section.2">Problem Statement</a>
  453. </li>
  454. <ul><li>2.1. <a href="#rfc.section.2.1">Privacy</a>
  455. </li>
  456. <li>2.2. <a href="#rfc.section.2.2">Security</a>
  457. </li>
  458. <li>2.3. <a href="#rfc.section.2.3">Usability</a>
  459. </li>
  460. <li>2.4. <a href="#rfc.section.2.4">Interoperability</a>
  461. </li>
  462. </ul><li>3. <a href="#rfc.section.3">Use Cases</a>
  463. </li>
  464. <ul><li>3.1. <a href="#rfc.section.3.1">Interactions</a>
  465. </li>
  466. <ul><li>3.1.1. <a href="#rfc.section.3.1.1">Main Use Case</a>
  467. </li>
  468. <li>3.1.2. <a href="#rfc.section.3.1.2">Backward Compatibility Use Cases</a>
  469. </li>
  470. </ul><li>3.2. <a href="#rfc.section.3.2">Protection Levels</a>
  471. </li>
  472. </ul><li>4. <a href="#rfc.section.4">Specification</a>
  473. </li>
  474. <ul><li>4.1. <a href="#rfc.section.4.1">Main Use Case</a>
  475. </li>
  476. <ul><li>4.1.1. <a href="#rfc.section.4.1.1">MIME Format</a>
  477. </li>
  478. <li>4.1.2. <a href="#rfc.section.4.1.2">Inner Message Header Fields</a>
  479. </li>
  480. <li>4.1.3. <a href="#rfc.section.4.1.3">Wrapper</a>
  481. </li>
  482. <li>4.1.4. <a href="#rfc.section.4.1.4">Outer Message Header Fields</a>
  483. </li>
  484. <li>4.1.5. <a href="#rfc.section.4.1.5">Receiving User Facing Message Header Fields</a>
  485. </li>
  486. <li>4.1.6. <a href="#rfc.section.4.1.6">Header Field Flow</a>
  487. </li>
  488. <li>4.1.7. <a href="#rfc.section.4.1.7">Sending Side Message Processing</a>
  489. </li>
  490. <li>4.1.8. <a href="#rfc.section.4.1.8">Receiving Side Message Processing</a>
  491. </li>
  492. </ul><li>4.2. <a href="#rfc.section.4.2">Backward Compatibility Use Cases</a>
  493. </li>
  494. <ul><li>4.2.1. <a href="#rfc.section.4.2.1">Receiving Side MIME-Conformant</a>
  495. </li>
  496. <li>4.2.2. <a href="#rfc.section.4.2.2">Receiving Side Not MIME-Conformant</a>
  497. </li>
  498. </ul></ul><li>5. <a href="#rfc.section.5">Security Considerations</a>
  499. </li>
  500. <li>6. <a href="#rfc.section.6">Privacy Considerations</a>
  501. </li>
  502. <li>7. <a href="#rfc.section.7">IANA Considerations</a>
  503. </li>
  504. <li>8. <a href="#rfc.section.8">Acknowledgments</a>
  505. </li>
  506. <li>9. <a href="#rfc.references">References</a>
  507. </li>
  508. <ul><li>9.1. <a href="#rfc.references.1">Normative References</a>
  509. </li>
  510. <li>9.2. <a href="#rfc.references.2">Informative References</a>
  511. </li>
  512. </ul><li>Appendix A. <a href="#rfc.appendix.A">Additional information</a>
  513. </li>
  514. <ul><li>A.1. <a href="#rfc.appendix.A.1">Stored Variants of Messages with Bcc</a>
  515. </li>
  516. </ul><li>Appendix B. <a href="#rfc.appendix.B">Document Changelog</a>
  517. </li>
  518. <li>Appendix C. <a href="#rfc.appendix.C">Open Issues</a>
  519. </li>
  520. <li><a href="#rfc.authors">Authors' Addresses</a>
  521. </li>
  522. </ul>
  523. <h1 id="rfc.section.1">
  524. <a href="#rfc.section.1">1.</a> <a href="#introduction" id="introduction">Introduction</a>
  525. </h1>
  526. <p id="rfc.section.1.p.1">A range of protocols for the protection of electronic mail (email) exists, which allows to assess the authenticity and integrity of the email headers section or selected header fields (HF) from the domain-level perspective, specifically DomainKeys Identified Mail (DKIM) <a href="#RFC6376" class="xref">[RFC6376]</a> and Sender Policy Framework (SPF) <a href="#RFC7208" class="xref">[RFC7208]</a>, and Domain-based Message Authentication, Reporting, and Conformance (DMARC) <a href="#RFC7489" class="xref">[RFC7489]</a>. These protocols, while essential to responding to a range of attacks on email, do not offer (full) end-to-end protection to the header section and are not capable of providing privacy for the information contained therein.</p>
  527. <p id="rfc.section.1.p.2">The need for means of Data Minimization, which includes data sparseness and hiding all technically concealable information whenever possible, has grown in importance over the past several years.</p>
  528. <p id="rfc.section.1.p.3">A standard for end-to-end protection of the email header section exists for S&#8288;/&#8288;MIME version 3.1 and later. (cf. <a href="#RFC8551" class="xref">[RFC8551]</a>):</p>
  529. <p></p>
  530. <ul class="empty"><li>In order to protect outer, non-content-related message header fields (for instance, the &#8220;Subject&#8221;, &#8220;To&#8221;, &#8220;From&#8221;, and &#8220;Cc&#8221; fields), the sending client MAY wrap a full MIME message in a message/RFC822 wrapper in order to apply S&#8288;/&#8288;MIME security services to these header fields.</li></ul>
  531. <p id="rfc.section.1.p.5">No mechanism for header protection (HP) has been standardized for PGP/MIME (Pretty Good Privacy) <a href="#RFC3156" class="xref">[RFC3156]</a> yet.</p>
  532. <p id="rfc.section.1.p.6">Several varying implementations of end-to-end protections for email header sections exist, though the total number of such implementations appears to be rather low.</p>
  533. <p id="rfc.section.1.p.7">Some LAMPS WG participants expressed the opinion that regardless of the mechanism chosen, it should not be limited to S&#8288;/&#8288;MIME, but also applicable to PGP/MIME.</p>
  534. <p id="rfc.section.1.p.8">This document describes the problem statement (<a href="#problem-statement" class="xref">Section 2</a>), generic use cases (<a href="#use-cases" class="xref">Section 3</a>) and the specification for Header Protection (<a href="#specification" class="xref">Section 4</a>).</p>
  535. <p><a href="#I-D.ietf-lamps-header-protection-requirements" class="xref">[I-D.ietf-lamps-header-protection-requirements]</a> defines the requirements that this specification is based on.</p>
  536. <p id="rfc.section.1.p.10">This document is in early draft state and contains a proposal on which to base future discussions of this topic. In any case, the final mechanism is to be determined by the IETF LAMPS WG.</p>
  537. <h1 id="rfc.section.1.1">
  538. <a href="#rfc.section.1.1">1.1.</a> <a href="#requirements-language" id="requirements-language">Requirements Language</a>
  539. </h1>
  540. <p id="rfc.section.1.1.p.1">The key words &#8220;MUST&#8221;, &#8220;MUST NOT&#8221;, &#8220;REQUIRED&#8221;, &#8220;SHALL&#8221;, &#8220;SHALL NOT&#8221;, &#8220;SHOULD&#8221;, &#8220;SHOULD NOT&#8221;, &#8220;RECOMMENDED&#8221;, &#8220;MAY&#8221;, and &#8220;OPTIONAL&#8221; in this document are to be interpreted as described in <a href="#RFC2119" class="xref">[RFC2119]</a>.</p>
  541. <h1 id="rfc.section.1.2">
  542. <a href="#rfc.section.1.2">1.2.</a> <a href="#terms" id="terms">Terms</a>
  543. </h1>
  544. <p id="rfc.section.1.2.p.1">The following terms are defined for the scope of this document:</p>
  545. <p></p>
  546. <ul>
  547. <li>Man-in-the-middle (MITM) attack: cf. <a href="#RFC4949" class="xref">[RFC4949]</a>, which states: &#8220;A form of active wiretapping attack in which the attacker intercepts and selectively modifies communicated data to masquerade as one or more of the entities involved in a communication association.&#8221;</li>
  548. <li>S&#8288;/&#8288;MIME: Secure/Multipurpose Internet Mail Extensions (cf. <a href="#RFC8551" class="xref">[RFC8551]</a>)</li>
  549. <li>PGP/MIME: MIME Security with OpenPGP (cf. <a href="#RFC3156" class="xref">[RFC3156]</a>)</li>
  550. <li>Message: An Email Message consisting of Header Fields (collectively called &#8220;the Header Section of the message&#8221;) followed, optionally, by a Body; cf. <a href="#RFC5322" class="xref">[RFC5322]</a>. <br><br> Note: To avoid ambiguity, this document does not use the terms &#8220;Header&#8221; or &#8220;Headers&#8221; in isolation, but instead always uses &#8220;Header Field&#8221; to refer to the individual field and &#8220;Header Section&#8221; to refer to the entire collection; cf. <a href="#RFC5322" class="xref">[RFC5322]</a>.</li>
  551. <li>Header Field (HF): cf. <a href="#RFC5322" class="xref">[RFC5322]</a> Header Fields are lines beginning with a field name, followed by a colon (&#8220;:&#8221;), followed by a field body (value), and terminated by CRLF; cf. <a href="#RFC5322" class="xref">[RFC5322]</a>.</li>
  552. <li>Header Section (HS): The Header Section is a sequence of lines of characters with special syntax as defined in <a href="#RFC5322" class="xref">[RFC5322]</a>. It is the (top) section of a Message containing the Header Fields.</li>
  553. <li>Body: The Body is simply a sequence of characters that follows the Header Section and is separated from the Header Section by an empty line (i.e., a line with nothing preceding the CRLF); cf <a href="#RFC5322" class="xref">[RFC5322]</a>. It is the (bottom) section of Message containing the payload of a Message. Typically, the Body consists of a (multipart) MIME <a href="#RFC2045" class="xref">[RFC2045]</a> construct.</li>
  554. <li>MIME Header Fields: Header Fields describing content of a MIME entity <a href="#RFC2045" class="xref">[RFC2045]</a>, in particular the MIME structure. Each MIME Header Field name starts with &#8220;Content-&#8220; prefix.</li>
  555. <li>MIME Header Section (part): The collection of MIME Header Fields. &#8220;MIME Header Section&#8221; refers to a Header Sections that contains only MIME Header Fields, whereas &#8220;MIME Header Section part&#8221; refers to the MIME Header Fields of a Header Section that - in addition to MIME Header Fields - also contains non-MIME Header Fields.</li>
  556. <li>Essential Header Fields (EHF): The minimum set of Header Fields an Outer Message Header Section SHOULD contain; cf. <a href="#outer-msg-hf" class="xref">Section 4.1.4</a>.</li>
  557. <li>Header Protection (HP): cryptographic protection of email Header Sections (or parts of it) for signatures and/or encryption</li>
  558. <li>Protection Levels (PL): One of &#8216;signature and encryption&#8217;, &#8216;signature only&#8217; or &#8216;encryption only&#8217; (cf. <a href="#protection-levels" class="xref">Section 3.2</a>)</li>
  559. </ul>
  560. <p></p>
  561. <ul>
  562. <li>Protected: Protected refers to the parts of a Message where protection measures of any Protection Level have been applied to.</li>
  563. <li>Protected Message: A Message that protection measures of any Protection Levels have been applied to.</li>
  564. <li>Unprotected: Unprotected refers to the parts of a Message where no protection measures of any Protection Levels have been applied to.</li>
  565. <li>Unprotected Message: A Message that no protection measures of any Protection Levels have been applied to.</li>
  566. <li>Original Message (OrigM): The message to be protected before any protection related processing has been applied on the sending side.</li>
  567. <li>Inner Message (InnerM): The message to be protected, i.e. which wrapping and protection measures are applied to on the sending side or the result of decryption and unwrapping on the receiving side respectively. Typically, the Inner Message is in clear text. The Inner Message is a subset of (or the same as) the Original Message (cf. <a href="#inner-msg-hf" class="xref">Section 4.1.2</a>). The Inner Message must be the same on the sending and the receiving side.</li>
  568. <li>Outer Message (OuterM): The Message as handed over to the Submission Entity or received from the last hop respectively. The Outer Message normally differs on the sending and the receiving side (e.g. new Header Fields are added by intermediary nodes).</li>
  569. <li>Receiving User Facing Message (RUFM): The message used for rendering at the receiving side. Typically this is the same as the Inner Message.</li>
  570. <li>Submission Entity: The entity taking care of further processing of the Message (incl. transport towards the receiver), after protection measures have been applied to. It typically determines the destination recipients by reading the To, Cc and Bcc Header Fields (of the Outer Message). <br><br> Note: The Submission Entity varies among implementations, mainly depending on the stage, where protection measures are applied to: It could be e.g. a Message Submission Agent (MSA) <a href="#RFC6409" class="xref">[RFC6409]</a> or another (proprietary) solution. The latter is particularly relevant, if protection is implemented as a plugin solution or for mixnet networks, i.e. &#8220;onion routing&#8221; for email (e.g. <a href="#pEp.mixnet" class="xref">[pEp.mixnet]</a>).</li>
  571. <li>Data Minimization: Data sparseness and hiding of all technically concealable information whenever possible.</li>
  572. </ul>
  573. <h1 id="rfc.section.2">
  574. <a href="#rfc.section.2">2.</a> <a href="#problem-statement" id="problem-statement">Problem Statement</a>
  575. </h1>
  576. <p id="rfc.section.2.p.1">The LAMPS charter contains the following Work Item:</p>
  577. <p></p>
  578. <ul class="empty"><li>Update the specification for the cryptographic protection of email headers &#8211; both for signatures and encryption &#8211; to improve the implementation situation with respect to privacy, security, usability and interoperability in cryptographically-protected electronic mail. Most current implementations of cryptographically-protected electronic mail protect only the body of the message, which leaves significant room for attacks against otherwise-protected messages.</li></ul>
  579. <p id="rfc.section.2.p.3">In the following a set of challenges to be addressed:</p>
  580. <p id="rfc.section.2.p.4">[[ TODO: enhance this section, add more items to the following ]]</p>
  581. <h1 id="rfc.section.2.1">
  582. <a href="#rfc.section.2.1">2.1.</a> <a href="#privacy" id="privacy">Privacy</a>
  583. </h1>
  584. <p></p>
  585. <ul><li>Data Minimization, which includes data sparseness and hiding all technically concealable information whenever possible</li></ul>
  586. <h1 id="rfc.section.2.2">
  587. <a href="#rfc.section.2.2">2.2.</a> <a href="#security" id="security">Security</a>
  588. </h1>
  589. <p></p>
  590. <ul><li>MITM attacks (cf. <a href="#RFC4949" class="xref">[RFC4949]</a>)</li></ul>
  591. <h1 id="rfc.section.2.3">
  592. <a href="#rfc.section.2.3">2.3.</a> <a href="#usability" id="usability">Usability</a>
  593. </h1>
  594. <p></p>
  595. <ul><li>User interaction / User experience</li></ul>
  596. <h1 id="rfc.section.2.4">
  597. <a href="#rfc.section.2.4">2.4.</a> <a href="#interoperability" id="interoperability">Interoperability</a>
  598. </h1>
  599. <p></p>
  600. <ul><li>Interoperability with <a href="#RFC8551" class="xref">[RFC8551]</a> implementations</li></ul>
  601. <h1 id="rfc.section.3">
  602. <a href="#rfc.section.3">3.</a> <a href="#use-cases" id="use-cases">Use Cases</a>
  603. </h1>
  604. <p id="rfc.section.3.p.1">In the following, the reader can find a list of the generic use cases that need to be addressed for Messages with Header Protection (HP). These use cases apply regardless of technology (S&#8288;/&#8288;MIME, PGP/MIME, etc.) used to achieve HP.</p>
  605. <h1 id="rfc.section.3.1">
  606. <a href="#rfc.section.3.1">3.1.</a> <a href="#interactions" id="interactions">Interactions</a>
  607. </h1>
  608. <p id="rfc.section.3.1.p.1">The following use cases assume that at least the sending side supports Header Protection as specified in this document. Receiving sides that support this specification are expected to be able to distinguish between Messages that Header Protection &#8211; as specified in this document &#8211; has been applied to and (legacy) Mail user Agents (MUAs) not implementing this specification.</p>
  609. <p id="rfc.section.3.1.p.2">[[TODO: Verify once solution is stable and update last sentence ]]</p>
  610. <h1 id="rfc.section.3.1.1">
  611. <a href="#rfc.section.3.1.1">3.1.1.</a> <a href="#uc-ia-main-use-case" id="uc-ia-main-use-case">Main Use Case</a>
  612. </h1>
  613. <p id="rfc.section.3.1.1.p.1">Both peers (sending and receiving side) (fully) support Header Protection as specified in this document.</p>
  614. <p id="rfc.section.3.1.1.p.2">The main use case is specified in <a href="#main-use-case" class="xref">Section 4.1</a>.</p>
  615. <h1 id="rfc.section.3.1.2">
  616. <a href="#rfc.section.3.1.2">3.1.2.</a> <a href="#uc-ia-backward-compatibility-use-cases" id="uc-ia-backward-compatibility-use-cases">Backward Compatibility Use Cases</a>
  617. </h1>
  618. <p id="rfc.section.3.1.2.p.1">Regarding backwards compatibility the main distinction is based on whether or not the receiving side conforms to MIME according to <a href="#RFC2046" class="xref">[RFC2046]</a>, ff., which in particular also includes Section 2 of <a href="#RFC2049" class="xref">[RFC2049]</a> on &#8220;MIME Conformance&#8221;. In the following an excerpt of paragraphs relevant in this context:</p>
  619. <pre>
  620. A mail user agent that is MIME-conformant MUST:
  621. [...]
  622. -- Recognize and display at least the RFC822 message
  623. encapsulation (message/rfc822) in such a way as to
  624. preserve any recursive structure, that is, displaying
  625. or offering to display the encapsulated data in
  626. accordance with its media type.
  627. -- Treat any unrecognized subtypes as if they were
  628. "application/octet-stream".
  629. [...]
  630. A user agent that meets the above conditions is said to be MIME-
  631. conformant. The meaning of this phrase is that it is assumed to be
  632. "safe" to send virtually any kind of properly-marked data to users
  633. of such mail systems, because such systems will at least be able to
  634. treat the data as undifferentiated binary, and will not simply
  635. splash it onto the screen of unsuspecting users.
  636. </pre>
  637. <p id="rfc.section.3.1.2.p.2">Note: The compatibility of legacy HP systems with this new solution, and how to handle issues surrounding future maintenance for these legacy systems, will be decided by the LAMPS WG.</p>
  638. <h1 id="rfc.section.">
  639. <a href="#rfc.section."></a> <a href="#uc-ia-bc-receiving-side-mime-conformant" id="uc-ia-bc-receiving-side-mime-conformant">Receiving Side MIME-Conformant</a>
  640. </h1>
  641. <p id="rfc.section.">The sending side (fully) supports Header Protection as specified in this document, while the receiving side does not support this specification. The receiving side is MIME-conformant according to <a href="#RFC2045" class="xref">[RFC2045]</a>, ff. (cf. <a href="#uc-ia-backward-compatibility-use-cases" class="xref">Section 3.1.2</a>),</p>
  642. <p id="rfc.section.">This use case is specified in <a href="#receiving-side-mime-conformant" class="xref">Section 4.2.1</a>.</p>
  643. <p id="rfc.section.">Note: This case is expected to just work fine, if the sending side applies specification for the main use case <a href="#main-use-case" class="xref">Section 4.1</a>.</p>
  644. <p id="rfc.section.">[[TODO: Verify once solution is stable and update last sentence ]]</p>
  645. <h1 id="rfc.section.">
  646. <a href="#rfc.section."></a> <a href="#uc-ia-bc-receiving-side-not-mime-conformant" id="uc-ia-bc-receiving-side-not-mime-conformant">Receiving Side Not MIME-Conformant</a>
  647. </h1>
  648. <p id="rfc.section.">The sending side (fully) supports Header Protection as specified in this document, while the receiving side does not support this specification. The receiving side is <strong>not</strong> MIME-conformant according to <a href="#RFC2045" class="xref">[RFC2045]</a>, ff. (cf. <a href="#uc-ia-backward-compatibility-use-cases" class="xref">Section 3.1.2</a>) either.</p>
  649. <p id="rfc.section.">This use case is specified in <a href="#receiving-side-not-mime-conformant" class="xref">Section 4.2.2</a>.</p>
  650. <h1 id="rfc.section.3.2">
  651. <a href="#rfc.section.3.2">3.2.</a> <a href="#protection-levels" id="protection-levels">Protection Levels</a>
  652. </h1>
  653. <p id="rfc.section.3.2.p.1">The following protection levels need to be considered:</p>
  654. <p id="rfc.section.3.2.p.2">a) Signature and encryption</p>
  655. <pre>
  656. Messages containing a cryptographic signature, which are also
  657. encrypted.
  658. </pre>
  659. <p id="rfc.section.3.2.p.3">b) Signature only</p>
  660. <pre>
  661. Messages containing a cryptographic signature, but which are not
  662. encrypted.
  663. </pre>
  664. <p id="rfc.section.3.2.p.4">c) Encryption only</p>
  665. <pre>
  666. Messages that are encrypted, but do not contain a cryptographic
  667. signature.
  668. </pre>
  669. <h1 id="rfc.section.4">
  670. <a href="#rfc.section.4">4.</a> <a href="#specification" id="specification">Specification</a>
  671. </h1>
  672. <p id="rfc.section.4.p.1">This section contains the specification for Header Protection in S&#8288;/&#8288;MIME to update and it clarifies Section 3.1 of <a href="#RFC8551" class="xref">[RFC8551]</a> (S&#8288;/&#8288;MIME 4.0).</p>
  673. <p id="rfc.section.4.p.2">Furthermore, it is likely that PGP/MIME <a href="#RFC3156" class="xref">[RFC3156]</a> will also incorporate this specification or parts of it.</p>
  674. <p id="rfc.section.4.p.3">This specification applies to the protection levels &#8220;signature &amp; encryption&#8221; and &#8220;signature only&#8221; (cf. <a href="#protection-levels" class="xref">Section 3.2</a>):</p>
  675. <p id="rfc.section.4.p.4">Sending and receiving sides MUST implement &#8220;signature and encryption&#8221;, which is the default to use on the sending side.</p>
  676. <p id="rfc.section.4.p.5">Certain implementations MAY decide to send &#8220;signature only&#8221; messages, depending on the circumstances and customer requirements. Sending side MAY and receiving sides MUST implement &#8220;signature only&#8221;.</p>
  677. <p id="rfc.section.4.p.6">It generally is NOT RECOMMENDED to send a message with protection level &#8220;encryption only&#8221;. On the other hand, messages with protection level &#8220;encryption only&#8221; might arrive at the receiving side. While not targeted to protection level &#8220;encryption only&#8221;, this specification is assumed to also function for &#8220;encryption only&#8221;. Receiving sides SHOULD implement &#8220;encryption only&#8221;.</p>
  678. <p id="rfc.section.4.p.7">Note: It is for further study whether or not more guidance for handling messages with protection level &#8220;encryption only&#8221; at the receiving side is needed.</p>
  679. <h1 id="rfc.section.4.1">
  680. <a href="#rfc.section.4.1">4.1.</a> <a href="#main-use-case" id="main-use-case">Main Use Case</a>
  681. </h1>
  682. <p id="rfc.section.4.1.p.1">This section applies to the main use case, where both peers (sending and receiving side) (fully) support Header Protection as specified herein (cf. <a href="#uc-ia-main-use-case" class="xref">Section 3.1.1</a>).</p>
  683. <p id="rfc.section.4.1.p.2">Note: The sending side specification of the main use case is also applicable to the cases, where the sending side (fully) supports Header Protection as specified herein, while the receiving side does not support this specification, but is MIME-conformant according to <a href="#RFC2045" class="xref">[RFC2045]</a>, ff. (cf. <a href="#uc-ia-backward-compatibility-use-cases" class="xref">Section 3.1.2</a>) and <a href="#uc-ia-bc-receiving-side-mime-conformant" class="xref">Section</a>)</p>
  684. <p id="rfc.section.4.1.p.3">Further backward compatibility cases are defined in <a href="#backward-compatibility-use-cases" class="xref">Section 4.2</a>.</p>
  685. <h1 id="rfc.section.4.1.1">
  686. <a href="#rfc.section.4.1.1">4.1.1.</a> <a href="#mime-format" id="mime-format">MIME Format</a>
  687. </h1>
  688. <p id="rfc.section.4.1.1.p.1">Currently there are two options in discussion:</p>
  689. <p></p>
  690. <ol>
  691. <li>The option according to the current S&#8288;/&#8288;MIME specification (cf. <a href="#RFC8551" class="xref">[RFC8551]</a>)</li>
  692. <li>An alternative option that is based on the former &#8220;memory hole&#8221; approach (cf. <a href="#I-D.autocrypt-lamps-protected-headers" class="xref">[I-D.autocrypt-lamps-protected-headers]</a>)</li>
  693. </ol>
  694. <h1 id="rfc.section.">
  695. <a href="#rfc.section."></a> <a href="#option-smime-spec" id="option-smime-spec">S/MIME Specification</a>
  696. </h1>
  697. <p id="rfc.section.">As per S&#8288;/&#8288;MIME version 3.1 and later (cf. <a href="#RFC8551" class="xref">[RFC8551]</a>), the sending client MAY wrap a full MIME message in a message/RFC822 wrapper in order to apply S&#8288;/&#8288;MIME security services to these header fields.</p>
  698. <p id="rfc.section.">To help the receiving side to distinguish between forwarded and wrapped message, a Content-Type header field parameter &#8220;forwarded&#8221; is added as defined in <a href="#I-D.melnikov-iana-reg-forwarded" class="xref">[I-D.melnikov-iana-reg-forwarded]</a>. Certain mailing applications might display the Inner Message as attachment otherwise.</p>
  699. <p id="rfc.section.">The MIME structure of an Email message looks as follows:</p>
  700. <pre>
  701. &lt;Outer Message Header Section (unprotected)&gt;
  702. &lt;Outer Message Body (protected)&gt;
  703. &lt;MIME Header Section (wrapper)&gt;
  704. &lt;Inner Message Header Section&gt;
  705. &lt;Inner Message Body&gt;
  706. </pre>
  707. <p id="rfc.section.">The following example demonstrates how header section and payload of a protected body part might look like. For example, this will be the first body part of a multipart/signed message or the signed and/or encrypted payload of the application/pkcs7-mime body part. Lines prepended by &#8220;O: &#8220; are the Outer Message Header Section. Lines prepended by &#8220;I: &#8220; are the Inner Message Header Section. Lines prepended by &#8220;W: &#8220; are the wrapper (MIME Header Section):</p>
  708. <pre>
  709. O: Date: Mon, 25 Sep 2017 17:31:42 +0100 (GMT Daylight Time)
  710. O: Message-ID: &lt;e4a483cb-1dfb-481d-903b-298c92c21f5e@m.example.net&gt;
  711. O: Subject: Meeting at my place
  712. O: From: "Alexey Melnikov" &lt;alexey.melnikov@example.net&gt;
  713. O: To: somebody@example.net
  714. O: MIME-Version: 1.0
  715. O: Content-Type: multipart/signed; charset=us-ascii; micalg=sha1;
  716. O: protocol="application/pkcs7-signature";
  717. O: boundary=.cbe16d2a-e1a3-4220-b821-38348fc97237
  718. This is a multipart message in MIME format.
  719. --.cbe16d2a-e1a3-4220-b821-38348fc97237
  720. W: Content-Type: message/RFC822; forwarded=no
  721. W:
  722. I: Date: Mon, 25 Sep 2017 17:31:42 +0100 (GMT Daylight Time)
  723. I: From: "Alexey Melnikov" &lt;alexey.melnikov@example.net&gt;
  724. I: Message-ID: &lt;e4a483cb-1dfb-481d-903b-298c92c21f5e@m.example.net&gt;
  725. I: MIME-Version: 1.0
  726. I: MMHS-Primary-Precedence: 3
  727. I: Subject: Meeting at my place
  728. I: To: somebody@example.net
  729. I: X-Mailer: Isode Harrier Web Server
  730. I: Content-Type: text/plain; charset=us-ascii
  731. This is an important message that I don't want to be modified.
  732. --.cbe16d2a-e1a3-4220-b821-38348fc97237
  733. Content-Transfer-Encoding: base64
  734. Content-Type: application/pkcs7-signature
  735. [[base-64 encoded signature]]
  736. --.cbe16d2a-e1a3-4220-b821-38348fc97237--
  737. </pre>
  738. <p id="rfc.section.">The Outer Message Header Section is unprotected, while the remainder (Outer Message Body) is protected. The Outer Message Body consists of the wrapper (MIME Header Section) and the Inner Message (Header Section and Body).</p>
  739. <p id="rfc.section.">The wrapper is a simple MIME Header Section with media type &#8220;message/RFC822&#8221; containing a Content-Type header field parameter &#8220;forwarded=no&#8221; followed by an empty line.</p>
  740. <p id="rfc.section.">The Inner Message Header Section is the same as (or a subset of) the Original Message Header Section (cf. <a href="#inner-msg-hf" class="xref">Section 4.1.2</a>).</p>
  741. <p id="rfc.section.">The Inner Message Body is the same as the Original Message Body.</p>
  742. <p id="rfc.section.">The Original Message itself may contain any MIME structure.</p>
  743. <h1 id="rfc.section.">
  744. <a href="#rfc.section."></a> <a href="#option-ex-memory-hole" id="option-ex-memory-hole">Alternative Option Autocrypt &#8220;Protected Headers&#8221; (Ex-&#8220;Memory Hole&#8221;)</a>
  745. </h1>
  746. <p id="rfc.section.">An alternative option (based on the former autocrypt &#8220;Memory Hole&#8221; approach) to be considered, is described in <a href="#I-D.autocrypt-lamps-protected-headers" class="xref">[I-D.autocrypt-lamps-protected-headers]</a>.</p>
  747. <p id="rfc.section.">Unlike the option described in <a href="#option-smime-spec" class="xref">Section</a>, this option does not use a &#8220;message/RFC822&#8221; wrapper to unambiguously delimit the Inner Message.</p>
  748. <p id="rfc.section.">Before choosing this option, two issues must be assessed to ensure, no interoperability issues result from it:</p>
  749. <p></p>
  750. <ol>
  751. <li>How current MIME parser implementations treat non-MIME Header Fields, which are not part of the outermost MIME entity and not part of a message wrapped into a MIME entity of media type &#8220;message/rfc822&#8221;, and how such messages are rendered to the user. <br><br> <a href="#I-D.autocrypt-lamps-protected-headers" class="xref">[I-D.autocrypt-lamps-protected-headers]</a> provides some examples for testing this.</li>
  752. <li>MIME-conformance, i.e. whether or not this option is (fully) MIME-conformant <a href="#RFC2045" class="xref">[RFC2045]</a> ff., in particular also Section 5.1. of <a href="#RFC2046" class="xref">[RFC2046]</a> on &#8220;Multipart Media Type). In the following an excerpt of paragraphs that may be relevant in this context:</li>
  753. </ol>
  754. <pre>
  755. The only header fields that have defined meaning for body parts
  756. are those the names of which begin with "Content-". All other
  757. header fields may be ignored in body parts. Although they
  758. should generally be retained if at all possible, they may be
  759. discarded by gateways if necessary. Such other fields are
  760. permitted to appear in body parts but must not be depended on.
  761. "X-" fields may be created for experimental or private
  762. purposes, with the recognition that the information they
  763. contain may be lost at some gateways.
  764. </pre>
  765. <pre>
  766. NOTE: The distinction between an RFC 822 message and a body
  767. part is subtle, but important. A gateway between Internet and
  768. X.400 mail, for example, must be able to tell the difference
  769. between a body part that contains an image and a body part
  770. that contains an encapsulated message, the body of which is a
  771. JPEG image. In order to represent the latter, the body part
  772. must have "Content-Type: message/rfc822", and its body (after
  773. the blank line) must be the encapsulated message, with its own
  774. "Content-Type: image/jpeg" header field. The use of similar
  775. syntax facilitates the conversion of messages to body parts,
  776. and vice versa, but the distinction between the two must be
  777. understood by implementors. (For the special case in which
  778. parts actually are messages, a "digest" subtype is also
  779. defined.)
  780. </pre>
  781. <p id="rfc.section.">The MIME structure of an Email message looks as follows:</p>
  782. <pre>
  783. &lt;Outer Message Header Section (unprotected)&gt;
  784. &lt;Outer Message Body (protected)&gt;
  785. &lt;Inner Message Header Section&gt;
  786. &lt;Inner Message Body&gt;
  787. </pre>
  788. <p id="rfc.section.">The following example demonstrates how the header section and payload of a protected body part might appear. For example, this will be the first body part of a multipart/signed message or the signed and/or encrypted payload of the application/pkcs7-mime body part. Lines prepended by &#8220;O: &#8220; are the outer header section. Lines prepended by &#8220;I: &#8220; are the inner header section.</p>
  789. <pre>
  790. O: Date: Mon, 25 Sep 2017 17:31:42 +0100 (GMT Daylight Time)
  791. O: Message-ID: &lt;e4a483cb-1dfb-481d-903b-298c92c21f5e@m.example.net&gt;
  792. O: Subject: Meeting at my place
  793. O: From: "Alexey Melnikov" &lt;alexey.melnikov@example.net&gt;
  794. O: MIME-Version: 1.0
  795. O: Content-Type: multipart/signed; charset=us-ascii; micalg=sha1;
  796. O: protocol="application/pkcs7-signature";
  797. O: boundary=.cbe16d2a-e1a3-4220-b821-38348fc97237
  798. This is a multipart message in MIME format.
  799. --.cbe16d2a-e1a3-4220-b821-38348fc97237
  800. I: Date: Mon, 25 Sep 2017 17:31:42 +0100 (GMT Daylight Time)
  801. I: From: "Alexey Melnikov" &lt;alexey.melnikov@example.net&gt;
  802. I: Message-ID: &lt;e4a483cb-1dfb-481d-903b-298c92c21f5e@m.example.net&gt;
  803. I: MIME-Version: 1.0
  804. I: MMHS-Primary-Precedence: 3
  805. I: Subject: Meeting at my place
  806. I: To: somebody@example.net
  807. I: X-Mailer: Isode Harrier Web Server
  808. I: Content-Type: text/plain; charset=us-ascii
  809. This is an important message that I don't want to be modified.
  810. --.cbe16d2a-e1a3-4220-b821-38348fc97237
  811. Content-Transfer-Encoding: base64
  812. Content-Type: application/pkcs7-signature
  813. [[base-64 encoded signature]]
  814. --.cbe16d2a-e1a3-4220-b821-38348fc97237--
  815. </pre>
  816. <p id="rfc.section.">The Outer Message Header Section is unprotected, while the remainder (Outer Message Body) is protected. The Outer Message Body consists of the Inner Message (Header Section and Body).</p>
  817. <p id="rfc.section.">The Inner Message Header Section is the same as (or a subset of) the Original Message Header Section (cf. <a href="#inner-msg-hf" class="xref">Section 4.1.2</a>).</p>
  818. <p id="rfc.section.">The Inner Message Body is the same as the Original Message Body.</p>
  819. <p id="rfc.section.">The Original Message itself may contain any MIME structure.</p>
  820. <h1 id="rfc.section.4.1.2">
  821. <a href="#rfc.section.4.1.2">4.1.2.</a> <a href="#inner-msg-hf" id="inner-msg-hf">Inner Message Header Fields</a>
  822. </h1>
  823. <p id="rfc.section.4.1.2.p.1">It is RECOMMENDED that the Inner Messages contains all the Header Fields of the Original Message with the exception of the following Header Field, which MUST NOT be included within the Inner Message nor within any other protected part of the message:</p>
  824. <p></p>
  825. <ul><li>Bcc</li></ul>
  826. <p id="rfc.section.4.1.2.p.3">[[ TODO: Bcc handling needs to be further specified (see also <a href="#bcc-handling" class="xref">Appendix A.1</a>). Certain MUAs cannot properly decrypt messages with Bcc recipients. ]]</p>
  827. <h1 id="rfc.section.4.1.3">
  828. <a href="#rfc.section.4.1.3">4.1.3.</a> <a href="#wrapper" id="wrapper">Wrapper</a>
  829. </h1>
  830. <p id="rfc.section.4.1.3.p.1">The wrapper is a simple MIME Header Section followed by an empty line preceding the Inner Message (inside the Outer Message Body). The media type of the wrapper MUST be &#8220;message/RFC822&#8221; and MUST contain the Content-Type header field parameter &#8220;forwarded=no&#8221; as defined in <a href="#I-D.melnikov-iana-reg-forwarded" class="xref">[I-D.melnikov-iana-reg-forwarded]</a>. The wrapper delimits unambiguously the Inner Message from the rest of the message.</p>
  831. <h1 id="rfc.section.4.1.4">
  832. <a href="#rfc.section.4.1.4">4.1.4.</a> <a href="#outer-msg-hf" id="outer-msg-hf">Outer Message Header Fields</a>
  833. </h1>
  834. <p id="rfc.section.4.1.4.p.1">To maximize Privacy, it is strongly RECOMMENDED to follow the principle of Data Minimization (cf. <a href="#privacy" class="xref">Section 2.1</a>).</p>
  835. <p id="rfc.section.4.1.4.p.2">However, the Outer Message Header Section SHOULD contain the Essential Header Fields and, in addition, MUST contain the Header Fields of the MIME Header Section part to describe the encryption or signature as per <a href="#RFC8551" class="xref">[RFC8551]</a>.</p>
  836. <p id="rfc.section.4.1.4.p.3">The following Header Fields are defined as the Essential Header Fields:</p>
  837. <p></p>
  838. <ul>
  839. <li>From</li>
  840. <li>To (if present in the Original Message)</li>
  841. <li>Cc (if present in the Original Message)</li>
  842. <li>Bcc (if present in the Original Message, see also <a href="#inner-msg-hf" class="xref">Section 4.1.2</a> and <a href="#bcc-handling" class="xref">Appendix A.1</a>)</li>
  843. <li>Date</li>
  844. <li>Message-ID</li>
  845. <li>Subject</li>
  846. </ul>
  847. <p id="rfc.section.4.1.4.p.5">Further processing by the Submission Entity normally depends on part of these Header Fields, e.g. From and Date HFs are required by <a href="#RFC5322" class="xref">[RFC5322]</a>. Furthermore, not including certain Header Fields may trigger spam detection to flag the message and/or lead to user experience (UX) issues.</p>
  848. <p id="rfc.section.4.1.4.p.6">For further Data Minimization, the value of the Subject Header Field SHOULD be obfuscated. In addition, the value of other Essential Header Fields MAY be obfuscated. Further Header Fields MAY be obfuscated, though simply not adding those to the Outer Message Header Section SHOULD be preferred over obfuscation. Header Field obfuscation is further specified in <a href="#obfuscation-outer-HF" class="xref">Section</a>. Header Fields not obfuscated should contain the same values as in the Original Message.</p>
  849. <p id="rfc.section.4.1.4.p.7">The MIME Header Section part is the collection of MIME Header Fields describing the following MIME structure as defined in <a href="#RFC2045" class="xref">[RFC2045]</a>. A MIME Header Section part typically includes the following Header Fields:</p>
  850. <p></p>
  851. <ul>
  852. <li>Content-Type</li>
  853. <li>Content-Transfer-Encoding</li>
  854. <li>Content-Disposition</li>
  855. </ul>
  856. <p id="rfc.section.4.1.4.p.9">The following example shows the MIME Header Section part of an S&#8288;/&#8288;MIME signed message (using application/pkcs7-mime with SignedData):</p>
  857. <pre>
  858. MIME-Version: 1.0
  859. Content-Type: application/pkcs7-mime; smime-type=signed-data;
  860. name=smime.p7m
  861. Content-Transfer-Encoding: base64
  862. Content-Disposition: attachment; filename=smime.p7m
  863. </pre>
  864. <p id="rfc.section.4.1.4.p.10">Depending on the scenario, further Header Fields MAY be exposed in the Outer Message Header Section, which is NOT RECOMMENDED unless justified. Such Header Fields may include e.g.:</p>
  865. <p></p>
  866. <ul>
  867. <li>References</li>
  868. <li>Reply-To</li>
  869. <li>In-Reply-To</li>
  870. </ul>
  871. <h1 id="rfc.section.">
  872. <a href="#rfc.section."></a> <a href="#obfuscation-outer-HF" id="obfuscation-outer-HF">Obfuscation of Outer Message Header Fields</a>
  873. </h1>
  874. <p id="rfc.section.">If the values of the following Outer Message Header Fields are obfuscated, those SHOULD assume the following values:</p>
  875. <pre>
  876. * Subject: ...
  877. * Message-ID: &lt;new randomly generated Message-ID&gt;
  878. * Date: Thu, 01 Jan 1970 00:00:00 +0000 (UTC)
  879. </pre>
  880. <p id="rfc.section.">[[ TODO: Consider alternatives for Date e.g. set to Monday 9am of the same week. ]]</p>
  881. <p id="rfc.section.">In certain implementations also the From, To, and/or Cc Header Field MAY be obfuscated. Those may be replaced by e.g.</p>
  882. <p></p>
  883. <ul><li>To: Obfuscated <a href="mailto:anonymous@anonymous.invalid">anonymous@anonymous.invalid</a>
  884. </li></ul>
  885. <p id="rfc.section.">Such implementations may need to ensure that the Submission Entity has access to the content of these Header Fields in clear text and is capable of processing those. This is particularly relevant, if proprietary Submission Entities are used.</p>
  886. <p id="rfc.section.">A use case for obfuscation of all Outer Message Header Fields is mixnet networks, i.e. &#8220;onion routing&#8221; for email (e.g. <a href="#pEp.mixnet" class="xref">[pEp.mixnet]</a>).</p>
  887. <p id="rfc.section.">Note: It is for further study to what extent Header Field obfuscation adversely impacts spam filtering.</p>
  888. <h1 id="rfc.section.4.1.5">
  889. <a href="#rfc.section.4.1.5">4.1.5.</a> <a href="#rufm-hf" id="rufm-hf">Receiving User Facing Message Header Fields</a>
  890. </h1>
  891. <p id="rfc.section.4.1.5.p.1">The Receiving User Facing Message SHOULD be a verbatim copy of the Inner Message.</p>
  892. <h1 id="rfc.section.4.1.6">
  893. <a href="#rfc.section.4.1.6">4.1.6.</a> <a href="#header-field-flow" id="header-field-flow">Header Field Flow</a>
  894. </h1>
  895. <p id="rfc.section.4.1.6.p.1">The Following figure depicts the different message representations (OrigM, InnerM, OuterM, RUFM) and which parts those are constructed from:</p>
  896. <pre>
  897. OrigM InnerM Outer(S) OuterM(R) RUFM
  898. &lt;Trace-HF&gt;
  899. From (OrigM) = From
  900. To (OrigM) = To
  901. Cc (OrigM) = Cc
  902. Bcc (OrigM) = Bcc*
  903. Date (OrigM) = Date
  904. Message-ID (OrigM)= Message-ID
  905. Subject (new) = Subject
  906. &lt;MIME-HSp&gt; (new) = &lt;MIME-HSp&gt;
  908. &lt;Wrapper&gt; (new) = &lt;Wrapper&gt;
  909. From &gt; From &gt; From = From &gt; From
  910. To &gt; To &gt; To = To &gt; To
  911. Cc* &gt; Cc &gt; Cc = Cc &gt; Cc
  912. Bcc*
  913. Date &gt; Date &gt; Date = Date &gt; Date
  914. Message-ID &gt; Message-ID &gt; Message-ID = Message-ID &gt; Message-ID
  915. Subject &gt; Subject &gt; Subject = Subject &gt; Subject
  916. &lt;More HF&gt; &gt; &lt;More HF&gt; &gt; &lt;More HF&gt; = &lt;More HF&gt; &gt; &lt;More-HF&gt;
  917. &lt;MIME-HSp&gt; &gt; &lt;MIME-HSp&gt; &gt; &lt;MIME-HSp&gt; = &lt;MIME-HSp&gt; &gt; &lt;MIME-HSp&gt;
  918. &lt;Body&gt; &gt; &lt;Body&gt; &gt; &lt;Body&gt; = &lt;Body&gt; &gt; &lt;Body&gt;
  919. &lt;Signature&gt;* (new)= &lt;Signature&gt;
  920. </pre>
  921. <p id="rfc.section.4.1.6.p.2">Legend:</p>
  922. <p></p>
  923. <ul>
  924. <li>OuterM(S): Outer Message (OuterM) at sending side (before handing it over to the Submission Entity)</li>
  925. <li>OuterM(R): Outer Message at receiving side (as received by the last hop, before decryption and/or signature verification is applied to)</li>
  926. <li>InnerM: Inner Message (that protection is applied to)</li>
  927. <li>RUFM: Receiving User Facing Message</li>
  928. <li>More-HF: Additional Header Fields (HF) in the Original Message (OrigM)</li>
  929. <li>Wrapper: MIME Header Section; with media type (message/RFC822) to unambiguously delimit the inner message from the rest of the message.</li>
  930. <li>MIME-HSp: MIME Header Section part to describe the encryption or signature as per <a href="#RFC8551" class="xref">[RFC8551]</a>
  931. </li>
  932. <li>Trace-HF: Header Fields added in Transit (between sending and receiving side) as per <a href="#RFC5322" class="xref">[RFC5322]</a>
  933. </li>
  934. <li>&gt;: taken over / copied from last column</li>
  935. <li>=: propagates unchanged, unless something unusual (e.g. attack) happens</li>
  936. <li>*: HF that is often not present (also further HFs, e.g. To, may not be present). If a HF is not present, naturally it can neither be taken over nor propagated.</li>
  937. <li>(new) / (OrigM): HF or MIME-HSp is generated depending on the decision in <a href="#sending-side-step-1" class="xref">Section</a>, while &#8216;(new)&#8217; / &#8216;(OrigM)&#8217; designate the default.</li>
  938. </ul>
  939. <h1 id="rfc.section.4.1.7">
  940. <a href="#rfc.section.4.1.7">4.1.7.</a> <a href="#sending-side-message-processing" id="sending-side-message-processing">Sending Side Message Processing</a>
  941. </h1>
  942. <p id="rfc.section.4.1.7.p.1">For a protected message the following steps are applied before a message is handed over to the Submission Entity:</p>
  943. <h1 id="rfc.section.">
  944. <a href="#rfc.section."></a> <a href="#sending-side-step-1" id="sending-side-step-1">Step 1: Decide on Protection Level and Information Disclosure</a>
  945. </h1>
  946. <p id="rfc.section.">The entity applying protection to a message must decide:</p>
  947. <p></p>
  948. <ul>
  949. <li>Which Protection Level (signature and/or encryption) is applied to the message? This depends on user request and/or local policy as well as availability of cryptographic keys.</li>
  950. <li>Which Header Fields of the Original Message shall be part of the Outer Message Header Section? This typically depends on local policy. By default the Essential Header Fields are part of the Outer Message Header Section; cf. <a href="#outer-msg-hf" class="xref">Section 4.1.4</a>.</li>
  951. <li>Which of these Header Fields are to be obfuscated? This depends on local policy and/or specific Privacy requirements of the user. By default only the Subject Header Field is obfuscated; cf. <a href="#obfuscation-outer-HF" class="xref">Section</a>.</li>
  952. </ul>
  953. <h1 id="rfc.section.">
  954. <a href="#rfc.section."></a> <a href="#sending-side-step-2" id="sending-side-step-2">Step 2: Compose the Outer Message Header Section</a>
  955. </h1>
  956. <p id="rfc.section.">Depending on the decision in <a href="#sending-side-step-1" class="xref">Section</a>, compose the Outer Message Header Section. (Note that this also includes the necessary MIME Header Section part for the following protection layer.)</p>
  957. <p id="rfc.section.">Outer Header Fields that are not obfuscated should contain the same values as in the Original Message (except for MIME Header Section part, which depends on the protection level selected in <a href="#sending-side-step-1" class="xref">Section</a>).</p>
  958. <h1 id="rfc.section.">
  959. <a href="#rfc.section."></a> <a href="#sending-side-step-3" id="sending-side-step-3">Step 3: Apply Protection to the Original Message</a>
  960. </h1>
  961. <p id="rfc.section.">Depending on the Protection Level selected in <a href="#sending-side-step-1" class="xref">Section</a>, apply signature and/or encryption to the Original Message, including the wrapper (as per <a href="#RFC8551" class="xref">[RFC8551]</a>), and set the result to the message as Outer Message Body.</p>
  962. <p id="rfc.section.">The resulting (Outer) Message is then typically handed over to the Submission Entity.</p>
  963. <p id="rfc.section.">[[ TODO: Example ]]</p>
  964. <h1 id="rfc.section.4.1.8">
  965. <a href="#rfc.section.4.1.8">4.1.8.</a> <a href="#receiving-side-message-processing" id="receiving-side-message-processing">Receiving Side Message Processing</a>
  966. </h1>
  967. <p id="rfc.section.4.1.8.p.1">When a protected message is received, the following steps are applied:</p>
  968. <h1 id="rfc.section.">
  969. <a href="#rfc.section."></a> <a href="#receiving-side-step-1" id="receiving-side-step-1">Step 1: Decrypt message and/or check signature</a>
  970. </h1>
  971. <p id="rfc.section.">Depending on the protection level, the received message is decrypted and/or its signature is checked as per <a href="#RFC8551" class="xref">[RFC8551]</a>.</p>
  972. <h1 id="rfc.section.">
  973. <a href="#rfc.section."></a> <a href="#receiving-side-step-2" id="receiving-side-step-2">Step 2: Construct the Receiving User Facing Message</a>
  974. </h1>
  975. <p id="rfc.section.">The Receiving User Facing Message is constructed according to <a href="#rufm-hf" class="xref">Section 4.1.5</a>.</p>
  976. <p id="rfc.section.">The resulting message is handed over for further processing, which typically involves rendering it for the user.</p>
  977. <p id="rfc.section.">Note: Further study is needed to determine whether or not the Outer Message Header Section, as received from the last hop, is preserved for the user, and if so, how this is to be achieved.</p>
  978. <h1 id="rfc.section.4.2">
  979. <a href="#rfc.section.4.2">4.2.</a> <a href="#backward-compatibility-use-cases" id="backward-compatibility-use-cases">Backward Compatibility Use Cases</a>
  980. </h1>
  981. <h1 id="rfc.section.4.2.1">
  982. <a href="#rfc.section.4.2.1">4.2.1.</a> <a href="#receiving-side-mime-conformant" id="receiving-side-mime-conformant">Receiving Side MIME-Conformant</a>
  983. </h1>
  984. <p id="rfc.section.4.2.1.p.1">This section applies to the case where the sending side (fully) supports Header Protection as specified in this document, while the receiving side does not support this specification, but is MIME-conformant according to <a href="#RFC2045" class="xref">[RFC2045]</a>, ff. (cf. <a href="#uc-ia-backward-compatibility-use-cases" class="xref">Section 3.1.2</a>) and <a href="#uc-ia-bc-receiving-side-mime-conformant" class="xref">Section</a>)</p>
  985. <p id="rfc.section.4.2.1.p.2">The sending side specification of the main use case (cf. {#main-use-case}}) MUST ensure that receiving sides, that do not support this specification, but are MIME-conformant according to <a href="#RFC2045" class="xref">[RFC2045]</a>, ff. can still recognize and display the Inner Message (or rather the RUFM) in such a way as to preserve any recursive structure, that is, displaying or offering to display the encapsulated data in accordance with its media type (cf. <a href="#RFC2049" class="xref">[RFC2049]</a>, Section 2).</p>
  986. <p id="rfc.section.4.2.1.p.3">[[TODO: Verify once solution is stable and update last sentence ]]</p>
  987. <h1 id="rfc.section.4.2.2">
  988. <a href="#rfc.section.4.2.2">4.2.2.</a> <a href="#receiving-side-not-mime-conformant" id="receiving-side-not-mime-conformant">Receiving Side Not MIME-Conformant</a>
  989. </h1>
  990. <p id="rfc.section.4.2.2.p.1">This section applies to the case where the sending side (fully) supports Header Protection as specified in this document, while the receiving side neither supports this specification and <strong>nor</strong> is MIME-conformant according to <a href="#RFC2045" class="xref">[RFC2045]</a>, ff. (cf. {{uc-ia-backward-compatibility-use-cases}) and <a href="#uc-ia-bc-receiving-side-not-mime-conformant" class="xref">Section</a>).</p>
  991. <p><a href="#I-D.autocrypt-lamps-protected-headers" class="xref">[I-D.autocrypt-lamps-protected-headers]</a> describes a possible way to achieve backward compatibility with existing S&#8288;/&#8288;MIME (and PGP/MIME) implementations that predate this specification and are not MIME-conformant (Legacy Display) either. It mainly focuses on email clients that do not render emails using header protection (in a user friendly manner) and may confuse the user. While this has been observed occasionally in PGP/MIME (cf. <a href="#RFC3156" class="xref">[RFC3156]</a>), the extent of this problem with S&#8288;/&#8288;MIME implementations is still unclear. (Note: At this time, none of the samples in <a href="#I-D.autocrypt-lamps-protected-headers" class="xref">[I-D.autocrypt-lamps-protected-headers]</a> apply header protection as specified in Section 3.1 of <a href="#RFC8551" class="xref">[RFC8551]</a>, which is wrapping as Media Type &#8220;message/RFC822&#8221;.)</p>
  992. <p id="rfc.section.4.2.2.p.3">Should serious backward compatibility issues with rendering at the receiver be discovered, the Legacy Display format described in <a href="#I-D.autocrypt-lamps-protected-headers" class="xref">[I-D.autocrypt-lamps-protected-headers]</a> may serve as a basis to mitigate those issues (cf. <a href="#backward-compatibility-use-cases" class="xref">Section 4.2</a>).</p>
  993. <p id="rfc.section.4.2.2.p.4">Another variant of backward compatibility has been implemented by pEp <a href="#I-D.pep-email" class="xref">[I-D.pep-email]</a>, i.e. pEp Email Format 1.0. At this time pEp has implemented this for PGP/MIME, but not yet S&#8288;/&#8288;MIME.</p>
  994. <h1 id="rfc.section.5">
  995. <a href="#rfc.section.5">5.</a> <a href="#security-considerations" id="security-considerations">Security Considerations</a>
  996. </h1>
  997. <p id="rfc.section.5.p.1">[[ TODO ]]</p>
  998. <h1 id="rfc.section.6">
  999. <a href="#rfc.section.6">6.</a> <a href="#privacy-considerations" id="privacy-considerations">Privacy Considerations</a>
  1000. </h1>
  1001. <p id="rfc.section.6.p.1">[[ TODO ]]</p>
  1002. <h1 id="rfc.section.7">
  1003. <a href="#rfc.section.7">7.</a> <a href="#iana-considerations" id="iana-considerations">IANA Considerations</a>
  1004. </h1>
  1005. <p id="rfc.section.7.p.1">This document requests no action from IANA.</p>
  1006. <p id="rfc.section.7.p.2">[[ RFC Editor: This section may be removed before publication. ]]</p>
  1007. <h1 id="rfc.section.8">
  1008. <a href="#rfc.section.8">8.</a> <a href="#acknowledgments" id="acknowledgments">Acknowledgments</a>
  1009. </h1>
  1010. <p id="rfc.section.8.p.1">The authors would like to thank the following people who have provided helpful comments and suggestions for this document: Berna Alp, Claudio Luck, Daniel Kahn Gillmor, David Wilson, Hernani Marques, Krista Bennett, Kelly Bristol, Robert Williams, Sofia Balicka, Steve Kille, Volker Birk, and Wei Chuang.</p>
  1011. <h1 id="rfc.references">
  1012. <a href="#rfc.references">9.</a> References</h1>
  1013. <h1 id="rfc.references.1">
  1014. <a href="#rfc.references.1">9.1.</a> Normative References</h1>
  1015. <table><tbody>
  1016. <tr>
  1017. <td class="reference"><b id="I-D.ietf-lamps-header-protection-requirements">[I-D.ietf-lamps-header-protection-requirements]</b></td>
  1018. <td class="top">
  1019. <a>Melnikov, A.</a> and <a>B. Hoeneisen</a>, "<a href="https://tools.ietf.org/html/draft-ietf-lamps-header-protection-requirements-01">Problem Statement and Requirements for Header Protection</a>", Internet-Draft draft-ietf-lamps-header-protection-requirements-01, October 2019.</td>
  1020. </tr>
  1021. <tr>
  1022. <td class="reference"><b id="RFC2045">[RFC2045]</b></td>
  1023. <td class="top">
  1024. <a>Freed, N.</a> and <a>N. Borenstein</a>, "<a href="https://tools.ietf.org/html/rfc2045">Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies</a>", RFC 2045, DOI 10.17487/RFC2045, November 1996.</td>
  1025. </tr>
  1026. <tr>
  1027. <td class="reference"><b id="RFC2046">[RFC2046]</b></td>
  1028. <td class="top">
  1029. <a>Freed, N.</a> and <a>N. Borenstein</a>, "<a href="https://tools.ietf.org/html/rfc2046">Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types</a>", RFC 2046, DOI 10.17487/RFC2046, November 1996.</td>
  1030. </tr>
  1031. <tr>
  1032. <td class="reference"><b id="RFC2049">[RFC2049]</b></td>
  1033. <td class="top">
  1034. <a>Freed, N.</a> and <a>N. Borenstein</a>, "<a href="https://tools.ietf.org/html/rfc2049">Multipurpose Internet Mail Extensions (MIME) Part Five: Conformance Criteria and Examples</a>", RFC 2049, DOI 10.17487/RFC2049, November 1996.</td>
  1035. </tr>
  1036. <tr>
  1037. <td class="reference"><b id="RFC2119">[RFC2119]</b></td>
  1038. <td class="top">
  1039. <a>Bradner, S.</a>, "<a href="https://tools.ietf.org/html/rfc2119">Key words for use in RFCs to Indicate Requirement Levels</a>", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997.</td>
  1040. </tr>
  1041. <tr>
  1042. <td class="reference"><b id="RFC5322">[RFC5322]</b></td>
  1043. <td class="top">
  1044. <a>Resnick, P.</a>, "<a href="https://tools.ietf.org/html/rfc5322">Internet Message Format</a>", RFC 5322, DOI 10.17487/RFC5322, October 2008.</td>
  1045. </tr>
  1046. <tr>
  1047. <td class="reference"><b id="RFC8551">[RFC8551]</b></td>
  1048. <td class="top">
  1049. <a>Schaad, J.</a>, <a>Ramsdell, B.</a> and <a>S. Turner</a>, "<a href="https://tools.ietf.org/html/rfc8551">Secure/Multipurpose Internet Mail Extensions (S&#8288;/&#8288;MIME) Version 4.0 Message Specification</a>", RFC 8551, DOI 10.17487/RFC8551, April 2019.</td>
  1050. </tr>
  1051. </tbody></table>
  1052. <h1 id="rfc.references.2">
  1053. <a href="#rfc.references.2">9.2.</a> Informative References</h1>
  1054. <table><tbody>
  1055. <tr>
  1056. <td class="reference"><b id="I-D.autocrypt-lamps-protected-headers">[I-D.autocrypt-lamps-protected-headers]</b></td>
  1057. <td class="top">
  1058. <a>Einarsson, B.</a>, <a>juga, j.</a> and <a>D. Gillmor</a>, "<a href="https://tools.ietf.org/html/draft-autocrypt-lamps-protected-headers-02">Protected Headers for Cryptographic E-mail</a>", Internet-Draft draft-autocrypt-lamps-protected-headers-02, December 2019.</td>
  1059. </tr>
  1060. <tr>
  1061. <td class="reference"><b id="I-D.melnikov-iana-reg-forwarded">[I-D.melnikov-iana-reg-forwarded]</b></td>
  1062. <td class="top">
  1063. <a>Melnikov, A.</a> and <a>B. Hoeneisen</a>, "<a href="https://tools.ietf.org/html/draft-melnikov-iana-reg-forwarded-00">IANA Registration of Content-Type Header Field Parameter 'forwarded'</a>", Internet-Draft draft-melnikov-iana-reg-forwarded-00, November 2019.</td>
  1064. </tr>
  1065. <tr>
  1066. <td class="reference"><b id="I-D.pep-email">[I-D.pep-email]</b></td>
  1067. <td class="top">
  1068. <a>Marques, H.</a>, "<a href="https://tools.ietf.org/html/draft-marques-pep-email-02">pretty Easy privacy (pEp): Email Formats and Protocols</a>", Internet-Draft draft-marques-pep-email-02, October 2018.</td>
  1069. </tr>
  1070. <tr>
  1071. <td class="reference"><b id="pEp.mixnet">[pEp.mixnet]</b></td>
  1072. <td class="top">
  1073. <a>pEp Foundation</a>, "<a href="https://dev.pep.foundation/Mixnet">Mixnet</a>", June 2020.</td>
  1074. </tr>
  1075. <tr>
  1076. <td class="reference"><b id="RFC3156">[RFC3156]</b></td>
  1077. <td class="top">
  1078. <a>Elkins, M.</a>, <a>Del Torto, D.</a>, <a>Levien, R.</a> and <a>T. Roessler</a>, "<a href="https://tools.ietf.org/html/rfc3156">MIME Security with OpenPGP</a>", RFC 3156, DOI 10.17487/RFC3156, August 2001.</td>
  1079. </tr>
  1080. <tr>
  1081. <td class="reference"><b id="RFC4949">[RFC4949]</b></td>
  1082. <td class="top">
  1083. <a>Shirey, R.</a>, "<a href="https://tools.ietf.org/html/rfc4949">Internet Security Glossary, Version 2</a>", FYI 36, RFC 4949, DOI 10.17487/RFC4949, August 2007.</td>
  1084. </tr>
  1085. <tr>
  1086. <td class="reference"><b id="RFC6376">[RFC6376]</b></td>
  1087. <td class="top">
  1088. <a>Crocker, D.</a>, <a>Hansen, T.</a> and <a>M. Kucherawy</a>, "<a href="https://tools.ietf.org/html/rfc6376">DomainKeys Identified Mail (DKIM) Signatures</a>", STD 76, RFC 6376, DOI 10.17487/RFC6376, September 2011.</td>
  1089. </tr>
  1090. <tr>
  1091. <td class="reference"><b id="RFC6409">[RFC6409]</b></td>
  1092. <td class="top">
  1093. <a>Gellens, R.</a> and <a>J. Klensin</a>, "<a href="https://tools.ietf.org/html/rfc6409">Message Submission for Mail</a>", STD 72, RFC 6409, DOI 10.17487/RFC6409, November 2011.</td>
  1094. </tr>
  1095. <tr>
  1096. <td class="reference"><b id="RFC7208">[RFC7208]</b></td>
  1097. <td class="top">
  1098. <a>Kitterman, S.</a>, "<a href="https://tools.ietf.org/html/rfc7208">Sender Policy Framework (SPF) for Authorizing Use of Domains in Email, Version 1</a>", RFC 7208, DOI 10.17487/RFC7208, April 2014.</td>
  1099. </tr>
  1100. <tr>
  1101. <td class="reference"><b id="RFC7489">[RFC7489]</b></td>
  1102. <td class="top">
  1103. <a>Kucherawy, M.</a> and <a>E. Zwicky</a>, "<a href="https://tools.ietf.org/html/rfc7489">Domain-based Message Authentication, Reporting, and Conformance (DMARC)</a>", RFC 7489, DOI 10.17487/RFC7489, March 2015.</td>
  1104. </tr>
  1105. </tbody></table>
  1106. <h1 id="rfc.appendix.A">
  1107. <a href="#rfc.appendix.A">Appendix A.</a> <a href="#additional-information" id="additional-information">Additional information</a>
  1108. </h1>
  1109. <h1 id="rfc.appendix.A.1">
  1110. <a href="#rfc.appendix.A.1">A.1.</a> <a href="#bcc-handling" id="bcc-handling">Stored Variants of Messages with Bcc</a>
  1111. </h1>
  1112. <p id="rfc.section.A.1.p.1">Messages containing at least one recipient address in the Bcc header field may appear in up to three different variants:</p>
  1113. <p></p>
  1114. <ol>
  1115. <li>The message for the recipient addresses listed in To or Cc header fields, which must not include the Bcc header field neither for signature calculation nor for encryption.</li>
  1116. <li>The message(s) sent to the recipient addresses in the Bcc header field, which depends on the implementation: <br><br> a) One message for each recipient in the Bcc header field separately, with a Bcc header field containing only the address of the recipient it is sent to. <br><br> b) The same message for each recipient in the Bcc header field with a Bcc header field containing an indication such as &#8220;Undisclosed recipients&#8221;, but no addresses. <br><br> c) The same message for each recipient in the Bcc header field which does not include a Bcc header field (this message is identical to 1. / cf. above).</li>
  1117. <li>The message stored in the &#8216;Sent&#8217;-Folder of the sender, which usually contains the Bcc unchanged from the original message, i.e., with all recipient addresses.</li>
  1118. </ol>
  1119. <p id="rfc.section.A.1.p.3">The most privacy preserving method of the alternatives (2a, 2b, and 2c) is to standardize 2a, as in the other cases (2b and 2c), information about hidden recipients is revealed via keys. In any case, the message has to be cloned and adjusted depending on the recipient.</p>
  1120. <h1 id="rfc.appendix.B">
  1121. <a href="#rfc.appendix.B">Appendix B.</a> <a href="#document-changelog" id="document-changelog">Document Changelog</a>
  1122. </h1>
  1123. <p id="rfc.section.B.p.1">[[ RFC Editor: This section is to be removed before publication ]]</p>
  1124. <p></p>
  1125. <ul><li>draft-ietf-lamps-header-protection-00 <ul><li>Initial version (text partially taken over from <a href="#I-D.ietf-lamps-header-protection-requirements" class="xref">[I-D.ietf-lamps-header-protection-requirements]</a>
  1126. </li></ul>
  1127. </li></ul>
  1128. <h1 id="rfc.appendix.C">
  1129. <a href="#rfc.appendix.C">Appendix C.</a> <a href="#open-issues" id="open-issues">Open Issues</a>
  1130. </h1>
  1131. <p id="rfc.section.C.p.1">[[ RFC Editor: This section should be empty and is to be removed before publication. ]]</p>
  1132. <p></p>
  1133. <ul>
  1134. <li>Ensure &#8220;protected header&#8221; (Ex-Memory-Hole) option is (fully) compliant with the MIME standard, in particular also <a href="#RFC2046" class="xref">[RFC2046]</a>, Section 5.1. (Multipart Media Type) <a href="#option-ex-memory-hole" class="xref">Section</a>.</li>
  1135. <li>Decide on format of obfuscated HFs, in particular Date HF (<a href="#obfuscation-outer-HF" class="xref">Section</a>)</li>
  1136. <li>Impact on spam filtering, if HFs are obfuscated (<a href="#obfuscation-outer-HF" class="xref">Section</a>)</li>
  1137. <li>More examples (e.g. in <a href="#sending-side-message-processing" class="xref">Section 4.1.7</a>)</li>
  1138. <li>Should Outer Message Header Section (as received) be preserved for the user? (<a href="#receiving-side-step-2" class="xref">Section</a>)</li>
  1139. <li>Change adding Content-Type header field parameter &#8220;forwarded&#8221; from SHOULD to MUST (<a href="#wrapper" class="xref">Section 4.1.3</a>)?</li>
  1140. <li>Decide on whether or not merge requirements from <a href="#I-D.ietf-lamps-header-protection-requirements" class="xref">[I-D.ietf-lamps-header-protection-requirements]</a> into this document.</li>
  1141. <li>Decide what parts of <a href="#I-D.autocrypt-lamps-protected-headers" class="xref">[I-D.autocrypt-lamps-protected-headers]</a> to merge into this document.</li>
  1142. <li>Enhance Introduction and Problem Statement sections</li>
  1143. <li>Decide on whether or not specification for more legacy HP requirements should be added to this document</li>
  1144. <li>Verify ability to distinguish between Messages with Header Protection as specified in this document and legacy clients and update <a href="#interactions" class="xref">Section 3.1</a> accordingly.</li>
  1145. <li>Verify simple backward compatibility case (Receiving Side MIME-Conformant) is working; once solution is stable and update paragraphs in {#uc-ia-bc-receiving-side-mime-conformant}} and <a href="#receiving-side-mime-conformant" class="xref">Section 4.2.1</a> accordingly.</li>
  1146. <li>Improve definitions in <a href="#protection-levels" class="xref">Section 3.2</a>
  1147. </li>
  1148. <li>Privacy Considerations <a href="#privacy-considerations" class="xref">Section 6</a>
  1149. </li>
  1150. <li>Security Considerations <a href="#security-considerations" class="xref">Section 5</a>
  1151. </li>
  1152. </ul>
  1153. <h1 id="rfc.authors"><a href="#rfc.authors">Authors' Addresses</a></h1>
  1154. <div class="avoidbreak">
  1155. <address class="vcard">
  1156. <span class="vcardline">
  1157. <span class="fn">Bernie Hoeneisen</span>
  1158. <span class="n hidden">
  1159. <span class="family-name">Hoeneisen</span>
  1160. </span>
  1161. </span>
  1162. <span class="org vcardline">pEp Foundation</span>
  1163. <span class="adr">
  1164. <span class="vcardline">Oberer Graben 4</span>
  1165. <span class="vcardline">
  1166. <span class="locality">CH-8400 Winterthur</span>,
  1167. <span class="region"></span>
  1168. <span class="code"></span>
  1169. </span>
  1170. <span class="country-name vcardline">Switzerland</span>
  1171. </span>
  1172. <span class="vcardline">EMail: <a href="mailto:bernie.hoeneisen@pep.foundation">bernie.hoeneisen@pep.foundation</a></span>
  1173. <span class="vcardline">URI: <a href="https://pep.foundation/">https://pep.foundation/</a></span>
  1174. </address>
  1175. </div><div class="avoidbreak">
  1176. <address class="vcard">
  1177. <span class="vcardline">
  1178. <span class="fn">Alexey Melnikov</span>
  1179. <span class="n hidden">
  1180. <span class="family-name">Melnikov</span>
  1181. </span>
  1182. </span>
  1183. <span class="org vcardline">Isode Ltd</span>
  1184. <span class="adr">
  1185. <span class="vcardline">14 Castle Mews</span>
  1186. <span class="vcardline">
  1187. <span class="locality">Hampton, Middlesex</span>,
  1188. <span class="region"></span>
  1189. <span class="code">TW12 2NP</span>
  1190. </span>
  1191. <span class="country-name vcardline">UK</span>
  1192. </span>
  1193. <span class="vcardline">EMail: <a href="mailto:alexey.melnikov@isode.com">alexey.melnikov@isode.com</a></span>
  1194. </address>
  1195. </div>
  1196. </body>
  1197. </html>