b16cfba
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:
- 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.
- 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. - 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
0x00000005in Flash TOC / PLDM) and authenticated against the Owner SoC Manifest.
Configuration Artifacts
| SoC Config | Artifact | Lives In | Authenticated By | Purpose |
|---|---|---|---|---|
| Base Vendor | Auth Manifest | Caliptra RT (DCCM) | Caliptra RT (Auth manifest verification) | Authorization of SoC image metadata; querying SoC image metadata via GET_IMAGE_INFO |
| Base Vendor | Base 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 |
| Owner | Owner Auth Manifest | Caliptra RT (DCCM) | Caliptra RT (Owner auth manifest verification) | Authorization of owner SoC image metadata; querying owner metadata via GET_IMAGE_INFO |
| Owner | Owner 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)
| Offset | Field | Size | Description |
|---|---|---|---|
| 0 | marker | 4 bytes | Magic 0x4D41_434D (MCAM in LE). |
| 4 | size | 4 bytes | Total bytes: 228 + entry_count * 8. |
| 8 | version | 4 bytes | Version 1. |
| 12 | header_size | 4 bytes | Must be 228. |
| 16 | entry_count | 4 bytes | Number of component entries. |
| 20 | tcb_entry_count | 4 bytes | Number of entries with SOC_TCB_DPE flag set. |
| 24 | vendor_len | 2 bytes | Length of UTF-8 vendor string (max 100). |
| 26 | model_len | 2 bytes | Length of UTF-8 model string (max 100). |
| 28 | vendor | 100 bytes | UTF-8 vendor name (unused bytes zeroed). |
| 128 | model | 100 bytes | UTF-8 model name (unused bytes zeroed). |
Entry Format (8 bytes per entry)
| Offset | Field | Size | Description |
|---|---|---|---|
| 0 | fw_id | 4 bytes | Firmware identifier. |
| 4 | attestation_flags | 4 bytes | Bit 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)
| Offset | Field | Size | Description |
|---|---|---|---|
| 0 | marker | 4 bytes | Magic 0x4D41_4F4D (MOAM in LE). |
| 4 | size | 4 bytes | Total bytes: 28 + entry_count * 8. |
| 8 | version | 4 bytes | Version 1. |
| 12 | header_size | 4 bytes | Must be 28. |
| 16 | entry_count | 4 bytes | Number of serialized entries. |
| 20 | tcb_entry_count | 4 bytes | Must match leading TCB entry count. |
| 24 | vendor_len | 2 bytes | Must be 0. |
| 26 | model_len | 2 bytes | Must be 0. |
Owner Manifest Invariants
- TCB Contiguity: All entries with
SOC_TCB_DPEset must appear contiguously at the beginning of the entry array. - Mandatory Reserved Entries: Every owner manifest must include TCB entries for:
0x0000_0005: Owner Measurement Policy0x0000_0006: Owner Authorization Key (O_AUTH_KEY_ID)
- Allocated ID Range: All loadable owner firmware IDs must fall in
0x0001_0000..=0xFFFF_FFFF. IDs below0x0001_0000(except reserved IDs0x5and0x6) are rejected.
Owner SoC Image Load List (MOLL)
Defines the ordered execution sequence of owner firmware images:
Header Format (16 bytes)
| Offset | Field | Size | Description |
|---|---|---|---|
| 0 | marker | 4 bytes | Magic 0x4C4C_4F4D (MOLL in LE). |
| 4 | size | 4 bytes | Total bytes: 16 + entry_count * 4. |
| 8 | version | 4 bytes | Version 1. |
| 12 | entry_count | 4 bytes | Number 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
- Reserved ID Exclusion: Reserved identifiers (Owner Measurement Policy
0x0000_0005and Owner Authorization Key0x0000_0006) are measured separately and must not appear in the load list. - 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. - 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:
| Principle | Base Configuration Rule | Owner Configuration Rule |
|---|---|---|
| Identifier Uniqueness | fw_ids in Base Manifest and Base SoC Image Load List must be unique. | fw_ids in MOAM and MOLL must be unique. |
| Range Allocation | Base 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 Entries | MCAM 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 Parity | Every 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 Protection | base_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:
- MCU Runtime recomputes the base-policy digest and validates it against the digest preserved in the
DpeHandleStoreheader. - 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.
- 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 toggle | raw-value byte | Field | Encoding |
|---|---|---|---|
enabled = true | 0 | Schema version | 1 |
| 1 | Availability | 1 when Core returned FW_INFO; otherwise 0 | |
| 2–5 | FE0–FE3 status | 0 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.