Dasharo Security: Measured Boot support
MBO001.001 Measured Boot support (Ubuntu)
Test description
Measured Boot is a method for detecting changes to the firmware by storing hashes of each firmware component in the TPM PCR registers. If a PCR changes value across reboots, a change to the firmware has been made. This test aims to verify that Measured Boot is functional and that measurements are stored in the TPM.a.
Test configuration data
FIRMWARE
= DasharoOPERATING_SYSTEM
= Ubuntu
Test setup
- Proceed with the Generic test setup: firmware.
- Proceed with the Generic test setup: OS installer.
- Proceed with the Generic test setup: OS installation.
- Proceed with the Generic test setup: OS boot from disk.
- Download
cbmem
from the cloud to the DUT. - Disable Secure Boot.
Test steps
- Power on the DUT.
- Boot into the system.
- Log into the system by using the proper login and password.
- Open a terminal window and execute the following command:
sudo ./cbmem -c | grep -i PCR
Expected result
-
The output of the command should indicate that measurements of the coreboot components have been made.
Example output:
TPM: Extending digest for `VBOOT: boot mode` into PCR 0 TPM: Digest of `VBOOT: boot mode` to PCR 0 measured TPM: Extending digest for `VBOOT: GBB HWID` into PCR 1 TPM: Digest of `VBOOT: GBB HWID` to PCR 1 measured TPM: Extending digest for `FMAP: FMAP` into PCR 2 TPM: Digest of `FMAP: FMAP` to PCR 2 measured TPM: Extending digest for `CBFS: bootblock` into PCR 2 TPM: Digest of `CBFS: bootblock` to PCR 2 measured TPM: Extending digest for `CBFS: fallback/romstage` into PCR 2 TPM: Digest of `CBFS: fallback/romstage` to PCR 2 measured TPM: Extending digest for `CBFS: fspm.bin` into PCR 2 TPM: Digest of `CBFS: fspm.bin` to PCR 2 measured TPM: Extending digest for `CBFS: fallback/postcar` into PCR 2 TPM: Digest of `CBFS: fallback/postcar` to PCR 2 measured TPM: Extending digest for `CBFS: fallback/ramstage` into PCR 2 TPM: Digest of `CBFS: fallback/ramstage` to PCR 2 measured ...
-
The output shouldn't contain the following message:
TPM: Extending hash into PCR failed.