Dasharo Security: SMM BIOS write protection
Test cases common documentation
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.
SMM001.001 SMM BIOS write protection enabling (Ubuntu)
Test description
SMM BIOS write protection is the method to prevent a specific region of the
firmware from being flashed - when enabled allows only SMM code (the privileged
code installed by the firmware in the system memory) to write to BIOS flash.
This test aims to verify that, the SMM BIOS protection option is available in
the Dasharo Security Options
and, if the mechanism works correctly - during
the attempt of firmware flashing information about the SMM protection is
returned.
Test configuration data
FIRMWARE
= DasharoOPERATING_SYSTEM
= Ubuntu
Test setup
- Proceed with the Test cases common documentation section.
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
Enable SMM BIOS write protection
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 SMM protection is enabled.
Example output:
Enabling flash write... Warning: BIOS region SMM protection is enabled!
SMM002.001 SMM BIOS write protection disabling (Ubuntu)
Test description
SMM BIOS write protection is the method to prevent a specific region of the firmware from being flashed - when enabled allows only SMM code (the privileged code installed by the firmware in the system memory) to write to BIOS flash. This test aims to verify that, after disabling the mechanism, information about SMM protection is not returned any more.
Test configuration data
FIRMWARE
= DasharoOPERATING_SYSTEM
= Ubuntu
Test setup
- Proceed with the Test cases common documentation section.
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
Enable SMM BIOS write protection
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 SMM protection is enabled.
Example output with unwanted results:
Enabling flash write... Warning: BIOS region SMM protection is enabled!