# US 2024/0202318 A1 · Program file measurements for context-specific validation

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

- Number: US 2024/0202318 A1
- Document ID: US20240202318A1
- Status: Published application
- Kind: A1
- Application number: 18/067,945
- Filed: 2022-12-19
- Published: 2024-06-20
- Earliest claimed: 2022-12-19
- Assignees: Hewlett Packard Enterprise Development LP
- Applicants: Hewlett Packard Enterprise Development LP
- Inventors: Joao Claudio Ambrosi; Joaquim Gomes Da Costa Eulalio De Souza; Reinaldo Cézar de Morais Gomes; Marcela Galdino; Ramon Sousa Sarmento
- Web page: https://patentgrep.com/patent/US20240202318A1

## CPC

- G06F 21/54: by adding security routines or objects to programs
- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 21/64: Protecting data integrity, e.g. using checksums, certificates or signatures
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In some examples, during runtime of a virtual computing environment, a system intercepts a call for an invocation of a program file that relates to a program execution in the virtual computing environment, and obtains, for the program file prior to the invocation of the program file in response to the call, context information of the virtual computing environment. The context information includes an identifier of a program code image for the virtual computing environment. The system computes a measurement value based on the program file, and provides the measurement value and the context information of the virtual computing environment to an integrity checker to perform a context-specific validation of the program file.

## Claims

### Claim 1

A non-transitory machine-readable storage medium comprising instructions that upon execution cause a system to:
during runtime of a virtual computing environment:
intercept a call for an invocation of a program file that relates to a program execution in the virtual computing environment;
obtain, for the program file prior to the invocation of the program file in response to the call, context information of the virtual computing environment, the context information comprising an identifier of a program code image for the virtual computing environment;
compute a measurement value based on the program file; and
provide the measurement value and the context information of the virtual computing environment to an integrity checker to perform a context-specific validation of the program file.

### Claim 2 (depends on 1)

The non-transitory machine-readable storage medium of claim 1, wherein the context information obtained for the program file further comprises an identifier of the virtual computing environment.

### Claim 3 (depends on 1)

The non-transitory machine-readable storage medium of claim 1, wherein the context-specific validation of the program file employs a policy that is based on the identifier of the program code image.

### Claim 4 (depends on 3)

The non-transitory machine-readable storage medium of claim 3, wherein the context information further comprises information of an execution environment of the virtual computing environment, and the policy for the context-specific validation is further based on the information of the execution environment.

### Claim 5 (depends on 1)

The non-transitory machine-readable storage medium of claim 1, wherein the intercepting of the call is by a first entity in a kernel space of the system.

### Claim 6 (depends on 5)

The non-transitory machine-readable storage medium of claim 5, wherein the instructions upon execution cause the system to:
send, from the first entity in the kernel space to a second entity in a user space, a query for the identifier of the program code image; and
receive, at the first entity in the kernel space, the identifier of the program code image from the second entity in the user space.

### Claim 7 (depends on 1)

The non-transitory machine-readable storage medium of claim 1, wherein the measurement value based on the program file is a checksum based on the program file, and wherein the instructions upon execution cause the system to:
store the checksum in a record along with a command corresponding to the call for the invocation of the program file.

### Claim 8 (depends on 7)

The non-transitory machine-readable storage medium of claim 7, wherein the instructions upon execution cause the system to:
compute a record checksum based on the record that contains checksums for a plurality of program files called from the virtual computing environment; and
include the record checksum in a further record that associates the record checksum with the identifier of the program code image.

### Claim 9 (depends on 8)

The non-transitory machine-readable storage medium of claim 8, wherein the instructions upon execution cause the system to:
send the record and the further record to the integrity checker to perform the context-specific validation of the program file.

### Claim 10 (depends on 9)

The non-transitory machine-readable storage medium of claim 9, wherein the instructions upon execution cause the system to:
associate the further record with a register of a security processor; and
send a value of the register along with the further record to the integrity checker to perform the context-specific validation of the program file.

### Claim 11 (depends on 10)

The non-transitory machine-readable storage medium of claim 10, wherein the instructions upon execution cause the system to:
validate the further record using the value of the register of the security processor.

### Claim 12 (depends on 11)

The non-transitory machine-readable storage medium of claim 11, wherein the value of the register sent to the integrity checker is digitally signed by the security processor.

### Claim 13 (depends on 7)

The non-transitory machine-readable storage medium of claim 7, wherein the record is an aggregate record that contains checksums and identifiers of program code images for containers that are part of a specified partition.

### Claim 14 (depends on 1)

The non-transitory machine-readable storage medium of claim 1, wherein the virtual computing environment comprises a container, and the identifier of the program code image in the context information is a container image identifier.

### Claim 15

A computer comprising:
a security processor;
a virtual computing environment;
a hardware processor; and
a non-transitory storage medium comprising runtime protection instructions executable on the hardware processor to:
during runtime of the virtual computing environment:
intercept a call for an invocation of a program file that relates to a program execution in the virtual computing environment;
obtain, for the program file prior to the invocation of the program file in response to the call, context information of the virtual computing environment, the context information comprising an identifier of a program code image for the virtual computing environment;
compute a checksum based on the program file;
associate the checksum with a protection value of the security processor;
provide the checksum and the context information of the virtual computing environment to an integrity checker to perform a context-specific validation of the program file, prior to the invocation of the program file.

### Claim 16 (depends on 15)

The computer of claim 15, wherein the invocation of the program file is selected from among: executing the program file that includes program code, or accessing the program file.

### Claim 17 (depends on 15)

The computer of claim 15, wherein the runtime protection instructions are executable on the hardware processor to:
include the checksum in a first record;
compute a record checksum based on the first record;
include the record checksum and the identifier of the program code image in a second record; and
provide the first record, the second record, and the context information to the integrity checker.

### Claim 18 (depends on 17)

The computer of claim 17, wherein the runtime protection instructions are executable on the hardware processor to:
associate the checksum with the protection value of the security processor by associating the second record with the protection value.

### Claim 19

A method comprising:
during runtime of a container:
intercepting, by a runtime protection system according to a monitoring policy, a call for an invocation of a program file that relates to a program execution in the container, wherein the monitoring policy specifies that a call of a first type of program file is to be intercepted, and a call of a different second type of program file is not to be intercepted;
obtaining, by the runtime protection system for the program file prior to the invocation of the program file in response to the call, context information of the virtual computing environment, the context information comprising an identifier of a program code image for the virtual computing environment;
computing, by the runtime protection system, a checksum based on the program file;
associating, by the runtime protection system, the checksum with a protection value of a security processor; and
sending, from the runtime protection system, the checksum and the context information of the container to an integrity checker to perform a context-specific validation of the program file, prior to the invocation of the program file.

### Claim 20 (depends on 19)

The method of claim 19, wherein the checksum is a cryptographic hash value.
