← SecurityX/CASP+: architecture and secure operations
20 / 21 · 110 MIN

Hardware, boot and attestation

Relate boot policy, measurements, evidence origin and secret recovery without overstating hardware assurances.

Secure Boot is a loading policy

Secure Boot evaluates boot content against platform policy. In the UEFI databases described by Microsoft, db contains allowed identities or hashes and dbx identifies revoked content. If the same hash appears in both, revocation takes precedence. Recovery planning cannot assume an old bootloader remains allowed merely because it was retained and signed. Keep an inventory of firmware, bootloaders, keys and recovery images, including versions and dependencies between updates. The consulted documentation includes the update notice for Microsoft's 2011 certificates, whose expirations begin in 2026; dates and applicability need confirmation for the specific platform. In a fictional server-renewal project, rehearse database updates and booting the recovery image before removing old trust. Define who can change policy and how to recover a machine that no longer starts through its normal route. Do not alter PK, KEK or dbx simply to remove an error without understanding scope. An accepted signature does not establish absence of component vulnerabilities. Combine prevention of unauthorized changes with detection and recovery, following NIST's firmware-resilience approach. This lesson describes the mechanism; the local lab neither changes firmware nor executes Secure Boot. Its acceptance questions therefore require platform evidence beyond the supplied software exercise.

Measured Boot records a history needing interpretation

Measuring components supports appraisal of the observed path but does not establish that they were prevented from executing. Distinguish loading policy from measurement recording. A PCR accumulates information through extension operations; the teaching model begins with 32 zero bytes and computes SHA-256 over the previous value concatenated with the event hash. Altering, omitting or reordering events changes the result in the exercised cases. Sequence and data representation belong to the replay contract; they are not details that can freely be normalized afterward. The event log supplies information for interpreting and replaying measurements. Replay matching the received digest establishes a relationship between those data, but does not decide that firmware is approved. Comparison with authorized reference values and a trusted origin for the digest are needed. The lab performs actual Python hashing but uses synthetic strings rather than TCG event structures or physical PCRs. It shows that an update can produce an internally consistent log while remaining outside the permitted reference. Operationally, the platform team should explain the changed measurement and the policy owner should authorize the appropriate reference. Automatically copying an observed value into the allowlist removes that separation and makes unexpected state appear approved.

Attestation: origin, freshness and access decision

The RATS architecture distinguishes the entity producing evidence, the verifier appraising it and the relying party using the result for access decisions. The verifier combines evidence, references and policy; the relying party applies its policy to the received result. A quote verifying under a public key supplied by the device does not by itself establish that the key belongs to the authorized target. Enrollment and the trust chain need to bind attestation identity to the expected equipment or environment. A recent challenge helps bound replay when authentically bound to evidence and the pending transaction. The local model checks an identifier, challenge, log replay and reference. It then constructs a fabricated dictionary containing consistent values and observes that it is accepted too. This is intentional: no signature or TPM exists, so field checks do not establish authenticity. The demonstration teaches a missing boundary rather than implementing a production verifier. Even authentic evidence describes state at a particular time; software and policy can change afterward. Define acceptable freshness, reappraisal and authorization for the business operation. Do not grant payment permissions merely because boot was considered acceptable. Preserve scope and time limits in the result delivered to APS and the service owner.

Update firmware without losing access to secrets

An object protected by PCR policy can become unusable after a legitimate firmware change. Vendor approval of a package and enterprise approval of the new state are different relationships. In the case study, twenty of one hundred servers receive firmware B while policy accepts only A. Loss of unsealing is not repaired by editing the event log or assuming every signed update preserves earlier conditions. Pause expansion while validating the new state, authorized reference and recovery route. Before the window, identify which secrets depend on the TPM, who can authorize policy changes and which procedure restores service without exposing sensitive material. Test a representative canary, including boot, secret release and the business operation. Rollback is useful only if compatible and still permitted by the platform; revoked firmware or bootloaders can prevent that exit. Clearing the TPM is not a neutral operation either. It can affect access to keys and dependent data, so it requires inventory and confirmed recovery. Explicitly record what the lab did not establish: no sealing, unsealing, TPM clearing or actual firmware update occurred. The exercises guide preparation of an authorized test on appropriate hardware, including evidence the project team should request before expanding the change.

HSM: protecting material does not decide who may use it

An HSM can keep a key nonexportable while still performing operations requested by a compromised client retaining authorization. Separating export from use helps design response. The incident may require limiting credentials, operations and authorized applications in addition to assessing the key. Concrete attributes depend on product and tool; the consulted CloudHSM KMU reference is not a universal promise about every HSM. Policy should identify who creates, uses, administers, recovers and retires each key, with separation of duties when risk requires it. Availability also involves different contracts. Cluster redundancy does not replace rehearsed restoration, and backup existence does not establish that the application can resume work. Confirm users, access, required objects, cryptographic operations and recovery timings in an appropriate environment. If a supplier presents a FIPS claim, relate the actual module, version, environment and mode to the validation certificate and security policy. An approved algorithm name or successful signature test does not validate the entire product. This block's lab uses temporary software keys and executes no CloudHSM, quorum procedure, enterprise recovery or CMVP validation. Use its questions to prepare acceptance criteria for those mechanisms and to distinguish key-material protection from the service's complete operational assurance.

Define the hardware boundary and complete handover

A VM with a vTPM or an enclave with a favorable result does not automatically provide evidence about the entire data center. Identify the root supporting the evidence, measured components and dependencies on the hypervisor, provider or attestation service. A product name does not establish physical isolation or independence from all those components. Likewise, correctly identified code may still contain an authorization flaw. Approved references need review when a permitted version is found to no longer satisfy security requirements. Complete the lesson with an acceptance exercise: choose a machine class, describe the threat, identify prevention, detection and recovery controls, and assign evidence to each. Request positive cases, unauthorized changes, stale evidence and recovery after a legitimate update. Record who updates references, who responds to lost secret access and who may authorize exceptions. The two local runs of 77 checks establish fixture behavior; the model's accepted forgery prevents interpreting them as TPM evidence. The summary is to require trusted origin, current policy, known scope and rehearsed recovery for each assurance. Independent review and hardware testing remain necessary for enterprise use. This gives the project manager a concrete acceptance discussion while preserving the limits of the available practice.

IN PRACTICE

After a firmware update, a changed PCR can prevent unsealing even when the vendor signed the package.

Common pitfalls

Measurement as blocking; consistent log as approved state; nonce without authentication; nonexportable HSM key as business authorization; clearing TPM without recovery.

Related topics: Certificates and trust · Engineering and host controls · Resilience and dependencies

Take this idea with you

Each assurance needs a trusted origin, known scope, current policy and rehearsed recovery.

Create account

Reference: TPM 2.0 Library Part 1 Architecture · CAS-005 / SecurityX V5; objectives 3.0; launched 2024-12-17

CompTIA® and CASP+ are trademarks or registered trademarks of CompTIA, Inc. bigsavant.com is an independent preparation platform and is not affiliated with, associated with, sponsored, authorised or endorsed by CompTIA. Content and questions are original, are not official exam questions, and completing our tests does not award or guarantee any certification. Names are used only to identify the subject. All other trademarks belong to their respective owners.