# US 2017/0286686 A1 · Protection of secured boot secrets for operating system reboot

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0286686 A1
- Document ID: US20170286686A1
- Status: Published application
- Kind: A1
- Application number: 15/085,054
- Filed: 2016-03-30
- Published: 2017-10-05
- Earliest claimed: 2016-03-30
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Alain Gefflaut; Andrey Shedel
- Web page: https://patentgrep.com/patent/US20170286686A1

## CPC

- G06F 21/575: {Secure boot}
- G06F 9/4406: {Loading of operating system}
- G06F 9/441: {Multiboot arrangements, i.e. selecting an operating system to be loaded}
- G06F 9/54: Interprogram communication
- G06F 21/44: Program or device authentication
- H04L 9/3234: {involving additional secure or trusted devices, e.g. TPM, smartcard, USB or software token (network architectures or network communication protocols for supporting authentication of entities using an additional device in a packet data network H04L63/0853)}
- G06F 21/51: at application loading time, e.g. accepting, rejecting, starting or inhibiting executable software based on integrity or source reliability
- G06F 21/60: Protecting data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Protecting secured boot secrets while starting an operating system. Embodiments include starting a first operating system using a trusted computing base, protecting a portion of the system memory to prevent access to the portion of the system memory by the first operating system, and storing secured boot secrets in the protected portion of the system memory. Based at least on identifying that a second operating system is to be started to replace the first operating system, embodiments include configuring one or more memory data structures, including code of the second operating system, in the protected portion of the system memory. The protected portion of the system memory is unprotected, while mitigating attacks on the portion of system memory, and processor state is set to execute the code of the second operating system. The second operating system starts using the secured boot secrets stored in the portion of the system memory.

## Claims

### Claim 1

A method, implemented at a computer system that includes one or more processors and system memory, for protecting secured boot secrets while starting an operating system, the method comprising:
starting a first operating system in reliance on a trusted computing base (TCB), including obtaining one or more secured boot secrets from the TCB that are usable for attesting a security status of the first operating system;
protecting a portion of the system memory, including preventing access to the portion of the system memory by the first operating system;
storing the one or more secured boot secrets in the protected portion of the system memory;
identifying that a second operating system is to be started to replace the first operating system, without performing a full reboot of the computer system; and
based at least on identifying that the second operating system is to be started to replace the first operating system, performing at least:
configuring one or more memory data structures in the protected portion of the system memory, including loading code of the second operating system in the protected portion of the system memory for starting the second operating system;
unprotecting the portion of the system memory, while mitigating attacks on the portion of the system memory;
setting a state of the one or more processors to initiate execution of the code of the second operating system to start the second operating system, the second operating system using the one or more secured boot secrets obtained by the first operating system from the TCB and stored in the portion of the system memory for attesting a security status of the second operating system; and
re-protecting the portion of the system the memory, including preventing access to the portion of the system memory by the second operating system.

### Claim 2 (depends on 1)

The method of claim 1, wherein protecting the portion of the system memory compromises using a virtualization technology to establish a secured operating environment that is isolated from the first operating system, including using a hypervisor to establish a secure partition between the first operating system and the secured operating environment.

### Claim 3 (depends on 2)

The method of claim 2, wherein the secured operating environment executes a secured kernel that supports at least a subset of an application programming interface (API) of a kernel of the first operating system.

### Claim 4 (depends on 2)

The method of claim 2, wherein the first operating system access one or more services provided by the secured operating environment using one or more application programming interfaces (APIs) provided by the secured operating environment.

### Claim 5 (depends on 4)

The method of claim 4, wherein the first operating system uses the one or more APIs to store the one or more secured boot secrets in the protected portion of the system memory, and to configure the one or more memory data structures in the protected portion of the system memory.

### Claim 6 (depends on 1)

The method of claim 1, wherein configuring the one or more memory data structures in the protected portion of the system memory comprises identifying one or more of:
one or more first memory pages of the system memory corresponding to at least one process executing in the first operating system; or
one or more second memory pages of the system memory corresponding to memory of at least one virtual machine executing in the first operating system.

### Claim 7 (depends on 6)

The method of claim 6, wherein initiating execution of the code of the second operating system comprises at least one of:
allocating the one or more first memory pages to at least one process that executes in the second operating system; or
allocating the one or more second memory pages to at least one virtual machine that executes in the second operating system.

### Claim 8 (depends on 1)

The method of claim 1,
wherein configuring the one or more memory data structures in the protected portion of the system memory comprises configuring flags designating one or more first memory pages of the system memory as belonging to the first operating system and one or more second memory pages of the system memory as belonging to the protected portion of the system memory, and
wherein re-protecting the portion of the system the memory comprises using the flags to allocate the one or more first memory pages to the second operating system and using the flags to allocate the one or more second memory pages to the protected portion of the system memory.

### Claim 9 (depends on 1)

The method of claim 1, wherein configuring code for starting the second operating system in the protected portion of the system memory comprises configuring an operating system loader of the second operating system that relies on the one or more memory data structures.

### Claim 10 (depends on 1)

The method of claim 1, wherein mitigating attacks on the portion of the system memory comprises at least one of blocking direct memory accesses, blocking processor interrupts, or disabling a system management mode.

### Claim 11 (depends on 1)

The method of claim 1, wherein the TCB comprises a trusted platform module (TPM), and wherein at least one of the one or more secured boot secrets is obtained from the TPM.

### Claim 12 (depends on 1)

The method of claim 1, wherein the TCB comprises firmware, and wherein at least one of the one or more secured boot secrets is obtained from the firmware.

### Claim 13 (depends on 1)

The method of claim 1, wherein the second operating system is one of a different version of the first operation system or the same version of the first operating system.

### Claim 14

A computer system, comprising:
one or more processors;
system memory; and
one or more computer-readable media having stored thereon computer-executable instructions that are executable by the one or more processors to cause the computer system to protect secured boot secrets while starting an operating system, the computer-executable instructions including instructions that are executable to cause the computer system to perform at least the following:
start a first operating system in reliance on a trusted computing base (TCB), including obtaining one or more secured boot secrets from the TCB that are usable for attesting a security status of the first operating system;
protect a portion of the system memory, including preventing access to the portion of the system memory by the first operating system;
store the one or more secured boot secrets in the protected portion of the system memory;
identify that a second operating system is to be started to replace the first operating system, without performing a full reboot of the computer system; and
based at least on identifying that the second operating system is to be started to replace the first operating system, perform at least:
configure one or more memory data structures in the protected portion of the system memory, including loading code of the second operating system in the protected portion of the system memory for starting the second operating system;
unprotect the portion of the system memory, while mitigating attacks on the portion of the system memory;
set a state of the one or more processors to initiate execution of the code of the second operating system to start the second operating system, the second operating system using the one or more secured boot secrets obtained by the first operating system from the TCB and stored in the portion of the system memory for attesting a security status of the second operating system; and
re-protect the portion of the system the memory, including preventing access to the portion of the system memory by the second operating system.

### Claim 15 (depends on 14)

The computer system of claim 14, wherein protecting the portion of the system memory compromises using a virtualization technology to establish a secured operating environment that is isolated from the first operating system, including using a hypervisor to establish a secure partition between the first operating system and the secured operating environment.

### Claim 16 (depends on 14)

The computer system of claim 14, wherein configuring the one or more memory data structures in the protected portion of the system memory comprises identifying one or more of:
one or more first memory pages of the system memory corresponding to at least one process executing in the first operating system; or
one or more second memory pages of the system memory corresponding to memory of at least one virtual machine executing in the first operating system.

### Claim 17 (depends on 16)

The computer system of claim 16, wherein initiating execution of the code of the second operating system comprises at least one of:
allocating the one or more first memory pages to at least one process that executes in the second operating system; or
allocating the one or more second memory pages to at least one virtual machine that executes in the second operating system.

### Claim 18 (depends on 14)

The computer system of claim 14, wherein configuring code for starting the second operating system in the protected portion of the system memory comprises configuring an operating system loader of the second operating system that relies on the one or more memory data structures.

### Claim 19 (depends on 14)

The computer system of claim 14, wherein mitigating attacks on the portion of the system memory comprises at least one of blocking direct memory accesses, blocking processor interrupts, or disabling a system management mode.

### Claim 20

A computer program product comprising one or more hardware storage devices having stored thereon computer-executable instructions that are executable by one or more processors of a computer system to cause the computer system to protect secured boot secrets while starting an operating system, the computer-executable instructions including instructions that are executable to cause the computer system to perform at least the following:
start a first operating system in reliance on a trusted computing base (TCB), including obtaining one or more secured boot secrets from the TCB that are usable for attesting a security status of the first operating system;
protect a portion of system memory of the computer system, including preventing access to the portion of the system memory by the first operating system;
store the one or more secured boot secrets in the protected portion of the system memory;
identify that a second operating system is to be started to replace the first operating system, without performing a full reboot of the computer system; and
based at least on identifying that the second operating system is to be started to replace the first operating system, perform at least:
configure one or more memory data structures in the protected portion of the system memory, including loading code of the second operating system in the protected portion of the system memory for starting the second operating system;
unprotect the portion of the system memory, while mitigating attacks on the portion of the system memory;
set a state of the one or more processors to initiate execution of the code of the second operating system to start the second operating system, the second operating system using the one or more secured boot secrets obtained by the first operating system from the TCB and stored in the portion of the system memory for attesting a security status of the second operating system; and
re-protect the portion of the system the memory, including preventing access to the portion of the system memory by the second operating system.
