[Rats] Re: Security considerations of remote attestation (RFC9334)

John Kemp <stable.pseudonym@gmail.com> Thu, 30 January 2025 20:52 UTC

Return-Path: <stable.pseudonym@gmail.com>
X-Original-To: rats@ietfa.amsl.com
Delivered-To: rats@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9F01CC180B58 for <rats@ietfa.amsl.com>; Thu, 30 Jan 2025 12:52:01 -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, SPF_HELO_NONE=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=gmail.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 722YgCmlWbY4 for <rats@ietfa.amsl.com>; Thu, 30 Jan 2025 12:52:01 -0800 (PST)
Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0DFB4C180B4F for <rats@ietf.org>; Thu, 30 Jan 2025 12:52:00 -0800 (PST)
Received: by mail-qk1-x736.google.com with SMTP id af79cd13be357-7be3f230436so116745185a.3 for <rats@ietf.org>; Thu, 30 Jan 2025 12:52:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738270319; x=1738875119; darn=ietf.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=do4+2qP1QWEMtLKAYdXUDu56UgPdQeT12zWTO0v0G30=; b=crc9eBac57H8l8mPhvPNhUHz6IH42UB0WSyBHsMoQBMhxBpcffysovITof+xWm5J6i uYtiiBooFSM12cknjP3ONrtxYGT3ap25G0MN6Ite06SAtmRJzEnmBbnlD9uZp6GdduwU K3PGydqzHgCWmYCoDl+roWfI1VLhNs+glViDqxpo3Eb0OPU7ympLi7tQNqDdFwqaLJK+ lPBL8eJhtknyyJSMIFjtIUFeGpGFQBiK5CbRpTfgp30fJineTd8dNTN7g0QGWCi5HcQS S/8mwldIsLoQCdkp4LZWNkgUBXmOteXhZL8116JX9thRHwVD0hNQ9+pzqb5GtA1vGR/U hc9w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738270319; x=1738875119; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=do4+2qP1QWEMtLKAYdXUDu56UgPdQeT12zWTO0v0G30=; b=m3t+b4mYkCqF/nCS/vtS1HbKuLMxNcNeM2ooLlHAb3gHMMMDHKzqNBeOIplEeu3B+M 9hu13jFao/r7iwfRidGEdCDtWOENmOMecgCevGz5mNASRH+kplbjNAr1SfJBOtipjrPF 5bv7o7vk7h7EoA/LjicPCI1DDjatZcO8iNQIvLbK4WGzRpKq9BNEmtsKsHFitcdyB7hq hgDQE0+WnwdkJ/8y/BjuXyycWDEzIMrQrOMCM27QjAOmzZheAq3UpwCd8GXurLVLORTR kCjMi9pIc8Yzk4Nqw2KzycEtmW2X0cIQDRpgBr+H60lkyaJDOCtSzGuUj5yfrAa8acVO Iiag==
X-Forwarded-Encrypted: i=1; AJvYcCUuBYMu7FmJy/WFLCtrRX+Bls+LvnVyVTGcrlE6HhLeL+6l0WfQl77KB1wxRsoRhahjxddY@ietf.org
X-Gm-Message-State: AOJu0YyhdRLUXGt4WFD9AuxyT5qgMGBiYTw3tsVaank7VRlqjUppfdxB YjLCT1faspOm6Wv4cHaekBdD4nXanuOy/TO/VZzZ/Rnm3QAUEzV5
X-Gm-Gg: ASbGncvM458O8bbMyYKZs23rOgHBx2xgFW3TeLRwspTGjDJ9m/eXBcxMpr50p4GZpv5 Ei9pjQm8NwFHR4kRdzvEcfkIkoyWSx9WMupPYngvI7iDxDjs1LfvanIpBlU2pA9+ihJQXx6er3r zR8oS6EuFAPC3h7EcTRo0iJXDciNqK98uPduR13xrJ4NEgpJPoYGp5UZ6smA3NgBgZP/QQbFLHk 8TNfFgdwtb5M6SBTcXJmgra80R+HtOj56KFFgfUkqufIt/ZdsAu+GVJFAUy4nCTbPe6f9jDsBwI wUU2NuU7/WKliksWvf8mC6cN5aJUdUdRULrnYhrKugBzlWP0w9PwK4Rlyuw8GBWZGes=
X-Google-Smtp-Source: AGHT+IGp1dU5U6ZSexC/vKRM8osxmSdylCWiHtqOo7El8th7I23wKzR6iggxD4nVjIb3xdDUtPDFjg==
X-Received: by 2002:a05:620a:2942:b0:7b6:670f:b91a with SMTP id af79cd13be357-7bffcd8cda2mr1167937685a.43.1738270319393; Thu, 30 Jan 2025 12:51:59 -0800 (PST)
Received: from [192.168.1.157] (syn-066-066-241-066.res.spectrum.com. [66.66.241.66]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-46fdf17305csm10388601cf.63.2025.01.30.12.51.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Jan 2025 12:51:59 -0800 (PST)
Message-ID: <cbb64b33-1662-4ee8-932a-318200198e54@gmail.com>
Date: Thu, 30 Jan 2025 15:51:58 -0500
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: Muhammad Usama Sardar <muhammad_usama.sardar@tu-dresden.de>, Kathleen Moriarty <kathleen.moriarty.ietf@gmail.com>
References: <4ffdd034-05ec-4565-9cad-b40ff82f83fc@tu-dresden.de> <2ce75ea8-791b-4d42-be64-326309b70fbe@tu-dresden.de> <CO1PR11MB5169293FDD81C96F542A4D91E5E32@CO1PR11MB5169.namprd11.prod.outlook.com> <4fe69a8b-ff45-45c3-88f1-59bf22c4d185@tu-dresden.de> <CAHbuEH6+A9z2P2mK1mUJUMCkC5VbawU5B09k6s1pm0YwXJygEQ@mail.gmail.com> <775705ed-44d3-8c67-198d-1b6363892793@ietf.contact> <210cc843-b50c-4115-ac6e-c12e9f45461f@tu-dresden.de> <e4a7dc89-57d8-1817-5673-c44721a9d959@ietf.contact> <554d067d-7660-4c10-b98b-79921dec1326@tu-dresden.de> <c91a4168-680e-1932-60b8-3828be35ca34@ietf.contact> <CO1PR11MB5169B2854A7EA62D198C8FFCE5EE2@CO1PR11MB5169.namprd11.prod.outlook.com> <1df33769-8d62-4d88-b2db-ac42903569aa@tu-dresden.de> <CAHbuEH7-tqmRWhVwYT-S6KGOO6M_5d_M4MQVr47-8S+ZfyFV4w@mail.gmail.com> <aac584c2-04dc-4262-b3b4-1a8b7b899f72@tu-dresden.de> <CAHbuEH6y8GRmOKF-eBvrso3D+GqOvuA_ZPnhOouo4xstk2RSRw@mail.gmail.com> <b12596cf-a78b-45c4-8a5a-e7ac1186ad93@tu-dresden.de>
Content-Language: en-US
From: John Kemp <stable.pseudonym@gmail.com>
In-Reply-To: <b12596cf-a78b-45c4-8a5a-e7ac1186ad93@tu-dresden.de>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Message-ID-Hash: PQBTTFPQBRBJO4TOQVREVTBKRUTIYYNZ
X-Message-ID-Hash: PQBTTFPQBRBJO4TOQVREVTBKRUTIYYNZ
X-MailFrom: stable.pseudonym@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-rats.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: "Smith, Ned" <ned.smith@intel.com>, "Panwei (William)" <william.panwei@huawei.com>, "rats@ietf.org" <rats@ietf.org>, Dave Thaler <dthaler1968@googlemail.com>, Henk Birkholz <henk.birkholz@ietf.contact>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [Rats] Re: Security considerations of remote attestation (RFC9334)
List-Id: Remote ATtestation procedureS <rats.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/rats/Db2K18CKxvoeICE0jtkLPZmdKkI>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rats>
List-Help: <mailto:rats-request@ietf.org?subject=help>
List-Owner: <mailto:rats-owner@ietf.org>
List-Post: <mailto:rats@ietf.org>
List-Subscribe: <mailto:rats-join@ietf.org>
List-Unsubscribe: <mailto:rats-leave@ietf.org>

Since I'm still explicitly mentioned on this thread, and I actually have 
interest in this specific example, I'll comment inline below:

El 01/30/25 a las 15:23, Muhammad Usama Sardar escribió:
> Please see some thoughts inline. I think we are in full agreement on the 
> rest.
> 
> On 30.01.25 18:48, Kathleen Moriarty wrote:
>>
>>>               o Authentication has something to do with /long-term
>>>                 identity./
>>>
>>>     Ah, this is not true. Identity may or may not be tied to
>>>     authentication. If you read through NIST SP 800-63, there is a
>>>     clear delineation for levels of authentication. The basic level
>>>     is only that the same credentials are used and that can be
>>>     verified. There are numerous use cases, such as social media
>>>     accounts, where there is no identity proofing required.
>>
>>     I guess you mean anyone could create a social media account on the
>>     name of a specific person and pretend to be that person as it is
>>     not checked/verified (aka identity proofed), right? If yes, I agree.
>>
>>     I should have scoped the discussion to workloads on Confidential
>>     Computing platform [3], my bad. For authentication of workload, it
>>     still needs some form of identity, right?
>>
>> Yes, and you may still want to consider this in your scoping. There 
>> could be organizations who chose to use raw key pairs that are not 
>> tied to an identity proofing process.
> 
> I think this is the counter example you mentioned in your email.
> 
> I am not sure how such organizations would authenticate to a their 
> customers (or third parties)? For example, I am thinking about a cloud 
> service provider (CSP) claiming confidential computing and raw key pairs 
> for their servers, how would they authenticate their servers to me as a 
> cloud customer?

There is a difference between the "workload" and the "servers" (upon 
which, the workload is running).

Thinking of SPIFFE/SPIRE (a common technology for deploying workloads), 
SPIFFE has the concept of a SPIRE agent supplying a workload with its 
"identity" (which can include a key(pair) blessed by the agent). The 
SPIRE agent is part of a SPIRE "trust domain" and knows about particular 
SPIRE servers in that same trust domain. SPIRE servers can "federate" 
with other SPIRE servers.

In this case, I think attestation relates to the SPIRE infrastructure, 
and your CSP would use this, or a similar trust domain federation 
scheme, to do "attestation".

Although workloads MAY (and in fact in SPIFFE/SPIRE _do_) use keys 
provided by their SPIRE agent (IIRC) they might also (and in my opinion 
_should_) also have keys they only have access to themselves (ie. their 
trusted agent can't also impersonate them) and thus workload 
authentication _might_ be independent of platform (CSP resource) 
attestation.

> A hypothetical example: assuming Google as CSP and 
> assuming Google uses raw keys (without any identity proofing process), 
> how can you as Google's customer be sure that your workload is really 
> running on one of Google's machines, and not on a machine controlled by 
> MITM?

Identity proofing for machines and robots is tricky - that's where I 
think "measurements" attested by something trusted due to some 
pre-sharing of keys, and federation of some sort, are important. But I 
believe that we already had the discussion about attestation vs. 
authentication.

I think workload authentication (and workload keys) might be entirely 
separated from attestation related to the platform that the workloads 
are being run on. However, authentication of a workload is also likely 
to include "agent X gave workload A it's identity, and agent X has a key 
blessed by trust domain Y" or some such. These are "relationships" 
rather than "identity" alone.

Regards, - johnk

-- 
Independent Security Architect
t: +1.413.645.4169
e: stable.pseudonym@gmail.com

https://www.linkedin.com/in/johnk-am9obmsk/
https://github.com/frumioj