# US 2021/0256132 A1 · System and method for securing firmware function calls using session-based encryption

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

- Number: US 2021/0256132 A1
- Document ID: US20210256132A1
- Status: Published application
- Kind: A1
- Application number: 17/176,273
- Filed: 2021-02-16
- Published: 2021-08-19
- Earliest claimed: 2020-02-13
- Assignees: Insyde Software Corp.
- Applicants: Insyde Software Corp.
- Inventors: Timothy Andrew Lewis
- Web page: https://patentgrep.com/patent/US20210256132A1

## CPC

- G06F 21/44: Program or device authentication
- G06F 21/572: {Secure firmware programming, e.g. of basic input output system [BIOS]}
- G06F 21/45: Structures or tools for the administration of authentication
- G06F 21/52: during program execution, e.g. stack integrity {; Preventing unwanted data erasure; Buffer overflow}
- G06F 21/54: by adding security routines or objects to programs
- G06F 21/554: {involving event detection and direct action}
- G06F 21/602: {Providing cryptographic facilities or services}
- G06F 21/107: {License processing; Key processing}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods for securing firmware function calls are discussed. More particularly, mechanisms for reducing the chance of tampering and information disclosure attacks against firmware function calls implemented in SMM/MM are described. Data may be passed to and from a calling entity to platform firmware via a communication channel where both the data and the means of decrypting the data are protected from potential snooping OS applications, drivers or DMA-enabled hardware devices.

## Claims

### Claim 1

A non-transitory medium holding executable instructions for securing firmware function calls using session-based security, the instructions when executed on at least one computing platform equipped with platform firmware and at least one processor causing the computing platform to:
receive with the platform firmware a request to establish a session between a calling entity and the platform firmware;
receive with the platform firmware an encrypted password for the session from the calling entity, the password supplied by a user to the calling entity and encrypted with a symmetric encryption key generated from the password, a copy of the password previously stored with the firmware;
decrypt the received encrypted password with the platform firmware using a copy of the symmetric encryption key generated from the copy of the password previously stored with the firmware to verify the password; and
perform one or more requested firmware services during the session following verification of the password, the calling entity and platform firmware exchanging firmware function call parameters and data related to the requested firmware services, the calling entity and the platform firmware respectively encrypting and decrypting the firmware function call parameters and data using the symmetric encryption key.

### Claim 2 (depends on 1)

The medium of claim 1 wherein the instructions when executed further cause the computing platform to:
return a session token to the calling entity in response to the request to establish the session,
wherein the encrypted password received by the platform firmware is salted with the session token and the platform firmware verifies the session token in addition to verifying the password.

### Claim 3 (depends on 2)

The medium of claim 2 wherein the session token is updated and encrypted with each return of data by the platform firmware to the calling entity and the updated session token is included in the next request to the platform firmware.

### Claim 4 (depends on 1)

The medium of claim 1 wherein the firmware function call parameters and data are exchanged via one or more communication buffers.

### Claim 5 (depends on 1)

The medium of claim 1 wherein the symmetric encryption key is generated, used or both, within a secure enclave created by a Central Processing Unit (CPU) in the computing platform.

### Claim 6

A non-transitory medium holding executable instructions for securing firmware function calls, the instructions when executed on at least one computing platform equipped with platform firmware and at least one processor, causing the computing platform to:
receive with the platform firmware an initial request for firmware services from a calling entity;
provide from the platform firmware the calling entity with a public half of an asymmetric key pair, the private half of the asymmetric key pair also known to the platform firmware;
receive with the platform firmware an encrypted copy of a randomly generated symmetric key from the calling entity, the randomly generated symmetric key encrypted using the public half of the asymmetric key pair;
decrypt the copy of the randomly generated symmetric key using the private half of the asymmetric key pair; and
perform requested firmware services, the calling entity and platform firmware exchanging firmware function call parameters and data related to the requested firmware services, the calling entity and the platform firmware respectively encrypting and decrypting the firmware function call parameters and data using the randomly generated symmetric key or the copy of the randomly generated symmetric key.

### Claim 7 (depends on 6)

The medium of claim 6 wherein the initial request for firmware services includes a request to establish a session between the calling entity and the platform firmware.

### Claim 8 (depends on 7)

The medium of claim 7 wherein the requested firmware services are performed within a session established following the initial request.

### Claim 9 (depends on 6)

The medium of claim 6 wherein the randomly generated symmetric key is generated, used or both, within a secure enclave created by a Central Processing Unit (CPU) in the computing platform.

### Claim 10

A computing platform-implemented method for securing firmware function calls using session-based security, the computing platform equipped with platform firmware and at least one processor, the method comprising:
receiving with the platform firmware a request to establish a session between a calling entity and the platform firmware;
receiving with the platform firmware an encrypted password for the session from the calling entity, the password supplied by a user to the calling entity and encrypted with a symmetric encryption key generated from the password, a copy of the password previously stored with the firmware;
decrypting the received encrypted password with the platform firmware using a copy of the symmetric encryption key generated from the copy of the password previously stored with the firmware to verify the password; and
performing one or more requested firmware services during the session following verification of the password, the calling entity and platform firmware exchanging firmware function call parameters and data related to the requested firmware services, the calling entity and the platform firmware respectively encrypting and decrypting the firmware function call parameters and data using the symmetric encryption key or the copy of the symmetric key.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
returning a session token to the calling entity in response to the request to establish the session,
wherein the encrypted password received by the platform firmware is salted with the session token and the platform firmware verifies the session token in addition to verifying the password.

### Claim 12 (depends on 11)

The method of claim 11 wherein the session token is updated and encrypted with every return of data by the platform firmware to the calling entity and the updated session token is included in the next request to the platform firmware.

### Claim 13 (depends on 10)

The method of claim 10 wherein the firmware function call parameters and data are exchanged via one or more communication buffers.

### Claim 14 (depends on 10)

The method of claim 10 wherein the symmetric key is generated, used or both, within a secure enclave created by a Central Processing Unit (CPU) in the computing platform.

### Claim 15

A computing platform implemented method for securing firmware function calls, the computing platform equipped with platform firmware and at least one processor, the method comprising:
receiving with the platform firmware an initial request for firmware services from a calling entity;
providing from the platform firmware the calling entity with a public half of an asymmetric key pair, the private half of the asymmetric key pair also known to the platform firmware;
receiving with the platform firmware an encrypted copy of a randomly generated symmetric key from the calling entity, the randomly generated symmetric key encrypted using the public half of the asymmetric key pair;
decrypting the encrypted copy of the randomly generated symmetric key using the private half of the asymmetric key pair; and
performing requested firmware services, the calling entity and platform firmware exchanging firmware function call parameters and data related to the requested firmware services, the calling entity and the platform firmware respectively encrypting and decrypting the firmware function call parameters and data using the randomly generated symmetric key or the copy of the randomly generated symmetric key.

### Claim 16 (depends on 15)

The method of claim 15 wherein the initial request for firmware services includes a request to establish a session between the calling entity and the platform firmware.

### Claim 17 (depends on 16)

The method of claim 16 wherein the requested firmware services are performed within a session established following the initial request.

### Claim 18 (depends on 15)

The method of claim 15 wherein the randomly generated symmetric key is generated, used or both, within a secure enclave created by a Central Processing Unit (CPU) in the computing platform.

### Claim 19

A computing platform configured to provide session-based security, comprising:
one or more processors;
a non-volatile storage holding platform firmware, the platform firmware when executed:
receiving a request to establish a session between a calling entity and the platform firmware;
receiving an encrypted password for the session from the calling entity, the password supplied by a user to the calling entity and encrypted with a symmetric encryption key generated from the password, a copy of the password previously stored with the platform firmware;
decrypting the received encrypted password using a copy the symmetric encryption key generated from the copy of the password previously stored with the firmware to verify the password; and
performing one or more requested firmware services during the session following verification of the password, the calling entity and platform firmware exchanging firmware function call parameters and data related to the requested firmware services, the calling entity and the platform firmware respectively encrypting and decrypting the firmware function call parameters and data using the symmetric encryption key.

### Claim 20 (depends on 19)

The computing platform of claim 19, further comprising:
a Central Processing Unit (CPU) configured to create a private region of memory within which the symmetric key may be generated, used or both.
