# US 7,774,596 B2 · System and method for updating firmware in a secure manner

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

- Number: US 7,774,596 B2
- Document ID: US7774596B2
- Status: Granted
- Kind: B2
- Application number: 11/344,855
- Filed: 2006-02-01
- Published: 2006-08-03
- Granted: 2010-08-10
- Earliest claimed: 2005-02-02
- Assignees: Insyde Software Corp.
- Inventors: Rex A. Flynn
- Web page: https://patentgrep.com/patent/US7774596B2

## CPC

- G06F 8/66: {of program code stored in read-only memory [ROM]}
- G06F 9/4406: {Loading of operating system}
- G06F 12/1408: {by using cryptography (for digital transmission H04L9/00)}
- G06F 21/572: {Secure firmware programming, e.g. of basic input output system [BIOS]}
- G06F 21/575: {Secure boot}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A mechanism that allows firmware to be updated in a secure manner is discussed. Two attributes are used in the actual ROM to refer to a Virtual ROM module. The two attributes are a version attribute and a reference to a separate module that is capable of validating updates. The update process updates the message digest associated with the first Virtual ROM module and the version attribute associated with the first Virtual ROM module. The update process also produces a new copy of the corresponding file (that may be located on the local disk) that when hashed will “match” the new message digest.

## Claims

### Claim 1

A method for securely updating firmware in a computing device, comprising:
dividing a firmware image to create a plurality of virtual image modules, the plurality of virtual image modules stored in at least one location outside a ROM image located in the computing device;
providing an update validation procedure for validating an updated virtual image module during pre-boot, the update validation procedure identified by a unique identifier and including a decryption process;
including a reference for each of the plurality of virtual image modules in a build of firmware placed in the ROM image, each reference including a version identifier, a message digest and a unique identifier for an associated virtual image module, the reference also including a validator identifier identifying the update validation procedure;
providing an updated virtual image module that includes a version identifier;
using the update validation procedure identified by the validator identifier in a reference to validate the updated virtual image module during pre-boot; and
updating a reference contained in the ROM image to one of the plurality of virtual image modules to include a message digest of the updated virtual image module and the version identifier of the updated virtual image module following the validation of the updated virtual image module.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
generating a message digest for the updated virtual image module;
encrypting the message digest of the updated virtual image module with an encryption process that requires the decryption process contained in the update validation procedure to decrypt the encrypted message digest.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
decrypting the encrypted message digest using the decryption process contained in the update validation procedure, the decryption being performed as part of the validation of the updated virtual image module.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
comparing the decryption of the encrypted message digest with a new message digest generated by the update validation procedure in order to validate the updated virtual image module.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
generating a message digest for the updated virtual image module;
encrypting the message digest with a private key; and
decrypting the encrypted message digest with a public key associated with the private key, the public key used by the update validation procedure.

### Claim 6 (depends on 1)

The method of claim 1 wherein the update validation procedure compares the version identifier of one of the plurality of virtual image modules with the version identifier of the updated virtual image module to identify to the updated virtual image module as a new module.

### Claim 7 (depends on 1)

The method of claim 1 wherein the update validation procedure is stored as part of the ROM image.

### Claim 8 (depends on 1)

The method of claim 1 wherein the update validation procedure is stored as one of the plurality of virtual image modules.

### Claim 9 (depends on 1)

The method of claim 1 wherein the ROM image is stored in one of the group of ROM (Read-Only Memory), PROM (Programmable ROM), EPROM (Erasable PROM), EEPROM (Electrically Erasable PROM) and Flash memory.

### Claim 10 (depends on 1)

The method of claim 1 wherein the updated virtual image module is an EFI Framework firmware volume.

### Claim 11 (depends on 1)

The method of claim 1 wherein the message digest uses one of the group of the SHA-1 algorithm or the MD5 algorithm.

### Claim 12 (depends on 1)

The method of claim 1, further comprising:
generating a message digest for the updated virtual image module;
encrypting the message digest with a symmetric key; and
decrypting the encrypted message digest with the symmetric key, the symmetric key used by the update validation procedure.

### Claim 13

A system for securely updating firmware in a computing device, comprising:
a computing device, including:
an update validation procedure including a decryption process used in validating an updated virtual module during pre-boot;
Read Only Memory (ROM) holding a firmware ROM image that includes a reference to the update validation procedure and a reference for each of a plurality of virtual image modules, each reference including a version identifier, a message digest and a unique identifier for an associated virtual image module, and a validator identifier identifying the update validation procedure, the update validation procedure used to validate the authenticity of the updated virtual image module during pre-boot, the update validation procedure updating a reference contained in the ROM image to one of the plurality of virtual image modules to include a message digest of the updated virtual image module and the version identifier of the updated virtual image module following the validation of the updated virtual image module; and
memory for the computing device into which the firmware ROM image and update validation procedure are loaded; and
at least one storage location outside the ROM image that stores the plurality of virtual firmware image modules created during a build process.

### Claim 14 (depends on 13)

The system of claim 13 wherein the ROM image is stored in one of the group of ROM (Read-Only Memory), PROM (Programmable ROM), EPROM (Erasable PROM), EEPROM (Electrically Erasable PROM) and Flash memory.

### Claim 15 (depends on 13)

The system of claim 13 wherein the updated virtual image module is an EFI Framework firmware volume.

### Claim 16

A method for securely updating firmware in a computing device, comprising:
dividing a firmware image to create a plurality of virtual image modules, the plurality of virtual image modules stored in at least one location outside a ROM image located in the computing device;
providing an update validation procedure for validating an updated virtual image module during pre-boot, the update validation procedure identified by a unique identifier and including a decryption process;
including a reference for each of the plurality of virtual image modules in a build of firmware placed in the ROM image, the reference also including a validator identifier identifying the update validation procedure;
providing an updated virtual image module on a trusted server;
using the update validation procedure identified by the validator identifier in a reference to generate a secure tunnel between the computing device and the trusted server; and
downloading an identified updated virtual image module to the computing device using the tunnel:
validating the updated virtual image module; and
updating a reference contained in the ROM image to one of the plurality of virtual image modules to include a message digest of the updated virtual image module and the version identifier of the updated virtual image module following the validation of the updated virtual image module.

### Claim 17

A method for securely updating firmware in a computing device, comprising:
dividing a firmware image to create a virtual image module that is stored in at least one location outside a ROM image located in the computing device;
providing an update validation procedure for validating an updated virtual image module during pre-boot, the update validation procedure identified by a unique identifier and including a decryption process;
including a reference for the virtual image module in a build of firmware placed in the ROM image, the reference including a version identifier, a message digest and a unique identifier for the associated virtual image module, the reference also including a validator identifier identifying the update validation procedure;
providing an updated virtual image module that includes a version identifier; and
using the update validation procedure identified by the validator identifier in a reference to validate the updated virtual image module during pre-boot; and
updating a reference contained in the ROM image to one of the plurality of virtual image modules to include a message digest of the updated virtual image module and the version identifier of the updated virtual image module following the validation of the updated virtual image module.

### Claim 18

A computing device, comprising:
Read Only Memory (ROM) holding
a firmware ROM image, the ROM image including
a reference for each of a plurality of virtual image modules that are created by dividing a firmware image, the plurality of virtual image modules stored in at least one location outside the ROM image, each reference including a version identifier, a message digest and a unique identifier for an associated virtual image module, and a validator identifier identifying an update validation procedure; and
memory into which the ROM image and an update validation procedure are loaded, the update validation procedure used to validate an updated virtual image module that includes a version identifier during pre-boot, the update validation procedure identified by a unique identifier and including a decryption process, the update validation procedure further updating a reference contained in the ROM image to one of the plurality of virtual image modules to include a message digest of the updated virtual image module and the version identifier of the updated virtual image module following the validation of the updated virtual image module.

### Claim 19 (depends on 18)

The device of claim 18 wherein the update validation procedure compares the version identifier of one of the plurality of virtual image modules with the version identifier of the updated virtual image module to identify to the updated virtual image module as a new module.

### Claim 20 (depends on 18)

The device of claim 18 wherein the update validation procedure is stored as part of the ROM image.

### Claim 21 (depends on 18)

The device of claim 18 wherein the update validation procedure is stored as one of the plurality of virtual image modules.

### Claim 22 (depends on 18)

The device of claim 18 wherein the ROM image is stored in one of the group of ROM (Read-Only Memory), PROM (Programmable ROM), EPROM (Erasable PROM), EEPROM (Electrically Erasable PROM) and Flash memory.

### Claim 23 (depends on 18)

The device of claim 18 wherein the updated virtual image module is an EFI Framework firmware volume.
