TRUSTED PLATFORM MODULE PROTECTION FOR NON-VOLATILE MEMORY EXPRESS (NVME) RECOVERY

Information

  • Patent Application
  • 20220350615
  • Publication Number
    20220350615
  • Date Filed
    April 29, 2021
    3 years ago
  • Date Published
    November 03, 2022
    2 years ago
Abstract
An information handling system is configured to support first and second boot sequences, which invokes first and second bootloaders respectively. The bootloaders may be stored in an NVMe storage boot partition. Each bootloader may be associated with a corresponding encryption key generated by a trusted platform module, which may seal the first and second keys in accordance with one or more measurements taken during the respective boot sequences. The system determines whether a boot sequence in progress comprises is to invoke the first or second bootloader. The system then unseals the appropriate encryption key to access the appropriate bootloader. The first bootloader may be a host OS bootloader and the second bootloader may be for a recovery resource invoked when the host OS fails to load. The recovery resource may enables BIOS to connect to a remote store and download an image via a HTTP mechanism.
Description
TECHNICAL FIELD

The present disclosure relates to information handling systems and, more specifically, recovering a faulty information handling.


BACKGROUND

As the value and use of information continues to increase, individuals and businesses seek additional ways to process and store information. One option available to users is information handling systems. An information handling system generally processes, compiles, stores, and/or communicates information or data for business, personal, or other purposes thereby allowing users to take advantage of the value of the information. Because technology and information handling needs and requirements vary between different users or applications, information handling systems may also vary regarding what information is handled, how the information is handled, how much information is processed, stored, or communicated, and how quickly and efficiently the information may be processed, stored, or communicated. The variations in information handling systems allow for information handling systems to be general or configured for a specific user or specific use such as financial transaction processing, airline reservations, enterprise data storage, or global communications. In addition, information handling systems may include a variety of hardware and software components that may be configured to process, store, and communicate information and may include one or more computer systems, data storage systems, and networking systems.


When an information handling system is reset, the system typically executes firmware that performs a boot process to initialize various system components and interfaces, load an operating system, and perform various other actions to configure the system into a known and initial state. Historically, basic input/output system (BIOS) was the de facto standard for boot process firmware. More recently, firmware compliant with the unified extensible firmware interface (UEFI) specification has evolved to address various limitations inherent in BIOS.


A UEFI-compliant boot process may define a boot manager that checks the boot configuration and, based on its settings, executes the specified OS boot loader. However, if a system is unable to boot to the operating system after repeated attempts and a pre-boot system performance check detects no hardware issues, it may be desirable to provide a method for recovering the operating system.


SUMMARY

In accordance with teachings disclosed herein, common problems associated with conventional boot loaders and system recovery tools are addressed by methods and systems for booting a recovery resource from protected regions of a non-volatile memory express (NVMe) storage device.


Disclosed methods may define a protected region of an NVMe storage device as a boot partition that stores a bootloader for a recovery resource that enables BIOS to establish a network connection (e.g., via HTTP) to a remote store and download an image, such as a diagnostic OS image. An authentication key may be associated with the boot partition and used to ensure that operations attempting to write to the boot partition originate from an authorized entity. The authentication key may be implemented as a replay protected media block (RPMB) authentication key to detect unauthorized writes to the boot partition. However, because RPMB authentication keys do not support read protection, additional measures are necessary to protect certain information, including information used for establishing recovery tunnels to trusted servers.


In at least one embodiment, the write protection necessary to deter unauthorized access to boot partition code and the read protection necessary to deter discovery of boot partition data are both achieved with a trusted platform module and, more specifically, by encrypting recovery resource secrets and the RPMC authentication keys using one or more TPM keys. The TPM keys may be sealed to the measured state of the platform as indicated by the TPM's platform configuration registers (PCRs) at specified points in the boot sequence. In at least one embodiment, the TPM key(s) may be tied to the measured platform state at the point when the recovery resource is invoked. Measurements unique to the recovery resource may be sent to the TPM both before and after access to ensure that keys can only be utilized at the exact moment needed for the recovery resource. In at least one embodiment, one or both of the bootloaders is configured to validate values stored in one or more TPM PCRs as part of the bootloader execution flow.


Technical advantages of the present disclosure may be readily apparent to one skilled in the art from the figures, description and claims included herein. The objects and advantages of the embodiments will be realized and achieved at least by the elements, features, and combinations particularly pointed out in the claims.


It is to be understood that both the foregoing general description and the following detailed description are examples and explanatory and are not restrictive of the claims set forth in this disclosure.





BRIEF DESCRIPTION OF THE DRAWINGS

A more complete understanding of the present embodiments and advantages thereof may be acquired by referring to the following description taken in conjunction with the accompanying drawings, in which like reference numbers indicate like features, and wherein:



FIG. 1 is a block diagram of an information handling system in accordance with disclosed subject matter; and



FIG. 2 illustrates a secure method for invoking a resource recovery boot loader.





DETAILED DESCRIPTION

Exemplary embodiments and their advantages are best understood by reference to FIGS. 1-2, wherein like numbers are used to indicate like and corresponding parts unless expressly indicated otherwise.


For the purposes of this disclosure, an information handling system may include any instrumentality or aggregate of instrumentalities operable to compute, classify, process, transmit, receive, retrieve, originate, switch, store, display, manifest, detect, record, reproduce, handle, or utilize any form of information, intelligence, or data for business, scientific, control, entertainment, or other purposes. For example, an information handling system may be a personal computer, a personal digital assistant (PDA), a consumer electronic device, a network storage device, or any other suitable device and may vary in size, shape, performance, functionality, and price. The information handling system may include memory, one or more processing resources such as a central processing unit (“CPU”), microcontroller, or hardware or software control logic. Additional components of the information handling system may include one or more storage devices, one or more communications ports for communicating with external devices as well as various input/output (“I/O”) devices, such as a keyboard, a mouse, and a video display. The information handling system may also include one or more buses operable to transmit communication between the various hardware components.


Additionally, an information handling system may include firmware for controlling and/or communicating with, for example, hard drives, network circuitry, memory devices, I/O devices, and other peripheral devices. For example, the hypervisor and/or other components may comprise firmware. As used in this disclosure, firmware includes software embedded in an information handling system component used to perform predefined tasks. Firmware is commonly stored in non-volatile memory, or memory that does not lose stored data upon the loss of power. In certain embodiments, firmware associated with an information handling system component is stored in non-volatile memory that is accessible to one or more information handling system components. In the same or alternative embodiments, firmware associated with an information handling system component is stored in non-volatile memory that is dedicated to and comprises part of that component.


For the purposes of this disclosure, computer-readable media may include any instrumentality or aggregation of instrumentalities that may retain data and/or instructions for a period of time. Computer-readable media may include, without limitation, storage media such as a direct access storage device (e.g., a hard disk drive or floppy disk), a sequential access storage device (e.g., a tape disk drive), compact disk, CD-ROM, DVD, random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and/or flash memory; as well as communications media such as wires, optical fibers, microwaves, radio waves, and other electromagnetic and/or optical carriers; and/or any combination of the foregoing.


For the purposes of this disclosure, information handling resources may broadly refer to any component system, device or apparatus of an information handling system, including without limitation processors, service processors, basic input/output systems (BIOSs), buses, memories, I/O devices and/or interfaces, storage resources, network interfaces, motherboards, and/or any other components and/or elements of an information handling system.


In the following description, details are set forth by way of example to facilitate discussion of the disclosed subject matter. It should be apparent to a person of ordinary skill in the field, however, that the disclosed embodiments are exemplary and not exhaustive of all possible embodiments.


Throughout this disclosure, a hyphenated form of a reference numeral refers to a specific instance of an element and the un-hyphenated form of the reference numeral refers to the element generically. Thus, for example, “device 12-1” refers to an instance of a device class, which may be referred to collectively as “devices 12” and any one of which may be referred to generically as “a device 12”.


As used herein, when two or more elements are referred to as “coupled” to one another, such term indicates that such two or more elements are in electronic communication, mechanical communication, including thermal and fluidic communication, thermal, communication or mechanical communication, as applicable, whether connected indirectly or directly, with or without intervening elements.



FIG. 1 is a block diagram of an exemplary information handling system 100 (e.g., a desktop computer, laptop computer, tablet computer, server, Internet of Things (IoT) device, etc.) as it may be configured according to one embodiment of the present disclosure. As shown in FIG. 1, IHS 100 may generally include at least one central processing unit (CPU) 110 (e.g., a host processor), a system memory 120, a graphics processor unit (GPU) 130, a display device 140, a platform controller hub (PCH) 150, BIOS flash 154 containing BIOS firmware 155, a trusted platform module 156, a non-volatile memory express (NVMe) storage resource 160, a computer readable storage device 170, a network interface card (NIC) 180, and an embedded controller (EC) 190.


System memory 120 is coupled to CPU 110 and generally configured to store program instructions (or computer program code), which are executable by CPU 110. System memory 120 may be implemented using any suitable memory technology, including but not limited to, dynamic random access memory or any other suitable type of memory. Graphics processor unit (GPU) 130 is coupled to CPU 110 and configured to coordinate communication between the host processor and one or more display components of the IHS. In the embodiment shown in FIG. 1, GPU 130 is coupled to display device 140 and configured to provide visual images (e.g., a graphical user interface, messages and/or user prompts) to the user.


Platform controller hub (PCH) 150 is coupled to CPU 110 and configured to handle I/O operations for the IHS. As such, PCH 150 may include a variety of communication interfaces and ports for communicating with various system components, input/output (I/O) devices, expansion bus(es), and so forth. The PCH 150 illustrated in FIG. 1 interfaces with a serial peripheral interface (SPI) bus 152, to which a BIOS flash 154, containing BIOS firmware 155, and a trusted platform module 156 are coupled. TPM is a secure cryptoprocessor for securing system resources via cryptographic keys. TPM 156 may include a cryptographic processor that includes a random number generator, an asymmetric key generator, a secure hash generator, and a digital signature module. TPM may further include storage resources for storing various keys and platform configuration registers (PCRs).


PCH 150 is further coupled to an NVMe storage resource 160. NVMe storage resource 160 may include a NAND flash solid state drive (SSD) configured with a PCIe interface for coupling to a PCIe bus. The NVMe 160 illustrated in FIG. 1 has been configured with a boot partition 162. The boot partition 162 illustrated in FIG. 1 includes a pair of bootloader objects. The bootloader objects illustrated in FIG. 1 include a host OS bootloader 163-1 and a recovery resource bootloader 163-2.


In at least one embodiment, recovery resource bootloader 163-2 comprises a resource, such as the BIOSConnect resource from Dell Products, which enables a user to recover when the local host OS image is corrupted, replaced, or absent by enabling BIOS to connect to a backend store and to load an image via https method.


Storage device 170 may be any type of persistent, non-transitory computer readable storage device, including non-PCIe storage devices, such as one or more hard disk drives (HDDs) or solid-state drives (SSDs), and may be generally configured to store software and/or data. For example, computer readable storage device 170 may be configured to store an operating system (OS) 171 for the IHS, in addition to other software and/or firmware modules and user data. As known in the art, OS 171 may contain program instructions (or computer program code), which may be executed by CPU 110 to perform various tasks and functions for the information handling system and/or for the user.


NIC 180 enables IHS 100 to communicate with one or more remotely located systems and/or services 184 via an external network 182 using one or more communication protocols. Network 182 may be a local area network (LAN), wide area network (WAN), personal area network (PAN), or the like, and the connection to and/or between IHS 100 and network 182 may be wired, wireless or a combination thereof. For purposes of this discussion, network 182 is indicated as a single collective component for simplicity. However, it is appreciated that network 182 may comprise one or more direct connections to other remote systems and/or services, as well as a more complex set of interconnections as can exist within a wide area network, such as the Internet. NIC 180 may communicate data and signals to/from IHS 100 using any known communication protocol.


Embedded controller (EC) 190 is generally configured to boot the information handling system and perform other functions. EC 190 may generally include read only memory (ROM), random access memory (RAM) and a processing device (e.g., a controller, microcontroller, microprocessor, ASIC, etc.) for executing program instructions stored within its internal ROM and RAM. For example, EC 190 may be configured to execute program instructions (e.g., a boot block) stored within its internal ROM to initiate a boot process for the information handling system.


Referring now to FIG. 2, an exemplary boot sequence is represented in flow diagram format to illustrate features of disclosed subject matter. The boot sequence 200 illustrated in FIG. 2 includes one or more components of an industry standard UEFI BIOS boot sequence including a security (SEC) phase 202, a Pre-EFI initialization (PEI) phase 206, a driver execution environment (DXE) phase 208, and a boot device select (BDS) phase 212. One or more conventional BIOS runtime measurements 220 may be taken before, during, or after any of these stages using TPM 156 including one or more TPM platform configuration registers (PCRs) (not explicitly depicted).


Upon exiting BDS phase 212, the illustrated method determines (block 230) whether a recovery resource is needed. If no recovery resource is needed, the illustrated boot process 200 invokes BIOS 155 (FIG. 1) extends a measurement 232 of host OS bootloader 163-2 into TPM 156. If the measurement matches an expected previously determined value, the illustrated process 200 unseals (block 240) a key 242 for Host OS loader. The host OS loader key 242 unlocks an OS portion 162-1 of boot partition 162 to enable the host to access and execute the Host OS bootloader.


If it is determined at block 230 that a recovery resource is needed, the illustrated boot process 200 invokes BIOS 155 (FIG. 1) to extend a measurement 232 of recovery resource bootloader 163-2 into TPM 156, which alters the state of the TPM PCRs, precisely when recovery resource boot loader 162-2 is accessed. If the measured platform state matches a previously determined expected state, TPM 125 unseals a resource recovery bootloader key 160 that grants access to a resource recovery portion 162-1 of NVMe boot partition 162.


In this manner, TPM 125 releases different encryption keys depending on which boot sequence is measured and the recovery resource portion 152 of the TPM storage device 150 is protected from OS access.


This disclosure encompasses all changes, substitutions, variations, alterations, and modifications to the example embodiments herein that a person having ordinary skill in the art would comprehend. Similarly, where appropriate, the appended claims encompass all changes, substitutions, variations, alterations, and modifications to the example embodiments herein that a person having ordinary skill in the art would comprehend. Moreover, reference in the appended claims to an apparatus or system or a component of an apparatus or system being adapted to, arranged to, capable of, configured to, enabled to, operable to, or operative to perform a particular function encompasses that apparatus, system, or component, whether or not it or that particular function is activated, turned on, or unlocked, as long as that apparatus, system, or component is so adapted, arranged, capable, configured, enabled, operable, or operative.


All examples and conditional language recited herein are intended for pedagogical objects to aid the reader in understanding the disclosure and the concepts contributed by the inventor to furthering the art, and are construed as being without limitation to such specifically recited examples and conditions. Although embodiments of the present disclosure have been described in detail, it should be understood that various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the disclosure.

Claims
  • 1. A method, comprising: configuring an information handling system with a first boot sequence and a second boot sequence wherein the first boot sequence invokes a first bootloader stored in a first part of NVMe storage and the second boot sequence invokes a second bootloader stored in a second part of NVMe storage;associating the first boot sequence with a first encryption key and the second boot sequence with a second encryption key;sealing, in accordance with one or more measurements unique to the first boot sequence, the first encryption key in secure storage;sealing, in accordance with one or more measurements unique to the second boot sequence, the second encryption key in secure storage;responsive to detecting execution of a boot sequence, determining whether the boot sequence invokes the first bootloader or the second bootloader; andresponsive to determining that the boot sequence invokes the first bootloader, authenticating the first bootloader to unseal the first encryption key and access the first part of the NVMe storage and execute the first bootloader.responsive to determining that the boot sequence invokes the second bootloader, authenticating the second bootloader to unseal the second encryption key and access the second part of the NVMe storage and execute the second bootloader.
  • 2. The method of claim 1, wherein the first and second encryption keys are sealed and unsealed by a trusted platform module of the information handling system.
  • 3. The method of claim 1, wherein at least one of the first and second bootloaders is stored in an NVMe boot directory.
  • 4. The method of claim 1, wherein the first bootloader is associated with a host operating system and the second bootloader is associated with an operating system recovery resource.
  • 5. The method of claim 4, wherein an authentication key for the second bootloader is encrypted by the second encryption key and wherein the authentication key comprises a replay protected media block (RPMB) key.
  • 6. The method of claim 4, wherein the operating system recovery resource enables BIOS to establish a network connection with a remote store and load a remote image via the network connection.
  • 7. The method of claim 6, wherein confidential information required to establish the network connection is stored in the second part of the NVMe storage.
  • 8. An information handling system, comprising: a central processing unit; anda nontransitory computer readable medium including processor executable instructions that, when executed by the CPU cause the system to perform operations including: providing an information handling system with a first boot sequence and a second boot sequence wherein the first boot sequence invokes a first bootloader stored in a first part of NVMe storage and the second boot sequence invokes a second bootloader stored in a second part of NVMe storage;associating the first boot sequence with a first encryption key and the second boot sequence with a second encryption key;sealing, in accordance with one or more measurements unique to the first boot sequence, the first encryption key in secure storage;sealing, in accordance with one or more measurements unique to the second boot sequence, the second encryption key in secure storage;responsive to detecting execution of a boot sequence, determining whether the boot sequence invokes the first bootloader or the second bootloader; andresponsive to determining that the boot sequence invokes the first bootloader, authenticating the first bootloader to unseal the first encryption key and access the first part of the NVMe storage and execute the first bootloader.responsive to determining that the boot sequence invokes the second bootloader, authenticating the second bootloader to unseal the second encryption key and access the second part of the NVMe storage and execute the second bootloader.
  • 9. The information handling system of claim 8, wherein the first and second encryption keys are sealed and unsealed by a trusted platform module of the information handling system.
  • 10. The information handling system of claim 9, wherein at least one of the first and second bootloaders is configured wherein the bootloader, when executed, validates values stored in one or more platform configuration registers (PCRs) of the trusted platform module.
  • 11. The information handling system of claim 8, wherein at least one of the first and second bootloaders is stored in an NVMe boot directory.
  • 12. The information handling system of claim 8, wherein the first bootloader is associated with a host operating system and the second bootloader is associated with an operating system recovery resource.
  • 13. The information handling system of claim 12, wherein an authentication key for the second bootloader is encrypted by the second encryption key and wherein the authentication key comprises a replay protected media block (RPMB) key.
  • 14. The information handling system of claim 12, wherein the operating system recovery resource enables BIOS to establish a network connection with a remote store and load a remote image via the network connection.
  • 15. The information handling system of claim 14, wherein confidential information required to establish the network connection is stored in the second part of the NVMe storage.