[COSE] Re: fully specified algorithm and cross-mode attack
Michael Jones <michael_b_jones@hotmail.com> Thu, 25 July 2024 19:26 UTC
Return-Path: <michael_b_jones@hotmail.com>
X-Original-To: cose@ietfa.amsl.com
Delivered-To: cose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 45939C14F61B for <cose@ietfa.amsl.com>; Thu, 25 Jul 2024 12:26:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.232
X-Spam-Level:
X-Spam-Status: No, score=-1.232 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, FORGED_HOTMAIL_RCVD2=0.874, 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, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=hotmail.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 Wsxf24IrE-Jm for <cose@ietfa.amsl.com>; Thu, 25 Jul 2024 12:26:35 -0700 (PDT)
Received: from SJ2PR03CU001.outbound.protection.outlook.com (mail-westusazolkn19012049.outbound.protection.outlook.com [52.103.2.49]) (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 3ED03C14F610 for <cose@ietf.org>; Thu, 25 Jul 2024 12:26:35 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ChEsedzURD9EsM9hRBPTCPOz9uT3Rc/MxwoqLwAAzGOp8wok7VSHyRCrQE/lhq7rhw5DL30FEsyUVk48JeU3TdUc1HcEQ5ZQyJ6nN3akPftLFj/8CU4bu4L8Mao8fhOm/LXtTXxPtnlm1Lrq/MHkhxOTm53n4P9ByKEr70I8eHHn3tEjh0YDM4nam2egKXDyfk9sSJkv+a7ptgNuWyaotvh4xg9XxCbBIekPuBCBoyqkWgI7Scz88BcaZu6ABpcgax+3rXqrbbUwePjDrgnSyOaTE/EuQhXrpgVw54xCBKiIYQKazEe2vm/bpK4KauklohMR+/ahfSDT1biWLtOBMw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=UJwStCtx8X63CLip2xMD+vpQXIAEOc+CNcvUL5QudAk=; b=c/OaYr5YWzHORG/5e3Ix4Lv+hbhLJCDrdn80ev1C+apchky4U3TvbAiOvGjm/Ad12Tkv64RpThAmQ6mFcBBBsRarp/XaTEyjLF0aDRPR7XtEBKPKLEtNydWSJvSuw5F9lst/pYrs7sRXox/p1NuhcixtlLc6gC5UHZV590CkB4ezsjUNhmDfVm1nHRDLAuFIJM3bJIZ7M+vv94l7/hpB8y1arM4VoEubrcwcYsrC3qHrfv+bRUgNdLWtq28sKEiL6mQ4XjJTgRXUPx+siFrrE3D5pK5AT303W5ZvaecwU50Rp7aoF0WOd2BTvCHjzfW1lme9IEWiiIJYxArE7E4gog==
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=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UJwStCtx8X63CLip2xMD+vpQXIAEOc+CNcvUL5QudAk=; b=n3+pYdEI1GVlAnPYJADsHNViZjr46cQOaiQ6CZDAVuGSwgzncJg06wmdeYdDHpvKlhc1NIdroupN0X5IynQBjzDidTWpTOUpklnO7l/A59QXARuML7WbLGtUOTstaLoLYutq3UhsoLGV9vPlJ5lm2X7qy+ZT+cF3qfxZXwN3TEak7Vub+Sz33F2ezyaaaFnm1Bxv9AzR+x12YdZ+PYKVfuXATgJl9S4b6EZlgjp6S9Al/VAedz/RhF9KMJDzG2wV7xv/jX9tRI/DpREkd3CoKN1IuolvRvU84LbY/lfv7KS3eeak93UQkVP9oGiuGMZOTbp9RqsJZKcluCUFeEEq/w==
Received: from PH0PR02MB7430.namprd02.prod.outlook.com (2603:10b6:510:b::9) by LV8PR02MB10120.namprd02.prod.outlook.com (2603:10b6:408:187::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.14; Thu, 25 Jul 2024 19:26:33 +0000
Received: from PH0PR02MB7430.namprd02.prod.outlook.com ([fe80::67ac:16c1:95b5:fcdc]) by PH0PR02MB7430.namprd02.prod.outlook.com ([fe80::67ac:16c1:95b5:fcdc%7]) with mapi id 15.20.7784.017; Thu, 25 Jul 2024 19:26:33 +0000
From: Michael Jones <michael_b_jones@hotmail.com>
To: "lgl island-resort.com" <lgl@island-resort.com>, cose <cose@ietf.org>
Thread-Topic: fully specified algorithm and cross-mode attack
Thread-Index: AQHa3sbPLYNI2JtIPUSzdOYg19d78rIH0mHQ
Date: Thu, 25 Jul 2024 19:26:33 +0000
Message-ID: <PH0PR02MB7430B5D5CF83AD361953524FB7AB2@PH0PR02MB7430.namprd02.prod.outlook.com>
References: <D68D6D66-BFDD-48BB-A25F-824A38B2BBAE@island-resort.com>
In-Reply-To: <D68D6D66-BFDD-48BB-A25F-824A38B2BBAE@island-resort.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-tmn: [Tp2m8BvB6rZ6o1xtQgIHB8VPXdZ1v5uCAEtSoocpMyd/4iUUtjsNpCtN9W7Fv63G]
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: PH0PR02MB7430:EE_|LV8PR02MB10120:EE_
x-ms-office365-filtering-correlation-id: df271d49-e1f6-427d-8c92-08dcacdfb162
x-microsoft-antispam: BCL:0;ARA:14566002|8060799006|461199028|9400799024|19110799003|12050799009|56899033|1602099012|3412199025|4302099013|102099032|440099028;
x-microsoft-antispam-message-info: ccej+tEj53ni9jDrm2xQktmZE7ZvAdNvbQBJWzQzepb7/Msw7LlNFedVJZohuRII5znCOuVwI9YSryELFFNMXNjahfdKZIxuKAa0TXoKoNDtTOqISPr9z5QIuQ8gaN8Kba0eexaBsk7V7pw4Z6wLGRHbPWwz5dNLeeAiCg3RhhEHgSX28FG34rAUE8N1VOMhSQtKNkuF/essPP9tHeuNJ7LMd/sK2GNR/7EYRbjhsGZ2FaAkG5f1gBBqcuE4SHj6ySQbx6qbMxOege55SVbgIPvlFiqyh5xhnAFHMqNq2rv4wsEkTvUajocyg7zk+cz3o6oA4hqF88mjhTl2TsRESQZbv4y1vWziuy6yx1tz0YOPDiiD1CQ8CvlUUHlq9Dj+YWDYCzhV9xEWXh3SijkyNFpbYSwCACvuMQ2eg04ua0HhfU2MQ51koR07+BsXv3FNruheWlpoRJCYTOxmaFuC6sPF1dwOsV4mrUJqLiPLZQv+jrTthq92ycShA9zJNgVYOCIbKGvgrpfgyJnzcg0VehtBfwTCh8VDpTuth/S+cVs0E7BLKZD+cNnMuJfRkbQenXefuWuv4JjPs6x3QtXc46qBGwPAyNR/C0fIFfMobtnBBwi70O3JRFU8nc6a3hkflVWV866hJXhUg+z5IcFiljzn9h0mdcSKDAt5VUA3PUbuXSjbE4Mjl3P+FmCohGgm/tuMzVtYbHhtxNUc95PwMiOL+rukCxiB3DhQIa/NNumnBA24DYdVo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m+K8F8y2AiRVootAb7/n61yqW9k++gf2rPULrDQkX4NlWT3a+h4ZNbnP5vZ37E0FJNVl700LWIOCdAguI3TzpmoDKHy+EC5HZ8I38IP871qrgGfcQ02jxK0ir4G/c12i9EkB9yPCdLhWF2Tw6uOO78mMF9Alw4c3fKT9eiACyOqOrapCPJBJ2NEPLs0JhulgHQRvtpNKXz1Co0fR7zUeQRpOdC6O3fSVDTScOOGrHs4H3xO0DMkWfiBhmBj1bUSjcVyYTqyZWQe9nZGLf5Cc6xJCfp4dEEIEs8K4TZso9aiJkP1Ufi+BnUflEtwKOm5jR2aKU2rCfPwe/QPfUcUkaZ+fau1bkd65PframCUp+blgVFizFSUH+9mNjLeK3Y0rbLtF63E=
Content-Type: multipart/alternative; boundary="_000_PH0PR02MB7430B5D5CF83AD361953524FB7AB2PH0PR02MB7430namp_"
MIME-Version: 1.0
X-OriginatorOrg: sct-15-20-7719-20-msonline-outlook-0f88b.templateTenant
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: PH0PR02MB7430.namprd02.prod.outlook.com
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-Network-Message-Id: df271d49-e1f6-427d-8c92-08dcacdfb162
X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jul 2024 19:26:33.3113 (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: LV8PR02MB10120
Message-ID-Hash: UZZHFWPLVNQFXOYXD75KP35BEILRTZMW
X-Message-ID-Hash: UZZHFWPLVNQFXOYXD75KP35BEILRTZMW
X-MailFrom: michael_b_jones@hotmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-cose.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [COSE] Re: fully specified algorithm and cross-mode attack
List-Id: CBOR Object Signing and Encryption <cose.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cose/IEooYFU4F-cmEQPqTd0k3eOYoHc>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cose>
List-Help: <mailto:cose-request@ietf.org?subject=help>
List-Owner: <mailto:cose-owner@ietf.org>
List-Post: <mailto:cose@ietf.org>
List-Subscribe: <mailto:cose-join@ietf.org>
List-Unsubscribe: <mailto:cose-leave@ietf.org>
Thanks Lawrence,
For what it's worth, based on discussions in the JOSE WG meeting on Monday, the next draft will not include the ECDH algorithm registration -52 that you're referring to (or any other ECDH registrations).
I obviously fully support dealing with cross-mode attacks in COSE. But the Fully-Specified Algorithms draft looks like it's not going a place to do this.
Best wishes,
-- Mike
From: lgl island-resort.com <lgl@island-resort.com>
Sent: Thursday, July 25, 2024 12:14 PM
To: cose <cose@ietf.org>
Subject: [COSE] fully specified algorithm and cross-mode attack
This draft was handled in the JOSE WG, but makes a change to COSE: https://www.ietf.org/archive/id/draft-ietf-jose-fully-specified-algorithms-03.html. It defines alg ID -52 that would kind of replace -29. Fully-specified seems the way of the future here in the halls of the IETF.
After looking at Ken's nice diagram, it seems to me that most of the content key distribution methods for encryption defined in RFC 9053 section 6<https://www.rfc-editor.org/rfc/rfc9053.html#name-content-key-distribution-me> are subject to the cross mode attack (the one presented in Lamps in Prague). Both the Recipient_structure fix I proposed or the KDF fix that Hannes proposed are applicable to content key distribution methods and will require a new algorithm ID.
It seems like we should do one set of new algorithm IDs that addresses both. For example -52, would be fully specified and would have a fix for the cross-mode attack.
This is a lot of work. We probably should continue to focus on COSE-HPKE first, but keep the rest in mind as coming next.
LL
- [COSE] fully specified algorithm and cross-mode a… lgl island-resort.com
- [COSE] Re: fully specified algorithm and cross-mo… Ilari Liusvaara
- [COSE] Re: fully specified algorithm and cross-mo… lgl island-resort.com
- [COSE] Re: fully specified algorithm and cross-mo… Michael Jones