Client-Side LLM Security Sandbox for Prompt and Content Sanitization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing technologies fail to provide a client-side solution to protect devices from harmful, insecure, and undesirable content generated by large language models (LLMs), relying on user self-regulation and server-side processing, which is inefficient and prone to errors.

Innovation Solution

A sandboxed environment on the client device performs input and output sanitation using LLM security libraries and a moderator LLM to check for Secure Data Elements, harmful content, biases, and malicious prompt injections, ensuring messages are sanitized before transmission and display.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Object-affected harmful factors

If server-side processing is used to sanitize LLM content, then security coverage is provided, but power consumption and network bandwidth usage increase

Engineering Contradiction:
Improvesecurity coverageVSAvoidpower consumption
Core Design Contradiction:
Object-affected harmful factorsVSUse of energy by moving object

Solution Approach 1:

The patent divides the content sanitization function into two segments: client-side sandboxed environment for initial filtering and server-side processing for final validation. This segmentation allows local processing to handle routine sanitization tasks, reducing the volume of data that needs to be transmitted and processed on the server, thereby lowering power consumption and network bandwidth usage while maintaining comprehensive security coverage.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The sandboxed environment performs preliminary content sanitization on the client device before transmission to the server. By conducting initial filtering, validation, and sanitization operations locally, the system reduces the amount of harmful or unnecessary data that reaches the server, thereby decreasing server processing requirements, network bandwidth consumption, and overall power usage while maintaining security effectiveness.

Inventive Principle:
Principle #10Preliminary action

2Object-affected harmful factors

If server-side processing is used to sanitize LLM content, then security coverage is provided, but responsiveness decreases

Engineering Contradiction:
Improvesecurity coverageVSAvoidresponsiveness
Core Design Contradiction:
Object-affected harmful factorsVSLoss of time

Solution Approach 1:

The patent segments the security validation process into client-side sandboxed environment handling and server-side final validation. The sandboxed environment performs immediate local sanitization checks and modifications, providing rapid responsiveness for routine operations, while only requiring server communication for final validation of sanitized content, thus maintaining both security coverage and system responsiveness.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

By performing preliminary sanitization operations locally in the sandboxed environment before server communication, the system eliminates the need for round-trip server requests for every content validation. This preliminary local processing significantly improves responsiveness while the subsequent server validation ensures comprehensive security coverage.

Inventive Principle:
Principle #10Preliminary action

3Loss of energy

If client-side sandboxed environment is implemented, then power consumption and network bandwidth are reduced, but device complexity increases

Engineering Contradiction:
Improvenetwork bandwidth usageVSAvoiddevice complexity
Core Design Contradiction:
Loss of energyVSDevice complexity

Solution Approach 1:

The patent introduces a sandboxed environment as an intermediary layer between the LLM application and the device system. This intermediary provides the necessary security and sanitization functionality without requiring direct modification of core device components, thus managing device complexity while enabling local processing to reduce network bandwidth usage and power consumption.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The sandboxed environment changes the operational parameters of content processing by implementing local validation rules, sanitization thresholds, and security policies. By adjusting these parameters within the sandboxed context, the system enables efficient local processing that reduces network bandwidth usage and power consumption without permanently altering device architecture or increasing inherent device complexity.

Inventive Principle:
Principle #35Parameter changes

4Device complexity

If user self-regulation is relied upon, then device complexity remains low, but security reliability decreases

Engineering Contradiction:
Improvedevice complexityVSAvoidsecurity reliability
Core Design Contradiction:
Device complexityVSReliability

Solution Approach 1:

The sandboxed environment enables the system to self-regulate content security automatically without requiring user intervention or complex external management. The sandboxed LLM application independently performs validation, filtering, and sanitization operations, providing reliable security protection while maintaining relatively simple device architecture through automated self-service mechanisms.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS12596789B2Large language model (LLM) interaction security sandbox
Publication Date: 2026.04.07 AMERICAN EXPRESS TRAVEL RELATED SERVICES CO INC
  • US12596789B2 patent drawing
  • US12596789B2 patent drawing
  • US12596789B2 patent drawing

AI summary

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.