Method and device for linkage between double-layer security review and running snapshot of AI agent
By using a two-layer security review and operation snapshot linkage method for AI agents, the problem of single-layer fragmentation in existing agent security protection schemes is solved. This enables multi-dimensional risk scoring, sensitive information identification and dynamic interception, improving the ability to identify complex risks and prevent information leakage, and supporting accountability and rule updates.
Patent Information
- Application Number
- CN202611232464.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-14
- Publication Date
- 2026-11-27
AI Technical Summary
Existing intelligent agent security protection solutions are mostly single-layer and single-target, with the input and output sides being isolated from each other. They lack operational scenario specialization and operational snapshot-related auditing, making it difficult to identify complex risks, identify incomplete categories of sensitive information, and define responsibility for security incidents. They also lack closed-loop mechanisms.
It provides a two-layer security review and operation snapshot linkage method for AI intelligent agents. By inputting multi-dimensional risk scores for security reviews and outputting sensitive information interception for security reviews, it combines two-layer linkage and three-element correlation audit of security events to dynamically adjust the sensitivity of output interception and update risk scoring rules and interception strategies.
It enables multi-dimensional risk scoring of user requests and identification and interception of sensitive information in response content, dynamically adjusts the sensitivity of output interception, improves the ability to identify complex risks and protect against information leakage, and supports accountability and rule updates.
Smart Images

Figure CN123180130A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of artificial intelligence security technology, specifically to a method and apparatus for linking two-layer security review and operation snapshot of an AI agent. Background Technology
[0002] Intelligent agents serving parking lot operations need to receive a large number of user requests and generate response content during external service delivery. This presents risks on both the user request side (e.g., prompt word injection, unauthorized access, and tool abuse) and the response content side (e.g., system prompt words, hidden context, and leakage of sensitive operational data). Existing intelligent agent security solutions mostly focus on the input side, performing prompt word injection detection and keyword filtering on user requests. The results are often binary outputs of allow or block, lacking a multi-dimensional characterization of request risks. This makes it difficult to distinguish between normal queries and disguised, misleading requests, and provides insufficient coverage for identifying complex risks such as unauthorized access and tool abuse.
[0003] Some solutions detect system prompt word leakage and encrypt privacy words on the output side, but the input and output sides are independent. Risk signals identified on the input side cannot be transmitted to the output side, and the interception sensitivity on the output side remains fixed. When a user request already exhibits characteristics of induced leakage, the output side still reviews the generated content with a normal threshold, and critical sensitive segments are easily allowed to pass. The scope of sensitive information detected by existing output sides is limited, and the identification of categories such as developer prompt words, hidden context, prompt word arrangement logic, skill index generation logic, runtime architecture, inter-agent collaboration protocols, model context protocol configuration, vault boundaries, and sensitive operational data is incomplete, resulting in incomplete coverage of leakage.
[0004] The more fundamental problem lies in the fact that existing solutions lack the ability to correlate auditing with operational snapshots. Security audit results are recorded in discrete logs, making it difficult to trace back the agent's configuration version, context state, and skill package version at the time of audit judgment. Security events are disconnected from the operational state, making responsibility identification and problem localization difficult. Furthermore, there is a lack of specialized protection rules for parking space data, billing rules, and customer information in parking lot operation scenarios, and a lack of a closed-loop mechanism for continuously updating risk scoring rules and interception strategies based on audit feedback. Therefore, a two-layer security audit and operational snapshot linkage method for parking lot operation agents is needed, combining input security audit, output security audit, two-layer linkage, and operational snapshot-related auditing. Summary of the Invention
[0005] To address the issues that existing AI agent security protection solutions are mostly single-layer and single-target, with isolated input and output sides, and lack of operational scenario specialization and runtime snapshot-related auditing, this application provides a two-layer security review and runtime snapshot linkage method and apparatus for AI agents. This method can perform multi-dimensional risk scoring on user requests instead of binary judgment, identify and intercept generated content based on a sensitive information category system, and increase the sensitivity of output interception when induced disclosure is detected. Furthermore, it links security events with runtime snapshots to form a three-element audit correlation, which is used to update rules, thereby improving attack scenario coverage, unauthorized operation interception effectiveness, and information leakage protection capabilities.
[0006] To solve at least one of the above problems, this application provides the following technical solution: Firstly, this application provides a two-layer security review and snapshot linkage method for AI agents, comprising: performing an input security review on the user request when the agent receives a user request; generating a multi-dimensional risk score and graded handling suggestions for the user request based on a preset multi-dimensional input risk assessment system; aggregating the multi-dimensional risk score and the graded handling suggestions to generate an input review result; and setting a linkage signal when the input review result indicates an intention to induce disclosure; performing an output security review on the response content after the agent generates response content; identifying sensitive information in the response content and blocking content that hits the sensitive information category system based on a preset sensitive information category system; dynamically adjusting the interception sensitivity of the output security review according to the linkage signal; aggregating the interception result and the adjusted interception sensitivity to generate an output review result; generating a security event at each judgment based on the input review result and the output review result; associating the security event with the snapshot identifier of the current operation to form an audit ternary association consisting of input review, output review, and snapshot identifier; updating the risk scoring rules of the multi-dimensional input risk assessment system and the interception strategy of the output security review based on the feedback of the audit ternary association and feeding back to the input security review.
[0007] Furthermore, it also includes: capturing user requests at the request access point of the intelligent agent and registering the request original text and source channel with the request identifier as the primary key; determining whether the user request enters the input security review process based on a preset review triggering rule family; performing semantic parsing and intent classification on the user requests that enter the input security review process; mapping the parsed elements and intent categories to a preset risk feature space to generate a request representation to be evaluated; and writing the request representation to be evaluated into the input review cache.
[0008] Furthermore, it also includes: reading the request characterization to be evaluated, calculating the risk metric values of request risk level, abuse intent degree and prompt word injection risk dimension by dimension according to the multidimensional input risk assessment system, and aggregating them to generate a multidimensional risk score; generating a graded handling suggestion by matching the multidimensional risk score with a preset graded handling rule family; setting a linkage signal when the abuse intent degree or the prompt word injection risk exceeds the induced leakage judgment condition and transmitting the linkage signal to the output security review.
[0009] Furthermore, it also includes: parsing the response content into semantic units and extracting candidate sensitive segments; matching the candidate sensitive segments according to the sensitive information category system; generating a sensitive hit record that registers the hit category, hit location, and matching confidence when any category is hit; performing interception and desensitization processing on the response content that hits the sensitive information category system according to the sensitive hit record; replacing the hit segments with placeholders and masking the vehicle number and customer identity fields of the sensitive business data; and aggregating the intercepted segment list, the desensitized field list, and the residual sensitive risk metric to generate the output review result.
[0010] Furthermore, it also includes: when the linkage signal is set, increasing the interception weights of the privacy category and the credential category in the sensitive information category system according to the trigger dimension of the linkage signal, and decreasing the matching threshold conditions of the corresponding categories so that candidate sensitive segments in the critical interval enter the interception range to generate an adjusted interception strategy; re-performing the output security review of the response content according to the adjusted interception strategy and supplementing the newly added hit segments as additional hit records; aggregating the re-reviewed interception results with the linkage signal status to generate an output review result; and restoring the baseline interception sensitivity of each category when the linkage signal is reset.
[0011] Furthermore, it also includes: aligning the input review result and the output review result according to the request identifier and response identifier when each review and judgment is completed, organizing and generating a structured security event record according to a preset event structure template; matching the risk level of the structured security event record with a preset alarm rule family to trigger the corresponding alarm, writing the structured security event record into the security event log in the order of the judgment time, and pushing records whose risk level exceeds the alarm threshold to the operation monitoring.
[0012] Furthermore, it also includes: associating the structured security event record with the snapshot identifier of the current operation to form an audit ternary association, and archiving the audit ternary association to the audit storage with the snapshot identifier as the primary key; statistically analyzing the misjudgment distribution and missed judgment distribution of each risk dimension based on the feedback of the audit ternary association, adjusting the execution parameters and supplementing the rules of the risk scoring rules and interception strategies according to the misjudgment distribution and the missed judgment distribution, and feeding back the updated rules that have been verified by grayscale to the input security review and the output security review.
[0013] Secondly, this application provides a dual-layer security review and operation snapshot linkage device for an AI agent, comprising: an input security review module, used to perform input security review on the user request when the agent receives the user request, generate a multi-dimensional risk score and graded handling suggestions for the user request based on a preset multi-dimensional input risk assessment system to generate an input review result, and set a linkage signal when the input review result indicates an intention to induce disclosure; an output security review module, used to perform output security review on the response content after the agent generates response content, identify sensitive information in the response content based on a preset sensitive information category system and intercept content that hits the sensitive information category system to generate an output review result; and a dual-layer linkage module, used to activate the linkage signal according to the linkage signal. The system dynamically adjusts the interception sensitivity of the output security review, increasing the interception weights of the privacy category and credential category and decreasing the matching threshold conditions of the corresponding categories when the linkage signal is set, driving the output security review module to re-execute the review; the event association module is used to generate a structured security event record at each judgment based on the input review result and the output review result, and associate the structured security event record with the snapshot identifier of the current operation to form an audit ternary association composed of input review, output review and snapshot identifier; the audit feedback module is used to statistically analyze the misjudgment distribution and missed judgment distribution of each risk dimension based on the feedback of the audit ternary association, and adjusts and supplements the execution parameters of the risk scoring rules and the interception strategy accordingly before feeding back to the input security review module.
[0014] Thirdly, this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the two-layer security review and snapshot linkage method of the AI agent.
[0015] Fourthly, this application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the dual-layer security review and snapshot linkage method for the AI agent.
[0016] Fifthly, this application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the dual-layer security review and runtime snapshot linkage method for the AI agent.
[0017] As can be seen from the above technical solution, this application provides a method and apparatus for a two-layer security review and operation snapshot linkage of an AI intelligent agent. The input security review generates a multi-dimensional risk score and graded handling suggestions for user requests based on a multi-dimensional input risk assessment system. The output security review identifies, intercepts and desensitizes the response content based on a sensitive information category system. The two-layer linkage dynamically adjusts the sensitivity of output interception when the intention to induce leakage is detected. The security event is associated with the operation snapshot to form an audit ternary association. The risk scoring rules and interception strategies are updated based on the feedback of the audit ternary association and fed back to the input security review to form a closed loop. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below.
[0019] Figure 1 This is a flowchart illustrating the two-layer security review and runtime snapshot linkage method for AI agents in this application embodiment; Figure 2 This is a schematic diagram of the structure of the dual-layer security review and operation snapshot linkage device for the AI agent in this application embodiment; Figure 3 This is a schematic diagram of the dynamic adjustment and re-examination process of the two-layer linkage interception sensitivity in the embodiments of this application. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of this application, but not all embodiments.
[0021] Considering that existing intelligent agent security protection schemes are mostly single-layer and single-target, with the input and output sides being isolated from each other, and lacking operational scenario specialization and operational snapshot-related auditing, this application provides a two-layer security review and operational snapshot linkage method for AI intelligent agents. By using multi-dimensional risk scoring for input security review, sensitive information interception for output security review, sensitivity adjustment of linkage between the two layers of review, and three-element auditing correlation between security events and operational snapshots, a two-layer security protection is provided for intelligent agents for parking lot operations.
[0022] This application provides an embodiment of a two-layer security review and runtime snapshot linkage method for AI agents, see [link to embodiment]. Figure 1 The method specifically includes the following: Step S101: When the intelligent agent receives a user request, it performs an input security review on the user request, generates a multi-dimensional risk score and graded handling suggestions for the user request based on a preset multi-dimensional input risk assessment system, aggregates the multi-dimensional risk score and the graded handling suggestions to generate an input review result, and sets a linkage signal when the input review result indicates an intention to induce leakage.
[0023] In this embodiment, the method runs on a smart agent runtime protection platform for parking lot operations, such as... Figure 2 As shown, the platform adopts a layered architecture consisting of an input review layer, an output review layer, a linkage control layer, and an event audit layer. The intelligent agent captures user requests at the request access point and registers the request original text, source channel, and reception time using the request identifier as the primary key. The request identifier is generated from the reception time and source channel.
[0024] In one feasible implementation, semantic parsing and intent classification are performed on user requests entering the input security review process. The request text is segmented into sentences, and action words and object words are extracted and mapped to preset action and object ontologies. The mapping results are organized into request representations to be evaluated according to intent category, object sensitivity level, and action risk level. Unmatched terms are registered with an unrecognized identifier and transferred to a term expansion queue.
[0025] The multidimensional input risk assessment system calculates risk metrics for each dimension of the request to be assessed. This system is organized around six dimensions: request risk level, abuse intent, prompt word injection risk, privacy exposure risk, unauthorized access risk, and tool abuse risk. The request risk level takes five values: Level 1, Level 2, Level 3, Level 4, and blocked. The abuse intent and the other dimensions are assigned normalized scores from 0 to 1. The scores from each dimension are weighted and aggregated to generate a multidimensional risk score.
[0026] In one specific implementation, a tiered handling recommendation is generated based on a pre-defined set of tiered handling rules matched with a multi-dimensional risk score. This recommendation is organized into seven levels: release, notification, restriction, desensitization, manual review, rejection, and blocking. Level 1 requests are released, Level 4 requests are rejected, and requests that exceed the judgment criteria simultaneously due to both intent to abuse and the risk of injecting notification words are manually reviewed and then enter the induced disclosure analysis. The judgment thresholds for each dimension are determined by taking the equilibrium point of recall and precision on the receiver operating characteristic curve using a historical request annotation set. When the annotation set is missing, the system reverts to the empirical threshold conditions given by the operations expert and registers the revert indicator.
[0027] In the parallel processing path, requests that time out during multidimensional risk score calculation are marked with a timeout flag and temporarily handled according to the current highest risk level. After recalculation, the representation of the request to be evaluated is updated. The multidimensional risk score and the tiered handling suggestions are aggregated to generate the input review result. The input review result uses the request identifier as the primary key and includes the scores for each dimension, the tiered handling suggestions, and the confidence level field.
[0028] When the degree of abuse intent or the risk of injecting the prompt word exceeds the induced leakage judgment condition, the linkage signal is set. The linkage signal is written into the linkage status table with the session identifier as the primary key, so that step S102 can read it by the session identifier at the interception sensitivity adjustment entry. The review result is input so that step S103 can read it by the request identifier at the event generation entry.
[0029] Step S102: After the agent generates response content, it performs output security review on the response content, identifies sensitive information in the response content according to the preset sensitive information category system and blocks the content that hits the sensitive information category system, dynamically adjusts the interception sensitivity of the output security review according to the linkage signal, and aggregates the interception result and the adjusted interception sensitivity to generate the output review result.
[0030] After the input review result and linkage signal are ready in step S101, the agent generates response content and performs output security review, such as... Figure 1 As shown, the response content and associated request identifier are registered using the response identifier as the primary key. The response content is parsed in segments by paragraph and semantic unit, and candidate sensitive segments are extracted.
[0031] In one specific implementation, candidate sensitive fragments are matched category by category according to a preset sensitive information category system. This sensitive information category system covers six categories of internal structural information: system prompts, developer prompts, hidden context, prompt arrangement logic, skill index generation logic, and runtime architecture; and six categories of external interaction information: inter-agent collaboration protocols, model context protocol configuration, vault boundaries, risk strategies, unauthorized privacy, and operational sensitive data, totaling 12 categories. Operational sensitive data is further subdivided for parking lot scenarios into parking space distribution data, billing rule data, and customer identity data.
[0032] Each sensitive information category is configured with three matching methods: regular expression pattern, semantic fingerprint, and vector prototype. When a candidate sensitive fragment matches any category, a sensitive hit record is generated. The sensitive hit record registers the hit category, hit location, matching method, and matching confidence fields. Categories that fail to load vector prototypes fall back to regular expression pattern matching and register a downgrade flag.
[0033] The interception sensitivity is dynamically adjusted based on the status of the linkage signal, such as... Figure 3As shown. When the linkage signal is reset, the baseline interception sensitivity is used for each category. When the linkage signal is set, the interception weights of the privacy category and the credential category are increased and the matching threshold conditions of the corresponding categories are decreased, so that candidate sensitive segments with matching confidence in the critical interval enter the interception range, and the adjusted interception strategy is generated.
[0034] Based on this, and according to the sensitive hit records and adjusted interception strategy, the response content of the hit sensitive information category system is intercepted and desensitized. Interception replaces the hit fragment with a placeholder marker, desensitization masks the vehicle number and customer identity fields of the sensitive operational data, and sensitive hit records with a confidence level lower than the preset review threshold are registered with a review pending flag and transferred to secondary analysis. Upon confirmation, additional interception is performed.
[0035] In one feasible implementation, the intercepted fragment list, the desensitized field list, the hit category distribution, and the residual sensitivity risk metric are aggregated to generate an output review result, wherein the output review result uses the response identifier as the primary key. The interception weight is set according to the category sensitivity level, and the review threshold condition is calibrated based on the balance point between the false block rate and the missed block rate. When the parameters exceed the limits, the configuration is reverted to the baseline and the out-of-limit flag is registered. The output review result is then read by step S103 at the event generation entry point according to the response identifier.
[0036] Step S103: Generate a security event at each judgment based on the input review result and the output review result. Associate the security event with the snapshot identifier of the current operation to form an audit ternary association consisting of input review, output review and snapshot identifier. Update the risk scoring rules of the multidimensional input risk assessment system and the interception strategy of the output security review based on the feedback of the audit ternary association and feed back to the input security review.
[0037] After the output review result from step S102 and the input review result from step S101 are ready, the event audit layer organizes the generation of security events upon completion of each review and determination. The request identifier and response identifier are aligned on both sides of the result, and event generation is triggered sequentially according to the determination time.
[0038] In one specific implementation, a structured security event record is generated by filling in fields for security events based on a preset event structure template. The structured security event record uses the event identifier as the primary key and includes fields for judgment time, review level, hit category, risk level, and handling action. The review level takes two values: input review and output review. The risk level is determined by the higher of the highest dimension score of the multi-dimensional risk score and the residual sensitive risk metric value from the output review. When the event structure template is missing, it is filled in using a default template, and a missing identifier is registered.
[0039] The structured security event log is associated with the snapshot identifier of the current operation. The snapshot identifier points to the runtime snapshot of the agent's current operation. The runtime snapshot records the configuration version, context state, skill pack version, and credential boundary configuration. The association constitutes an audit ternary association consisting of input review, output review, and snapshot identifier. The references of the three are recorded in the form of a triple and concatenated by the event identifier.
[0040] Based on this, audit ternary associations are archived to audit storage using the snapshot identifier as the primary key. Multiple audit ternary associations under the same snapshot identifier are sorted by the judgment time and a secondary index is created by the running session. Audit ternary associations that fail to archive are registered with an archiving exception identifier and transferred to the retry queue. Security events with missing snapshot identifiers are registered with a snapshot missing identifier and suspended until they are filled. If they are not filled after the waiting time limit, they are replaced by the running session identifier.
[0041] Structured security incidents whose risk level exceeds the preset alarm threshold are logged and matched with alarm levels according to preset alarm rule families, and then pushed to the operations monitoring system. The alarm levels are organized into three categories: alert, notification, and emergency response. Emergency response alarms are simultaneously pushed to the security duty personnel. Structured security incidents are logged in the security incident log in the order of the judgment time.
[0042] By analyzing the distribution of misjudgments and omissions across various risk dimensions in the feedback statistics of the audit tripartite correlation, the rule items with significant deviations between the risk scoring rules and the interception strategy were identified. Based on this, the execution parameters of the risk scoring rules of the multi-dimensional input risk assessment system and the interception strategy of the output security review were adjusted and rules were supplemented. The updated rules were then subjected to gray-scale verification to compare the misjudgment rate and omission rate before and after the update.
[0043] After successful verification, the rules are fed back to input and output security reviews, forming a closed loop of input review, output review, event auditing, and rule feedback. Feedback update records are written to the rule version repository using the rule version number as the primary key. Updates that fail verification are marked as failed and rolled back to the previous version, allowing subsequent access to the effective rule at the input security review entry point by rule version number.
[0044] As can be seen from the above description, the AI intelligent agent dual-layer security review and operation snapshot linkage method provided in this application embodiment can perform multi-dimensional risk scoring on user requests through input security review, identify and intercept generated content based on the sensitive information category system through output security review, dynamically adjust the sensitivity of output interception based on input risk through dual-layer linkage, and support responsibility tracing and rule feedback through the three-element audit association between security events and operation snapshots.
[0045] In one embodiment of the two-layer security review and runtime snapshot linkage method for AI intelligent agents in this application, see [link to relevant documentation]. Figure 3 It can also specifically include the following: Step S201: Capture the user request at the request access point of the intelligent agent and register the request original text and source channel with the request identifier as the primary key. Determine whether the user request enters the input security review process according to the preset review trigger rule family. Step S202: Perform semantic parsing and intent classification on user requests entering the input security review process, map the parsed elements and intent categories to a preset risk feature space to generate a request representation to be evaluated, and write the request representation to be evaluated into the input review cache.
[0046] In step S101, the input review layer captures user requests at the request access point of the intelligent agent. The request access point uses an interceptor to capture external response requests and operational data access requests from the intelligent agent. It registers the request original text, source channel, and receiving time using the request identifier as the primary key. The request identifier is generated by concatenating the receiving time and the hash value of the source channel. The source channel distinguishes between dialogue entry points, interface call entry points, and operational backend entry points.
[0047] After the original request text and the source channel are registered, a preset set of review trigger rules determines whether the user request should enter the input security review process. The review trigger rule set includes all external response requests and operational data access requests in the input security review process, while bypassing requests for heartbeat and health check requests and allowing them to pass directly. The determination result is recorded in the request access ledger, and requests that are bypassed are marked with a bypass identifier.
[0048] Semantic parsing is performed on user requests that enter the input security review process. The request text is segmented into sentences and action words and object words are extracted and mapped to preset action and object ontologies. Unidentified words are registered as unrecognized and transferred to the word expansion queue. After the word expansion results are written back, the parsing process is restarted.
[0049] The parsing results are used to classify intents. Based on a pre-defined intent classification model, the business intent category is determined and a confidence level is output. Requests with confidence levels below a pre-defined threshold are registered with a low-confidence flag and given increased review weight in subsequent risk scoring. The intent classification model is trained using a historical request annotation set, with training data covering both normal queries and induced disclosure samples.
[0050] The intent category is mapped to the extracted action words and object words into a preset risk feature space to generate a request representation to be evaluated. The request representation to be evaluated uses the request identifier as the primary key and includes fields for intent category, object sensitivity level, action hazard level, and contextual risk factor. The object sensitivity level is determined based on the operational sensitivity marked in the object ontology.
[0051] Accordingly, the request representation to be evaluated is written into the input review cache, which uses the request identifier as the primary key and retains historical request representations within the session for correlation analysis. Representations of failed cache writes are registered with a cache exception flag and persisted to disk in a persistent queue, for use by step S301 at the multidimensional risk scoring entry point by request identifier.
[0052] In one embodiment of the two-layer security review and runtime snapshot linkage method for AI intelligent agents in this application, the following content may also be included: Step S301: Read the request representation to be evaluated, calculate the risk metric values of request risk level, abuse intent degree and prompt word injection risk in each dimension according to the multi-dimensional input risk assessment system, and aggregate to generate a multi-dimensional risk score; Step S302: Generate graded handling suggestions based on the multidimensional risk score matching the preset graded handling rule family, set the linkage signal when the degree of abuse intent or the risk of the prompt word injection exceeds the induced leakage judgment condition, and transmit the linkage signal to the output security review.
[0053] After the request to be evaluated in step S201 is ready, the risk metric is calculated dimension by dimension according to the multi-dimensional input risk assessment system. The fields of intent category, object sensitivity level, and action danger level of the request to be evaluated are read, and the risk metric values of request risk level, abuse intent degree, and prompt word injection risk are calculated dimension by dimension.
[0054] The request risk level is determined by a combination of the object's sensitivity level and the action's danger level, using a table to select one of five values: Level 1 to Level 4, and "Blocked". The abuse intent level is determined by a normalized score of 0 to 1 based on the tendency to induce leakage output by the intent classification model. The prompt word injection risk level is determined by a normalized score of 0 to 1 based on the matching degree between the request text and a known injection pattern library. The scores from each dimension are weighted and aggregated to generate a multi-dimensional risk score, with the weights determined based on the contribution of each dimension to the unauthorized event.
[0055] The multidimensional risk score also incorporates risk measures from three dimensions: privacy exposure risk, unauthorized access risk, and tool abuse risk. The privacy exposure risk measure is the extent to which a request targets customer identity data; the unauthorized access risk measure is the extent to which a request exceeds session permission boundaries; and the tool abuse risk measure is the extent to which a request invokes high-risk tools. The scores from each dimension are aggregated into a multidimensional risk score vector.
[0056] The multidimensional risk score is matched with a pre-defined family of tiered handling rules to generate tiered handling recommendations. The tiered handling rule family maps the multidimensional risk score to seven levels of handling: release, notification, restriction, anonymization, manual review, rejection, and blocking. The rule family is organized using a decision tree, with higher-dimensional scores triggering higher-level handling. The tiered handling recommendations include identifiers for the matched rule items for audit traceability.
[0057] When the degree of abuse intent or the risk of injecting prompt words exceeds the induced leakage judgment condition, a linkage signal is set. The induced leakage judgment condition is determined by taking the quantile point label based on the score distribution of induced leakage samples on the annotation set. The linkage signal is written into the linkage status table with the session identifier as the primary key, and the setting time and trigger dimension are recorded.
[0058] Accordingly, the linkage signal is transmitted to the output security review. The trigger dimension of the linkage signal is used by the output security review to adjust the interception weight according to the dimension emphasis. Requests that time out during multi-dimensional risk score calculation are registered with a timeout flag and temporarily handled according to the current highest risk level. The input review result is read by step S103 at the event generation entry according to the request flag, and the linkage signal is read by step S102 at the interception sensitivity adjustment entry according to the session flag.
[0059] In one embodiment of the two-layer security review and runtime snapshot linkage method for AI intelligent agents in this application, the following content may also be included: Step S401: Parse the response content by semantic units and extract candidate sensitive segments. Match the candidate sensitive segments according to the sensitive information category system. When any category is hit, generate a sensitive hit record that registers the hit category, hit position and matching confidence. Step S402: Based on the sensitive hit record, perform interception and desensitization processing on the response content that hits the sensitive information category system, replace the hit fragment with a placeholder mark, and perform masking on the vehicle number and customer identity fields of the sensitive data. Aggregate the intercepted fragment list, the desensitized field list, and the residual sensitive risk measurement value to generate the output review result.
[0060] The output review layer parses the response content into semantic units after the agent generates the response content. It registers the response content and its associated request identifier using the response identifier as the primary key, divides the response content into semantic units according to paragraph and syntactic boundaries, extracts candidate sensitive segments from each unit, and registers the semantic unit number and character range of each candidate sensitive segment.
[0061] The candidate sensitive fragments are matched category by category according to the sensitive information category system to generate sensitive hit records. The sensitive information category system covers six categories of internal construction information: system prompt words, developer prompt words, hidden context, prompt word arrangement logic, skill index generation logic and runtime architecture; and six categories of external interaction information: intelligent agent collaboration protocol, model context protocol configuration, vault boundary, risk strategy, unauthorized privacy and business sensitive data.
[0062] Each sensitive information category is configured with three matching methods: regular expression pattern, semantic fingerprint, and vector prototype. The regular expression pattern matches structured sensitive strings, the semantic fingerprint matches rewritten and deformed sensitive expressions, and the vector prototype matches semantically similar implicit leaks. Operational sensitive data is further subdivided into three subcategories for parking lot scenarios: parking space distribution data, billing rule data, and customer identity data. Each subcategory is configured with an independent matching mode.
[0063] When a candidate sensitive fragment hits any category, a sensitive hit record is generated. This record registers the hit category, hit location, matching method, and matching confidence level. When the same fragment hits multiple categories, the category with the highest sensitivity level is selected as the primary hit category. Categories where vector prototype loading fails fall back to regular expression pattern matching and a downgrade flag is registered.
[0064] Based on the sensitive hit records, the response content that hits the sensitive information category system is intercepted and de-identified. Interception replaces the hit fragment with a placeholder marker, and de-identification masks the vehicle number and customer identity fields of the sensitive operational data. Sensitive hit records with a confidence level lower than the preset review threshold are registered with a review pending flag and transferred to secondary analysis.
[0065] Based on this, the list of intercepted fragments and the residual sensitive risk metric are aggregated to generate the output review result. The output review result uses the response identifier as the primary key and includes the list of intercepted fragments, the list of de-identified fields, the hit category distribution, and the residual sensitive risk metric field. The residual sensitive risk metric is calculated as a weighted sum of the low-confidence hits that were not intercepted, and is read by the response identifier at the event generation entry point in step S103.
[0066] In one embodiment of the two-layer security review and runtime snapshot linkage method for AI intelligent agents in this application, see [link to relevant documentation]. Figure 3 It can also specifically include the following: Step S501: When the linkage signal is set, the interception weights of the privacy category and the credential category in the sensitive information category system are increased according to the trigger dimension of the linkage signal, and the matching threshold conditions of the corresponding categories are decreased so that the candidate sensitive segments in the critical interval enter the interception range and generate the adjusted interception strategy. Step S502: Based on the adjusted interception strategy, re-execute the output security review on the response content and add new hit segments as additional hit records. Aggregate the re-reviewed interception results with the linkage signal status to generate the output review results. When the linkage signal is reset, restore the baseline interception sensitivity of each category.
[0067] After the sensitive hit record and linkage signal are ready in step S401, the linkage control layer performs interception sensitivity adjustment according to the state of the linkage signal, such as... Figure 3As shown. When the linkage signal is reset, each sensitive information category adopts a baseline interception sensitivity, which is determined by the baseline interception weight of each category and the baseline matching threshold condition.
[0068] When the linkage signal is set, the interception weights of the privacy category and the credential category in the sensitive information category system are increased, and the matching threshold conditions of the corresponding categories are decreased to generate an adjusted interception strategy, such as... Figure 3 As shown. The privacy category covers unauthorized privacy and customer identity data, while the credential category covers credential vault boundaries and model context protocol configuration.
[0069] The adjustment range is determined based on the trigger dimension of the linkage signal. When the risk of prompt word injection is triggered, the blocking weight of the internal structure information category is increased. When the risk of privacy exposure is triggered, the blocking weight of the unauthorized privacy and business sensitive data categories is increased. The adjustment range of the matching threshold condition is calibrated based on the confidence distribution of historical missed samples. After the adjustment, the lowest threshold condition is still retained to suppress false blocking.
[0070] Based on the adjusted interception strategy, the output security review is re-executed on the response content, such as... Figure 3 As shown. The candidate sensitive segments extracted in reuse step S401 are re-examined, and only the critical segments whose matching confidence is between the original threshold condition and the downgraded threshold condition are re-evaluated. Newly added hit segments are added and registered as enhanced hit records.
[0071] The re-examined interception results are aggregated with the linkage signal status to generate an output review result. This output review result registers the baseline review hit, enhanced review hit, and linkage signal status fields to support audit differentiation. Based on this, the list of intercepted segments and residual sensitive risk metrics are updated synchronously after the enhanced hit record is formed.
[0072] When the linkage signal is reset, the baseline interception sensitivity is restored. The reset event is triggered when the session ends or the input review result is refreshed to low risk. After the reset, the interception weights and matching threshold conditions of each category fall back to the baseline configuration and the reset time is recorded. The adjusted interception policy is written to the policy cache with the session identifier as the primary key, so that step S601 can read the linkage status by the session identifier at the event generation entry.
[0073] In one embodiment of the two-layer security review and runtime snapshot linkage method for AI intelligent agents in this application, the following content may also be included: Step S601: When each review and judgment is completed, align the input review result and the output review result according to the request identifier and the response identifier, and organize and generate a structured security event record according to the preset event structure template; Step S602: Match the preset alarm rule family with the risk level of the structured security event record to trigger the corresponding alarm, write the structured security event record into the security event log in the order of the judgment time, and push the record whose risk level exceeds the alarm threshold to the operation monitoring.
[0074] After the output review result of step S501 and the input review result of step S301 are ready, the event audit layer aligns the results on both sides based on the request identifier and the response identifier when each review judgment is completed. The input review result and output review result of the same interaction are aligned with the request identifier as the link, and an event generation sequence is established according to the judgment time, with one security event generated for each judgment.
[0075] Structured security event records are generated based on a preset event structure template. The structured security event record uses the event identifier as the primary key and includes fields such as judgment time, review level, hit category, risk level, handling action, and associated request identifier. The review level takes two values: input review and output review. The risk level is determined by the higher of the highest dimension score of the multidimensional risk score and the residual sensitive risk measurement value of the output review.
[0076] When an event structure template is missing, it is filled in with the default template and a template missing flag is registered. Records where field filling fails are registered with a filling exception flag and transferred to the manual filling queue. After the structured security event record is generated, the linkage signal status of the current session is attached for auditing to reconstruct the two-layer linkage process.
[0077] Based on the risk level recorded in the structured security event log, a preset alarm rule family is matched to trigger the corresponding alarm. The alarm rule family maps the risk level to three levels of alarms: alert, notification, and emergency response. The alert level is recorded in the event log, the notification level is pushed to the operations monitoring system, and the emergency response level is simultaneously pushed to the operations monitoring system and the security duty system.
[0078] The structured security event records are written to the security event log in the order of the judgment time. The security event log is stored in an append-only manner and indexed by event identifiers. Records that fail to write to the log are registered with an exception identifier and transferred to the retry queue.
[0079] Based on this, records whose risk level exceeds the alarm threshold are pushed to the operations monitoring system. The alarm threshold is determined by the operator's tolerance for unauthorized access and data breaches, and can be adjusted according to parking lot operating hours. Structured security event records are available for step S701 to read by event identifier at the snapshot association entry.
[0080] In one embodiment of the two-layer security review and runtime snapshot linkage method for AI intelligent agents in this application, the following content may also be included: Step S701: Associate the structured security event record with the snapshot identifier of this operation to form an audit ternary association, and archive the audit ternary association to the audit storage with the snapshot identifier as the primary key; Step S702: Based on the feedback statistics of the audit ternary correlation, the misjudgment distribution and the missed judgment distribution of each risk dimension are statistically analyzed. Based on the misjudgment distribution and the missed judgment distribution, the risk scoring rules and interception strategy execution parameters are adjusted and the rules are supplemented. The updated rules that have been verified by gray scale are fed back to the input security review and the output security review.
[0081] After the structured security event record is ready in step S601, the structured security event record is associated with the snapshot identifier of the current run to form an audit ternary association. The snapshot identifier points to the running snapshot of the agent in this run. The running snapshot records the configuration version, context state, skill pack version and credential boundary configuration. The snapshot identifier is generated by the agent at the start of the session and is updated with the running state.
[0082] The association structure consists of an input review, an output review, and a snapshot identifier, forming an audit ternary association. This is recorded as a triplet of input review result references, output review result references, and the snapshot identifier, linked together by an event identifier. Associations lacking a snapshot identifier are registered with the missing snapshot identifier and suspended pending completion.
[0083] The audit ternary associations are archived to the audit storage using the snapshot identifier as the primary key. The audit storage is organized using the snapshot identifier as the primary key and a secondary index is created according to the running session. Multiple audit ternary associations under the same snapshot identifier are sorted according to the judgment time. Audit ternary associations that fail to be archived are registered with an archiving exception flag and transferred to the retry queue.
[0084] Based on the feedback statistics of the aforementioned audit tripartite correlation, the distribution of misjudgments and omissions for each risk dimension is statistically analyzed. The misjudgment distribution is the percentage of records that were intercepted but were determined to be normal after review in each risk dimension. The omission distribution is the percentage of records that were released but were determined to be leaked after post-audit analysis in each risk dimension. Based on this, rule items with large deviations are identified.
[0085] Based on the false positive and false negative distributions, the risk scoring rules and interception strategies are adjusted and supplemented with parameters. Parameter adjustments correct the weights of each dimension and the judgment threshold conditions. Rule supplementation adds matching patterns and scoring rules for newly emerging attack patterns. The updated rules are then subjected to gray-scale verification to compare the false positive and false negative rates before and after the update.
[0086] Updated rules that have passed gray-scale verification are fed back to the input security review and the output security review, forming a closed loop of input review, output review, event auditing, and rule feedback. The feedback update record is written to the rule version repository with the rule version number as the primary key. Updates that fail verification are marked as verification failures and rolled back to the previous version, so that the effective rules can be read by rule version number at the input security review entry point later.
[0087] To implement all or part of the aforementioned method, this application provides an embodiment of an apparatus for implementing the two-layer security review and snapshot linkage method for the AI agent, see [link to embodiment]. Figure 2 The device specifically includes the following components: The input security review module is used to perform an input security review on the user request when the intelligent agent receives the user request. Based on the preset multi-dimensional input risk assessment system, it generates a multi-dimensional risk score and graded handling suggestions for the user request to generate an input review result. When the input review result indicates an intention to induce leakage, it sets a linkage signal. The output security review module is used to perform an output security review on the response content after the agent generates the response content. Based on the preset sensitive information category system, it identifies sensitive information in the response content and intercepts content that hits the sensitive information category system to generate an output review result. The dual-layer linkage module is used to dynamically adjust the interception sensitivity of the output security review according to the linkage signal. When the linkage signal is set, the interception weight of the privacy category and the credential category is increased and the matching threshold condition of the corresponding category is decreased to drive the output security review module to re-execute the review. The event association module is used to generate a structured security event record based on the input review result and the output review result at each judgment, and associate the structured security event record with the snapshot identifier of the current operation to form an audit ternary association consisting of input review, output review and snapshot identifier; The audit feedback module is used to statistically analyze the distribution of misjudgments and omissions in each risk dimension based on the feedback of the audit ternary correlation, and then adjust and supplement the risk scoring rules and interception strategy execution parameters before feeding them back to the input security review module.
[0088] The input security review module intercepts user requests at the agent's request access point, registering the original request text and source channel using the request identifier as the primary key. After semantic parsing and intent classification of user requests entering the input security review process, it maps these requests to a risk feature space to generate a request representation to be evaluated. Based on a multi-dimensional input risk assessment system, it calculates risk measures for request risk level, abuse intent, prompt word injection risk, privacy exposure risk, unauthorized access risk, and tool abuse risk dimensionally, and aggregates these to generate a multi-dimensional risk score. Based on the multi-dimensional risk score, it matches a family of tiered handling rules to generate tiered handling suggestions and aggregates the input review results. When both abuse intent and prompt word injection risk exceed the induced leakage judgment criteria, a linkage signal is set. The output security review module parses the response content segmented by semantic units after the agent generates the response content, extracting candidate sensitive segments. Based on the regular expression pattern, semantic fingerprint, and vector prototype matching methods of the sensitive information category system, it generates sensitive hit records by category. For the hit response content, it performs interception and de-identification processing to generate the output review results.
[0089] The dual-layer linkage module reads the linkage signal. When the linkage signal is set, it increases the interception weight of the privacy category and the credential category in the sensitive information category system and decreases the matching threshold conditions of the corresponding categories to generate an adjusted interception strategy. This drives the output security review module to re-examine the response content according to the adjusted interception strategy and supplement any newly added hit segments. When the linkage signal is reset, the baseline interception sensitivity is restored. The event association module aligns the input review result with the output review result based on the request identifier and the response identifier upon completion of each review. It organizes and generates a structured security event record according to the event structure template and writes it to the security event log in the order of the judgment time. The structured security event record is associated with the snapshot identifier of this run to form an audit ternary association consisting of input review, output review, and snapshot identifier, and then archived to the audit storage using the snapshot identifier as the primary key.
[0090] The audit feedback module, based on the feedback statistics of the audit tripartite correlation, analyzes the misjudgment and omission distributions of each risk dimension. Accordingly, it adjusts the execution parameters and supplements the rules for the risk scoring rules of the multi-dimensional input risk assessment system and the interception strategy of the output security review. The updated rules undergo gray-scale verification, comparing the misjudgment and omission rates before and after the update. Once verification is successful, the updated rules are fed back to the input security review module and the output security review module. The update record is written to the rule version library using the rule version number as the primary key. The various modules of the device are connected in series using request identifier, response identifier, event identifier, and snapshot identifier as primary keys, forming a complete device for two-layer security review and snapshot linkage for parking lot operation intelligence. A closed-loop feedback is formed between input review, output review, event audit, and rule feedback.
[0091] As can be seen from the above description, the dual-layer security review and snapshot linkage device for AI intelligent agents provided in this application embodiment can perform dual-layer security review and snapshot linkage audit for intelligent agents for parking lot operation through the collaboration of five modules: input security review, output security review, dual-layer linkage, event association and audit feedback.
[0092] This invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the above-described method.
[0093] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method.
[0094] This invention also provides a computer program product, which includes a computer program that, when executed by a processor, implements the above-described method.
[0095] In this embodiment, input security review generates multi-dimensional risk scores and graded handling suggestions for user requests based on a multi-dimensional input risk assessment system. Output security review identifies, intercepts, and de-identifies response content based on a sensitive information category system. Through a two-layer linkage, when an intention to induce disclosure is detected, the interception weight of privacy and credential categories is increased and the matching threshold condition is decreased to dynamically adjust the sensitivity of output interception. The association between security events and runtime snapshots constitutes an audit ternary association. The risk scoring rules and interception strategies are updated based on the feedback of the audit ternary association and fed back to the input security review to form a closed loop.
[0096] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for linking two-layer security review and operational snapshot of an AI agent, characterized in that, The method includes: When the intelligent agent receives a user request, it performs an input security review on the user request, generates a multi-dimensional risk score and graded handling suggestions for the user request based on a preset multi-dimensional input risk assessment system, aggregates the multi-dimensional risk score and the graded handling suggestions to generate an input review result, and sets a linkage signal when the input review result indicates an intention to induce leakage. After the agent generates response content, it performs output security review on the response content. Based on the preset sensitive information category system, it identifies sensitive information in the response content and blocks content that hits the sensitive information category system. Based on the linkage signal, it dynamically adjusts the interception sensitivity of the output security review and aggregates the interception result with the adjusted interception sensitivity to generate the output review result. Security events are generated at each judgment based on the input review results and the output review results. The security events are associated with the snapshot identifier of the current operation to form an audit ternary association consisting of input review, output review and snapshot identifier. The risk scoring rules of the multidimensional input risk assessment system and the interception strategy of the output security review are updated based on the feedback of the audit ternary association and fed back to the input security review.
2. The method for linking two-layer security review and operational snapshot of AI intelligent agents according to claim 1, characterized in that, The step of performing input security audit on the user request when the intelligent agent receives the user request includes: At the request access point of the intelligent agent, the user request is captured and the request text and source channel are registered with the request identifier as the primary key. Based on the preset review trigger rule family, it is determined whether the user request enters the input security review process. Semantic parsing and intent classification are performed on user requests entering the input security review process. The parsed elements and intent categories are mapped to a preset risk feature space to generate a request representation to be evaluated. The request representation to be evaluated is then written into the input review cache.
3. The method for linking two-layer security review and runtime snapshot of AI intelligent agents according to claim 2, characterized in that, The process involves generating a multi-dimensional risk score and tiered handling suggestions for the user request based on a preset multi-dimensional input risk assessment system, aggregating the multi-dimensional risk score and the tiered handling suggestions to generate an input review result, and setting a linkage signal when the input review result indicates an intention to induce disclosure, including: Read the request representation to be evaluated, calculate the risk metric values of request risk level, abuse intent and prompt word injection risk in each dimension according to the multi-dimensional input risk assessment system, and aggregate to generate a multi-dimensional risk score; Based on the multidimensional risk score, a pre-defined family of tiered handling rules is used to generate tiered handling recommendations. When the degree of abuse intent or the risk of injecting the prompt word exceeds the induced leakage judgment condition, a linkage signal is set and the linkage signal is transmitted to the output security review.
4. The method for linking two-layer security review and operational snapshot of AI intelligent agents according to claim 1, characterized in that, The step of identifying sensitive information in the response content and blocking content that matches the preset sensitive information category system includes: The response content is parsed into segments according to semantic units and candidate sensitive segments are extracted. The candidate sensitive segments are matched one by one according to the sensitive information category system. When any category is hit, a sensitive hit record is generated, which records the hit category, hit position and matching confidence. Based on the sensitive hit records, the response content of the hit sensitive information category system is intercepted and desensitized. The hit fragments are replaced with placeholders and the vehicle number and customer identity fields of the sensitive business data are masked. The intercepted fragment list, the desensitized field list and the residual sensitive risk metric are aggregated to generate the output review result.
5. The method for linking two-layer security review and operational snapshot of AI intelligent agents according to claim 1, characterized in that, The step of dynamically adjusting the interception sensitivity of the output security review based on the linkage signal, and aggregating the interception result with the adjusted interception sensitivity to generate the output review result includes: When the linkage signal is set, the interception weights of the privacy category and the credential category in the sensitive information category system are increased according to the trigger dimension of the linkage signal, and the matching threshold conditions of the corresponding categories are decreased so that the candidate sensitive segments in the critical interval enter the interception range and generate the adjusted interception strategy. Based on the adjusted interception strategy, the response content is re-examined for output security and newly added hit segments are registered as additional hit records. The re-examined interception results are aggregated with the linkage signal status to generate output review results. When the linkage signal is reset, the baseline interception sensitivity of each category is restored.
6. The method for linking two-layer security review and operational snapshot of AI intelligent agents according to claim 1, characterized in that, The step of generating a security event at each determination based on the input review result and the output review result includes: Upon completion of each review and judgment, the input review result and the output review result are aligned according to the request identifier and the response identifier, and a structured security event record is generated based on the preset event structure template. Based on the risk level of the structured security event record, a preset alarm rule family is matched to trigger the corresponding alarm. The structured security event record is written into the security event log in the order of the judgment time, and records whose risk level exceeds the alarm threshold are pushed to the operation monitoring.
7. The method for linking two-layer security review and operational snapshot of AI intelligent agents according to claim 6, characterized in that, The process of associating the security event with the snapshot identifier of this operation to form an audit ternary association consisting of input review, output review, and snapshot identifier, and updating the risk scoring rules of the multi-dimensional input risk assessment system and the interception strategy of the output security review based on the feedback of the audit ternary association, and then feeding back to the input security review, includes: The structured security event record is associated with the snapshot identifier of this operation to form an audit ternary association, and the audit ternary association is archived to the audit storage with the snapshot identifier as the primary key; Based on the feedback statistics of the audit ternary correlation, the distribution of misjudgments and omissions for each risk dimension are statistically analyzed. The risk scoring rules and interception strategies are adjusted and supplemented according to the misjudgment and omission distributions. The updated rules, which have been verified by grayscale, are then fed back to the input security review and the output security review.
8. A dual-layer security review and operation snapshot linkage device for AI intelligent agents, characterized in that, The device includes: The input security review module is used to perform an input security review on the user request when the intelligent agent receives the user request. Based on the preset multi-dimensional input risk assessment system, it generates a multi-dimensional risk score and graded handling suggestions for the user request to generate an input review result. When the input review result indicates an intention to induce leakage, it sets a linkage signal. The output security review module is used to perform an output security review on the response content after the agent generates the response content. Based on the preset sensitive information category system, it identifies sensitive information in the response content and intercepts content that hits the sensitive information category system to generate an output review result. The dual-layer linkage module is used to dynamically adjust the interception sensitivity of the output security review according to the linkage signal. When the linkage signal is set, the interception weight of the privacy category and the credential category is increased and the matching threshold condition of the corresponding category is decreased to drive the output security review module to re-execute the review. The event association module is used to generate a structured security event record based on the input review result and the output review result at each judgment, and associate the structured security event record with the snapshot identifier of the current operation to form an audit ternary association consisting of input review, output review and snapshot identifier; The audit feedback module is used to statistically analyze the distribution of misjudgments and omissions in each risk dimension based on the feedback of the audit ternary correlation. Based on this, the risk scoring rules and interception strategies are adjusted and the rules are supplemented before being fed back to the input security review module.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the two-layer security review and runtime snapshot linkage method for AI agents as described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the two-layer security review and operation snapshot linkage method for AI agents as described in any one of claims 1 to 7.
