# US 2021/0064754 A1 · Trusted execution environment verification of a software package

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

- Number: US 2021/0064754 A1
- Document ID: US20210064754A1
- Status: Published application
- Kind: A1
- Application number: 16/551,964
- Filed: 2019-08-27
- Published: 2021-03-04
- Earliest claimed: 2019-08-27
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Michael H. M. Bursell
- Web page: https://patentgrep.com/patent/US20210064754A1

## CPC

- G06F 21/57: Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
- G06F 21/572: {Secure firmware programming, e.g. of basic input output system [BIOS]}
- G06F 8/61: Installation
- H04L 9/006: {involving public key infrastructure [PKI] trust models (network architecture or network communication protocol for supporting authentication of entities using certificates in a packet data network H04L63/0823)}
- H04L 9/0894: {Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage}
- H04L 9/321: {involving a third party or a trusted authority}
- H04L 9/3242: {involving keyed hash functions, e.g. message authentication codes [MACs], CBC-MAC or HMAC}
- H04L 9/3247: {involving digital signatures}
- G06F 2221/033: Test or assess software
- 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

Trusted execution environment verification of a software package. An operating system (OS) initiates a software package verification process in a trusted execution environment, the OS being part of an OS environment comprising a file system. It is determined that a first software package in a software repository is to be installed into the OS environment. The first software package is downloaded to a storage device. The OS sends, to the software package verification process, first location information that identifies a location of the first software package. The OS receives, from the software package verification process, information that indicates that the first software package on the storage device is trusted.

## Claims

### Claim 1

A method comprising:
initiating, by an operating system (OS) executing on a computing device comprising a processor device, a software package verification process in a trusted execution environment (TEE), the OS being part of an OS environment comprising a file system;
determining that a first software package in a software repository is to be installed into the OS environment;
downloading the first software package to a storage device;
sending, by the OS to the software package verification process, first location information that identifies a location of the first software package; and
receiving, from the software package verification process, information that indicates that the first software package on the storage device is trusted.

### Claim 2 (depends on 1)

The method of claim 1 further comprising:
in response to receiving the information that indicates that the first software package on the storage device is trusted, installing, by the OS, the first software package into the OS environment.

### Claim 3 (depends on 1)

The method of claim 1 further comprising prior to initiating the software package verification process in the TEE, downloading, by the OS via a network, the software package verification process from a software package verification source.

### Claim 4 (depends on 3)

The method of claim 3 wherein the software package verification process includes a digital signature, and further comprising:
obtaining, from a public key repository, a public key of an entity associated with the software package verification process; and
verifying, using the public key, that the digital signature was signed by the entity associated with the software package verification process.

### Claim 5 (depends on 1)

The method of claim 1 wherein determining that the first software package in the software repository is to be installed into the OS environment comprises receiving user input requesting that the first software package be installed into the OS environment.

### Claim 6 (depends on 1)

The method of claim 1 further comprising:
comparing, by the software package verification process, a calculated cryptographic hash value, which is based on the contents of the first software package, to a predetermined cryptographic hash value associated with the first software package;
determining that the calculated cryptographic hash value and the predetermined cryptographic hash value match; and
in response to determining that the calculated cryptographic hash value and the predetermined cryptographic hash value match, sending, to the OS, the information that indicates that the first software package on the storage device is trusted.

### Claim 7 (depends on 6)

The method of claim 6 further comprising receiving, by the software package verification process, the calculated cryptographic hash value from the OS.

### Claim 8 (depends on 6)

The method of claim 6 further comprising:
accessing, by the software package verification process, the first software package on the storage device; and
calculating, by the software package verification process, the calculated cryptographic hash value based on the contents of the first software package.

### Claim 9 (depends on 6)

The method of claim 6 further comprising obtaining, by the software package verification process, the predetermined cryptographic hash value from the software repository.

### Claim 10 (depends on 6)

The method of claim 6 further comprising obtaining, by the software package verification process, the predetermined cryptographic hash value from the first software package.

### Claim 11 (depends on 6)

The method of claim 6 wherein the first software package includes a digital signature, and further comprising:
obtaining, by the software package verification process, a public key of an entity associated with the first software package;
verifying, using the public key, that the digital signature was signed by the entity associated with the first software package; and
wherein in response to determining that the calculated cryptographic hash value and the predetermined cryptographic hash value match, sending, to the OS, the information that indicates that the first software package on the storage device is trusted further comprises:
in response to determining that the calculated cryptographic hash value and the predetermined cryptographic hash value match, and in response to verifying, using the public key, that the digital signature was signed by the entity associated with the first software package, sending, to the OS, the information that indicates that the first software package on the storage device is trusted.

### Claim 12 (depends on 1)

The method of claim 1 wherein sending, by the OS to the software package verification process, the first location information that identifies the location of the first software package comprises sending, by the OS to the software package verification process, the first location information that identifies the location of the first software package to be the software repository; and
wherein downloading the first software package to the storage device comprises downloading, by the software package verification process from the software repository, the first software package to the storage device.

### Claim 13 (depends on 1)

The method of claim 1 further comprising:
determining that a second software package in the software repository is to be installed into the OS environment;
downloading the second software package to the storage device;
sending, by the OS to the software package verification process, second location information that identifies a location of the second software package;
receiving, from the software package verification process, information that indicates that the second software package on the storage device is not to be trusted; and
in response to the information that indicates that the second software package on the storage device is not to be trusted, not installing the second software package into the OS environment.

### Claim 14

A computing device, comprising:
a memory; and
a processor device coupled to the memory to:
initiate, by an operating system (OS), a software package verification process in a trusted execution environment (TEE), the OS being part of an OS environment comprising a file system;
determine that a first software package in a software repository is to be installed into the OS environment;
download the first software package to a storage device;
send, by the OS to the software package verification process, first location information that identifies a location of the first software package; and
receive, from the software package verification process, information that indicates that the first software package on the storage device is trusted.

### Claim 15 (depends on 14)

The computing device of claim 14 wherein the processor device is further to:
in response to receiving the information that indicates that the first software package on the storage device is trusted, install, by the OS, the first software package into the OS environment.

### Claim 16 (depends on 14)

The computing device of claim 14 wherein the processor device is further to, prior to initiating the software package verification process in the TEE, download, by the OS via a network, the software package verification process from a software package verification source.

### Claim 17 (depends on 14)

The computing device of claim 14 wherein the processor device is further to:
compare, by the software package verification process, a calculated cryptographic hash value, which is based on the contents of the first software package, to a predetermined cryptographic hash value associated with the first software package;
determine that the calculated cryptographic hash value and the predetermined cryptographic hash value match; and
in response to determining that the calculated cryptographic hash value and the predetermined cryptographic hash value match, send, to the OS, the information that indicates that the first software package on the storage device is trusted.

### Claim 18

A computer program product stored on a non-transitory computer-readable storage medium and including instructions to cause a processor device to:
initiate, by an operating system (OS), a software package verification process in a trusted execution environment (TEE), the OS being part of an OS environment comprising a file system;
determine that a first software package in a software repository is to be installed into the OS environment;
download the first software package to a storage device;
send, by the OS to the software package verification process, first location information that identifies a location of the first software package; and
receive, from the software package verification process, information that indicates that the first software package on the storage device is trusted.

### Claim 19 (depends on 18)

The computer program product of claim 18 wherein the instructions further cause the processor device to:
in response to receiving the information that indicates that the first software package on the storage device is trusted, install, by the OS, the first software package into the OS environment.

### Claim 20 (depends on 18)

The computer program product of claim 18 wherein the instructions further cause the processor device to, prior to initiating the software package verification process in the TEE, download, by the OS via a network, the software package verification process from a software package verification source.
