Attestation Configuration

1. Introduction

Attestation configuration specifies how measured boot and attestation evidence collection are carried out across a SoC that integrates Caliptra Subsystem. The configuration consists of three artifacts:

  1. SoC Authorization Manifest: Authorizes the firmware images permitted to run. Caliptra Core verifies the manifest signature and uses its image metadata to authenticate component reference digests and validate load/staging addresses.
  2. Attestation Manifest: Defines the measurement routing policy for each configured firmware ID (fw_id). It specifies whether a component is measured into a DPE context (TCB) or Software PCR storage (non-TCB), designates the Attestation Key (AK) target node, and provides platform identity for attestation evidence.
  3. SoC Image Load List: Defines the deterministic sequential order in which the MCU loads and measures SoC components at boot.

These artifacts are defined across two configurations:

  • Base Vendor Configuration: Embedded at build time in the MCU Runtime user image and authenticated as part of MCU Runtime image verification against the Base SoC Manifest.
  • Owner Configuration: Staged externally (Component 0x00000005 in Flash TOC / PLDM) and authenticated against the Owner SoC Manifest.

Configuration Artifacts

SoC ConfigArtifactLives InAuthenticated ByPurpose
Base VendorAuth ManifestCaliptra RT (DCCM)Caliptra RT (Auth manifest verification)Authorization of SoC image metadata; querying SoC image metadata via GET_IMAGE_INFO
Base VendorBase Attestation Policy
Attestation Manifest (MCAM)
+
SoC Image Load List
MCU RT (SRAM, loaded from MCU RT Image)Caliptra RT (As part of MCU RT image verification)Per-fw_id measurement routing policy (TCB vs. Non-TCB, AK target) and ordered fw_id load list used for SoC image loading, DPE topology, and hitless updates
OwnerOwner Auth ManifestCaliptra RT (DCCM)Caliptra RT (Owner auth manifest verification)Authorization of owner SoC image metadata; querying owner metadata via GET_IMAGE_INFO
OwnerOwner Attestation Policy
Owner Attestation Manifest (MOAM)
+
Owner SoC Image Load List (MOLL)
MCU RT (SRAM, loaded from Component 0x00000005)MCU RT (Verified against Owner Auth Manifest via GET_IMAGE_INFO)Per-fw_id measurement routing policy and ordered fw_id load list used for owner SoC image loading and DPE topology

2. Base Vendor Configuration

The base configuration is compiled directly into the MCU Runtime user image from integrator build-time descriptors.

Base Attestation Manifest (MCAM)

Consists of a 28-byte fixed header prefix, a 200-byte platform information region, and a variable array of 8-byte entries (header_size = 228).

Header Format (228 bytes)

OffsetFieldSizeDescription
0marker4 bytesMagic 0x4D41_434D (MCAM in LE).
4size4 bytesTotal bytes: 228 + entry_count * 8.
8version4 bytesVersion 1.
12header_size4 bytesMust be 228.
16entry_count4 bytesNumber of component entries.
20tcb_entry_count4 bytesNumber of entries with SOC_TCB_DPE flag set.
24vendor_len2 bytesLength of UTF-8 vendor string (max 100).
26model_len2 bytesLength of UTF-8 model string (max 100).
28vendor100 bytesUTF-8 vendor name (unused bytes zeroed).
128model100 bytesUTF-8 model name (unused bytes zeroed).

Entry Format (8 bytes per entry)

OffsetFieldSizeDescription
0fw_id4 bytesFirmware identifier.
4attestation_flags4 bytesBit 0 (SOC_TCB_DPE): 1 = DPE context, 0 = Software PCR.
Bit 1 (AK_TARGET): 1 = Attestation Key target (max 1, requires Bit 0).
Bit 2 (EXPORT_CDI_TARGET): 1 = DPE Exported-CDI target (max 1, requires Bit 0).
Bits 3-31: Reserved (must be zero).

If no entry asserts AK_TARGET, MCU_RT (0x0000_0002) is the default AK target. If no entry asserts EXPORT_CDI_TARGET, MCU_RT (0x0000_0002) is the default Exported-CDI target. Because MCU_RT is the root of the MCU-managed DPE lineage, any configured EXPORT_CDI_TARGET always includes MCU_RT in its DPE context chain. AK_TARGET and EXPORT_CDI_TARGET are configured independently and may select the same TCB entry or distinct TCB entries.

Currently, only the base manifest (MCAM) supports AK_TARGET and EXPORT_CDI_TARGET selection.

Base SoC Image Load List (SOC_IMAGE_LOAD_LIST)

An ordered array of little-endian u32 firmware identifiers:

#![allow(unused)]
fn main() {
pub const SOC_IMAGE_LOAD_LIST: &[u32] = &[
    0x0000_1000, // SoC Vendor Component 1
    0x0000_2000, // SoC Vendor Component 2
];
}

Policy Digest Binding

base_policy_digest = SHA384(canonical_MCAM_bytes || canonical_ordered_soc_image_load_list_bytes)

Stored in preserved measurement metadata at cold boot. On hitless update, any mismatch rejects the update and requires cold boot.


3. Owner Configuration (Component 0x00000005)

The Owner Measurement Policy component packages the Owner Attestation Manifest and Owner SoC Image Load List contiguously into a single container staged in Flash TOC or delivered via PLDM:

Owner Measurement Policy (Component 0x00000005)
+-----------------------------------------+
| Owner Attestation Manifest (MOAM)       |
+-----------------------------------------+
| Owner SoC Image Load List (MOLL)        |
+-----------------------------------------+

Owner Attestation Manifest (MOAM)

Unlike the base manifest, the owner manifest omits platform strings (inheriting platform identity from the base configuration):

Header Format (28 bytes)

OffsetFieldSizeDescription
0marker4 bytesMagic 0x4D41_4F4D (MOAM in LE).
4size4 bytesTotal bytes: 28 + entry_count * 8.
8version4 bytesVersion 1.
12header_size4 bytesMust be 28.
16entry_count4 bytesNumber of serialized entries.
20tcb_entry_count4 bytesMust match leading TCB entry count.
24vendor_len2 bytesMust be 0.
26model_len2 bytesMust be 0.

Owner Manifest Invariants

  1. TCB Contiguity: All entries with SOC_TCB_DPE set must appear contiguously at the beginning of the entry array.
  2. Mandatory Reserved Entries: Every owner manifest must include TCB entries for:
    • 0x0000_0005: Owner Measurement Policy
    • 0x0000_0006: Owner Authorization Key (O_AUTH_KEY_ID)
  3. Allocated ID Range: All loadable owner firmware IDs must fall in 0x0001_0000..=0xFFFF_FFFF. IDs below 0x0001_0000 (except reserved IDs 0x5 and 0x6) are rejected.

Owner SoC Image Load List (MOLL)

Defines the ordered execution sequence of owner firmware images:

Header Format (16 bytes)

OffsetFieldSizeDescription
0marker4 bytesMagic 0x4C4C_4F4D (MOLL in LE).
4size4 bytesTotal bytes: 16 + entry_count * 4.
8version4 bytesVersion 1.
12entry_count4 bytesNumber of firmware IDs in list.

Following the header is an array of entry_count little-endian u32 firmware IDs.

Owner SoC Image Load List Invariants

  1. Reserved ID Exclusion: Reserved identifiers (Owner Measurement Policy 0x0000_0005 and Owner Authorization Key 0x0000_0006) are measured separately and must not appear in the load list.
  2. Load List and Attestation Manifest Parity: Every firmware component in the Owner SoC Image Load List (MOLL) must have a matching entry in the Owner Attestation Manifest (MOAM). Conversely, all non-reserved components in the Owner Attestation Manifest must be present in the Owner SoC Image Load List.
  3. Unique Entries: Duplicate fw_ids are rejected.

Canonical Policy Digest

The complete container is bound by:

owner_policy_digest = SHA384(Owner Measurement Policy payload)

Caliptra Core authenticates this payload against the expected_digest recorded in the Owner SoC Manifest (via AUTHORIZE_AND_STASH with SKIP_STASH) before MCU Runtime enforces the policy and measures it into DPE.


4. End-to-End Boot and Loading Flow

At system startup, Caliptra MCU coordinates authorization, loading, and measurements in this strict chronological order:

 1. Initialize Base State
    ├── Validate embedded Base Attestation Manifest (MCAM) and Base SoC Image Load List
    ├── Rotate default DPE context handle and tag MCU_RT context (0x00000002)
    └── Initialize DPE and Software PCR stores
         │
 2. Measure Vendor Auth Key (0x00000004)
    └── Extend Vendor Key digest under MCU_RT context
         │
 3. Install & Measure Owner SoC Manifest (OWSM)
    ├── Caliptra Core verifies Owner Auth Manifest signature via SET_OWNER_AUTH_MANIFEST
    └── MCU extends Owner SoC Manifest preamble under MCU_RT context (creating OWSM branch context)
         │
 4. Load, Authorize & Measure Owner Measurement Policy (0x00000005)
    ├── Fetch Component 0x5 from [Flash TOC](./flash_layout.md) / PLDM package
    ├── Authenticate against Owner SoC Manifest and validate MOAM + MOLL consistency
    └── Extend SHA384(Component 0x5 payload) under OWSM context
         │
 5. Measure Owner Auth Key (0x00000006)
    └── Extend Owner Key digest under Owner Policy context
         │
 6. Load Base Firmware Images
    └── For each fw_id in SOC_IMAGE_LOAD_LIST:
        ├── Authorize via Caliptra Core (Base SoC Manifest with SKIP_STASH)
        └── Record DPE (under Vendor+Owner branch) / Software PCR measurement; extend PCR31
         │
 7. Load Owner Firmware Images
    └── For each fw_id in Owner SoC Image Load List (MOLL):
        ├── Authorize via Caliptra Core (Owner SoC Manifest with SKIP_STASH)
        └── Record DPE (under Owner branch) / Software PCR measurement; extend PCR31

5. Symmetrical Consistency Rules

The exact same consistency principles govern both the Base and Owner configurations:

PrincipleBase Configuration RuleOwner Configuration Rule
Identifier Uniquenessfw_ids in Base Manifest and Base SoC Image Load List must be unique.fw_ids in MOAM and MOLL must be unique.
Range AllocationBase IDs occupy the base range (< 0x0001_0000).Owner IDs occupy the owner range (0x0001_0000..=0xFFFF_FFFF), except reserved IDs 0x5 and 0x6.
Non-Loadable EntriesMCAM may contain non-loadable entries such as the Vendor Authorization Key (0x0000_0004), which is excluded from SOC_IMAGE_LOAD_LIST.MOAM contains reserved IDs 0x5 (Policy) and 0x6 (Owner Authorization Key), which are excluded from MOLL.
Cross-Artifact ParityEvery loadable fw_id in SOC_IMAGE_LOAD_LIST must exist in MCAM and Base SoC Manifest.Every loadable fw_id in MOLL must exist in MOAM and Owner SoC Manifest.
Hitless Update Protectionbase_policy_digest must match the value preserved in reserved SRAM (DpeHandleStore header).owner_policy_digest must match the preserved cold-boot measurement of the Owner Measurement Policy in its DPE context. It is not stored in the DpeHandleStore header.

Hitless Update Policy Preservation

During cold boot, MCU Runtime stores the base-policy digest in the DpeHandleStore header's attestation_policy_digest field at offset 24.

The Owner policy digest, SHA384(Owner Measurement Policy payload), is captured as the policy component's measurement in its DPE context.

On a hitless-update reset:

  1. MCU Runtime recomputes the base-policy digest and validates it against the digest preserved in the DpeHandleStore header.
  2. MCU Runtime authenticates and validates the incoming Owner Measurement Policy, recomputes its digest, and compares it against the policy component's preserved DPE context measurement.
  3. If the policy digest mismatches or the preserved measurement is missing or invalid, the update is rejected. If the policy is unchanged, the preserved measurement is retained.

6. OCP EAT Hardware Configuration Evidence

The build-time TOML file selected by CALIPTRA_EAT_CLAIMS_CONFIG can enable hardware configuration evidence in OCP EAT. The CALIPTRA_2_X_FUSE_OWNER_INFO hardware class currently reports request-scoped FE status:

[hardware_class]
enabled = true
# Optional platform override of the Caliptra-defined class ID:
# class_id_hex = "00112233445566778899aabbccddeeff"

Inclusion is disabled by default. When enabled, the default class_id is tagged bytes (560) containing ASCII CALIPTRA_2_X_FUSE_OWNER_INFO, matching the FMC Alias certificate's TcbInfo.type. A platform may override it with class_id_hex (1–100 bytes; firmware class IDs of the form 0x followed by eight uppercase hexadecimal digits are rejected). Class vendor and model come from the authenticated Base Attestation Manifest.

Firmware and hardware measurement maps omit mkey. FE status is carried directly in mval.raw_value as a six-byte string:

Config toggleraw-value byteFieldEncoding
enabled = true0Schema version1
1Availability1 when Core returned FW_INFO; otherwise 0
2–5FE0–FE3 status0 Unprovisioned, 1 Provisioned, 2 Zeroized, 3 Error; all 0xFF when unavailable

Each signed OCP EAT request queries FW_INFO when the hardware class is enabled. If the query fails, mval.raw_value reports Availability 0 with 0xFF for all partitions.

The HW class is budgeted separately from [measurements].measurement_count (or CALIPTRA_CONCISE_EVIDENCE_MEASUREMENT_COUNT), and generated token-size bounds include enabled HW records.