# US 2021/0342440 A1 · Method and apparatus for applying application context security controls for software containers

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

- Number: US 2021/0342440 A1
- Document ID: US20210342440A1
- Status: Published application
- Kind: A1
- Application number: 17/378,271
- Filed: 2021-07-16
- Published: 2021-11-04
- Earliest claimed: 2015-05-18
- Assignees: Aqua Security Software, Ltd.
- Applicants: Aqua Security Software, Ltd.
- Inventors: Amir Gerebe
- Web page: https://patentgrep.com/patent/US20210342440A1

## CPC

- G06F 21/52: during program execution, e.g. stack integrity {; Preventing unwanted data erasure; Buffer overflow}
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An example method of sharing a resource between software containers includes detecting a request from a first software container to access a resource of a different, second software container, an operational state of the second software container being controlled by a container engine running on the host computing device. The method also includes accepting or rejecting the request based on whether the first and second software containers, which each contain a respective software application, are part of a same logical software application. An example host computing device configured to share resources between software containers is also disclosed.

## Claims

### Claim 1

A method of sharing a resource between software containers, the method implemented by a host computing device and comprising:
detecting a request from a first software application in a first software container to access a resource of a second software application operating in a second software container that is different from the first software container, an operational state of the second software container being controlled by a container engine running on the host computing device; and
accepting or rejecting the request based on whether the first and second software applications are part of a same logical software application.

### Claim 2 (depends on 1)

The method of claim 1, wherein:
detecting the request comprises intercepting the request before the request is delivered to the second software container;
accepting the request comprises delivering the request to the second software container; and
rejecting the request comprises rejecting the request without delivering the request to the second software container.

### Claim 3 (depends on 1)

The method of claim 1, wherein said accepting or rejecting comprises:
determining whether the first and second software applications are part of a same logical software application; and
accepting the request based on the first and second software applications being part of the same logical software application.

### Claim 4 (depends on 3)

The method of claim 3, wherein the determining is performed by a third software container that is different from the first and second software containers.

### Claim 5 (depends on 3)

The method of claim 3, wherein the determining is based on one or more of:
an application registry; and
a file in the second software container.

### Claim 6 (depends on 3)

The method of claim 3, wherein said accepting or rejecting comprises:
determining whether the requested resource is marked as shared for the first software container by an entry in a security registry; and
based on the first and second software applications being part of different logical software applications:
accepting the request based on the requested resource being marked as shared for the first software container by an entry in the security registry; and
rejecting the request based on the requested resource not being marked as shared for the first software container.

### Claim 7 (depends on 1)

The method of claim 1, wherein:
an operational state of the first software container is controlled by a container engine running on a computing device that is different from the host computing device.

### Claim 8 (depends on 1)

The method of claim 1, comprising:
accepting an additional request to access a resource in the second software application based on the additional request being received from the second software container.

### Claim 9 (depends on 1)

The method of claim 1, wherein said accepting or rejecting the request is further based on whether the first software container is digitally signed.

### Claim 10 (depends on 1)

The method of claim 1, wherein the host computing device is a first host computing device, the method comprising:
detecting an outgoing request from the second software container to access a resource of a third software application in a third software container that is different from the first and second software containers and whose operational state is controlled by a container engine running on a second host computing device that is different from the first host computing device; and
rejecting the outgoing request at the first host computing device or transmitting the outgoing request to the second host computing device based on whether the second software application and the third software application are part of a same logical software application.

### Claim 11 (depends on 10)

The method of claim 10, wherein said rejecting the outgoing request at the first host computing device or transmitting the outgoing request to the second host computing device is further based on at least one of:
whether the resource of the third software application is marked as shared for the second software container by an entry in a security registry; and
whether the second software container is digitally signed.

### Claim 12 (depends on 1)

The method of claim 1, comprising:
in response to the resource being an encrypted file in the second software container and the request being one to open the file, decrypting the encrypted file prior to providing the file to the first software container; and
in response to the resource being an encrypted file in the second software container and the request being one to write data to the file, receiving the data from the first software container in unencrypted form and encrypting the data prior to saving it in the encrypted file in the second software container.

### Claim 13

A host computing device comprising:
memory configured to store a second software container; and
processing circuitry operatively connected to the memory and configured to:
detect a request from a first software application in a first software container that is different from the second software container to access a resource of a second software application in the second software container; and
accept or reject the request based on whether the first and second software applications are part of a same logical software application.

### Claim 14 (depends on 13)

The host computing device of claim 13, wherein:
to detect the request, the processing circuitry is configured to intercept the request before the request is delivered to the second software container;
to accept the request, the processing circuitry is configured to deliver the request to the second software container; and
to reject the request, the processing circuitry is configured to prevent delivery of the request to the second software container.

### Claim 15 (depends on 13)

The host computing device of claim 13, wherein the processing circuitry is configured to:
determine whether the first software application and second software application are part of a same logical software application; and
accept the request based on the first and second software applications being part of the same logical software application.

### Claim 16 (depends on 15)

The host computing device of claim 15, wherein the determination is performed by a third software container that is different from the first and second software containers.

### Claim 17 (depends on 15)

The host computing device of claim 15, wherein the determination is performed based on one or more of:
an application registry; and
a file in the second software container.

### Claim 18 (depends on 15)

The host computing device of claim 15, wherein the processing circuitry is configured to:
determine whether the requested resource is marked as shared for the first software container; and
based on the first and second software applications being part of different logical software applications:
accept the request based on the requested resource being marked as shared for the first software container by an entry in a security registry; and
reject the request based on the requested resource not being marked as shared for the first software container.

### Claim 19 (depends on 13)

The host computing device of claim 13, wherein an operational state of the second software container is controlled by a container engine running on the host computing device, and an operational state of the first software container is controlled by a container engine running on a computing device that is different from the host computing device.

### Claim 20 (depends on 13)

The host computing device of claim 13, wherein the processing circuitry is configured to accept an additional request to access a resource of the second software application based on the additional request being received from the second software container.

### Claim 21 (depends on 13)

The host computing device of claim 13, wherein the processing circuitry is configured to accept or reject the request based on whether the first software container is digitally signed.

### Claim 22 (depends on 13)

The host computing device of claim 13, wherein the host computing device is a first host computing device, and the processing circuitry is configured to:
detect an outgoing request from the second software container to access a resource of a third software application in a third software container that is different from the first and second software containers and whose operational state is controlled by a container engine running on a second host computing device that is different from the first host computing device; and
reject the outgoing request or transmit the outgoing request to the second host computing device based on whether the second software application and the third software application are part of a same logical software application.

### Claim 23 (depends on 22)

The host computing device of claim 22, wherein the processing circuitry is configured to base the rejection or acceptance of the outgoing request on at least one of:
whether the resource of the third software application is marked as shared for the second software container by an entry in a security registry; and
whether the second software container is digitally signed.

### Claim 24 (depends on 13)

The host computing device of claim 13, wherein:
based on the resource being an encrypted file in the second software container and the request being one to open the file, the processing circuitry is configured to decrypt the encrypted file prior to providing the file to the first software container; and
based on the resource being an encrypted file in the second software container and the request being one to write data to the file, the processing circuitry is configured to receive the data from the first software container in unencrypted form and encrypt the data prior to saving it in the encrypted file in the second software container.
