Skip to content

Dasharo Security: BIOS lock support

BLS001.001 BIOS lock support (Ubuntu 22.04)

Test description

BIOS lock is a method to prevent a specific region of the firmware from being flashed. This test aims to verify that, after turning on the mechanism, the BIOS region should be correctly recognized during attempt to overwrite it by using flashrom tool.

Test configuration data

  1. FIRMWARE = Dasharo
  2. OPERATING_SYSTEM = Ubuntu 22.04

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. Disable Secure Boot.
  6. Obtain any other binary (e.g. vendor firmware or older Dasharo firmware).

Test steps

  1. Power on the DUT.
  2. While the DUT is booting, hold the BIOS_SETUP_KEY to enter the UEFI Setup Menu.
  3. Enter the Dasharo System Features menu using the arrow keys and Enter.
  4. Enter the Dasharo Security Options submenu.
  5. Verify that the Lock the BIOS boot medium option is chosen - if not, press Space and then F10 to save the changes.
  6. If necessary - press Y to confirm saving the changes.
  7. Go back to the main menu using the ESC key.
  8. Select the Reset option to apply the settings and reboot.
  9. Boot into the system.
  10. Log into the system by using the proper login and password.
  11. Try to flash the firmware by using the internal programmer and flashrom tool. The following command should be used:

    flashrom -p internal -w [path-to-binary] --ifd -i bios
    
  12. Note the result.

Expected result

The output of the flashing command should contain the information, that the BIOS region is read-only.

Example output:

SPI Configuration is locked down.
PR0: Warning: 0x00c00000-0x00ffffff is read-only.
At least some flash regions are write protected. For write operations,
you should use a flash layout and include only writable regions. See
manpage for more details.

BLS002.001 BIOS lock support deactivation (Ubuntu 22.04)

Test description

BIOS lock is a method to prevent a specific region of the firmware from being flashed. This test aims to verify that, after turning off the mechanism, the BIOS region overwriting operation is available again.

Test configuration data

  1. FIRMWARE = Dasharo
  2. OPERATING_SYSTEM = Ubuntu 22.04

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. Disable Secure Boot.
  6. Obtain any other binary (e.g. vendor firmware or older Dasharo firmware).

Test steps

  1. Power on the DUT.
  2. While the DUT is booting, hold the BIOS_SETUP_KEY to enter the UEFI Setup Menu.
  3. Enter the Dasharo System Features menu using the arrow keys and Enter.
  4. Enter the Dasharo Security Options submenu.
  5. Verify that the Lock the BIOS boot medium option is not chosen - if so, press Space and then F10 to save the changes.
  6. If necessary - press Y to confirm saving the changes.
  7. Go back to the main menu using the ESC key.
  8. Select the Reset option to apply the settings and reboot.
  9. Boot into the system.
  10. Log into the system by using the proper login and password.
  11. Try to flash the firmware by using the internal programmer and flashrom tool. The following command should be used:

    flashrom -p internal -w [path-to-binary] --ifd -i bios
    
  12. Note the result.

Expected result

The output of the flashing command should not contain the information, that the BIOS region is read-only.

Example output with unwanted results:

SPI Configuration is locked down.
PR0: Warning: 0x00c00000-0x00ffffff is read-only.
At least some flash regions are write protected. For write operations,
you should use a flash layout and include only writable regions. See
manpage for more details.