Skip to content

Dasharo Security: Verified Boot support

Test cases

Common

Test setup

  1. Proceed with the Generic test setup: firmware
  2. Proceed with the Generic test setup: OS installer
  3. Proceed with the Generic test setup: OS installation
  4. Proceed with the Generic test setup: OS boot from disk
  5. Download cbmem and flashrom from https://cloud.3mdeb.com/index.php/s/zTqkJQdNtJDo5Nd to the DUT
  6. Disable Secure Boot

VBO001.001 Verified boot support (Ubuntu 20.04)

Test description

Verified Boot is a method of verifying that the firmware compents haven't been tampered with. It uses cryptographic signatures to determine whether the firmware comes from trusted source. This test aims to verify that verified boot is enabled and functional.

Test configuration data

  1. FIRMWARE = coreboot
  2. BOOT_MENU_KEY = F7

Test setup

  1. Proceed with the Common section.

Test steps

  1. Open a terminal window and execute the follwing command:
    sudo ./cbmem -c | grep VBOOT
    

Expected result

The output of the command should indicate that vboot is enabled and verstage has been entered:

VBOOT: Loading verstage.
TPM: Extending digest for VBOOT: boot mode into PCR 0
TPM: Extending digest for VBOOT: GBB HWID into PCR 1
VBOOT WORK  8. 0x76c05000 0x00014000
 PCR-0 2547cc736e951fa4919853c43ae890861a3b3264000000000000000000000000 SHA256 [VBOOT: boot mode]
 PCR-1 e3324765a25f8a59c7c20cc35c1c33a8ab384159d2b40a269246b0b4491cdf89 SHA256 [VBOOT: GBB HWID]

VBO002.001 Verified boot: Booting from Slot A (Ubuntu 20.04)

Test description

If the signatures for firmware stored in vboot Slot A are correct, vboot should proceed to boot from Slot A.

Test configuration data

  1. FIRMWARE = coreboot
  2. BOOT_MENU_KEY = F7

Test setup

  1. Proceed with the Common section.

Test steps

  1. Open a terminal window and execute the follwing command:
    sudo ./cbmem -c | grep "Slot A"
    

Expected result

The output of the command should indicate that vboot has chosen to boot from slot A:

Slot A is selected

VBO003.001 Verified boot: Booting from Recovery (Ubuntu 20.04)

Test description

If the signatures for firmware stored in vboot Slot A are incorrect, vboot should revert to booting from the recovery slot.

Test configuration data

  1. FIRMWARE = coreboot
  2. BOOT_MENU_KEY = F7

Test setup

  1. Proceed with the Common section.
  2. Obtain coreboot binary signed with wrong vboot keys

Test steps

  1. Flash coreboot signed with wrong vboot keys by executing the following command:

    sudo ./flashrom -p internal --fmap -i RW_SECTION_A -w [coreboot binary]
    
  2. Power off the DUT

  3. Power on the DUT

  4. Open a terminal window and execute the follwing command:

    sudo ./cbmem -c | grep -i recovery
    

Expected result

The output of the command should indicate that vboot has chosen to boot from the recovery slot:

VB2:vb2_check_recovery() Recovery reason from previous boot: 0x3 / 0x3
VB2:vb2_check_recovery() We have a recovery request: 0x3 / 0x0
Recovery requested (1009000e)