[lamps] Re: WG Last Call: draft-ietf-lamps-pq-composite-sigs-08 (Ends 2025-10-06)

Russ Housley <housley@vigilsec.com> Fri, 26 September 2025 13:49 UTC

Return-Path: <housley@vigilsec.com>
X-Original-To: spasm@mail2.ietf.org
Delivered-To: spasm@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 3F39D695F3C6; Fri, 26 Sep 2025 06:49:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.798
X-Spam-Level:
X-Spam-Status: No, score=-2.798 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=vigilsec.com
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qg2jaOgaIpIL; Fri, 26 Sep 2025 06:49:44 -0700 (PDT)
Received: from mail3.g24.pair.com (mail3.g24.pair.com [66.39.134.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id A7DEF695F2CA; Fri, 26 Sep 2025 06:49:40 -0700 (PDT)
Received: from mail3.g24.pair.com (localhost [127.0.0.1]) by mail3.g24.pair.com (Postfix) with ESMTP id 8CA191A2D7B; Fri, 26 Sep 2025 09:49:40 -0400 (EDT)
Received: from smtpclient.apple (pfs.iad.rg.net [198.180.150.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail3.g24.pair.com (Postfix) with ESMTPSA id 723C11A2FCA; Fri, 26 Sep 2025 09:49:40 -0400 (EDT)
From: Russ Housley <housley@vigilsec.com>
Message-Id: <BFEB66BF-956D-4A68-80B3-B21D7D770F74@vigilsec.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_30980042-022C-40D7-ACE4-B92D414893AF"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\))
Date: Fri, 26 Sep 2025 09:49:30 -0400
In-Reply-To: <25570d81-bbbb-4511-a9b1-490f091a8d80@mtg.de>
To: Falko Strenzke <falko.strenzke@mtg.de>
References: <175855620751.648048.16646357165291761730@dt-datatracker-6c6cdf7f94-h6rnn> <88B43AFC-A176-4125-93D0-2A724D6603C4@vigilsec.com> <LO2P123MB70512155059C90E0339F1190BC1CA@LO2P123MB7051.GBRP123.PROD.OUTLOOK.COM> <CAKZgXHoGHc8Cjr1kFC9E4dTu1Lyfc0m0nNeHEb3Vn5kaH61E7w@mail.gmail.com> <27d6772f-f48d-4f90-b0bc-cfa5216ba367@mtg.de> <C6DC1CC5-6297-429B-83E8-965F1A54B6E0@vigilsec.com> <25570d81-bbbb-4511-a9b1-490f091a8d80@mtg.de>
X-Mailer: Apple Mail (2.3826.700.81)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vigilsec.com; h=from:message-id:content-type:mime-version:subject:date:in-reply-to:cc:to:references; s=pair-202402141609; bh=l3MZlguo8nAAaaDwgYTg1rKbq3AeDk/E8PrAA7RwA4E=; b=RLv2U4DotyxxOXuO3ruf/pk2VemP99UkfwEst/SUatr0baCBDjKFvbEvbfHwdhs6fTyJ+rx3uYrWLY8BfoE3iPymJrn3ASd3s49IlmJ1OiNO7RX+22BfwboPgZ7/Nj1tjiU+5TcQnSHXEDHNXD3HAl23Q4GB9K/cu1xUYaypY7X+/cNZPazh1iO7ssSA+lSNUxDtsEBbRhNscsUUPRGDF55vLjk/vvMsGVSRiZpfKgnc31TfB0hOAejUsZx+1N+PoptAMokQDglcLgOCTf7JjKnTUCnqrsgl7lRuH6IWLI70HR1HvdzNcNl2AfdR5HK/CKDpQgPtDtZtplCRDcYkOA==
X-Scanned-By: mailmunge 3.09 on 66.39.134.11
Message-ID-Hash: PREQB3NRMD7RJGBYENNN6XORIV54U6XZ
X-Message-ID-Hash: PREQB3NRMD7RJGBYENNN6XORIV54U6XZ
X-MailFrom: housley@vigilsec.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-spasm.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: "spasm@ietf.org" <spasm@ietf.org>, "draft-ietf-lamps-pq-composite-sigs@ietf.org" <draft-ietf-lamps-pq-composite-sigs@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [lamps] Re: WG Last Call: draft-ietf-lamps-pq-composite-sigs-08 (Ends 2025-10-06)
List-Id: This is the mail list for the LAMPS Working Group <spasm.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/spasm/a5nJ5s0AzXg-TJNQE2SpktZQoS8>
List-Archive: <https://mailarchive.ietf.org/arch/browse/spasm>
List-Help: <mailto:spasm-request@ietf.org?subject=help>
List-Owner: <mailto:spasm-owner@ietf.org>
List-Post: <mailto:spasm@ietf.org>
List-Subscribe: <mailto:spasm-join@ietf.org>
List-Unsubscribe: <mailto:spasm-leave@ietf.org>

>>> ## Strong Non-Separability for X.509 and CMS
>>> 
>>> I claim that Strong Non-Separability (SNS) is naturally fulfilled for X.509 certificates and CRLs by a straightforward parallel combiner. This is due to the fact that both these data structures contain the signature algorithm identifier within the signed data. RFC 5280 requires these signature algorithm identifiers within  the signed data to be equal to their copy outside the signed data [1]. This means that a stripping attack is naturally prevented since removing one signature requires changing the signed algorithm identifier and thus invalidates the remaining signature.
>>> 
>>> It should be noted that the chosen construction in the draft thus, for the case of X.509 when component keys are reused as standalone keys, unnecessarily weakens the security features since an attacker can, through a stripping attack, produce new validly signed artifacts, namely by rendering the signed data as M'. This amounts to a violation of EUF-CMA under consideration of cross-algorithm attacks (composite and component algorithm). Whereas the straightforward parallel combiner doesn't allow this or any other kind of stripping attack.
>>> 
>>> For CMS the case is different, as there is no mechanism that naturally prevents stripping attacks. Here it would be possible to achieve SNS by specifying a new Signed Attribute that contains the signature algorithm identifier and is made a mandatory Signed Attribute in a protocol.
>> 
>> The attribute defined in Section 5 of RFC 2634 binds the certificate of the signer into CMS signature.  It is not a mandatory attribute, but when it is used, it should provide the protection that you seek.  Of course, a simpler attribute could be defined in the future.
> Thanks for the pointer. This attribute would solve the problem indeed. (I want to remind us all that we are talking about theoretical things here, since the proposed signature combiner breaks the properties that could be achieved with this approach.)
> 
A small addition to the Security Considerations seems appropriate.

Russ