[secdir] Secdir review of draft-ietf-lamps-e2e-mail-guidance-14

Charlie Kaufman <charliekaufman@outlook.com> Tue, 05 March 2024 00:39 UTC

Return-Path: <charliekaufman@outlook.com>
X-Original-To: secdir@ietfa.amsl.com
Delivered-To: secdir@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 165E6C1CAF23; Mon, 4 Mar 2024 16:39:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.109
X-Spam-Level:
X-Spam-Status: No, score=-2.109 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=outlook.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id juOYUH6pgb7Y; Mon, 4 Mar 2024 16:39:44 -0800 (PST)
Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10olkn2083.outbound.protection.outlook.com [40.92.42.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 93CB9C1CAF20; Mon, 4 Mar 2024 16:39:44 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LBXZIHm3S69zPLk8+f+fP7KQe+hw1Q8fbXHqGrQntq7yDrAuPoNwFCGE7xsvuCiGq5NV83XklBW5h1tD3CAnwlZ2j2mSzyz4DSUFql8UJfd7Wgo1yKJW6/8ErhdOKYyukZ3CkcwLG3240ub6elHtiNVeJ30YLl7uKBjt1fpXe/wVNrGtdsCpn6LyjQI2kUN3FhgYO+J58tiRtTsSF0XPnsRfUWxh6SdGnccZHHN8oIGRdd8RY8+iYF9Ul7C+u3CpeTCjUv0eIzNz6fODZUcA1OphQVzBo2paFm8B+MWdN4jdmKZQWxmpYAKvCaO35rtUSX0En3jmm41Fb9QMb4QF1g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MAszNBR1rkuNF7Lwol/sMDnQ03TWxeKqf4GovHugJ6o=; b=P8GoJkuA6UDqlqwPbEbcbYusOWnkv9X7zNjTsgPULaa4zRZgKoF5ar1Fn59/g+Pjha+melGM4RpLayM7JvjIhvY7S3V326+pVOzGGz0NFu0cDNnVS8/E27WvOUtCaOBM29NjbQWmrJUFbR5J/1M2sDAP9ntrJ7GNm9vf0MMujJ1kXvy+r1FM7J45VDyMFrfZ40xmH4M9rsaZOW72uNV3dCqFq4MWUGy+/9IiuwiEVi5Vjhp7Ht8ONP4eCRuBH5JnttGjnGzgpRSMGdJUSmDQHxPT2YhorkwIYPC9zSqFgbSyKSpALx+VV30WU5m064EZbF+1VsdqnqkWfLzcJA+l/w==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MAszNBR1rkuNF7Lwol/sMDnQ03TWxeKqf4GovHugJ6o=; b=tHd9jeNYqzcwkNMKiAfGSa3u+RbufkzhUZGlGSbTvIePSCWxhKbquoXalv2FFthQ8DDOSHCpcK3QJQomlO/Df777hoq3dnwpcnT+aWTBNUegmHlj7BI/yTLVT+jNSk+daKyqnukeU6OTK1+MLiEwkXfD6LTxJEIKmIrc3cz9YlHadIRAFQ3/g5bsWwvtdhh7V7pUDX6dklGfC+2PWiIagRyXGi2evDbKc1RSZmpqFHRbUidcS4VJSWTPtu8iB/SsXwI6p5CfGo0NfUX5tXOC3RmRDJMQMpYFzq7MJqXqt98MGpdxZBKHbsZG19PsnkOQqEO+AHIZwyZTv5JA8Pwyvw==
Received: from SN6PR1901MB4688.namprd19.prod.outlook.com (2603:10b6:805:3::31) by SA1PR19MB6965.namprd19.prod.outlook.com (2603:10b6:806:29c::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.39; Tue, 5 Mar 2024 00:39:43 +0000
Received: from SN6PR1901MB4688.namprd19.prod.outlook.com ([fe80::8a75:cbe7:a8e2:836f]) by SN6PR1901MB4688.namprd19.prod.outlook.com ([fe80::8a75:cbe7:a8e2:836f%4]) with mapi id 15.20.7339.035; Tue, 5 Mar 2024 00:39:43 +0000
From: Charlie Kaufman <charliekaufman@outlook.com>
To: "secdir@ietf.org" <secdir@ietf.org>, "iesg@ietf.org" <iesg@ietf.org>, "draft-ietf-draft-ietf-lamps-e2e-mail-guidance.all@ietf.org" <draft-ietf-draft-ietf-lamps-e2e-mail-guidance.all@ietf.org>
Thread-Topic: Secdir review of draft-ietf-lamps-e2e-mail-guidance-14
Thread-Index: AQHabpVrV85Eeo4dZ06qm/oyP9Bcyw==
Date: Tue, 05 Mar 2024 00:39:41 +0000
Message-ID: <SN6PR1901MB46883D7913B951F5BA3FF83EDF222@SN6PR1901MB4688.namprd19.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels:
x-ms-exchange-messagesentrepresentingtype: 1
x-tmn: [LCCjVKddOuHC4cN+TC5NkDBOL4WXEKi0]
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: SN6PR1901MB4688:EE_|SA1PR19MB6965:EE_
x-ms-office365-filtering-correlation-id: f017a00e-eb78-4ac2-2f7b-08dc3cacbee5
x-ms-exchange-slblob-mailprops: znQPCv1HvwWB2P4c5bhaCiVRxBLoTlTq9dRDSqjxzIlejdgtc6BwssCbyrtQSNv3INFwYvCDE6kYSv6KqKBO+DHxI9RhsG472yNeEhfTIxZLdC1u2ckALt4qjcgvyBgwb/8UV4ylIqHw3fkdQQEx3+le6+998YjnTP5Q1Y2d4HH+2O0bsAGDZiNFsx8qvLd18cCkQF1Wz+Chp1F/K6g9deY98VXKwC5vSXOjBxMOD5e5wGWeyYuz5WuSsT819pV/ZMlSvXv7jpbm7rJvYHnHX+LlX8G1LMiBGztRkU87nwqJ6j4/VFhu6qwhXfd7oQQv+vqPfh5PZE4UhRfBb41vpXyPFFZXWDJ8ocjfI63bTXRwpWr5F92FWOMMnqdT4+MujZPftYjC3MqBgyY3X4w1iYG85EbNPcjLfvl9xgiucLhd4Y1oLz7/ILK5wskkyWcbAx0CpLZsosLMm90Z2UvfSdSgPIaoHkp4eFDv2NyJohTWLSCbuXUog0QjrYyK6aE8bj/XUKGh2x4/fxtlR6HK8zZa/+2u8IzKiaO11wAYIlKUkwEHsvmMNB9iMP8PTUrhU+Tf6M/TPQ2yBc5rEisLL9g88EmkgZuHgrvSWfpyrNOV9rrZw0+RLiJB/lsm9N92ngLItuXpN4M5NEwDzQXhy/Mkh3iXRZmBw0FfuCJfdgxt5hYWVWZCX8EqTU8i420q3nkbGFA3yVvJxWZbt9Nq63WE5SZJv9Ofxx8Fcq6NmlYq8oqLQE9CyhC6GWiVetTkxh5Sn0cX1+U=
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: VTgxTSRQjn//LXEIeaSa38fUycSRRmi3Dm8/MG5t3MrDXSSD4g9tOICNXf/sttRsrVgv67QC0lfkbaekrX0uGNvnVOJvGcU9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O7VBzYCMJaY76Dg1Vir50WK1Cl195UgFHGuDHdmjbL9o3iXt0z+PpXuoxlngtG64Y+O50eujR1P7fqSBAiFFKblHyt0Cnmo/3KwiHJqZe4zxC/IWqmeLUPaP8IM0D5V9vxz2y1lnuJZfdEH8oZTLe3FypFCiUqEetBr3JdLUJ2SEuNRS2tAWrrP+bCULqAxmie53v6fZtiNqgnox1c3VX9s6auKXrlNjOSz58KNZySN7R+N5dzzQkCdZhvMwWgQLc09Pf9uegDW9EBGLKoiEQeTZiJTZtKMMtpI27q27VMnPClEXa76aiFFqVQwymxDsOCLQ4qYP8Eakmo/NZ3I0qcRMg9FwRCWqfg3bmW3j63d31E5delqmfqx8p0ufBOyjyU5WW2ARMucMxHJgaikwP3cwaHFlHT2FmUAbnHqu6QpOX3O5Y1H61nc/A6b/gJjNNjFZguXkYhS9sf7FgNgBAi2QzzxVz5t8b61sRdihOU8npzgakTwJ2BqNW+GSzoRg02thLlynNvw6zcbsMnLM1b2Do9XYeB9h4GYrk/J8uGgDshungPufdD2BdtvTTd/1wB0C9y3ge621/YIO3H/S9du7aHbrXFbl9EBVt6pPq0embU71M12hcNm+if5VZXpXqFrc6SgHnt82hRza6lVZz+qbV2+KC2OVELhyHBGTzO1l8R8Syy40WKmN23h9inTDc=
Content-Type: multipart/alternative; boundary="_000_SN6PR1901MB46883D7913B951F5BA3FF83EDF222SN6PR1901MB4688_"
MIME-Version: 1.0
X-OriginatorOrg: outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SN6PR1901MB4688.namprd19.prod.outlook.com
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-Network-Message-Id: f017a00e-eb78-4ac2-2f7b-08dc3cacbee5
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2024 00:39:41.4090 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR19MB6965
Archived-At: <https://mailarchive.ietf.org/arch/msg/secdir/F-nVPtWoWKwSIiRLQZP6l6Qt2Es>
Subject: [secdir] Secdir review of draft-ietf-lamps-e2e-mail-guidance-14
X-BeenThere: secdir@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Security Area Directorate <secdir.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/secdir>, <mailto:secdir-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/secdir/>
List-Post: <mailto:secdir@ietf.org>
List-Help: <mailto:secdir-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/secdir>, <mailto:secdir-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 05 Mar 2024 00:39:49 -0000

Reviewer: Charlie Kaufman
Review result: Ready

I have reviewed this document as part of the security directorate's ongoing effort to review all IETF documents being processed by the IESG.  These comments were written primarily for the benefit of the security area directors.  Document editors and WG chairs should treat these comments just like any other last call comments.

This document includes implementation advice for designers of Mail User Agents that deal with end-to-end cryptographic protection of email. Such a document by its nature is never complete, and one could imagine periodic updates based on what people observe as common mistakes in implementations and based on what we learn over time about what techniques are effective and what are not.

Anyone with experience in deploying cryptographic protection of email would be doing our community a service by reviewing this document and suggesting additions based on their experience (though they might be doing a greater service by supplying input to the next revision rather than holding up this one). Because this document covers many aspects of user experience (in particular, how to display indications of cryptographic protection in a way that users can't be deceived by a fraudulent message that attempts to deceive a user into believing it has different properties than it actually does), most of the advice has to be considered advice rather than something that could demonstrate compliance because different mail user agents may have different display techniques available to them. The document is proposed as INFORMATIONAL. It nevertheless uses the MAY/SHOULD/MUST/MUST NOT language.

There are some recommendations that I disagree with, but none that I could claim are "wrong". In particular:

Section 6.2.2.1 says: "In all circumstances, if the reply message cannot be encrypted (or if the user elects to not encrypt the reply), the composed reply MUST NOT include any material from the decrypted subpart."

While I would agree that if a user receives an encrypted message, he should not cavalierly include its content in an unencrypted message he sends out (reducing the confidentiality implicitly requested by the sender), in my opinion this should not be disallowed for cases where it is the only way to act on the message. Instead, it should be allowed only if the user explicitly acknowledges he is doing so.

Section 8.2.1.1 says: "A conformant MUA that generates S/MIME certificates for the user MUST generate distinct S/MIME certificates: one for encryption and another for signing, to avoid possible cross-protocol key misuse.
**and**
A conformant MUA that imports such a PKCS #12 bundle SHOULD warn the user if the bundle contains an S/MIME certificate and corresponding secret key where the same secret key is used for both encryption and signing."

While it is good cryptographic hygiene to use separate keys for signing and encryption, it is another way security people make like for confusing for the ordinary mortals trying to use our systems. There are also advantages to using a single key for both purposes, and while it makes sense to recommend this pattern, in my opinion it should not be required and we certainly should not bother users with details they will not understand when someone makes a different design choice.

Section 9.1 says: "When sending a message, a typical MUA will store a copy of the message sent in sender's Sent mail folder so that the sender can read it later. If the message is an encrypted message, storing it encrypted requires some forethought to ensure that the sender can read it in the future."

Section 9.1 goes one to describe a number of different mechanisms for doing this. I would note that there are cases where it is valuable for a user to send an encrypted message that he is not capable of recovering once it is sent (though this should not be the default). I've referred to this as the "Amnesty International" case, where someone wants to be able to send mail in a way that the recipient can decrypt it but he cannot be forced to decrypt it should he be captured.

Section 9.2 says: "When encrypting a message, the sending MUA should decline to encrypt
to an expired certificate (see Section 8.1.1)."

In my opinion, this is an example of security people making life more difficult to try to enforce some higher standard. In almost all cases, enforcing expiration of certificates inconveniences people to a much greater degree than it makes them more secure. A warning seems much more appropriate in this case.

Section 9.2 says "The primary goal of certificate expiration is to facilitate rotation of secret key material, so that secret key material does not need to be retained indefinitely. Certificate expiration permits the user to destroy an older secret key if access to the messages received under it is no longer necessary (see also Appendix A.9)."

I would argue that the primary goal of key rotation is to prevent a compromise of secrets from continuing to damage the security of the system indefinitely. Conventional wisdom is to promptly forget signing keys but keep decryption keys indefinitely (unless there is some reason to believe that all messages encrypted with those keys will never be needed again).

Section 9.6 says "The most understandable approach for an MUA with an active user is to ask the user (when they hit "send") to choose between approach 2 and approach 3. If the user declines to choose between 2 and 3, the MUA can drop them back to their message composition window and let them make alternate adjustments."

I would argue that this is asking users to make a choice the users are not likely to understand, and that a come understandable approach would be to tell users that the message cannot be sent encrypted to some list of recipients and ask whether to drop those users to send the them unencrypted.

Section 9.9 says: "A conformant receiving MUA that encounters a message with end-to-end cryptographic protections that contain a subresource MUST either refuse to retrieve and render the external subresource, or it should decline to treat the message as having cryptographic protections. For example, it could indicate in the Cryptographic Summary that the message is Unprotected."

I would argue that it is common today to receive mail with external subresources, and MUAs typically first display the message without those subresources and only upon explicit user request update the display to include them. This seems adequate, perhaps with a reminder somewhere that the external subresources may have changed since the message was signed. Also, the Cryptographic Summary should indicate the dubious validity of the signature, but still indicate that the message was encrypted.

Section 9.9 says: "Note that when composing a message reply with quoted text from the original message, if the original message did contain an external resource, the composing MUA SHOULD NOT fetch the external resource solely to include it in the reply message, as doing so would trigger the "web bug" at reply composition time. Instead, the safest way to deal with quoted text that contains an external resource in an end-to-end encrypted reply is to strip any reference to the external resource during initial composition of the reply."

This advice will result in messages being modified in a way uncontrolled by the sender. I would think it better to give the sender the option of excluding them, fetching and including them, or forwarding on the reference.

      --Charlie