Re: [openpgp] Mitigation of Attacks on Email End-to-End Encryption

Benjamin Kaduk <kaduk@mit.edu> Sun, 08 November 2020 07:27 UTC

Return-Path: <kaduk@mit.edu>
X-Original-To: openpgp@ietfa.amsl.com
Delivered-To: openpgp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B39CB3A109A for <openpgp@ietfa.amsl.com>; Sat, 7 Nov 2020 23:27:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qlEANyeGeT3e for <openpgp@ietfa.amsl.com>; Sat, 7 Nov 2020 23:27:01 -0800 (PST)
Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) (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 500013A0A7B for <openpgp@ietf.org>; Sat, 7 Nov 2020 23:27:01 -0800 (PST)
Received: from kduck.mit.edu ([24.16.140.251]) (authenticated bits=56) (User authenticated as kaduk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 0A87QgME010344 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 8 Nov 2020 02:26:49 -0500
Date: Sat, 07 Nov 2020 23:26:42 -0800
From: Benjamin Kaduk <kaduk@mit.edu>
To: Marcus Brinkmann <marcus.brinkmann=40rub.de@dmarc.ietf.org>
Cc: openpgp@ietf.org, Jörg Schwenk <joerg.schwenk@rub.de>, Jens Müller <jens.a.mueller@rub.de>, Sebastian Schinzel <schinzel@fh-muenster.de>, Damian Poddebniak <poddebniak@fh-muenster.de>, Juraj Somorovsky <juraj.somorovsky@rub.de>
Message-ID: <20201108072642.GP39170@kduck.mit.edu>
References: <80af2d9c-f646-4167-209d-5fb35c880682@rub.de>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <80af2d9c-f646-4167-209d-5fb35c880682@rub.de>
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/tXGDzuqOkLz5gND_J2cAymMNctQ>
Subject: Re: [openpgp] Mitigation of Attacks on Email End-to-End Encryption
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 08 Nov 2020 07:27:03 -0000

Hi Marcus,

Thanks for posting this (and the work itself, of course)!

On Tue, Nov 03, 2020 at 05:24:58PM +0100, Marcus Brinkmann wrote:
[...]
> 
> REPLY attacks are known for 20+ years: They rely on modifications of the
> email header (SMTP) context, that allow the attacker to receive replies
> to authentic ciphertexts, were the victim quotes the plaintext back to
> the attacker. To our knowledge, these attacks have not been mitigated so
> far. We have looked at reply attacks in our paper on covert content
> attacks [COVERT].
> 
> We have looked systematically at these issues, and propose to protect
> the MIME and SMTP context of an email by adding a summary of this
> decryption contexts (DC) as associated data (AD) in the AEAD encryption.
> This way, any significant modification to these contexts that indicate
> an attack would lead to a decryption error, rather than emitting the
> plaintext to the application, where it would be subject to a large
> attack surface to launch DE or REPLY attacks.
> 
> To support this mechanism, OpenPGP RFC4880bis would need to be amended
> to allow applications to add arbitrary data to the AD, either directly
> (length+value) or by adding a hash representation (constant length). I
> plan to introduce a proposal for these changes when the WG is
> reinstantiated.
> 
> We have evaluated which SMTP headers are relevant for REPLY actions in
> email clients, and which MIME contexts can be considered safe. Based on
> this (and inspired by DKIM), we make a specific proposal for calculating
> the decryption context which is sender-enforced and extensible.

I'll also leave a link to
https://tools.ietf.org/html/draft-ietf-lamps-header-protection-02 that,
IIUC, is attempting to address similar issues for S/MIME.

-Ben