Secure Boot Key Management

DK 1 Reputation point
2021-04-15T06:29:26.203+00:00

I just want to understand what happens exactly when I choose the "Reset To Setup Mode" option in the Aptio Setup. It literally says "Delete all Secure boot key databases from NVRAM". Does it effectively mean I'll irrevocably lose all the keys that are stored in the MB TPM including the factory ones so that I'll have to resort to external sources like BIOS flash to get the default/factory keys?

Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,758 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Teemo Tang 11,341 Reputation points
    2021-04-16T02:11:05.13+00:00

    If you want to take full control of your computer's Secure Boot functionality, you can replace the keys with your own. The process to do so is difficult to describe because the tools to do this are not very user-friendly and some critical details vary from one computer to another.
    It's definitely easier to simply disable Secure Boot, but of course if you want the benefits of Secure Boot without using Microsoft's (or your computer manufacturer's) keys, replacing those keys is the way to go.
    Setup mode enables you to enter new Secure Boot variables. You shouldn't run perpetually in Setup mode. You might be able to get away with it, but it's not what you're supposed to do, so running that way in the long term is poorly-tested at best. Setup mode is intended to be used only while setting new Secure Boot variables. Ordinarily, Secure Boot is either on (with default or customized keys) or off (in which case the keys are irrelevant)

    Source:
    What happens if you delete all secure boot variables?
    https://superuser.com/questions/1012567/what-happens-if-you-delete-all-secure-boot-variables

    Also, you could consult the manufacturer support of your device for some ideas.

    -------------------------------------------------------------------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. DK 1 Reputation point
    2021-04-18T13:09:31.457+00:00

    Teemo Tang, thank you for being so readily responsive! But I asked a bit different question. Currently, I'm not interested in setting new custom keys in Secure Boot, like adding my own or something. No, my question was - and is - much simpler: what exactly does the "Reset To Setup Mode" BIOS option do to the factory keys? Does it wipe them entirely out from the NVRAM/TPM so there is no way to load the factory keys from the motherboard unless I flash the BIOS anew? OR does it just erase the currently installed keys with perfectly available possibility to then load the factory keys from the NVRAM/TPM in the Setup Mode?

    0 comments No comments

  3. Teemo Tang 11,341 Reputation points
    2021-04-22T02:18:20.377+00:00

    You are welcome.

    When secure boot is enabled, it is initially placed in Setup Mode, which allows a public key known as the Platform key (PK) to be written to the firmware. Once the key is written, secure boot enters User Mode, where only drivers and loaders signed with the platform key can be loaded by the firmware.

    Reset to setup mode option clearing the PK will set you back to Setup Mode from User Mode. However, while there's no key and your firmware is compromised, so is the process of setting the PK, then there's no point on enrolling a PK.

    90058-set.jpg

    -------------------------------------------------------------------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  4. DK 1 Reputation point
    2021-04-24T10:42:42.957+00:00

    Does this mean that "Reset to Setup Mode" option clears factory keys also? Or I will be able to load them from NVRAM after the reset?

    0 comments No comments