Re: [tsvwg] I-D Action: draft-ietf-tsvwg-rfc4895-bis-02.txt
Magnus Westerlund <magnus.westerlund@ericsson.com> Mon, 11 March 2024 10:56 UTC
Return-Path: <magnus.westerlund@ericsson.com>
X-Original-To: tsvwg@ietfa.amsl.com
Delivered-To: tsvwg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 62BCBC14E513 for <tsvwg@ietfa.amsl.com>; Mon, 11 Mar 2024 03:56:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.107
X-Spam-Level:
X-Spam-Status: No, score=-2.107 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=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=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=ericsson.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 vz51KTd25iRg for <tsvwg@ietfa.amsl.com>; Mon, 11 Mar 2024 03:56:17 -0700 (PDT)
Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2043.outbound.protection.outlook.com [40.107.22.43]) (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 04F41C14F5E6 for <tsvwg@ietf.org>; Mon, 11 Mar 2024 03:56:16 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A+dvYyOUsg5I6H0lg7s1ixDXFrmn9KnOSIQq+QbHj60vPq4sRkbhvt+ep1rXc6lM25IIGYHzE3v1U/OQi65BoaTccBBjYZ2A5eLdGH+MqIffpUCSBOshDwQX67EcwMutjUWQ3trvjzYtag7YjjKsWNDJCSCfnyuyDFCYsvJ5t13zzf+n4kf85dZN6CALtlqU7o2h6stGvvA9qnRCzsWmwoMX8u/eSBoUclP/xiTmp5y3GoEYCBOyk6ETdZeFJxQAx9Nn/zOIi1gQS80/k2HhpEqyFDSl6axtReSlt10GVBbn4A/T1F5oNKKZbHnNqnKJLA/paHybJuPvlaOSxvCErA==
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=iDRTQw9BrtN0QOSiByyuBgvdTe1S+3K0V0hict0umkc=; b=A7MPHgSD7owTYQKctCPIZOIzOxcJUUn6h3Ai8VViP78UuEG/JopTjuCLNU0LNLe1drf98SRW3icsX0BCNmpFt4/RN9VpityF7gOMOz0/+9ssEQr84zQIqQpT/jvs+IMuGjiZFcL0pxETvXq/eKIcdLJ8iU6prylKQg0L7lK2UsJ19LjvF2C4xeKUnqqWO07PeyP1ZaTW7RjPzJaBfJ+Yp+xWKbLRvn3dF4gpofn7f05VkteKCBWf381qTIrFDaaRXS5B1d7smd7MQ8vq53EBKghL/r93wKquslFaYDeAY2D/EQgq6SdHZRiP6YmcowLnMaS4lRDSHck1LjB6iNNTug==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iDRTQw9BrtN0QOSiByyuBgvdTe1S+3K0V0hict0umkc=; b=ZP3eCzD++eV5UaXhvZKa3wyo4k08nraa29GEfuzdhgz6H64TvYocRLFXj0/taaF0kmuC3NDQlwjRJ3w2SeFKApSmjI6bTYs8hGREAVxhgVY/DLv0dqcI00BEIptvWv9rQHB4bK7K7oAB0mArFYj17bQ96Xzg5F0NYi1rHAbc7FWI+Qlzy/ccvLj2e7rWPBzoq6/kAlFkEokFfLYNf9GrG7gK09XzMETyOie4BBAfEv7zSxIBcxRBzN8o1ylINWpZXoNlRjAtZj+nxytVtZGC58lnv05PfsdvaoW+hd7Gtq8/2VQSC7PYRA5wHyNWwxobmfZf5VNd/5H/l6JFbKYmvA==
Received: from AS4PR07MB8874.eurprd07.prod.outlook.com (2603:10a6:20b:4f5::6) by DBBPR07MB7385.eurprd07.prod.outlook.com (2603:10a6:10:1f0::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.35; Mon, 11 Mar 2024 10:56:13 +0000
Received: from AS4PR07MB8874.eurprd07.prod.outlook.com ([fe80::23f1:1caa:51f3:3136]) by AS4PR07MB8874.eurprd07.prod.outlook.com ([fe80::23f1:1caa:51f3:3136%2]) with mapi id 15.20.7362.035; Mon, 11 Mar 2024 10:56:13 +0000
From: Magnus Westerlund <magnus.westerlund@ericsson.com>
To: Michael Tuexen <michael.tuexen@lurchi.franken.de>, John Mattsson <john.mattsson=40ericsson.com@dmarc.ietf.org>
CC: "tsvwg@ietf.org" <tsvwg@ietf.org>
Thread-Topic: [tsvwg] I-D Action: draft-ietf-tsvwg-rfc4895-bis-02.txt
Thread-Index: AQHacrMKaIeIKbPA20mkpTrI/dJyyrExQcgAgAEWMcI=
Date: Mon, 11 Mar 2024 10:56:13 +0000
Message-ID: <AS4PR07MB88748368AF9D02E839AD9A3A95242@AS4PR07MB8874.eurprd07.prod.outlook.com>
References: <GVXPR07MB96786EE4554285EA327565B389252@GVXPR07MB9678.eurprd07.prod.outlook.com> <7BF24541-ECC5-426A-BCF3-C6AF0B00011A@lurchi.franken.de>
In-Reply-To: <7BF24541-ECC5-426A-BCF3-C6AF0B00011A@lurchi.franken.de>
Accept-Language: en-US, sv-SE
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ericsson.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: AS4PR07MB8874:EE_|DBBPR07MB7385:EE_
x-ms-office365-filtering-correlation-id: d27036f7-6277-4019-d88c-08dc41b9de19
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: XksPfVky/uSMTCI6PcD23UQnKMRmLonOIzYG+vwPZrbOU9KRzUsJINI5ndxDJ2S9a7lS0I9hXQPgJgv41LYbfGlrn53Wwqpks3+Up+a++JPiJL4APu2JDN0XH9rcZ5hEKvFPxv6Rm5XTLPugbcowD/vgb8yeG2TMAQSUtwUdms+dvIpkKTcMMAUbMcKYt+zYx1FB8Sv+ZTS2C6BTBak2/NtfwXtZzuo9GO1lXFucJYhmsnYTnGzoHdf9zeSu408E1aPa613AC9rnvfv1AI+xli2tvFY0sRf7nZgcNrMXh+9fh1KYF04CFvyW9RHL9zhXgGg2NxM7FnadJyG5iDHFm0oERbFfjVulmxfZmLlpWiILz4Nw4FnF3ldQDMkfNuo4yUkYfY/sPYn3EZJSc5TzWKO6w/H92HDNvHAbgnSY0lYqUqz9HlEL60UJ1wuUl3jAZRCGw6xCEyPGEg3bMEa3CyHnTBth/9AMuBPx7m4HINg8pWP+J8vJnLPIpzDh3nPNlqLXZOfYskVtZf7pXqjHFejHXpeTaOHjwtf8WV/lL6UAa7xNsqPD4Js8n4Db4pYIyJlWK4XL4LSCrlwpXfiiNQw1Ogi33iWMx0CaB9IbikqedU2jbiTSHeic8QZR0Hb4a/Zk3SUJl6opTc5KLMxbLeYBHbj3a6QRdXIfqfhACHc=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS4PR07MB8874.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(1800799015)(376005)(38070700009); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: bOUu+50Dohsm1AgQpJSvEi76WQYc3VhZFZo91DXA7sm3zQxnFBGz8tFAH2PcZSSdrpr+Q4ChRJr5gRCVql/riHRg1XxY5j9y/hsSxaEXi62UlnZPCzndUthqUUrGjDDaKNvhJVCOVTUU/d9XA2J9Zcxj1fjFHJgpq3SBqYuoguPxxayH66faawHZAckS+r9ZZZR12zf4vQqGb+5IoGINX01f2ty9ENJkOt+DcSzdFTb7vCc4F0ecN4jTnzAFfRrCGIUQjyPqblPJ9kPG4VTDZb4aaLsNQCBYW21U0o3xiZ0W9/obGHy8fdXzXQRl2gH3YW/RH+xjCCCfgpBVZwBi/SUYdyoevMNuYbtr6idM30+FwJSuFG3no2QHoX6CLppC5x1HFKwnsy7vo1lZ0l4qowjnXzjeOt+UfRcVE+0AphKweY9+eqo+BUjM/J9mb1GAuQuAMs7YSbtQycxrrmLzuW0fkL8dKy2ani1P9AWkoAErccqFht8ZYFMPDWiN2s57Qa+UdUX8dCHi919v0d/CumJpF8cPkWTuu8soq3tSRKYuIIrxDbSf0GN98z1uxF+sLRNfetHVO0oF27FxBdnD+wvmm3ZEwyTntc4zqrN7vMxR4MZ1xpAx3m11SJOf757kQw1+z5PuPMd340/Vf2XIH4XXz7E9BP9zzoJu9Y+sQjDAMVIOJStd7J26ujybr3YdKndC4kWTJB6ylmByj7jrbVb5kastKoMS4K7C8xsB68QmxFkJ5hUEUfJCUhT30j5Q0gsvFadJLsRD2tJUmyP1toW6r38tEcUkCS7WHQvTC8mDnqVb0FH4nHGNc/XJbp9MlOP/Pw/dspdg+Je2EaCzzvHTEmFnSPWOuZc7BQ59uI+/lsstSAj40ixsJrzNHJcwuHwqHVMCVyX7N6jUzwX/OhdRdt3PWlqZ995QhSEDEygicayoP66SeAt+oCQ6mCwQLG+3TK+SJ0eHbRFNT9IFqRcYlh6SGHqTyDA400bE436dubvSRl0DA6TBlTaLp6eRWHCN8BuItmHEd3ljrY41oFujYgwTT+MABHUKf4JVQ1jwqaTasdI/BtnD1geWFswmFjCnRPfg+0MWa8XFxkkgRiApq7aNumOANihrB4x8R/dAAd+eAXIgHo7GeaQwmWeqrtPXaM49HYVsl1s12mEmAhSrsg72Q/M2sBkmEMRyxp8gKlMpq08EZE2Gw7OrlT9etKJ5E0sM84WAEOhnkejbrRvUSLSYqOnH6+hLHxEg9pOvQV/7Zue9vbsQUK/ptyy4ows9MNQGhc9xNvQxWXyw8Iow7TDHWlGo5RMfsHwjgJCRmNIMzNdnqKXvmFsA2yoQh7z1dAoywAXxTSP4/XLKWT389BN5bDNcHAAg7FU+4zyOZeaLd3YWIPz1+h0Lqzyb2XFd8+Dhcq2KjNRXblHm8Yo3hU9iCaCmfuwR+wdTMGDT2H1j3ZmU3aThHaJEvrr/T2f9d1XiuOQzEs5EPC85jukoSwbHUC+Cs3nSRsiHG5/vhdQ7rtt/2N+LhnhG3ulWL53b+XujZ/R3V2UrdtsWOnwn61GqsAxnLyyMU84lxHxR6nr37vTCY8jeFDy73cKca/WaANAEuTG+EOrF8Y+NiMdMFGRCDqqd2GCdC8pCspE=
Content-Type: multipart/alternative; boundary="_000_AS4PR07MB88748368AF9D02E839AD9A3A95242AS4PR07MB8874eurp_"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AS4PR07MB8874.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: d27036f7-6277-4019-d88c-08dc41b9de19
X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Mar 2024 10:56:13.0272 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: /QkK/SeQA2/uoLhxvnKhIt/XJjPsz7qOkAr9aazzrvrwjQHD9pWTRMWcB2MVeI/mueUojfiGJyfSgIoL3VJ0VI9ums1YCVnFcAV62xmY4DU=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR07MB7385
Archived-At: <https://mailarchive.ietf.org/arch/msg/tsvwg/xN9GEW7UdCrso0nyUpoLrGonthc>
Subject: Re: [tsvwg] I-D Action: draft-ietf-tsvwg-rfc4895-bis-02.txt
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tsvwg>, <mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tsvwg/>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tsvwg>, <mailto:tsvwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 11 Mar 2024 10:56:21 -0000
Hi, In regards to what SCTP-AUTH provides. So the core is source authentication of the protected chunks. So what is provided is that this combination of protected chunks did arrive from the stated source, and was all in the same packets and no part of the protected data has been changed (i.e. integrity). In regards to 2) before you sent 2^32 DATA chunks then the above properties also gives you DATA integrity. When one passes 2^32 DATA chunks without rekeying then one suddenly loses user data integrity. This is not obvious and at a minimal needs to be stated explicitly. To avoid surprises for anyone I would think it would actually make sense to mandate implementations to actually have code that stops sending DATA chunks unless one rekeys when sctp-auth is used and covering DATA chunks. This because of the change of properties when this criteria is passed. So although replay protection may not be necessary, by not having it one gets a lot of much harder to analys properties of the SCTP association. So far in the analysis the control parts appear to be robust from a protocol specification perspective. So I think the security risks with replay of DATA chunks must be addressed, at least to prevent it from happening as the security properties changes so drastically after the 2^32 DATA chunks. I think replay protection would be good as it makes things to easier to analyse and understand what security properties one gets. But I do understand that introducing replay protection would mean a more significant change as the SCTP-AUTH chunk would likely need to introduce a SCTP-AUTH level sequence number that in expanded form (epoch + sequence number) would need to be included in the MAC calculation to ensure that replay can be prevented. Cheers Magnus From: tsvwg <tsvwg-bounces@ietf.org> on behalf of Michael Tuexen <michael.tuexen@lurchi.franken.de> Date: Sunday, 10 March 2024 at 18:52 To: John Mattsson <john.mattsson=40ericsson.com@dmarc.ietf.org> Cc: tsvwg@ietf.org <tsvwg@ietf.org> Subject: Re: [tsvwg] I-D Action: draft-ietf-tsvwg-rfc4895-bis-02.txt > On 10. Mar 2024, at 07:29, John Mattsson <john.mattsson=40ericsson.com@dmarc.ietf.org> wrote: > > Hi, > This seems to be work in progress. I assume the plan is to address all the vulnerabilities in some way. I have only focused on the security aspects. > - I think the document needs an overview that describes the changes from RFC 4895 and why they are done. The draft should e.g., describe that directional keys are introduced to stop reflection attacks. As RFC4895bis intent to continue to operate with RFC 4895 all the security issues with RFC 4895 needs to be clearly described. > https://datatracker.ietf.org/meeting/115/materials/slides-115-tsvwg-sctp-auth-security-issues-00 Hi John, maybe it is better to reach some consensus of what RFC 4895bis needs to provide. The intention of RFC 4895 bis to provide a way for the receiver of some chunks to make sure they were sent by the sender and not by an attacker. They main use case was protecting ASCONF and ASCONF ACK chunks. Do we agree on this? Looking at the Security Issues listed in the presentation you cite, I see (1) Reflection of authenticated DATA chunks. I agree, the possibility of reflecting authenticated DATA chunks was not intended and should be fixed in RFC 4895bis. But this is not specific to DATA chunks. It applies to all chunks sent in an authenticated way. (2) Replay of authenticated DATA chunks Improving the replay protection was not a goal of RFC 4895. It might be used in combination with other mechanisms like an appropriate key management to provide this. I do understand that something like DTLS/SCTP needs to provide this, but I do not see it as an security issue of RFC 4895. (3) Single key used with different HMAC algorithms I wasn't aware that this might be a problem. But it will be fixed in RFC 4895bis. (4) Reflection of authenticated control chunks This is (1). RFC 4895 makes no difference between DATA and control chunks. (5) Replay of control chunks As stated in (2), there is no intention to improve the base protocol here. Also, the base protocol should not have any problems with respect to control chunks not using sequence numbers. So I don't understand why replayed HEARTBEAT ACK chunks should result in a problem. If they do, they do it right now and that would need to be improved in the base protocol. If you want to protect against problems with sequence number wrap arounds, you always have to consider DATA and SACK, ASCONF and ASCONF ACK, RE-CONFIG chunks. So I do see (1) and (4) as a single security issue and (3) as another one for RFC 4895. Both will be fixed in RFC 4895bis by using some sort of key derivation. Do you think improving RFC 4895 to also provide (2) and (5) needs also to be done? I don't think so, but I would like to discuss this explicitly. Best regards Michael > - If you decide to follow my previous suggestion to change HMAC to MAC. You could follow my other previous suggestion and register HMAC-SHA-256-128 instead. Having a 256-bit tag seems a bit overkill. > +-----------------+----------------------------------------------+ > | MAC Identifier | Message Digest Algorithm > | 0 | Reserved > | 1 | HMAC-SHA-1 | 2 | Reserved > | 3 | HMAC-SHA-256 > | 4 | HMAC-SHA-256-128 with directional keys > +-----------------+----------------------------------------------+ > - "If the peer does not operate in legacy mode, the send context is > defined as the concatenation of local key vector followed by the > remote key vector. The receive context is defined as the > concatenation of the remote key vector followed by the local key > vector. For deriving the association shared send and receive keys, a > method described in Section 3.1 of [RFC5926] is used. The > association shared send key is the result of using HMAC-SHA512 as the > key derivation function with the endpoint shared key as the > Master_Key, the send context as the Context and 512 as the > Output_Length. The association shared receive key is computed the > same way, just using the receive context as the Context. In both > cases "SCTP-AUTH" is used as the Label." > That this creates directional key contradicts another statement in the draft saying that "Otherwise, the key vectors are identical". > - My understanding that the new API text forbids per-packet switching of algorithms leading to the same key being used in several algorithms. This should be clearly described. > - My understanding is that the document does not protect against replay of control chunks. If that is not planned, the document should clearly state that is does not provide replay protection. The deduplication mechanism in RFC 9260 is not replay protection, and SCTP-AUTH is a security protocol. > - My understanding is that the document does not protect against replay of data chunks the same direction (yet). I.e., after 2^32 data chunks the TSN reaches the Initial TSN and an on-path attacker can replay authenticated data chunks as the Stream Identifier, and Stream Sequence Number “match”. If user messages are large (more chunks than 2^32), replay can trivially be done after 2^32 chunks when the TSN reaches the Initial TSN. > (If this is not fixed the document need to clearly describe that it does not provide integrity of user data. The document does not state that it does, but the reader cannot be expected to understand that the lack of replay protection lead to lack of integrity protection of the user data. The end user is likely interested in integrity of the user data). > Cheers, > John
- [tsvwg] I-D Action: draft-ietf-tsvwg-rfc4895-bis-… internet-drafts
- Re: [tsvwg] I-D Action: draft-ietf-tsvwg-rfc4895-… Michael Tuexen
- Re: [tsvwg] I-D Action: draft-ietf-tsvwg-rfc4895-… John Mattsson
- Re: [tsvwg] I-D Action: draft-ietf-tsvwg-rfc4895-… Michael Tuexen
- Re: [tsvwg] I-D Action: draft-ietf-tsvwg-rfc4895-… Michael Tuexen
- Re: [tsvwg] I-D Action: draft-ietf-tsvwg-rfc4895-… Magnus Westerlund
- Re: [tsvwg] I-D Action: draft-ietf-tsvwg-rfc4895-… Michael Tuexen