A software sandbox-based security isolation method and system
By using software sandboxes and side-effect interception and replacement mechanisms, the problem of separating state-changing operations in existing technologies is solved. This achieves secure isolation and result control during tool invocation, reduces the risk of abnormal running states propagating and out-of-bounds output, and improves execution continuity and data protection capabilities.
Patent Information
- Application Number
- CN202611675266.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-28
- Publication Date
- 2026-11-27
AI Technical Summary
Existing software sandbox security isolation technologies have difficulty effectively separating state-changing operations from normal execution processes during tool execution, resulting in the risk of continuous propagation of abnormal operating states and out-of-bounds output. They also lack independent interception and execution boundary verification of state-changing operations.
The system employs a software sandbox and side-effect interception mechanism. It performs access verification by receiving tool call requests, generates execution boundary descriptions, creates software sandbox instances and establishes side-effect interception channels, executes the target tool within the sandbox, forms a trusted execution trajectory, performs consistency verification and records state change operations, destroys the sandbox instance and creates the next generation sandbox instance, restores the execution location, and performs field-level desensitization processing.
It implements full-process security constraints on the tool invocation process, reduces the risk of unauthorized operations and leakage of sensitive information, maintains execution continuity and result controllability, and improves isolation and data protection capabilities.
Smart Images

Figure CN123179386A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of software sandbox security isolation, and more particularly to a software sandbox-based security isolation method and system. Background Technology
[0002] Existing software sandbox security isolation technologies typically restrict direct access to external resources by programs or tools through a restricted execution environment, and combine this with permission verification, access control, and operation auditing to reduce the impact of abnormal operations on databases, files, or external interfaces. For tool invocation requests generated by AI Agents, existing solutions can also perform basic security controls through whitelists, parameter checks, and sandbox execution.
[0003] However, existing technologies still have the problem of effectively separating state-changing operations from normal execution processes during tool execution. Some solutions lack independent interception of state-changing operations, joint verification of execution boundaries and trusted execution trajectories, as well as sandbox replacement and execution state recovery mechanisms after external submission. This can easily lead to the continuous propagation of abnormal operating states or repeated execution of completed operations. At the same time, there is a lack of further constraints on the output range and sensitive fields of tool execution results, which poses risks of out-of-bounds output and leakage of sensitive information. Summary of the Invention
[0004] One objective of this invention is to propose a secure isolation method and system based on software sandboxes. This invention employs a software sandbox and a side effect interception mechanism to achieve secure isolation of tool calls, possessing both isolation and reliability.
[0005] To achieve the aforementioned objective, the technical solution of the present invention is as follows:
[0006] A software sandbox-based security isolation method includes the following steps:
[0007] S1. Receive tool call request, perform access verification, and determine the target tool call request;
[0008] S2. Parse the target tool call request and generate an execution boundary description;
[0009] S3. Create a first-generation software sandbox instance based on the execution boundary description, and establish a side effect interception channel between the first-generation software sandbox instance and external resources;
[0010] S4. Execute the target tool within the first-generation software sandbox instance to form a trusted execution trajectory. Detect and intercept state change operations through the side effect interception channel, and generate a record of the effect to be submitted, preventing state change operations from being executed directly within the first-generation software sandbox instance.
[0011] S5. Perform consistency verification based on the pending effect record, execution boundary description, and trusted execution trajectory, and generate a confirmed effect record;
[0012] S6. Based on the confirmed effect record, execute the corresponding state change operation, generate the submission result, destroy the first-generation software sandbox instance, create the next-generation software sandbox instance, and replay to the corresponding execution position according to the trusted execution trajectory. Load the submission result as the return result of the state change operation into the next-generation software sandbox instance.
[0013] S7. Continue executing the target tool within the next-generation software sandbox instance, repeatedly intercepting side effects, verifying effects, submitting externally, and replacing the sandbox instance for subsequent state change operations until the target tool completes execution. Perform field-level desensitization processing on the execution results to generate secure isolation results.
[0014] A further aspect of the solution is that the tool invocation request is generated by the AI Agent based on the user's task.
[0015] A further aspect of the solution is that the target tool invocation request is a tool invocation request that has been allowed to enter the subsequent sandbox execution process after the tool name and request parameters have been verified.
[0016] The solution further includes: S2 specifically includes:
[0017] Read the tool name and request parameters in the target tool call request, parse the target resource and operation type corresponding to the target tool, determine the operation parameters from the request parameters, and determine the scope of the target tool's action on the target resource and the range of result output based on the request parameters;
[0018] The target resource, operation type, operation parameters, scope of application, and result output range are associated to generate an execution boundary description.
[0019] The solution further includes: S3 specifically includes:
[0020] Read the target resources, operation type, operation parameters, scope of application and result output range from the execution boundary description to form the boundary configuration of the first-generation software sandbox instance;
[0021] A first-generation software sandbox instance is created based on the boundary configuration. The target tool is loaded into the first-generation software sandbox instance, and the boundary configuration is used as the execution boundary of the target tool.
[0022] Identify the external resources corresponding to the target resource, establish a side effect interception channel between the first-generation software sandbox instance and the external resource, and associate the side effect interception channel with the first-generation software sandbox instance and the target resource;
[0023] The state-changing operations generated by the target tool are imported into the side-effect interception channel, so that the state-changing operations are passed to the processing path outside the software sandbox instance via the side-effect interception channel.
[0024] The solution further includes: S4 specifically includes:
[0025] Execute the target tool within the first-generation software sandbox instance, obtain the operations generated during the execution of the target tool, and identify the side-effect-free operations and state-changing operations among them;
[0026] Record the operation content and corresponding return value of operations without side effects to form a reliable execution trajectory;
[0027] The system intercepts state-changing operations through a side-effect interception channel, extracts the target resource, operation type, operation parameters, and execution location corresponding to the state-changing operation, generates a state-changing operation record, and prevents the state-changing operation from being executed directly within the first-generation software sandbox instance.
[0028] Based on the status change operation record and trusted execution trajectory, generate a record of the effect to be submitted.
[0029] The solution further includes: S5 specifically includes:
[0030] Read the target resource, operation type, operation parameters, execution location and trusted execution trajectory identifier from the record of the effect to be submitted, and obtain the corresponding execution boundary description and trusted execution trajectory;
[0031] The target resource, operation type, scope parameters, and state change parameters in the operation parameters are matched with the target resource, operation type, scope, and operation parameters in the execution boundary description to generate boundary consistency results.
[0032] Based on the execution location and trusted execution trajectory identifier, the record of the effect to be submitted is matched with the trusted execution trajectory to generate a trajectory consistency result;
[0033] Consistency verification is performed by combining boundary consistency results and trajectory consistency results. Records of pending effects that exceed the execution boundary or are inconsistent with the trusted execution trajectory are blocked. Confirmation effect records are generated for records of pending effects that pass the verification.
[0034] The solution further includes: S6 specifically includes:
[0035] The system reads the target resource, operation type, operation parameters, execution location, and trusted execution trajectory identifier from the confirmation effect record. The submission process outside the software sandbox instance then performs the corresponding state change operation based on the target resource, operation type, and operation parameters to generate the submission result.
[0036] After the state change operation is completed, the first-generation software sandbox instance is destroyed, and the next-generation software sandbox instance is created based on the immutable underlying environment.
[0037] Based on the trusted execution trajectory identifier, the corresponding trusted execution trajectory is obtained. Within the next-generation software sandbox instance, the execution order, side-effect-free operations, and corresponding return values recorded by the trusted execution trajectory are replayed until the execution position corresponding to the confirmation effect record is reached.
[0038] The submission result is loaded into the next-generation software sandbox instance as the return result of the state change operation, so that the next-generation software sandbox instance is restored to the execution position after the state change operation is completed.
[0039] The solution further includes: S7 specifically includes:
[0040] Continue executing the target tool within the next-generation software sandbox instance, acquire subsequent operations generated by the target tool, and identify the state change operations among them;
[0041] Repeatedly intercept side effects, verify effects, submit externally, and replace sandbox instances for subsequent state change operations until the target tool completes execution and generates tool execution results.
[0042] Read the result output range from the execution boundary description, match the result fields in the tool execution result with the result output range, retain the result fields within the result output range, and generate the execution result to be de-identified;
[0043] Perform field-level desensitization on sensitive fields in the desensitization execution results, and associate the results of the completed field-level desensitization to generate a secure isolation result.
[0044] A software sandbox-based security isolation system includes:
[0045] The access verification module is used to receive tool call requests, perform access verification, and determine the target tool call request;
[0046] The execution boundary generation module is used to parse the target tool call request and generate an execution boundary description;
[0047] The software sandbox creation module is used to create a first-generation software sandbox instance based on the execution boundary description, and to establish a side effect interception channel between the first-generation software sandbox instance and external resources;
[0048] The side effect interception module is used to execute the target tool within the first-generation software sandbox instance, form a trusted execution trajectory, detect and intercept state change operations through the side effect interception channel, generate a record of the effect to be submitted, and prevent state change operations from being executed directly within the first-generation software sandbox instance.
[0049] The consistency verification module is used to perform consistency verification based on the record of effect to be submitted, the execution boundary description and the trusted execution trajectory, and generate a confirmed effect record;
[0050] The sandbox replacement execution module is used to execute the corresponding state change operation based on the confirmed effect record, generate the submission result, destroy the first-generation software sandbox instance, create the next-generation software sandbox instance, and replay to the corresponding execution position according to the trusted execution trajectory, and load the submission result as the return result of the state change operation into the next-generation software sandbox instance.
[0051] The security result generation module is used to continue executing the target tool within the next-generation software sandbox instance. It repeatedly intercepts side effects of subsequent state change operations, verifies effects, submits externally, and replaces the sandbox instance until the target tool completes execution. It then performs field-level desensitization on the execution results to generate a secure isolation result.
[0052] The beneficial effects of this invention are:
[0053] This invention performs access verification on tool invocation requests and generates execution boundary descriptions. Before the target tool actually executes, it clearly defines the target resources, operation types, operation parameters, scope of effect, and result output range that the tool is allowed to access. This ensures that tool invocations are subject to defined boundary constraints from the moment they enter the execution flow, preventing unverified tool requests from directly entering the external resource operation process. Based on this, a software sandbox instance is created according to the execution boundaries, and a side-effect interception channel is established between the software sandbox instance and external resources. This prevents state-changing operations such as database writes, file modifications, and external interface write operations from directly affecting external resources. Instead, these operations are intercepted and recorded as pending effects, thus achieving effective isolation between the target tool's runtime environment and external resources.
[0054] This invention further verifies the consistency of the submitted effect record with the execution boundary description and the trusted execution trajectory. Confirmation effect records are generated only for state change operations that conform to the authorized scope and can continuously correspond to the normal execution chain. The actual state change is then executed by the submission process outside the software sandbox instance. This reduces the risk of unauthorized operations, abnormal operations, and state changes deviating from the normal execution process being submitted to external resources. Simultaneously, after the state change operation is completed, the first-generation software sandbox instance is destroyed, and a next-generation software sandbox instance is recreated based on an immutable underlying environment. This ensures that the next-generation instance does not inherit the previous instance's runtime memory, temporary files, and writable runtime layer. The side-effect-free execution process is then restored through the trusted execution trajectory, and the actual submission result is loaded into the corresponding execution location. This maintains the continuous execution capability of the target tool while cutting off the path of abnormal running states propagating to subsequent execution stages and preventing completed state change operations from being repeatedly executed during replay.
[0055] Furthermore, after the target tool completes execution, this invention performs field matching on the tool execution results based on the output range in the execution boundary description, filters out output fields that exceed the allowed range, and performs field-level desensitization processing on sensitive fields in the retained results to generate secure isolation results. This extends security control from tool call admission, sandbox execution, state change verification, and external submission to the final result output stage, achieving continuous security constraints on the entire AI Agent tool call process and improving the isolation, execution continuity, result controllability, and sensitive data protection capabilities of the tool call process. Attached Figure Description
[0056] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings:
[0057] Figure 1 This is a flowchart of a software sandbox-based security isolation method proposed in this invention;
[0058] Figure 2 This is a schematic diagram of the side effect interception channel of a software sandbox-based security isolation method proposed in this invention. Detailed Implementation
[0059] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.
[0060] Example 1:
[0061] refer to Figure 1 and Figure 2 A software sandbox-based security isolation method includes the following steps:
[0062] S1. Receive tool call request, perform access verification, and determine the target tool call request;
[0063] S2. Parse the target tool call request and generate an execution boundary description;
[0064] S3. Create a first-generation software sandbox instance based on the execution boundary description, and establish a side effect interception channel between the first-generation software sandbox instance and external resources;
[0065] S4. Execute the target tool within the first-generation software sandbox instance to form a trusted execution trajectory. Detect and intercept state change operations through the side effect interception channel, and generate a record of the effect to be submitted, preventing state change operations from being executed directly within the first-generation software sandbox instance.
[0066] S5. Perform consistency verification based on the pending effect record, execution boundary description, and trusted execution trajectory, and generate a confirmed effect record;
[0067] S6. Based on the confirmed effect record, execute the corresponding state change operation, generate the submission result, destroy the first-generation software sandbox instance, create the next-generation software sandbox instance, and replay to the corresponding execution position according to the trusted execution trajectory. Load the submission result as the return result of the state change operation into the next-generation software sandbox instance.
[0068] S7. Continue executing the target tool within the next-generation software sandbox instance, repeatedly intercepting side effects, verifying effects, submitting externally, and replacing the sandbox instance for subsequent state change operations until the target tool completes execution. Perform field-level desensitization processing on the execution results to generate secure isolation results.
[0069] In this implementation, the tool invocation request is generated by the AI Agent based on the user's task.
[0070] In this embodiment, the target tool call request is a tool call request that is allowed to enter the subsequent sandbox execution process after the tool name and request parameters have been verified.
[0071] In this embodiment, S2 specifically includes:
[0072] Read the tool name and request parameters in the target tool call request, parse the target resource and operation type corresponding to the target tool, determine the operation parameters from the request parameters, and determine the scope of the target tool's action on the target resource and the range of result output based on the request parameters;
[0073] The target resource, operation type, operation parameters, scope of application, and result output range are associated to generate an execution boundary description;
[0074] The execution boundary description is a structured constraint information determined based on the target tool's invocation request. It limits the target resources, operation types, operation parameters, scope of action, and output range that the target tool is allowed to access during this execution.
[0075] In this embodiment, taking the tool name db_write and the request parameters table=orders, operation=UPDATE, order_id=O1001, status=paid, and fields=[order_id,status] as an example, the target resource is determined to be the orders data table, the operation type is UPDATE, the operation parameter is determined to be operation_parameter={status:paid} based on status=paid, the scope is determined to be the order record corresponding to order number O1001 based on order_id=O1001, and the result output range is determined to be the two fields order_id and status based on fields. The target resource orders, operation type UPDATE, operation parameter {status:paid}, scope order_id=O1001, and result output range order_id and status are associated to generate an execution boundary description corresponding to the current target tool call request.
[0076] In this embodiment, S3 specifically includes:
[0077] Read the target resources, operation type, operation parameters, scope of application and result output range from the execution boundary description to form the boundary configuration of the first-generation software sandbox instance;
[0078] Create a first-generation software sandbox instance based on the boundary configuration, load the target tool into the first-generation software sandbox instance, and use the boundary configuration as the execution boundary of the target tool;
[0079] In this embodiment, taking the target resource in the execution boundary description as the `orders` data table, the operation type as `UPDATE`, the operation parameter as `status=paid`, the scope as `order_id=O1001`, and the result output scope as `order_id` and `status` as an example, the above content is written into the boundary configuration to form boundary configuration data with `resource=orders`, `operation=UPDATE`, `operation_parameter={status:paid}`, `scope={order_id:O1001}`, and `output_fields={order_id,status}`. Based on the boundary configuration data, a first-generation software sandbox instance SB-001 is created, the target tool `db_write` is loaded into the first-generation software sandbox instance, and `orders` is configured as the target resource, `UPDATE` as the operation type, `status=paid` as the operation parameter, `order_id=O1001` as the scope, and `order_id` and `status` as the result output scope, thus forming the execution boundary of the target tool within the first-generation software sandbox instance.
[0080] The first-generation software sandbox instance is an independent and controlled execution environment created for the first time based on the execution boundary description corresponding to the current target tool call request. It is used to run the target tool and isolate the target tool from direct access to external resources. This instance carries the tool execution process in the initial stage of this call, limits the target resources, operation type, operation parameters, scope of action and result output range through boundary configuration, and takes over the state change operations generated by the target tool through the side effect interception channel until the subsequent state change operations are completed and externally committed and destroyed.
[0081] Identify the external resources corresponding to the target resource, establish a side effect interception channel between the first-generation software sandbox instance and the external resource, and associate the side effect interception channel with the first-generation software sandbox instance and the target resource;
[0082] In this embodiment, the side effect interception channel is a controlled transmission channel set up between the software sandbox instance and external resources to receive and intercept state change operations. The target tool cannot bypass the side effect interception channel to directly submit database write, file modification, or external interface write operations to external resources. The state change operation enters the processing path outside the software sandbox instance through the side effect interception channel, providing a data entry point for the subsequent generation of pending submission effect records, the execution of consistency checks, and the execution of state change operations by the submission process outside the software sandbox instance.
[0083] The state-changing operations generated by the target tool are imported into the side-effect interception channel, so that the state-changing operations are passed to the processing path outside the software sandbox instance through the side-effect interception channel.
[0084] State change operations are operations that, after being executed by the target tool, can change the original state of external resources, including database write or modification, file addition or modification, and external interface write operations.
[0085] In this embodiment, taking the `orders` data table as the target resource, the enterprise order database DB-01 carrying the `orders` data table as the corresponding external resource, and the first-generation software sandbox instance SB-001 as an example, the real access address of DB-01, 10.10.20.15:5432, is isolated from the first-generation software sandbox instance. A local access endpoint 127.0.0.1:15432 is configured for the target tool within the first-generation software sandbox instance. A forwarding process connected to the local access endpoint is set up within the first-generation software sandbox instance, and this forwarding process accesses the side-effect interception channel CH-001. The channel_id=CH-001, sandbox_id=SB-001, resource=orders, and target=DB-01 are configured, establishing a correspondence between the side-effect interception channel, the first-generation software sandbox instance, and the target resource. When the target tool generates `UPDATE orders SET status='paid'`... When a state change operation is performed on WHEREorder_id='O1001', the target tool sends the state change operation to 127.0.0.1:15432. After being forwarded through the forwarding process, it enters the side effect interception channel CH-001 and is passed to the processing path outside the software sandbox instance, so that the state change operation does not directly affect the enterprise order database DB-01.
[0086] This invention creates a first-generation software sandbox instance based on the execution boundary description and establishes a side effect interception channel between the first-generation software sandbox instance and external resources. This ensures that state change operations generated by the target tool are transmitted through a unified and controlled path, rather than directly affecting external resources. This achieves isolation between the target tool's execution environment and external resources and provides a definite data entry point for the interception, verification, and external submission of subsequent state change operations. It reduces the risk of unverified state change operations directly modifying external resources and ensures a continuous data continuity during subsequent security verification and software sandbox instance replacement processes.
[0087] In this embodiment, S4 specifically includes:
[0088] Execute the target tool within the first-generation software sandbox instance, obtain the operations generated during the execution of the target tool, and identify the side-effect-free operations and state-changing operations among them;
[0089] In this embodiment, the target tool is started and executed, and the operation events generated by the target tool are collected. The operation identification rule rule={operation_type:read,update,write,request} is configured. Operations that do not change the state of external resources, such as reading the target tool call request and reading boundary configuration, are marked as operations without side effects. Operations that change the state of external resources, such as database updates, file modifications, and external interface writes, are marked as state-changing operations. When the target tool reads the order number order_id=O1001 in the target tool call request, it is identified as an operation without side effects. When the target tool executes UPDATE orders SET status='paid' WHERE order_id='O1001', it is identified as a state-changing operation. Corresponding operation type identifiers operation_type=read and operation_type=update are generated respectively, completing the classification and identification of operations generated during the execution of the target tool.
[0090] Record the operation content and corresponding return value of operations without side effects to form a reliable execution trajectory;
[0091] In this embodiment, taking the side-effect-free operation generated by the target tool db_write during execution within the first-generation software sandbox instance SB-001 as an example, the execution trajectory recording data is configured as trace={trace_id,sequence_id,operation_content,response_value,timestamp}, and the trusted execution trajectory identifier trace_id=T001 is set. When the target tool sequentially executes the operations of reading the order number in the target tool call request and reading the target resource in the boundary configuration, the operation sequence numbers sequence_id=1 and sequence_id=2 are recorded respectively, the corresponding operation contents are read_order_id and read_resource, and the corresponding return values are response_value={order_id:O1001} and response_value={resource:orders}. The execution time of each operation is also recorded. The operation content, corresponding return value, execution order, and execution time are associated to form a trusted execution trajectory identified as T001, which is used to characterize the continuous execution process of the target tool within the first-generation software sandbox instance without any change in the external resource state.
[0092] The system intercepts state-changing operations through a side-effect interception channel, extracts the target resource, operation type, operation parameters, and execution location corresponding to the state-changing operation, generates a state-changing operation record, and prevents the state-changing operation from being executed directly within the first-generation software sandbox instance.
[0093] In this embodiment, the database update request sent by the target tool is obtained through the side effect interception channel CH-001, and the status change operation record data effect={resource,operation,parameter,position} is configured. When the target tool executes UPDATE orders SET status='paid' WHERE order_id='O1001', the side effect interception channel CH-001 intercepts the operation, extracts the target resource resource=orders, operation type operation=UPDATE, operation parameter parameter={order_id:O1001,status:paid}, and execution position position=SB-001 / db_write / update_node_01, generates the corresponding status change operation record, and keeps the status change operation within the side effect interception channel, without sending an actual update request to the enterprise order database DB-01, thereby preventing the status change operation from directly affecting external resources within the first-generation software sandbox instance.
[0094] Based on the status change operation record and trusted execution trajectory, generate a record of the effect to be submitted;
[0095] In this embodiment, taking the state change operation UPDATE orders SET status='paid' WHERE order_id='O1001' as an example, the state change operation record obtained by the side effect interception channel CH-001 is associated with the trusted execution trace formed in the first-generation software sandbox instance SB-001, and the pending effect record is configured as effect_record={record_id,resource,operation,parameter,position,trace_id}; wherein, record_id=E001, resource=orders, operation=UPDATE, parameter={order_id:O1001,st The system retrieves the corresponding trusted execution trace identifier, trace_id=T001, and associates the target resource orders, operation type UPDATE, operation parameters {order_id:O1001,status:paid}, execution position SB-001 / db_write / update_node_01 with the trusted execution trace identifier T001 to generate a pending effect record E001. This ensures that the pending effect record corresponds to the continuous execution process of the target tool within the first-generation software sandbox instance.
[0096] This invention categorizes operations generated by the target tool within a first-generation software sandbox instance. Operations without side effects and their corresponding return values are recorded sequentially to form a reliable execution trajectory. State-changing operations are intercepted through a side-effect interception channel, and target resources, operation types, operation parameters, and execution locations are extracted to form state-changing operation records. These records are further combined with the reliable execution trajectory to generate pending effect records. Simultaneously, state-changing operations are prevented from being directly executed within the first-generation software sandbox instance. This approach preserves the continuous execution process of the target tool that has been completed without altering the state of external resources, while filtering and independently recording operations that might alter the state of external resources during actual execution. This provides a data foundation with a clear execution source and location for subsequent consistency verification of pending effect records, external submissions, and software sandbox instance upgrades, thereby reducing the risk of unverified state-changing operations directly affecting external resources.
[0097] In this embodiment, S5 specifically includes:
[0098] Read the target resource, operation type, operation parameters, execution location and trusted execution trajectory identifier from the record of the effect to be submitted, and obtain the corresponding execution boundary description and trusted execution trajectory;
[0099] The target resource, operation type, scope parameters, and state change parameters in the operation parameters are matched with the target resource, operation type, scope, and operation parameters in the execution boundary description to generate boundary consistency results.
[0100] In this embodiment, the resource=orders, operation=UPDATE, and parameter={order_id:O1001,status:paid} of the effect record to be submitted E001 are obtained, and the resource=orders, operation=UPDATE, scope={order_id:O1001}, and operation_parameter={status:paid} of the corresponding execution boundary description are read. resource=orders is matched with the target resource, operation=UPDATE is matched with the operation type, order_id=O1001 is extracted from parameter and matched with the scope, and status=paid is extracted and matched with the operation parameter. Matching results of target resource consistency, operation type consistency, scope consistency, and operation parameter consistency are obtained respectively. The four matching results are associated to generate the boundary consistency result boundary_result=PASS corresponding to the effect record to be submitted E001.
[0101] Boundary consistency results are structured judgments on whether the record of the effect to be submitted conforms to the execution boundary description, including target resource matching results, operation type matching results, scope matching results, and operation parameter matching results. When all four items are consistent with the execution boundary description, the boundary consistency result is recorded as PASS, and when any item is inconsistent, it is recorded as FAIL.
[0102] Based on the execution location and trusted execution trajectory identifier, the record of the effect to be submitted is matched with the trusted execution trajectory to generate a trajectory consistency result;
[0103] In this embodiment, the execution position position=SB-001 / db_write / update_node_01 and the trusted execution trajectory identifier trace_id=T001 in the record E001 to be submitted are read. The corresponding trusted execution trajectory is obtained according to trace_id=T001, and the execution node order execution_order={read_order_id:1,read_resource:2,update_node_01:3} pre-configured by the target tool db_write is read. The read_order_id and sequence_resource corresponding to sequence_id=1 in the trusted execution trajectory are then used to determine the order of the execution nodes. The read_resource corresponding to ce_id=2 is matched with the first and second execution nodes in the execution node sequence of the target tool. The execution node identifier update_node_01 is obtained from the execution position SB-001 / db_write / update_node_01 and matched with the third execution node. When the trusted execution trajectory identifier is consistent, the execution order and corresponding operation of the recorded side-effect-free operation are consistent, and the execution node corresponding to the state change operation is located after the recorded side-effect-free operation, the trajectory consistency result trajectory_result=PASS is generated. If any item is inconsistent, trajectory_result=FAIL is generated.
[0104] The trajectory consistency result is a structured judgment result used to determine whether the state change operation corresponding to the effect record to be submitted can be continuously matched with the existing trusted execution trajectory in the same execution chain. It includes trusted execution trajectory identifier matching result, execution order matching result of recorded operations without side effects, corresponding operation matching result, and execution position matching result of state change operation. When all of the above items are consistent, the trajectory consistency result is recorded as PASS, and when any item is inconsistent, it is recorded as FAIL. It is used to characterize whether the effect record to be submitted comes from the continuous execution process recorded by the target tool.
[0105] Consistency verification is performed by combining boundary consistency results and trajectory consistency results to block pending effect records that exceed the execution boundary or are inconsistent with the trusted execution trajectory, and confirmation effect records are generated for pending effect records that pass the verification.
[0106] In this embodiment, the boundary consistency result (boundary_result=PASS) and trajectory consistency result (trajectory_result=PASS) corresponding to the effect record E001 to be submitted are obtained. The consistency verification condition validation={boundary_result:PASS,trajectory_result:PASS} is configured. When both results are PASS, the effect record E001 to be submitted is determined to have passed the verification, and the resource=orders, operation=UPDATE, parameter={order_id:O1001,status:paid}, and position=SB-0 are read from it. 01 / db_write / update_node_01 and trace_id=T001 generate a confirmation effect record confirmed_effect={confirm_id:CE001,record_id:E001,resource:orders,operation:UPDATE,parameter:{order_id:O1001,status:paid},position:SB-001 / db_write / update_node_01,trace_id:T001}; when the boundary consistency result or the trajectory consistency result is FAIL, the corresponding pending effect record is blocked, and no confirmation effect record is generated.
[0107] This invention performs consistency checks on the pending effect record against the execution boundary description and the trusted execution trajectory, respectively, to form boundary consistency results and trajectory consistency results. A confirmed effect record is generated only when both results pass, and pending effect records that exceed the execution boundary or cannot be continuously matched with the trusted execution trajectory are blocked. This ensures that subsequent external state change operations simultaneously satisfy the authorization scope constraints and execution source constraints, preventing unauthorized state change operations and abnormal operations that deviate from the normal execution chain from being submitted to external resources. This improves the reliability and traceability of state change operations entering the subsequent external submission process, and provides verified confirmed effect records for subsequent software sandbox instance upgrades and trusted execution trajectory replay.
[0108] In this embodiment, S6 specifically includes:
[0109] The system reads the target resource, operation type, operation parameters, execution location, and trusted execution trajectory identifier from the confirmation effect record. The submission process outside the software sandbox instance then performs the corresponding state change operation based on the target resource, operation type, and operation parameters to generate the submission result.
[0110] In this embodiment, the target resource (resource=orders), operation type (operation=UPDATE), operation parameter (parameter={order_id:O1001,status:paid}), execution position (position=SB-001 / db_write / update_node_01), and trusted execution trace identifier (trace_id=T001) in the confirmation effect record CE001 are read. Based on the aforementioned association between the target resource and external resources, the enterprise order database DB-01 corresponding to the orders data table is determined. The submission process outside the software sandbox instance connects to DB-01 and executes UPDATE orders SET status='paid' WHERE according to operation=UPDATE and parameter={order_id:O1001,status:paid}. The state change operation for order_id='O1001' is performed. After execution, the number of affected records, affected_rows=1, is obtained, and the confirmation record identifier, confirm_id=CE001, is associated with the execution result to generate a submission result, submit_result={result_id:SR001,confirm_id:CE001,affected_rows:1}. At the same time, the correspondence between the execution location SB-001 / db_write / update_node_01 and the trusted execution trajectory identifier T001 and the submission result is retained for use in subsequent software sandbox instance upgrades and submission result loading.
[0111] After the state change operation is completed, the first-generation software sandbox instance is destroyed, and the next-generation software sandbox instance is created based on the immutable underlying environment.
[0112] In this embodiment, after the submission result SR001 is generated, the first-generation software sandbox instance SB-001 is identified as the instance to be destroyed. The running process of the target tool db_write within SB-001 is terminated, and the running memory, temporary files, and writable running layer corresponding to SB-001 are cleared, thus completing the destruction of the first-generation software sandbox instance. An immutable base environment base_env={base_id:BASE-001,version:V1,read_only:true} is pre-configured, and the next-generation software sandbox instance SB-0 is recreated based on BASE-001. 02. Load the boundary configuration corresponding to the target tool db_write and the current target tool call request into SB-002, and establish a generational association record of previous_sandbox=SB-001, next_sandbox=SB-002, submit_result=SR001, and trace_id=T001. This ensures that SB-002 does not inherit the running memory, temporary files, and writable running layer of SB-001, and provides a new isolated execution environment for subsequent replay based on the trusted execution trace T001 and loading the submission result SR001.
[0113] An immutable base environment is a read-only base runtime environment used to create software sandbox instances of different generations. It pre-stores the program files, dependent components, and basic configurations required for the target tool to run, and prohibits them from being modified during the execution of the target tool. After the first generation software sandbox instance is destroyed, the next generation software sandbox instance is recreated based on this immutable base environment, thereby preventing the inheritance of runtime memory, temporary files, and writable runtime layers from the previous generation software sandbox instance.
[0114] Based on the trusted execution trajectory identifier, the corresponding trusted execution trajectory is obtained. Within the next-generation software sandbox instance, the execution order, side-effect-free operations, and corresponding return values recorded by the trusted execution trajectory are replayed until the execution position corresponding to the confirmation effect record is reached.
[0115] In this embodiment, the corresponding trusted execution trajectory is obtained based on the trusted execution trajectory identifier trace_id=T001 in the confirmation effect record CE001, and the target execution node update_node_01 is determined from the execution position position=SB-001 / db_write / update_node_01; the trajectory replay of the target tool db_write is started in the next-generation software sandbox instance SB-002, and read_order_id and read_resource are replayed in sequence according to the order sequence_id=1 and sequence_id=2 in the trusted execution trajectory. The recorded return value response_value={order_id:O1001} is loaded during the read_resource replay, and the recorded return value response_value={resource:orders} is loaded during the replay of read_resource, so that the target tool can restore the execution state formed by the operation without side effects based on the corresponding return value; after the replay of the operation corresponding to sequence_id=2 is completed, the target tool is made to run to the execution position SB-002 / db_write / update_node_01 in the next-generation software sandbox instance, and the trajectory replay is stopped before the operation that changes the execution state, so as to reach the logical execution position corresponding to the confirmation effect record CE001.
[0116] The submission result is loaded into the next-generation software sandbox instance as the return result of the state change operation, so that the next-generation software sandbox instance is restored to the execution position after the state change operation is completed.
[0117] In this embodiment, after the target tool db_write in the next-generation software sandbox instance SB-002 is replayed to SB-002 / db_write / update_node_01, the submission result corresponding to the confirmation effect record CE001 is read: submit_result={result_id:SR001,confirm_id:CE001,affected_rows:1}. The affected_rows=1 is then used as the status change operation: UPDATE orders SET status='paid' WHERE The return result of order_id='O1001' is loaded into update_node_01, and the execution node is marked as completed, so that the target tool will no longer repeatedly execute the corresponding state change operation to the enterprise order database DB-01. Then, according to the execution node order pre-configured by the target tool db_write, the execution position is advanced from SB-002 / db_write / update_node_01 to the next execution position after the state change operation is completed, completing the connection between the submission result SR001 and the recovery state of the trusted execution trajectory T001, so that the next-generation software sandbox instance SB-002 forms a continuing execution state corresponding to the state change operation being completed externally.
[0118] This invention, after a verified state change operation is actually committed by a commit process outside the software sandbox instance, does not continue using the first-generation software sandbox instance. Instead, it uses the completion of the state change operation as the trigger condition for software sandbox instance replacement, destroying the first-generation software sandbox instance and creating a next-generation software sandbox instance. This ensures that after the external resource state actually changes, the subsequent execution of the target tool no longer depends on the original software sandbox instance's runtime environment. When creating the next-generation software sandbox instance, it does not copy or inherit the runtime memory, temporary files, and writable runtime layer of the previous-generation software sandbox instance. Instead, it creates a new isolated execution environment based on an immutable underlying environment, thereby maintaining the target tool's continued execution capability while cutting off the path for the runtime state of the previous-generation software sandbox instance to propagate to the next-generation software sandbox instance. The completed side-effect-free operations and their corresponding return values during the execution process form a trusted execution trajectory. After the creation of the next-generation software sandbox instance, the side-effect-free execution process of the target tool is restored according to the execution order in the trusted execution trajectory. This allows the next-generation software sandbox instance to recover to the logical execution position corresponding to the state change operation without inheriting the running state of the previous generation software sandbox instance. The submission result generated after the actual execution of the state change operation outside the software sandbox instance is loaded as the return result of the state change operation into the execution node corresponding to the next-generation software sandbox instance, and the execution node is marked as completed. This allows the target tool to continue running from the execution position after the state change operation is completed, while avoiding the repeated execution of the completed state change operation to external resources during the trusted execution trajectory replay process.
[0119] This invention combines the actual submission of state change operations with the replacement of software sandbox instances. After the state change operation is completed, the first-generation software sandbox instance is actively destroyed, and the next-generation software sandbox instance is recreated based on the immutable underlying environment. Then, the continuous execution state of the target tool is restored by using trusted execution traces and real submission results. This can maintain the continuity of business execution while cutting off the path of abnormal running states, temporary files, and writable running layers in the previous generation software sandbox instance to the subsequent execution process, reducing the risk of continuous accumulation and cross-stage diffusion of runtime environment pollution. Furthermore, by injecting the submission results, the completed state change operation is prevented from being executed repeatedly during the trace replay process, thereby improving the isolation, continuity, and execution reliability of the AIAgent tool invocation process.
[0120] In this embodiment, S7 specifically includes:
[0121] Continue executing the target tool within the next-generation software sandbox instance, acquire subsequent operations generated by the target tool, and identify the state change operations among them;
[0122] Repeatedly intercept side effects, verify effects, submit externally, and replace sandbox instances for subsequent state change operations until the target tool completes execution and generates tool execution results.
[0123] The tool execution result is the output data generated after the target tool completes the entire execution process, which is to be processed for result output range matching and field-level desensitization.
[0124] Read the result output range from the execution boundary description, match the result fields in the tool execution result with the result output range, retain the result fields within the result output range, and generate the execution result to be de-identified;
[0125] In this embodiment, after the target tool db_write completes execution, it generates the tool execution result tool_result={order_id:O1001,status:paid,amount:299.00,internal_note:updated_by_agent}. It reads the execution boundary description corresponding to the current target tool call request and obtains the result output range output_fields={order_id,status}. It then sequentially extracts the result fields {order_id,status,amount,internal_note} from the tool execution result and matches each result field with the field names in output_fields. Since order_id and status match successfully, while amount and internal_note are not within the result output range, the unmatched fields are removed from the tool execution result, leaving order_id=O1001 and status=paid. This generates the pending masking execution result pending_mask_result={order_id:O1001,status:paid}.
[0126] Perform field-level desensitization on sensitive fields in the desensitization execution result, and associate the results of the completed field-level desensitization to generate a secure isolation result;
[0127] In this embodiment, the pending masking execution result `pending_mask_result={order_id:O1001,status:paid}` is obtained, and the pre-configured field-level masking rule `mask_rule={order_id:mask,status:retain}` is read. Here, `order_id` is marked as a sensitive field and masked, while `status` is a non-sensitive field and retains its original value. Masking is performed on `order_id=O1001`, replacing the middle character with a preset mask symbol to obtain `order_id=O***1`, while `status=paid` is retained. The processed result fields are then associated to generate the secure isolation result `safe_result={order_id:O***1,status:paid}`, which serves as the final result returned to the AIAgent by the target tool after completing software sandbox isolation execution.
[0128] This invention ensures that the target tool remains in a controlled and isolated execution state throughout multiple state changes by continuing to execute the target tool within a next-generation software sandbox instance and repeatedly intercepting side effects, verifying effects, submitting externally, and upgrading the software sandbox instance for subsequent state change operations. After the target tool completes execution, the results are matched against the output range described in the execution boundary, filtering out result fields that exceed the allowed output range, and performing field-level desensitization on sensitive fields among the retained fields to generate secure and isolated results. This simultaneously restricts the state change behavior during the execution of the target tool and the data output range after execution, preventing unauthorized data fields and sensitive information from being directly returned to the AI Agent, thereby improving the execution isolation, result controllability, and sensitive data protection capabilities of the AI Agent tool call process.
[0129] A software sandbox-based security isolation system includes:
[0130] The access verification module is used to receive tool call requests, perform access verification, and determine the target tool call request;
[0131] The execution boundary generation module is used to parse the target tool call request and generate an execution boundary description;
[0132] The software sandbox creation module is used to create a first-generation software sandbox instance based on the execution boundary description, and to establish a side effect interception channel between the first-generation software sandbox instance and external resources;
[0133] The side effect interception module is used to execute the target tool within the first-generation software sandbox instance, form a trusted execution trajectory, detect and intercept state change operations through the side effect interception channel, generate a record of the effect to be submitted, and prevent state change operations from being executed directly within the first-generation software sandbox instance.
[0134] The consistency verification module is used to perform consistency verification based on the record of effect to be submitted, the execution boundary description and the trusted execution trajectory, and generate a confirmed effect record;
[0135] The sandbox replacement execution module is used to execute the corresponding state change operation based on the confirmed effect record, generate the submission result, destroy the first-generation software sandbox instance, create the next-generation software sandbox instance, and replay to the corresponding execution position according to the trusted execution trajectory, and load the submission result as the return result of the state change operation into the next-generation software sandbox instance.
[0136] The security result generation module is used to continue executing the target tool within the next-generation software sandbox instance. It repeatedly intercepts side effects of subsequent state change operations, verifies effects, submits externally, and replaces the sandbox instance until the target tool completes execution. It then performs field-level desensitization on the execution results to generate a secure isolation result.
[0137] To verify the security isolation performance of this invention, a tool call test environment was constructed, including database updates, file modifications, and external interface writes. A conventional method using a standard software sandbox with only pre-call permission checks was used as the experimental method, while the method of this invention was employed. 1000 tool calls were executed under the same hardware and software environment, including 200 state change operations exceeding execution boundaries. Test results show that in the conventional method, 27 out-of-bounds state change operations entered the external resource execution process, resulting in an out-of-bounds operation blocking rate of 86.5%. With this invention, all 200 out-of-bounds state change operations were intercepted through the side-effect interception channel and blocked during consistency verification, ultimately preventing out-of-bounds state changes in external resources. This demonstrates that this invention effectively improves the security control capability of state change operations through side-effect interception and joint verification of execution boundaries and trusted execution trajectories.
[0138] Further continuous execution tests were conducted on 300 tool calls involving actual state changes, simulating the generation of temporary files and writable runtime states during sandbox operation. When the traditional method reused the original software sandbox instance, 18 instances of abnormal runtime states being inherited by subsequent execution processes occurred, a state propagation rate of 6.0%, and 9 instances of duplicate execution of state change operations occurred, a duplication rate of 3.0%. With this invention, the first-generation software sandbox instance is destroyed after each external commit of a state change operation, and a next-generation software sandbox instance is created based on an immutable underlying environment. The execution state is then restored according to a trusted execution trajectory. In the 300 tests, no instances of the previous generation's runtime memory, temporary files, and writable runtime layers being inherited by the next generation occurred, nor were completed state change operations duplicated. This demonstrates that this invention can effectively cut off the cross-stage propagation of abnormal runtime states while maintaining the continuous execution of the target tool.
[0139] Furthermore, output security tests were conducted on 1000 tool execution results, adding fields outside the output range and preset sensitive fields to the tool execution results. When the traditional method directly returned the tool execution results, 64 instances of unauthorized field output and 41 instances of unmasked sensitive fields were detected. With this invention, unauthorized fields are filtered by matching the output range, and sensitive fields are processed according to field-level masking rules, reducing the number of unauthorized field outputs and the number of plaintext sensitive field outputs to zero. Simultaneously, the average time per tool call increased from 126ms in the traditional method to 141ms, an increase of approximately 11.9%. This indicates that by introducing side-effect interception, consistency verification, and sandbox replacement mechanisms, only limited execution overhead is incurred, yet the isolation of the tool call process, the reliability of state execution, and the security of the output results are significantly improved.
[0140] The above are merely preferred embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A security isolation method based on software sandboxes, characterized in that, Includes the following steps: S1. Receive tool call request, perform access verification, and determine the target tool call request; S2. Parse the target tool call request and generate an execution boundary description; S3. Create a first-generation software sandbox instance based on the execution boundary description, and establish a side effect interception channel between the first-generation software sandbox instance and external resources; S4. Execute the target tool within the first-generation software sandbox instance to form a trusted execution trajectory. Detect and intercept state change operations through the side effect interception channel, and generate a record of the effect to be submitted, preventing state change operations from being executed directly within the first-generation software sandbox instance. S5. Perform consistency verification based on the pending effect record, execution boundary description, and trusted execution trajectory, and generate a confirmed effect record; S6. Based on the confirmed effect record, execute the corresponding state change operation, generate the submission result, destroy the first-generation software sandbox instance, create the next-generation software sandbox instance, and replay to the corresponding execution position according to the trusted execution trajectory. Load the submission result as the return result of the state change operation into the next-generation software sandbox instance. S7. Continue executing the target tool within the next-generation software sandbox instance, repeatedly intercepting side effects, verifying effects, submitting externally, and replacing the sandbox instance for subsequent state change operations until the target tool completes execution. Perform field-level desensitization processing on the execution results to generate secure isolation results.
2. The security isolation method based on software sandbox according to claim 1, characterized in that, The tool invocation request is generated by the AI Agent based on the user's task.
3. The security isolation method based on software sandbox according to claim 1, characterized in that, The target tool call request is a tool call request that has been allowed to enter the subsequent sandbox execution process after the tool name and request parameters have been verified.
4. The software sandbox-based security isolation method according to claim 1, characterized in that, S2 specifically includes: Read the tool name and request parameters in the target tool call request, parse the target resource and operation type corresponding to the target tool, determine the operation parameters from the request parameters, and determine the scope of the target tool's action on the target resource and the range of result output based on the request parameters; The target resource, operation type, operation parameters, scope of application, and result output range are associated to generate an execution boundary description.
5. A software sandbox-based security isolation method according to claim 1, characterized in that, S3 specifically includes: Read the target resources, operation type, operation parameters, scope of application and result output range from the execution boundary description to form the boundary configuration of the first-generation software sandbox instance; A first-generation software sandbox instance is created based on the boundary configuration. The target tool is loaded into the first-generation software sandbox instance, and the boundary configuration is used as the execution boundary of the target tool. Identify the external resources corresponding to the target resource, establish a side effect interception channel between the first-generation software sandbox instance and the external resource, and associate the side effect interception channel with the first-generation software sandbox instance and the target resource; The state-changing operations generated by the target tool are imported into the side-effect interception channel, so that the state-changing operations are passed to the processing path outside the software sandbox instance via the side-effect interception channel.
6. The security isolation method based on software sandbox according to claim 1, characterized in that, S4 specifically includes: Execute the target tool within the first-generation software sandbox instance, obtain the operations generated during the execution of the target tool, and identify the side-effect-free operations and state-changing operations among them; Record the operation content and corresponding return value of operations without side effects to form a reliable execution trajectory; The system intercepts state-changing operations through a side-effect interception channel, extracts the target resource, operation type, operation parameters, and execution location corresponding to the state-changing operation, generates a state-changing operation record, and prevents the state-changing operation from being executed directly within the first-generation software sandbox instance. Based on the status change operation record and trusted execution trajectory, generate a record of the effect to be submitted.
7. A software sandbox-based security isolation method according to claim 1, characterized in that, S5 specifically includes: Read the target resource, operation type, operation parameters, execution location and trusted execution trajectory identifier from the record of the effect to be submitted, and obtain the corresponding execution boundary description and trusted execution trajectory; The target resource, operation type, scope parameters, and state change parameters in the operation parameters are matched with the target resource, operation type, scope, and operation parameters in the execution boundary description to generate boundary consistency results. Based on the execution location and trusted execution trajectory identifier, the record of the effect to be submitted is matched with the trusted execution trajectory to generate a trajectory consistency result; Consistency verification is performed by combining boundary consistency results and trajectory consistency results. Records of pending effects that exceed the execution boundary or are inconsistent with the trusted execution trajectory are blocked. Confirmation effect records are generated for records of pending effects that pass the verification.
8. A software sandbox-based security isolation method according to claim 1, characterized in that, S6 specifically includes: The system reads the target resource, operation type, operation parameters, execution location, and trusted execution trajectory identifier from the confirmation effect record. The submission process outside the software sandbox instance then performs the corresponding state change operation based on the target resource, operation type, and operation parameters to generate the submission result. After the state change operation is completed, the first-generation software sandbox instance is destroyed, and the next-generation software sandbox instance is created based on the immutable underlying environment. Based on the trusted execution trajectory identifier, the corresponding trusted execution trajectory is obtained. Within the next-generation software sandbox instance, the execution order, side-effect-free operations, and corresponding return values recorded by the trusted execution trajectory are replayed until the execution position corresponding to the confirmation effect record is reached. The submission result is loaded into the next-generation software sandbox instance as the return result of the state change operation, so that the next-generation software sandbox instance is restored to the execution position after the state change operation is completed.
9. A software sandbox-based security isolation method according to claim 1, characterized in that, Specifically, S7 includes: Continue executing the target tool within the next-generation software sandbox instance, acquire subsequent operations generated by the target tool, and identify the state change operations among them; Repeatedly intercept side effects, verify effects, submit externally, and replace sandbox instances for subsequent state change operations until the target tool completes execution and generates tool execution results. Read the result output range from the execution boundary description, match the result fields in the tool execution result with the result output range, retain the result fields within the result output range, and generate the execution result to be de-identified; Perform field-level desensitization on sensitive fields in the desensitization execution results, and associate the results of the completed field-level desensitization to generate a secure isolation result.
10. A software sandbox-based security isolation system, implementing the software sandbox-based security isolation method according to any one of claims 1 to 9, characterized in that, include: The access verification module is used to receive tool call requests, perform access verification, and determine the target tool call request; The execution boundary generation module is used to parse the target tool call request and generate an execution boundary description; The software sandbox creation module is used to create a first-generation software sandbox instance based on the execution boundary description, and to establish a side effect interception channel between the first-generation software sandbox instance and external resources; The side effect interception module is used to execute the target tool within the first-generation software sandbox instance, form a trusted execution trajectory, detect and intercept state change operations through the side effect interception channel, generate a record of the effect to be submitted, and prevent state change operations from being executed directly within the first-generation software sandbox instance. The consistency verification module is used to perform consistency verification based on the record of effect to be submitted, the execution boundary description and the trusted execution trajectory, and generate a confirmed effect record; The sandbox replacement execution module is used to execute the corresponding state change operation based on the confirmed effect record, generate the submission result, destroy the first-generation software sandbox instance, create the next-generation software sandbox instance, and replay to the corresponding execution position according to the trusted execution trajectory, and load the submission result as the return result of the state change operation into the next-generation software sandbox instance. The security result generation module is used to continue executing the target tool within the next-generation software sandbox instance. It repeatedly intercepts side effects of subsequent state change operations, verifies effects, submits externally, and replaces the sandbox instance until the target tool completes execution. It then performs field-level desensitization on the execution results to generate a secure isolation result.
