# US 2024/0202319 A1 · Shim based secure module access

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

- Number: US 2024/0202319 A1
- Document ID: US20240202319A1
- Status: Published application
- Kind: A1
- Application number: 18/083,324
- Filed: 2022-12-16
- Published: 2024-06-20
- Earliest claimed: 2022-12-16
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Brian Gallagher; Cathat O'Connor
- Web page: https://patentgrep.com/patent/US20240202319A1

## CPC

- G06F 21/54: by adding security routines or objects to 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: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods comprising at least one node comprising an application container; a container image associated with the application container; a static analyzer module deployed to analyze the container image, with instructions configured to autonomously parse, code of an application, during compile time of the application, wherein the application is to be deployed in the application container; determine, based on the parsing, for at least one section of the code, at least one module necessary for execution of the at least one section; annotate, the at least one section of the code, based on the determined at least one module; and inject, at least one wrapper around the at least one section of the code, wherein the wrapper adds at least one restriction to an execution of the at least one section at runtime, wherein the restrictions are based on at least one condition.

## Claims

### Claim 1

A system, comprising:
at least one node comprising an application container;
a container image associated with the application container;
a static analyzer module deployed to analyze the container image, with instructions configured to autonomously:
parse, code of an application, during compile time of the application, wherein the application is to be deployed in the application container;
determine, based on the parsing, for at least one section of the code, at least one module necessary for execution of the at least one section;
annotate, the at least one section of the code, based on the determined at least one module; and
inject, at least one wrapper around the at least one section of the code, wherein the wrapper adds at least one restriction to an execution of the at least one section at runtime, wherein the at least one restriction is based on at least one condition.

### Claim 2 (depends on 1)

The system of claim 1, wherein the instructions are further configured to:
determine, for the at least one module, at least one operating system module necessary for execution of the module.

### Claim 3 (depends on 2)

The system of claim 2, wherein the instructions are further configured to:
determine, a condition where the at least one module, accesses, calls, utilizes, or requires the at least one operating system module, wherein the condition can be based on at least one of a time, state, or user permissions.

### Claim 4 (depends on 1)

The system of claim 1, wherein the container image comprises at least one of a base OS layer, an application layer, or a SHIM layer.

### Claim 5 (depends on 4)

The system of claim 4, wherein the SHIM layer is placed between the base OS layer and the application layer to manage access to the operating system module.

### Claim 6 (depends on 4)

The system of claim 4, wherein the SHIM layer implements the at least one restriction at runtime.

### Claim 7 (depends on 4)

The system of claim 4, wherein the SHIM layer is further configured to:
based on the at least one condition being satisfied, undertake at least one of allow access, allow partial access, prevent access, or delay access to the operating system module in the OS base layer by the module in the application layer based on the at least one restriction.

### Claim 8 (depends on 4)

The system of claim 4, wherein the base OS layer is a limited version OS layer.

### Claim 9 (depends on 1)

The system of claim 1, wherein the at least one restriction is enforced based on the at least one condition.

### Claim 10 (depends on 9)

The system of claim 9, wherein the enforcement comprises at least one of preventing execution of the at least one section, delaying execution of the at least one section, or preventing access to an operating system module.

### Claim 11 (depends on 1)

The system of claim 1, wherein the at least one restriction is removed based on the at least one condition.

### Claim 12

A method, comprising:
parsing, code of an application, during compile time of the application, wherein the application is to be deployed in the application container;
determining, based on the parsing, for at least one section of the code, at least one module necessary for execution of the at least one section;
annotating, the at least one section of the code, based on the determined at least one module; and
injecting, at least one wrapper around the at least one section of the code, wherein the wrapper adds at least one restriction to an execution of the at least one section at runtime, wherein the restrictions are based on at least one condition.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
determining, for the at least one module, at least one operating system module necessary for execution of the module.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
generating a SHIM layer to enforce the at least one restriction, wherein the at least one restriction comprises preventing the at least one module from at least one of calling, utilizing, or accessing the at least one operating system module.

### Claim 15 (depends on 12)

The method of claim 12, further comprising:
generating a SHIM layer to manage the at least one restriction at runtime of the application; and
placing the SHIM layer between an application layer and a base OS layer of a container image of the application container.

### Claim 16 (depends on 12)

The method of claim 12, wherein the application container is associated to a container image comprising at least one of a base OS layer, an application layer, or a SHIM layer.

### Claim 17 (depends on 12)

The method of claim 12, wherein a SHIM layer is placed between the base OS layer and the application layer, to manage access to an at least one operating system module, in the base OS layer, based on the at least one restriction.

### Claim 18 (depends on 17)

The method of claim 17, further comprising:
based on the at least one condition being satisfied, undertake at least one of allow access, allow partial access, prevent access, or delay access to the operating system module in the OS base layer by the module in the application layer based on the at least one restriction.

### Claim 19 (depends on 18)

The method of claim 18, wherein a SHIM layer undertakes the at least one of allow access, allow partial access, prevent access, or delay access to the operating system module in the OS base layer by the module in the application layer based on the at least one restriction.

### Claim 20

A non-transitory machine readable medium storing code, which when executed by a processor is configured to:
parse, code of an application, during compile time of the application, wherein the application is to be deployed in the application container;
determine, based on the parsing, for at least one section of the code, at least one module necessary for execution of the at least one section;
determine, for the at least one module, at least one operating system module necessary for execution of the module;
annotate, the at least one section of the code, based on the determined at least one module; and
inject, at least one wrapper around the at least one section of the code, wherein the wrapper adds at least one restriction to an execution of the at least one section at runtime, wherein the restrictions are based on at least one condition.
