# US 2021/0288943 A1 · Virtual machine perfect forward secrecy

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

- Number: US 2021/0288943 A1
- Document ID: US20210288943A1
- Status: Published application
- Kind: A1
- Application number: 16/816,467
- Filed: 2020-03-12
- Published: 2021-09-16
- Earliest claimed: 2020-03-12
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Matthew Green; Narayana Aditya Madineni; Michael W. Gray; Leigh S. McLean
- Web page: https://patentgrep.com/patent/US20210288943A1

## CPC

- G06F 21/78: to assure secure storage of data (address-based protection against unauthorised use of memory G06F12/14; record carriers for use with machines and with at least a part designed to carry digital markings G06K19/00)
- H04L 63/0428: {wherein the data content is protected, e.g. by encrypting or encapsulating the payload}
- G06F 3/0623: {in relation to content}
- G06F 3/0631: {by allocating resources to storage systems}
- G06F 3/0652: {Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket}
- G06F 3/0673: {Single storage device}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 11/301: {where the computing system is a virtual computing platform, e.g. logically partitioned systems (virtual machines G06F9/45533; logical partitioning of resources G06F9/5077)}
- G06F 11/3055: {Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available (error or fault processing without redundancy G06F11/0703; error detection or correction by redundancy in data representation G06F11/08; error detection or correction of the data by redundancy in operations G06F11/14; error detection or correction by redundancy in hardware G06F11/16)}
- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F 21/54: by adding security routines or objects to programs
- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- H04L 9/0861: {Generation of secret information including derivation or calculation of cryptographic keys or passwords}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2009/45587: {Isolation or security of virtual machine instances}
- 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

Provided is a method, a computer program product, and a system for providing perfect forward secrecy in virtual machines. The method includes receiving a secure memory allocation function from an application, including a connection secret to be stored in memory. The method further includes allocating memory for the connection secret according to the memory size parameter and storing an entry relating to the connection secret in a secure database. The memory information includes a memory location and a memory size of the memory. The method also includes monitoring an operation state relating to the virtual machine. The method further includes receiving, from the application, a secure deallocation function relating to the connection secret and retrieving the memory information from the secure database. The method also includes deleting the connection from the memory and sanitizing the memory location logged by the memory information.

## Claims

### Claim 1

A computer system for providing perfect forward secrecy in a virtual machine, the system comprising:
a data processing component;
a physical memory; and
local data storage having stored thereon computer executable program code, which when executed by the data processing component causes the data processing component to:
receive, from an application operating within a virtual machine, a secure memory allocation function for a connection secret, wherein the secure memory allocation function includes a memory size parameter;
allocate memory for the connection secret according to the memory size parameter, wherein the memory includes a memory location and a memory size;
transmit the memory location and the memory size to a virtual machine host to be stored as an entry in a secure database;
store the entry in the secure database; and
monitor an operation state relating to the virtual machine.

### Claim 2 (depends on 1)

The computer system of claim 1, further comprising:
receive, from the application, a secure deallocation function relating to the connection secret;
retrieve the entry from the secure database;
deallocate the memory by overwriting the memory location; and
sanitize the memory location indicated by the entry.

### Claim 3 (depends on 2)

The computer system of claim 2, wherein the sanitize comprises overwriting the memory location with random data at least once.

### Claim 4 (depends on 1)

The computer system of claim 1, further comprising:
receive, from the application, a secure reallocation function containing a new memory size for the memory;
resize the memory into the new memory size provided by secure reallocation function;
transmit a new memory location and the new memory size to the virtual machine host to update the entry in the secure database;
sanitize the memory location; and
update the entry relating to the memory stored in the secure database with the new memory location and the new memory size.

### Claim 5 (depends on 1)

The computer system of claim 1, wherein the connection secrets include a session key relating to a secure connection between the application and a server.

### Claim 6 (depends on 1)

The computer system of claim 1, wherein the secure memory allocation function includes a number of memory blocks parameter.

### Claim 7 (depends on 1)

The computer system of claim 1, further comprising:
receive a notice indicating a change to the operation state of the virtual machine;
determine the operation state of the virtual machine;
retrieve the entry from the secure database relating to the virtual machine; and
sanitize, based on the operation state of the virtual machine, the memory location indicated by the entry.

### Claim 8 (depends on 7)

The computer system of claim 7, further comprising:
determine the memory, including the connection secret, is stored in storage;
locate a storage location within the storage storing the connection secret; and
sanitize the storage location.

### Claim 9

A computer-implemented method for providing perfect forward secrecy in a virtual machine, the computer-implemented method comprising:
receiving, from an application operating within a virtual machine, a secure memory allocation function for a connection secret, wherein the secure memory allocation function includes a memory size parameter;
allocating memory for the connection secret according to the memory size parameter, wherein the memory includes a memory location and a memory size;
transmitting the memory location and the memory size to a virtual machine host to be stored as an entry in a secure database;
storing the entry in the secure database; and
monitoring an operation state relating to the virtual machine.

### Claim 10 (depends on 9)

The computer-implemented method of claim 9, further comprising:
receiving, from the application, a secure deallocation function relating to the connection secret;
retrieving the entry from the secure database;
deallocating the memory by overwriting the memory location; and
sanitizing the physical memory location indicated by the entry.

### Claim 11 (depends on 10)

The computer-implemented method of claim 10, wherein sanitizing comprises overwriting the memory location with random data at least once.

### Claim 12 (depends on 9)

The computer-implemented method of claim 9, further comprising:
receiving, from the application, a secure reallocation function containing a new memory size for the memory;
resizing the memory into the new memory size provided by secure reallocation function;
transmitting a new memory location and the new memory size to the virtual machine host to update the entry in the secure database;
sanitizing the memory location; and
updating the entry relating to the memory stored in the secure database with the new memory location and the new memory size.

### Claim 13 (depends on 9)

The computer-implemented method of claim 9, wherein the connection secrets include a session key relating to a secure connection between the application and a server.

### Claim 14 (depends on 9)

The computer-implemented method of claim 9, wherein the secure memory allocation function includes a number of memory blocks parameter.

### Claim 15 (depends on 9)

The computer-implemented method of claim 9, further comprising:
receiving a notice indicating a change to the operation state of the virtual machine;
determining the operation state of the virtual machine;
retrieving the entry from the secure database relating to the virtual machine; and
sanitizing, based on the operation state of the virtual machine, the memory location indicated by the entry.

### Claim 16 (depends on 9)

The computer-implemented method of claim 9, further comprising:
determining the memory, including the connection secret, is stored in storage;
locating a storage location within the storage storing the connection secret; and
sanitizing the storage location.

### Claim 17

A non-transitory computer-readable storage medium having stored thereon instruction for controlling a computer system to:
receiving, from an application operating within a virtual machine, a secure memory allocation function for a connection secret, wherein the secure memory allocation function includes a memory size parameter;
allocating memory for the connection secret according to the memory size parameter, wherein the memory includes a memory location and a memory size;
transmitting the memory location and the memory size to a virtual machine host to be stored as an entry in a secure database;
storing the entry in the secure database; and
monitoring an operation state relating to the virtual machine.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, further comprising:
receiving, from the application, a secure deallocation function relating to the connection secret;
retrieving the entry from the secure database;
deallocating the memory by overwriting the memory location; and
sanitizing the physical memory location indicated by the entry.

### Claim 19 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, further comprising:
receiving, from the application, a secure reallocation function containing a new memory size for the memory;
resizing the memory into the new memory size provided by secure reallocation function;
transmitting a new memory location and the new memory size to the virtual machine host to update the entry in the secure database;
sanitizing the memory location; and
updating the entry relating to the memory stored in the secure database with the new memory location and the new memory size.

### Claim 20 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, further comprising:
receiving a notice indicating a change to the operation state of the virtual machine;
determining the operation state of the virtual machine;
retrieving the entry from the secure database relating to the virtual machine; and
sanitizing, based on the operation state of the virtual machine, the memory location indicated by the entry.
