# US 2021/0279353 A1 · Secure in-memory database in container

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

- Number: US 2021/0279353 A1
- Document ID: US20210279353A1
- Status: Published application
- Kind: A1
- Application number: 16/810,646
- Filed: 2020-03-05
- Published: 2021-09-09
- Earliest claimed: 2020-03-05
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Long Du
- Web page: https://patentgrep.com/patent/US20210279353A1

## CPC

- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- G06F 12/1425: {the protection being physical, e.g. cell, word, block}
- G06F 16/1734: {Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs}
- G06F 21/121: {Restricting unauthorised execution of programs}
- 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/604: {Tools and structures for managing or administering access control systems}
- G06F 21/62: Protecting access to data via a platform, e.g. using keys or access control rules
- G06F 21/6281: {at program execution time, where the protection is within the operating system}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In an example embodiment, a hardware mechanism for protecting user-level software from privileged system software is leveraged to protect in-memory databases in container implementations in a cloud. This hardware mechanism takes the form of an enclave. An enclave is a portion of a CPU that shields application code and data from accesses by other software, including higher-privileged software. Memory pages belonging to an enclave reside in the enclave page cache (EPC), which cannot be accessed by code outside of the enclave. This helps ensure that (1) applications built on top of in-memory database are securely trusted, (2) and a trusted path architecture is provided for enclaves allowing in-memory databases to run securely on top of untrusted cloud platform.

## Claims

### Claim 1

A system comprising:
at least one hardware processor; and
a computer-readable medium storing instructions that, when executed by the at least one hardware processor, cause the at least one hardware processor to perform operations comprising:
storing an in-memory database management application inside of an enclave inside of a first container in a container-based cloud service, wherein the enclave utilizes central processing unit (CPU)-specific software instructions to shield data from software outside the enclave;
storing an instance of an in-memory database inside of a second container but outside of an enclave inside the second container;
storing sensitive data from the in-memory database inside the enclave inside the second container;
receiving, from one or more clients, a command necessitating access to the in-memory database; and
passing the command to the application stored inside the enclave in the first container, causing the application to issue a command to access the in-memory database in the second container.

### Claim 2 (depends on 1)

The system of claim 1, wherein the application includes application code, one or more application-specific libraries, and a sham library, the sham library including procedures to relay library calls to a host library stored in the first container but outside of the enclave inside the first container.

### Claim 3 (depends on 1)

The system of claim 1, wherein the sensitive data includes data generated from data in the in-memory database.

### Claim 4 (depends on 3)

The system of claim 3, wherein the sensitive data includes access logs for the in-memory database.

### Claim 5 (depends on 1)

The system of claim 1, wherein the enclave in the second container and the enclave in the first container are the same enclave.

### Claim 6 (depends on 1)

The system of claim 1, wherein the first container and the second container support a library interface.

### Claim 7 (depends on 1)

The system of claim 1, wherein enclave code and data reside in an enclave page cache, wherein the enclave page cache is a region of protected physical memory guarded by CPU access controls.

### Claim 8

A method comprising:
storing an in-memory database management application inside of an enclave inside of a first container in a container-based cloud service, wherein the enclave utilizes central processing unit (CPU)-specific software instructions to shield data from software outside the enclave;
storing an instance of an in-memory database inside of a second container but outside of an enclave inside the second container;
storing sensitive data from the in-memory database inside the enclave inside the second container;
receiving, from one or more clients, a command necessitating access to the in-memory database; and
passing the command to the application stored inside the enclave in the first container, causing the application to issue a command to access the in-memory database in the second container.

### Claim 9 (depends on 8)

The method of claim 8, wherein the application includes application code, one or more application-specific libraries, and a sham library, the sham library including procedures to relay library calls to a host library stored in the first container but outside of the enclave inside the first container.

### Claim 10 (depends on 8)

The method of claim 8, wherein the sensitive data includes data generated from data in the in-memory database.

### Claim 11 (depends on 10)

The method of claim 10, wherein the sensitive data includes access logs for the in-memory database.

### Claim 12 (depends on 8)

The method of claim 8, wherein the enclave in the second container and the enclave in the first container are the same enclave.

### Claim 13 (depends on 8)

The method of claim 8, wherein the first container and the second container support a library interface.

### Claim 14 (depends on 8)

The method of claim 8, wherein enclave code and data reside in an enclave page cache, wherein the enclave page cache is a region of protected physical memory guarded by CPU access controls.

### Claim 15

A non-transitory machine-readable medium storing instructions which, when executed by one or more processors, cause the one or more processors to perform operations comprising:
storing an in-memory database management application inside of an enclave inside of a first container in a container-based cloud service, wherein the enclave utilizes central processing unit (CPU)-specific software instructions to shield data from software outside the enclave;
storing an instance of an in-memory database inside of a second container but outside of an enclave inside the second container;
storing sensitive data from the in-memory database inside the enclave inside the second container;
receiving, from one or more clients, a command necessitating access to the in-memory database; and
passing the command to the application stored inside the enclave in the first container, causing the application to issue a command to access the in-memory database in the second container.

### Claim 16 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the application includes application code, one or more application-specific libraries, and a sham library, the sham library including procedures to relay library calls to a host library stored in the first container but outside of the enclave inside the first container.

### Claim 17 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the sensitive data includes data generated from data in the in-memory database.

### Claim 18 (depends on 17)

The non-transitory machine-readable medium of claim 17, wherein the sensitive data includes access logs for the in-memory database.

### Claim 19 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the enclave in the second container and the enclave in the first container are the same enclave.

### Claim 20 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein enclave code and data reside in an enclave page cache, wherein the enclave page cache is a region of protected physical memory guarded by CPU access controls.
