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 installation.
- Proceed with the Generic test setup: OS preparation.
- Proceed with the Generic test setup: OS post installation steps.
- 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_KEYto enter the UEFI Setup Menu. - Enter the
Dasharo System Featuresmenu using the arrow keys and Enter. - Enter the
Dasharo Security Optionssubmenu. - Verify that the
Enable SMM BIOS write protectionoption is chosen - if not, pressSpaceand thenF10to save the changes. - If necessary - press
Yto confirm saving the changes. - Go back to the main menu using the
ESCkey. - Select the
Resetoption 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_KEYto enter the UEFI Setup Menu. - Enter the
Dasharo System Featuresmenu using the arrow keys and Enter. - Enter the
Dasharo Security Optionssubmenu. - Verify that the
Enable SMM BIOS write protectionoption is not chosen - if so, pressSpaceand thenF10to save the changes. - If necessary - press
Yto confirm saving the changes. - Go back to the main menu using the
ESCkey. - Select the
Resetoption 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!