Internet-Draft | Evidence Transformations | February 2025 |
Draper & Smith | Expires 15 August 2025 | [Page] |
Remote Attestation Procedures (RATS) enable Relying Parties to assess the trustworthiness of a remote Attester and therefore to decide whether to engage in secure interactions with it - or not. Evidence about trustworthiness can be rather complex and it is deemed unrealistic that every Relying Party is capable of the appraisal of Evidence. Therefore that burden is typically offloaded to a Verifier. In order to conduct Evidence appraisal, a Verifier requires fresh Evidence from an Attester. Before a Verifier can appraise Evidence it may require transformation to an internal representation. This document specifies Evidence transformation methods for DICE and SPDM formats to the CoRIM internal representation.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 15 August 2025.¶
Copyright (c) 2025 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
Remote Attestation Procedures (RATS) enable Relying Parties to assess the trustworthiness of a remote Attester and therefore to decide whether to engage in secure interactions with it - or not. Evidence about trustworthiness can be rather complex and it is deemed unrealistic that every Relying Party is capable of the appraisal of Evidence. Therefore that burden is typically offloaded to a Verifier. In order to conduct Evidence appraisal, a Verifier requires fresh Evidence from an Attester. Before a Verifier can appraise Evidence it may require transformation to an internal representation. This document specifies Evidence transformation methods for DICE and SPDM formats to the CoRIM internal representation.¶
This document uses terms and concepts defined by the RATS architecture. For a complete glossary see Section 4 of [RFC9334]. Addintional RATS architecture is found in [I-D.ietf-rats-endorsements]. RATS architecture terms and concepts are always referenced as proper nouns, i.e., with Capital Letters.¶
In this document, an Evidence structure describes an external representation. There are many possible Evidence structures including [I-D.ietf-rats-eat] and [RFC5280]. The bytes composing the CoRIM data structure are the same either way.¶
The terminology from CoRIM [I-D.ietf-rats-corim], CBOR [STD94], CDDL [RFC8610] and COSE [STD96] applies.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
This specification assumes the reader is familiar with Verifier Reconsiliation as described in Section 2 of [I-D.ietf-rats-corim]. It describes how a Verifier should process the CoRIM to enable CoRIM authors to convey their intended meaning and how a Verifier reconciles its various inputs. Evidence is one of its inputs. The Verifier is expected to create an internal representation from an external representation. By using an internal representation, the Verifier processes Evidence inputs such that they can be appraised consistently.¶
This specification defines format transformations for Evidence in DICE [DICE.Attest], SPDM [SPDM], and concise evidence [TCG.CE] formats that are transformed into a Verifier's internal representation. This specification uses the CoMID internal representation (Section 8.2.1 of [I-D.ietf-rats-corim]) as the transformation target. Other internal representations are possible but out of scope for this specification.¶
This section defines how Evidence from an X.509 certificate containing a DICE certificate extension [DICE.Attest] is transformed into an internal representation that can be processed by Verifiers.¶
Verifiers supporting the DICE certificate extension Evidence SHOULD implement this transformation.¶
This specification defines transformation methods for two DICE certificate extensions DiceTcbInfo and DiceMultiTcbInfo. These extensions are identified by the following object identifiers:¶
Each DiceTcbInfo entry in a MultiTcbInfo is converted to a CoRIM ECT (see Section 8.2.1 of [I-D.ietf-rats-corim]) using the transformation steps in this section.
Each DiceMultiTcbInfo entry is independent of the others such that each is transformed to a separate ECT entry.
A list of Evidence ECTs (i.e., ae = [ + ECT]
) is constructed using CoRIM attestation evidence internal representation (see Section 8.2.1.1 of [I-D.ietf-rats-corim]).¶
For each DiceTcbInfo (DTI) entry in a DiceMultiTcbInfo allocate an ECT structure.¶
An ae
entry is allocated.¶
The cmtype
of the ECT is set to evidence
.¶
The DiceTcbInfo (DTI) entry populates the ae
ECT.¶
The DTI entry populates the ae
ECT environment-map
¶
copy(DTI.type
, ECT.environment
.environment-map
.class-map
.class-id
).
The binary representation of DTI.type
MUST be equivalent to the binary representation of class-id
without the CBOR tag.¶
copy(DTI.vendor
, ECT.environment
.environment-map
.class-map
.vendor
).¶
copy(DTI.model
, ECT.environment
.environment-map
.class-map
.model
).¶
copy(DTI.layer
, ECT.environment
.environment-map
.class-map
.layer
).¶
copy(DTI.index
, ECT.environment
.environment-map
.class-map
.index
).¶
The DTI entry populates the ae
ECT elemenet-list
.¶
copy(DTI.version
, ECT.element-list
.element-map
.measurement-values-map
.version-map
.version
).¶
copy(DTI.svn
, ECT.element-list
.element-map
.measurement-values-map
.svn
).¶
copy(DTI.vendorInfo
, ECT.element-list
.element-map
.measurement-values-map
.raw-value
).¶
Foreach FWID in FWIDLIST: copy(DTI.FWID
.digest
, ECT.element-list
.element-map
.measurement-values-map
.digests
.digest
.val
).¶
Foreach FWID in FWIDLIST: copy(DTI.FWID
.hashAlg
, ECT.element-list
.element-map
.measurement-values-map
.digests
.digest
.alg
).¶
The DTI entry populates the ae
ECT elemenet-list
.flags
. Foreach f in DTI.OperationalFlags
and each m in DTI.OperationalFlagsMask
:¶
If m.notConfigured
= 1 AND f.notConfigured
= 1; set(ECT.element-list
.element-map
.measurement-values-map
.flags
.is-configured
= FALSE).¶
If m.notConfigured
= 1 AND f.notConfigured
= 0; set(ECT.element-list
.element-map
.measurement-values-map
.flags
.is-configured
= TRUE).¶
If m.notSecure
= 1 AND f.notSecure
= 1; set(ECT.element-list
.element-map
.measurement-values-map
.flags
.is-secure
= FALSE).¶
If m.notSecure
= 1 AND f.notSecure
= 0; set(ECT.element-list
.element-map
.measurement-values-map
.flags
.is-secure
= TRUE).¶
If m.recovery
= 1 AND f.recovery
= 1; set(ECT.element-list
.element-map
.measurement-values-map
.flags
.is-recovery
= FALSE).¶
If m.recovery
= 1 AND f.recovery
= 0; set(ECT.element-list
.element-map
.measurement-values-map
.flags
.is-recovery
= TRUE).¶
If m.debug
= 1 AND f.debug
= 1; set(ECT.element-list
.element-map
.measurement-values-map
.flags
.is-debug
= FALSE).¶
If m.debug
= 1 AND f.debug
= 0; set(ECT.element-list
.element-map
.measurement-values-map
.flags
.is-debug
= TRUE).¶
If m.notReplayProtected
= 1 AND f.notReplayProtected
= 1; set(ECT.element-list
.element-map
.measurement-values-map
.flags
.is-replay-protected
= FALSE).¶
If m.notReplayProtected
= 1 AND f.notReplayProtected
= 0; set(ECT.element-list
.element-map
.measurement-values-map
.flags
.is-replay-protected
= TRUE).¶
If m.notIntegrityProtected
= 1 AND f.notIntegrityProtected
= 1; set(ECT.element-list
.element-map
.measurement-values-map
.flags
.is-integrity-proteccted
= FALSE).¶
If m.notIntegrityProtected
= 1 AND f.notIntegrityProtected
= 0; set(ECT.element-list
.element-map
.measurement-values-map
.flags
.is-integrity-proteccted
= TRUE).¶
If m.notRuntimeMeasured
= 1 AND f.notRuntimeMeasured
= 1; set(ECT.element-list
.element-map
.measurement-values-map
.flags
.is-runtime-meas
= FALSE).¶
If m.notRuntimeMeasured
= 1 AND f.notRuntimeMeasured
= 0; set(ECT.element-list
.element-map
.measurement-values-map
.flags
.is-runtime-meas
= TRUE).¶
If m.notImmutable
= 1 AND f.notImmutable
= 1; set(ECT.element-list
.element-map
.measurement-values-map
.flags
.is-immutable
= FALSE).¶
If m.notImmutable
= 1 AND f.notImmutable
= 0; set(ECT.element-list
.element-map
.measurement-values-map
.flags
.is-immutable
= TRUE).¶
If m.notTcb
= 1 AND f.notTcb
= 1; set(ECT.element-list
.element-map
.measurement-values-map
.flags
.is-tcb
= FALSE).¶
If m.notTcb
= 1 AND f.notTcb
= 0; set(ECT.element-list
.element-map
.measurement-values-map
.flags
.is-tcb
= TRUE).¶
The signer of the certificate containing DTI is copied to the ECT.authority
field.
The signer identity MUST be expressed using $crypto-key-type-choice
.
A profile or other arrangement is used to coordinate which $crypto-key-type-choice
is used for both Evidence and Reference Values.¶
The completed ECT is added to the ae
list.¶
This section defines how Evidence from TCG [TCG.CE] is transformed into an internal representation that can be processed by Verifiers.¶
Verifiers supporting the TCG Concise Evidence format SHOULD implement this transformation.¶
Concise evidence may be recognized by any of the following registered types:¶
CBOR tag | C-F ID | TN Tag | Media Type |
---|---|---|---|
#6.571 | 10571 | #6.1668557429 | "application/ce+cbor" |
A Concise Evidence entry is converted to a CoRIM ECT (see Section 8.2.1 of [I-D.ietf-rats-corim]) using the transformation steps in this section.
A list of Evidence ECTs (i.e., ae = [ + ECT]
) is constructed using CoRIM attestation evidence internal representation (see Section 8.2.1.1 of [I-D.ietf-rats-corim]).
The Concise Evidence scheme uses CoRIM CDDL definitions to define several Evidence representations called triples.
Cases where Concise Evidence CDDL is identical to CoRIM CDDL the transformation logic uses the structure names in common.¶
The ce.evidence-triples
structure is a list of evidence-triple-record
.
An evidence-triple-record
consists of an environment-map
and a list of measurement-map
.
For each evidence-triple-record
an ae
ECT is constructed.¶
An ae
ECT entry is allocated.¶
The cmtype
of the ECT is set to evidence
.¶
The Concise Evidence (CE) entry populates the ae
ECT environment
fields.¶
copy(CE.evidence-triple-record
.environment-map
, ECT.environment
.environment-map
).¶
For each ce in CE.[ + measurement-map]
; and each ect in ECT.[ + element-list]
:¶
copy(ce.mkey
, ect.element-map
.element-id
)¶
copy(ce.mval
, ect.
element-map.
element-claims`)¶
The signer of the envelope containing CE is copied to the ECT.authority
field.
For example, a CE may be wrapped by an EAT token [I-D.ietf-rats-eat] or DICE certificate [DICE.Attest].
The signer identity MUST be expressed using $crypto-key-type-choice
.
A profile or other arrangement is used to coordinate which $crypto-key-type-choice
is used for both Evidence and Reference Values.¶
If CE has a profile, the profile is converted to a $profile-type-choice
then copied to the ECT.
profile` field.¶
The completed ECT is added to the ae
list.¶
The ce.identity-triples
structure is a list of ev-identity-triple-record
.
An ev-identity-triple-record
consists of an environment-map
and a list of $crypto-key-type-choice
.
For each ev-identity-triple-record
an ae
ECT is constructed where the $crypto-key-type-choice
values are copied as ECT Evidence measurement values.
The ECT internal representation accommodates keys as a type of measurement.
In order for the $crypto-key-type-choice
keys to be verified a CoRIM identity-triples
claim MUST be asserted.¶
An ae
ECT entry is allocated.¶
The cmtype
of the ECT is set to evidence
.¶
The Concise Evidence (CE) entry populates the ae
ECT environment
fields.¶
copy(CE.ce-identity-triple-record
.environment-map
, ECT.environment
.environment-map
).¶
copy(null, ECT.element-list
.element-map
.element-id
).¶
For each cek in CE.[ + $crypto-key-type-choice ]
; and each ect in ECT.element-list
.element-map
.element-claims
.intrep-keys
.[ + typed-crypto-key ]
:¶
copy(cek, ect.key
)¶
set( &(identity-key: 1), ect.key-type
)¶
The signer of the envelope containing CE is copied to the ECT.authority
field.
For example, a CE may be wrapped by an EAT token [I-D.ietf-rats-eat] or DICE certificate [DICE.Attest].
The signer identity MUST be expressed using $crypto-key-type-choice
.
A profile or other arrangement is used to coordinate which $crypto-key-type-choice
is used for both Evidence and Reference Values.¶
If CE has a profile, the profile is converted to a $profile-type-choice
then copied to the ECT.
profile` field.¶
The completed ECT is added to the ae
list.¶
The ce.attest-key-triples
structure is a list of ev-attest-key-triple-record
.
An ev-attest-key-triple-record
consists of an environment-map
and a list of $crypto-key-type-choice
.
For each ev-attest-key-triple-record
an ae
ECT is constructed where the $crypto-key-type-choice
values are copied as ECT Evidence measurement values.
The ECT internal representation accommodates keys as a type of measurement.
In order for the $crypto-key-type-choice
keys to be verified a CoRIM attest-key-triples
claim MUST be asserted.¶
An ae
ECT entry is allocated.¶
The cmtype
of the ECT is set to evidence
.¶
The Concise Evidence (CE) entry populates the ae
ECT environment
fields.¶
copy(CE.ce-attest-key-triple-record
.environment-map
, ECT.environment
.environment-map
).¶
copy(null, ECT.element-list
.element-map
.element-id
).¶
For each cek in CE.[ + $crypto-key-type-choice ]
; and each ect in ECT.element-list
.element-map
.element-claims
.intrep-keys
.[ + typed-crypto-key ]
:¶
copy(cek, ect.key
)¶
set( &(attest-key: 0), ect.key-type
)¶
The signer of the envelope containing CE is copied to the ECT.authority
field.
For example, a CE may be wrapped by an EAT token [I-D.ietf-rats-eat] or DICE certificate [DICE.Attest].
The signer identity MUST be expressed using $crypto-key-type-choice
.
A profile or other arrangement is used to coordinate which $crypto-key-type-choice
is used for both Evidence and Reference Values.¶
If CE has a profile, the profile is converted to a $profile-type-choice
then copied to the ECT.
profile` field.¶
The completed ECT is added to the ae
list.¶
This section defines how Evidence from SPDM [SPDM] is transformed into an internal representation that can be processed by Verifiers.¶
Verifiers supporting the SPDM Evidence format SHOULD implement this transformation.¶
The SPDM measurements are converted to concise-evidence
which has a format that is similar to CoRIM triples-map
(their semantics follows the matching rules described above).
The TCG DICE Concise Evidence Binding for SPDM specification [TCG.CE] describes a process for converting the SPDM Measurement Block to Concise Evidence.
Subsequently the transformation steps defined in Section 4.¶
There are no security and privacy considerations.¶
There are no IANA considerations.¶
The authors would like to thank the following people for their valuable contributions to the specification.¶
Henk Birkholz¶
Email: henk.birkholz@ietf.contact¶
Yogesh Deshpande¶
Email: yogesh.deshpande@arm.com¶
Thomas Fossati¶
Email: Thomas.Fossati@linaro.org¶
Dionna Glaze¶
Email: dionnaglaze@google.com¶
The authors would like to thank James D. Beaney, Francisco J. Chinchilla, Vincent R. Scarlata, and Piotr Zmijewski for review feedback.¶