# US 2025/0156527 A1 · Large language model (llm) interaction security sandbox

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

- Number: US 2025/0156527 A1
- Document ID: US20250156527A1
- Status: Published application
- Kind: A1
- Application number: 18/510,382
- Filed: 2023-11-15
- Published: 2025-05-15
- Earliest claimed: 2023-11-15
- Assignees: American Express Travel Related Services Company, Inc.
- Applicants: American Express Travel Related Services Company, Inc.
- Inventors: Hiranmayi Palanki; Shankar Djeyassilane
- Web page: https://patentgrep.com/patent/US20250156527A1

## CPC

- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 40/20: Natural language analysis (semantic analysis of natural language G06F40/30)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed are various approaches for large language model (LLM) interaction security sandboxing. A client device can execute an LLM security sandbox that includes at least one LLM communications sanitization process. The LLM security sandbox can perform the at least one LLM communications sanitization process on the LLM message to generate an approved LLM message. The client device can provide access to the approved LLM message by at least generating a user interface that includes the approved LLM message, or transmitting the approved LLM message from the client device to the LLM service.

## Claims

### Claim 1

A system, comprising:
a computing device comprising at least one processor and at least one memory; and
machine-readable instructions stored in the at least one memory that, when executed by the at least one processor, cause the computing device to at least:
create a Large Language Model (LLM) security sandbox comprising at least one LLM communications sanitization process;
provide an LLM message to the LLM security sandbox, wherein the LLM message is generated or received for communications with an LLM service;
receive, from the LLM security sandbox, an approved LLM message generated based at least in part on performing the at least one LLM communications sanitization process on the LLM message; and
provide access to the approved LLM message by at least:
generating a user interface that includes the approved LLM message, or transmitting the approved LLM message to the LLM service.

### Claim 2 (depends on 1)

The system of claim 1, wherein the approved LLM message is a modified version of the LLM message.

### Claim 3 (depends on 2)

The system of claim 2, wherein the modified version of the LLM message is generated using a moderator LLM in the LLM security sandbox.

### Claim 4 (depends on 1)

The system of claim 1, wherein the LLM security sandbox comprises an LLM virtual Document Object Model (DOM) that is a virtual representation of an LLM DOM for a web page or a web application.

### Claim 5 (depends on 1)

The system of claim 1, wherein the LLM message is an LLM input message entered through a user prompt.

### Claim 6 (depends on 1)

The system of claim 1, wherein the LLM message is an LLM response received from the LLM service based at least in part on an LLM input message.

### Claim 7 (depends on 1)

The system of claim 1, wherein the approved LLM message is provided with a moderator comment that indicates a result of the at least one LLM communications sanitization process.

### Claim 8

A method, comprising:
executing a Large Language Model (LLM) security sandbox using a client device, wherein the LLM security sandbox comprises at least one LLM communications sanitization process;
identifying an LLM message generated or received for communications with an LLM service;
performing the at least one LLM communications sanitization process on the LLM message to generate an approved LLM message; and
providing access to the approved LLM message by at least:
generating a user interface that includes the approved LLM message, or transmitting the approved LLM message from the client device to the LLM service.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
generating a moderator comment that indicates a result of the at least one LLM communications sanitization process.

### Claim 10 (depends on 8)

The method of claim 8, wherein the approved LLM message is a modified version of the LLM message.

### Claim 11 (depends on 10)

The method of claim 10, wherein the modified version of the LLM message is generated using a moderator LLM in the LLM security sandbox.

### Claim 12 (depends on 8)

The method of claim 8, wherein the LLM security sandbox comprises an LLM virtual Document Object Model (DOM) that is a virtual representation of an LLM DOM for a web page or a web application.

### Claim 13 (depends on 8)

The method of claim 8, wherein the LLM message is an LLM input message entered through a user prompt.

### Claim 14 (depends on 8)

The method of claim 8, wherein the LLM message is an LLM response received from the LLM service based at least in part on an LLM input message.

### Claim 15

A system, comprising:
at least one computing device comprising at least one processor and at least one memory; and
machine-readable instructions stored in the at least one memory that, when executed by the at least one processor, cause the at least one computing device to at least:
execute a Large Language Model (LLM) security sandbox using a client device, wherein the LLM security sandbox comprises at least one LLM communications sanitization process;
identify an LLM message generated or received for communications with an LLM service;
perform the at least one LLM communications sanitization process on the LLM message to generate an approved LLM message; and
provide access to the approved LLM message by at least:
generating a user interface that includes the approved LLM message, or transmitting the approved LLM message from the client device to the LLM service.

### Claim 16 (depends on 15)

The system of claim 15, wherein the approved LLM message is a modified version of the LLM message.

### Claim 17 (depends on 16)

The system of claim 16, wherein the modified version of the LLM message is generated using a moderator LLM in the LLM security sandbox.

### Claim 18 (depends on 15)

The system of claim 15, wherein the LLM security sandbox comprises an LLM virtual Document Object Model (DOM) that is a virtual representation of an LLM DOM for a web page or a web application.

### Claim 19 (depends on 15)

The system of claim 15, wherein the LLM message is an LLM input message entered through a user prompt.

### Claim 20 (depends on 15)

The system of claim 15, wherein the LLM message is an LLM response received from the LLM service based at least in part on an LLM input message.
