Dasharo Security: BIOS lock support
BLS001.001 BIOS lock support (Ubuntu)
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
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.
- Disable Secure Boot.
Test steps
- Power on the DUT.
- While the DUT is booting, hold the
BIOS_SETUP_KEY
to enter the UEFI Setup Menu. - Enter the
Dasharo System Features
menu using the arrow keys and Enter. - Enter the
Dasharo Security Options
submenu. - Verify that the
Lock the BIOS boot medium
option is chosen - if not, pressSpace
and thenF10
to save the changes. - If necessary - press
Y
to confirm saving the changes. - Go back to the main menu using the
ESC
key. - Select the
Reset
option to apply the settings and reboot. - Boot into the system.
- Log into the system by using the proper login and password.
-
Execute the following command in the terminal to check platform flashing conditions:
flashrom -p internal
-
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)
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
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.
- Disable Secure Boot.
- Obtain any other binary (e.g. vendor firmware or older Dasharo firmware).
Test steps
- Power on the DUT.
- While the DUT is booting, hold the
BIOS_SETUP_KEY
to enter the UEFI Setup Menu. - Enter the
Dasharo System Features
menu using the arrow keys and Enter. - Enter the
Dasharo Security Options
submenu. - Verify that the
Lock the BIOS boot medium
option is not chosen - if so, pressSpace
and thenF10
to save the changes. - If necessary - press
Y
to confirm saving the changes. - Go back to the main menu using the
ESC
key. - Select the
Reset
option to apply the settings and reboot. - Boot into the system.
- Log into the system by using the proper login and password.
-
Execute the following command in the terminal to check platform flashing conditions:
flashrom -p internal
-
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.