Agent interaction data dynamic desensitization and de-identification method, device and equipment
By dynamically identifying and processing sensitive units during agent interaction, and combining the interaction context and authorization level for desensitization and de-identification, the shortcomings of fixed rules in agent interaction are solved, and the security and traceability of sensitive data are achieved.
Patent Information
- Application Number
- CN202611698583.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-30
- Publication Date
- 2026-11-27
AI Technical Summary
In existing technologies, fixed desensitization rules during agent interaction are difficult to adapt to different interaction stages and authorization conditions. The use of sensitive data and the risk of leakage of output content lack effective control, and the content generated by the model may lead to the leakage of combined sensitive information.
By receiving interaction requests from intelligent agents, obtaining interaction context information, identifying sensitive units and determining their sensitivity level and authorization level, using a phased desensitization strategy matrix to perform dynamic desensitization and de-identification processing, generating de-identification mapping records, and performing verification on the output side to record audit information to trace the processing process.
It enables dynamic adaptive processing of sensitive data at different interaction stages, reduces the risk of cross-session association and unauthorized reverse lookup, reduces the risk of leakage of model-generated content, and improves the security and traceability of sensitive information.
Smart Images

Figure CN123179470A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data security technology, and in particular to a method, apparatus, and device for dynamic desensitization and de-identification of interactive data of intelligent agents. Background Technology
[0002] With the application of enterprise intelligent agent systems in scenarios such as knowledge-based question answering, financial customer service, human resource management, sales support, process approval, and operation and maintenance, intelligent agents typically need to receive user input, retrieve knowledge bases or business databases, construct prompts, invoke external tools, and generate and return processing results when performing interactive tasks. During this process, customer information, employee information, contract information, account information, financial information, project data, and work order records may appear in retrieval fragments, tool parameters, model outputs, and dialogue memories. The location of access to sensitive data is no longer limited to the original database or interface return location.
[0003] Existing data anonymization methods typically set fixed rules for database fields, API return results, or static documents. For example, they might mask fields like phone numbers, ID card numbers, or bank card numbers, or perform a one-time de-identification during data output. However, the scope of permitted use and display of the same data may differ depending on different user roles, task stages, access purposes, and data domain permissions. Performing fixed anonymization solely based on field type or user role is insufficient to adapt to changes in data usage and recipients during intelligent agent interactions. Furthermore, replacement identifiers, lacking control over their scope and validity period, may create associations between different sessions, increasing the risk of sensitive subjects being re-identified.
[0004] Furthermore, the content generated by the model may restate sensitive fields already encountered, or it may combine multiple seemingly less sensitive fragments to infer customer identities, employee information, or business relationships. Simply anonymizing data before it enters the model is insufficient to cover such leakage risks in the generated content. Existing processing methods also lack continuous recording of the identification, anonymization, mapping, display, and interception of sensitive data at different interaction stages. When abnormal displays occur, it is difficult to determine the source of the relevant content and the processing procedures it has undergone. Therefore, intelligent agent interaction scenarios still face problems such as the inability to handle sensitive data as interaction conditions change, the difficulty in fully identifying the risk of output content leakage, and the difficulty in tracing the processing process. Summary of the Invention
[0005] In view of this, embodiments of the present invention provide a method, apparatus and device for dynamic desensitization and de-identification of intelligent agent interaction data, in order to solve the problems in the prior art where fixed desensitization rules are difficult to adapt to different interaction stages and authorization conditions of intelligent agents, and the use of alternative identifiers and the risk of leakage of output content lack effective control.
[0006] In a first aspect, embodiments of the present invention provide a method for dynamic desensitization and de-identification of intelligent agent interaction data, the method comprising: Receive an agent interaction request, obtain the interaction context information corresponding to the agent interaction request, determine the interaction stage of the agent interaction request, and obtain the stage data to be processed corresponding to the interaction stage. Sensitive data identification is performed on the data to be processed in the aforementioned stage to obtain a set of sensitive units. Based on the sensitivity judgment information corresponding to each sensitive unit in the set of sensitive units, the sensitivity level corresponding to each sensitive unit is determined. The authorization level corresponding to the agent's interaction request is determined based on the interaction context information. The interaction stage, the sensitivity level, and the authorization level are used as indexes to query the staged desensitization strategy matrix and determine the desensitization action corresponding to each sensitive unit. The data to be processed in the stage is desensitized and de-identified according to the desensitization action to obtain stage desensitized data. When the desensitization action includes alias replacement or tokenization, a de-identified mapping record with a mapping scope is generated for the corresponding sensitive unit. The sensitive information of the desensitized data at each stage is reviewed on the output side, and the corresponding output data for each stage is determined based on the review results. The output data of the aforementioned stage is passed to the next interaction stage or output to the target terminal.
[0007] Preferably, the interaction stages of the agent interaction request include at least two of the following: input receiving stage, retrieval and recall stage, prompt assembly stage, tool invocation stage, model output stage, result feedback stage, and memory archiving stage; wherein, The data to be processed in the input receiving stage includes user input, uploaded files, speech-to-text content, or optical character recognition content. The data to be processed in the retrieval and recall stage includes candidate fragments returned by the knowledge base, vector library, relation graph, or database. The data to be processed in the prompting and splicing stage includes system prompts, task prompts, retrieval evidence, or contextual memory. The data to be processed in the tool invocation stage includes tool invocation parameters, application programming interface requests, database query conditions, or tool returned content. The data to be processed in the model output stage includes model output drafts. The data to be processed in the result feedback stage includes content to be feedback. The data to be processed in the memory archiving stage includes content to be archived.
[0008] Preferably, the step of identifying sensitive data in the data to be processed in the stage to obtain a set of sensitive units, and determining the sensitivity level of each sensitive unit according to the sensitivity determination information corresponding to each sensitive unit in the set of sensitive units, includes: Based on field identification rules, industry terminology, entity identification model, and data directory labels, sensitive entities and sensitive fields are identified from the data to be processed in the stage, and the sensitivity type and field label corresponding to each sensitive entity and sensitive field are determined to obtain the set of sensitive units. Based on the relationship graph and the association between different sensitive units in the data to be processed in the stage, determine the relationship path and context relationship corresponding to each sensitive unit; Based on the interaction context information and the relationship paths and contextual relationships between different sensitive units, determine the combination of sensitive units that can jointly point to a sensitive subject or represent a sensitive relationship, and determine the combination inference risk corresponding to each sensitive unit. The sensitivity type, field label, relationship path, contextual relationship, and combined inference risk corresponding to each sensitive unit are used as the sensitivity determination information. The data sensitivity risk value is determined based on the sensitivity determination information. Based on the risk range in which the data sensitivity risk value is located, the sensitivity level corresponding to each sensitive unit is determined as public data, internal ordinary data, internal restricted data, highly sensitive business data, extremely highly sensitive data, or combined inference sensitive data.
[0009] Preferably, determining the authorization level corresponding to the agent's interaction request based on the interaction context information includes: The user role, agent role, task stage, data domain permissions, access purpose, terminal trust status, model invocation method, and session risks are obtained from the interaction context information. The role score is determined based on the user role and the agent role; the task stage score is determined based on the task stage; the data domain score is determined based on the data domain permission; the access purpose score is determined based on the access purpose; the terminal trust score is determined based on the terminal trust status and the model invocation method; and the session risk score is determined based on the session risk. The authorization evaluation value is determined based on the role score, task phase score, data domain score, access purpose score, terminal trust score, and session risk score. Based on the authorization threshold range in which the authorization evaluation value falls, the authorization level corresponding to the agent interaction request is determined as unauthorized access, existence visibility, summary visibility, anonymized visibility, partial plaintext visibility, or complete visibility and traceability.
[0010] Preferably, the step of querying the staged desensitization strategy matrix using the interaction stage, the sensitivity level, and the authorization level as indexes to determine the desensitization action corresponding to each sensitive unit includes: Based on the combination relationship between different interaction stages, different sensitivity levels and different authorization levels, the staged desensitization strategy matrix is pre-constructed. The staged desensitization strategy matrix includes multiple strategy items, and each strategy item records the corresponding interaction stage, sensitivity level, authorization level and desensitization action set. Based on the interaction stage, the sensitivity level corresponding to each sensitive unit, and the authorization level corresponding to the agent's interaction request, a target strategy item matching each sensitive unit is determined from the staged desensitization strategy matrix. The desensitization decision value is determined based on the data sensitivity risk, interaction stage risk, output risk, combined inference risk, and authorization level corresponding to each sensitive unit; Based on the desensitization decision threshold range in which the desensitization decision value is located, the desensitization action corresponding to each sensitive unit is determined from the desensitization action set corresponding to the target strategy item. The desensitization action includes at least one of masking, generalization, bucketing, alias replacement, tokenization, irreversible summarization, prohibition of input into the model, prohibition of echoing, or manual review.
[0011] Preferably, the step of performing desensitization and de-identification processing on the stage-specific data to be processed according to the desensitization action to obtain stage-specific desensitized data, wherein when the desensitization action includes alias replacement or tokenization, generating a de-identified mapping record with a mapping scope for the corresponding sensitive unit includes: When the desensitization action corresponding to the sensitive unit includes alias replacement or tokenization, a replacement value corresponding to the sensitive unit is generated, and an original value digest is generated based on the original value of the sensitive unit. The de-identified mapping record is generated based on the original value digest and the substitution value. The de-identified mapping record includes a mapping identifier, an original value digest, a substitution value, a scope type, an expiration date, and a reverse lookup strategy. Based on the scope type, the de-identified mapping record is associated with the corresponding session identifier or task identifier to determine the mapping scope of the de-identified mapping record; Based on the desensitization action corresponding to each sensitive unit, each sensitive unit in the stage data to be processed is processed accordingly, wherein the sensitive unit that needs to be aliased or tokenized is replaced with the replacement value to obtain the stage desensitized data. Upon receiving a request to parse or reverse lookup the substitute value, the system determines whether to allow parsing or reverse lookup of the substitute value in a controlled operating environment, based on the mapping scope, validity period, and reverse lookup strategy.
[0012] Preferably, the step of performing output-side sensitive information verification on the de-identified data of the stage, and determining the corresponding stage output data based on the verification result, includes: When the stage data to be processed includes model output drafts or tool return content, the stage desensitized data is matched with the sensitive unit set, and when the deidentified mapping record has been generated, it is further matched with the deidentified mapping record to identify the original sensitive fields or sensitive fields exceeding the authorization level contained in the stage desensitized data, and obtain the direct field leakage detection result. Based on the relationship paths between different sensitive units in the staged de-identified data, determine whether the staged de-identified data contains sensitive subject relationships that exceed the authorization level, and obtain the subject relationship leakage detection result; Based on the stage desensitized data, the interaction context information, and the historical interaction information, multiple sensitive units in the stage desensitized data are combined and inferred to determine whether the corresponding combination of sensitive units can point to a specific sensitive subject or represent a sensitive relationship, and the combined inference leakage detection result is obtained. When the stage de-identified data contains substitute values, the existence of cross-session mapping association is determined based on the substitute values in the stage de-identified data and the de-identified mapping records corresponding to different sessions, and the cross-session mapping leakage detection result is obtained. When the data to be processed in the stage includes the content returned by the tool, the range of fields returned by the tool is determined according to the access purpose, data domain permissions and authorization level corresponding to the intelligent agent interaction request. The fields in the content returned by the tool are compared with the range of fields returned by the tool to determine whether the content returned by the tool carries fields that exceed the range of fields returned by the tool, and the tool return leakage detection result is obtained. When all the leakage detection results obtained from the stage de-identified data meet the preset echo conditions, the stage de-identified data is determined as the stage output data; when any of the leakage detection results do not meet the preset echo conditions, the corresponding content is subjected to return field pruning, secondary de-identification, or echo prohibition, or manual review is triggered, and the stage output data is determined according to the processing results.
[0013] Preferably, the method further includes: An audit log is generated for the processing of the intelligent agent's interaction request at each interaction stage. The audit log includes the interaction stage, the hit strategy, the desensitization action, and the processing result. The processing result includes the echo result, the blocking reason, or the review status. Based on the session identifier and task identifier, and according to the interaction stages that the intelligent agent's interaction request goes through in sequence, the audit records corresponding to different interaction stages are associated to obtain a staged audit record sequence. Based on the processing results in historical audit records, the weights or thresholds used to determine sensitivity levels, authorization levels, and desensitization actions are adjusted.
[0014] Secondly, embodiments of the present invention provide a device for dynamic desensitization and de-identification of intelligent agent interaction data, the device comprising: The request processing module is used to receive intelligent agent interaction requests, obtain the interaction context information corresponding to the intelligent agent interaction requests, determine the interaction stage of the intelligent agent interaction requests, and obtain the stage data to be processed corresponding to the interaction stage. The sensitive identification module is used to identify sensitive data in the data to be processed in the stage, obtain a set of sensitive units, and determine the sensitivity level of each sensitive unit according to the sensitivity judgment information corresponding to each sensitive unit in the set of sensitive units. The authorization determination module is used to determine the authorization level corresponding to the agent's interaction request based on the interaction context information. The strategy determination module is used to query the phased desensitization strategy matrix using the interaction stage, the sensitivity level, and the authorization level as indexes, and determine the desensitization action corresponding to each sensitive unit. The desensitization processing module is used to perform desensitization and de-identification processing on the stage data to be processed according to the desensitization action to obtain stage desensitized data. When the desensitization action includes alias replacement or tokenization, a de-identified mapping record with a mapping scope is generated for the corresponding sensitive unit. The output verification module is used to verify the sensitive information on the output side of the desensitized data of the stage, and determine the corresponding stage output data based on the verification result. The data output module is used to transmit the output data of the stage to the next interactive stage or output it to the target terminal.
[0015] Thirdly, embodiments of the present invention provide an electronic device, including: at least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the method of the first aspect described above.
[0016] In summary, the beneficial effects of the present invention are as follows: The present invention provides a method, apparatus, and device for dynamic desensitization and de-identification of intelligent agent interaction data. This method acquires data to be processed at different stages of intelligent agent interaction, determines desensitization actions based on sensitivity level, authorization level corresponding to the interaction context, and interaction stage. This allows the same sensitive data to be processed accordingly based on changes in task stage, data purpose, and authorization conditions, reducing the excessive display of sensitive information or the excessive obscuring of business-required information caused by fixed field rules. For alias replacement or tokenization, the mapping scope is limited by de-identified mapping records, and the parsing of substitute values is controlled by combining validity period and reverse lookup strategies, reducing the risk of cross-session association and unauthorized reverse lookups. For processed data, the original fields, sensitive subject relationships, and combined inferences are reviewed before transmission or display to mitigate risks such as leakage. When content that does not meet the display conditions is found, secondary desensitization, interception, or manual review is performed, thereby reducing the risk of leakage due to processing only input data while omitting model-generated content and tool-returned content. Furthermore, by associating audit records of each interaction stage, the identification, desensitization, mapping, and display of sensitive data can be verified, facilitating the location of the stage and cause of abnormal display. Attached Figure Description
[0017] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments of the present invention will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, and these are all within the protection scope of the present invention.
[0018] Figure 1 This is a flowchart illustrating the method for dynamic desensitization and de-identification of intelligent agent interaction data according to an embodiment of the present invention.
[0019] Figure 2 yes Figure 1 A schematic diagram of the specific process for step S2.
[0020] Figure 3 yes Figure 1 A schematic diagram of the specific process for step S3.
[0021] Figure 4 yes Figure 1 A schematic diagram of the specific process for step S4.
[0022] Figure 5 yes Figure 1 A schematic diagram of the specific process for step S5.
[0023] Figure 6 yes Figure 1 A schematic diagram of the specific process for step S6.
[0024] Figure 7This is a schematic diagram of the structure of the intelligent agent interaction data dynamic desensitization and de-identification device according to an embodiment of the present invention. Detailed Implementation
[0025] The features and exemplary embodiments of various aspects of the present invention will now be described in detail. To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the invention.
[0026] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.
[0027] Example 1 This invention provides a method for dynamic de-identification and de-identification of interactive data in intelligent agents. It is applicable to enterprise intelligent agents performing tasks such as knowledge-based question answering, business queries, process approvals, or operational maintenance, processing sensitive data acquired, generated, or transmitted during the interaction process. The intelligent agent is software that receives tasks and organizes the interaction; the electronic device running the method is responsible for acquiring data at each interaction stage and performing sensitive data processing, hereinafter referred to as the execution device. The execution device can be a server running the intelligent agent or a data security gateway communicating with the intelligent agent service.
[0028] Please see Figure 1 The method includes the following steps: S1: Receive an agent interaction request, obtain the interaction context information corresponding to the agent interaction request, determine the interaction stage of the agent interaction request, and obtain the stage data to be processed corresponding to the interaction stage. S2: Perform sensitive data identification on the data to be processed in the stage to obtain a set of sensitive units, and determine the sensitivity level of each sensitive unit according to the sensitivity judgment information corresponding to each sensitive unit in the set of sensitive units; S3: Determine the authorization level corresponding to the agent's interaction request based on the interaction context information; S4: Use the interaction stage, the sensitivity level, and the authorization level as indexes to query the staged desensitization strategy matrix and determine the desensitization action corresponding to each sensitive unit; S5: Perform desensitization and de-identification processing on the stage data to be processed according to the desensitization action to obtain stage desensitized data. When the desensitization action includes alias replacement or tokenization, generate a de-identified mapping record with a mapping scope for the corresponding sensitive unit. S6: Perform output-side sensitive information verification on the desensitized data of the stage, and determine the corresponding stage output data based on the verification results; S7: Pass the output data of the aforementioned stage to the next interaction stage or output it to the target terminal.
[0029] Specifically, agent interaction requests can be initiated by the user or generated when the agent performs a task. For example, after a user raises a business question to the agent, the agent may initiate data acquisition or task processing requests to complete the question. When the execution device receives a request, it obtains the interaction context information corresponding to the request, determines the interaction stage of the request, and then obtains the data that needs to be processed at that stage. The interaction context information includes information related to the user, agent, task, session, data domain, and access environment related to this agent interaction request. The interaction stage indicates the position of the data in the agent's processing. When the same request passes through different interaction stages in sequence, the data to be processed at each stage may be different, so they are processed separately. After obtaining the data to be processed at each stage, the execution device identifies the content that needs to be judged and processed separately, obtaining a set of sensitive units. A set of data to be processed at a stage may contain one sensitive unit or multiple sensitive units. The execution device determines the sensitivity level of each sensitive unit based on the sensitivity judgment information corresponding to it, so that content with different levels of sensitivity in the same data can be processed differently, without having to classify the entire data into the same sensitivity level.
[0030] The execution device also determines the authorization level of the current agent interaction request based on the interaction context information. The sensitivity level reflects the sensitivity of the corresponding sensitive unit, while the authorization level reflects the scope of data that is allowed to be used or accessed in this request. The two differ in their judgment objects: the sensitivity level can remain consistent when the same sensitive unit faces different interaction requests, but the scope of allowed use or display may change depending on the request conditions; when the same request obtains multiple sensitive units, each sensitive unit may also have different sensitivity levels. After determining the interaction stage, sensitivity level, and authorization level, the execution device uses these three as indexes to query the staged de-identification strategy matrix to determine the de-identification action corresponding to each sensitive unit. The interaction stage limits the processing location of the data, the sensitivity level limits the sensitivity of the corresponding content, and the authorization level limits the accessible scope of this request. For staged data to be processed containing multiple sensitive units, the execution device determines the action corresponding to each sensitive unit, and then processes the corresponding content according to the determined action to obtain the staged de-identified data.
[0031] When the desensitization action for a sensitive unit includes alias replacement or tokenization, a de-identified mapping record with a mapping scope is also generated for that sensitive unit during the processing. The mapping scope limits the applicable scope of the replacement identifier. If the current processing does not involve alias replacement or tokenization, the executing device still forms the stage desensitized data according to other determined desensitization actions, without the need to generate a de-identified mapping record. After the stage desensitized data is formed, the executing device performs a sensitive information review on the output side. The aforementioned desensitization processing is performed on the already identified sensitive units, and the output side review checks whether the processed data is suitable for continued transmission or display. The executing device determines the stage output data based on the review result; therefore, the stage output data and the stage desensitized data are not always exactly the same. For content that needs to be further processed by the agent, the executing device transmits the stage output data to the next interaction stage; for content that needs to be displayed to the user, the stage output data is output to the target terminal. The stage data to be processed, the stage desensitized data, and the stage output data correspond to the data states before the processing of this stage, after the execution of the desensitization action, and after the completion of the output side review, respectively.
[0032] Through the above steps, each interaction stage determines the corresponding processing action for the data actually acquired in that stage, and performs a review before the data leaves that stage. This reduces the likelihood of sensitive content directly entering subsequent interactions or terminal responses without stage processing, while also ensuring that the de-identification actions match the authorized scope of the current request.
[0033] In one embodiment, as shown in Table 1, the interaction stages of the agent interaction request include at least two of the following: E1: Input Reception Stage, E2: Retrieval and Recall Stage, E3: Prompt Assembly Stage, E4: Tool Invocation Stage, E5: Model Output Stage, E6: Result Feedback Stage, and E7: Memory Archiving Stage. Specifically, the data to be processed in the Input Reception Stage includes user input, uploaded files, speech-to-text content, or optical character recognition content; the data to be processed in the Retrieval and Recall Stage includes candidate fragments returned by a knowledge base, vector library, relational graph, or database; the data to be processed in the Prompt Assembly Stage includes system prompts, task prompts, retrieval evidence, or contextual memory; the data to be processed in the Tool Invocation Stage includes tool invocation parameters, application programming interface requests, database query conditions, or tool-returned content; the data to be processed in the Model Output Stage includes model output drafts; the data to be processed in the Result Feedback Stage includes content to be fed back; and the data to be processed in the Memory Archiving Stage includes content to be archived.
[0034] Table 1. Interaction stages of an agent's interaction request stage Phase Description E1 Input Reception Stage Perform initial identification and risk assessment of sensitive data in user input, uploaded files, speech-to-text, and OCR content. E2 Retrieval and Recall Phase Perform sensitive field identification and pre- and post-recall cropping on candidate fragments returned by knowledge bases, vector libraries, graphs, or databases. E3 indicates the assembly stage. Before assembling system prompts, task prompts, retrieval evidence, and contextual memory, perform context-level desensitization and retain the minimum necessary information. E4 Tool Invocation Phase Perform parameter-level desensitization, bounding, and interception on tool parameters, API requests, database query conditions, and returned fields. E5 Model Output Stage The model-generated content undergoes output-side sensitivity identification, combined inference detection, and echo control. E6 Result Feedback Stage Generate displayable results, anonymized summaries, or upgrade / review prompts based on terminal type, user permissions, and business scenario. E7 Memory Archiving Stage Perform de-identification storage and mapping validity control on content entering dialogue memory, task memory, or audit evidence. Specifically, the execution device can determine the corresponding interaction stage from the agent's interaction request and its processing position. The request can carry user identifier, agent identifier, session identifier, task identifier, task stage, access purpose, and candidate data source; different information is used to associate the request, determine the source of the data to be processed, and obtain the corresponding interaction context. Each interaction stage does not require the same request to occur simultaneously, but is determined according to the data flow during the agent's task execution. In the input receiving stage, the execution device performs initial sensitive data identification and risk prediction on user-submitted text, uploaded files, and speech-to-text and optical character recognition content obtained from voice or image input, and then processes sensitive units based on the identification results. In the retrieval and recall stage, the execution device identifies sensitive fields in candidate fragments returned by the knowledge base, vector library, relational graph, or database, and trims content exceeding the authorized scope before passing candidate fragments to subsequent stages; when the retrieval request involves sensitive data, the retrieval scope can also be limited before initiating the retrieval. During the prompt assembly phase, the execution device performs context-level anonymization on the system prompts, task prompts, retrieval evidence, and context memory to be assembled, retaining the information necessary to complete the task, and then sends the processed content into the model context. During the tool invocation phase, the execution device performs parameter-level anonymization and range restrictions on the invocation parameters, application interface requests, and database query conditions sent to the tool; it also checks the fields in the tool's returned content, pruning or blocking fields exceeding the allowed range. During the model output phase, the execution device performs sensitive data identification and output-side review on the model output draft, checking for direct field leakage and combined inference leakage, and performs secondary anonymization, disables display, or submits for manual review based on the review results. During the result feedback phase, the execution device processes the content to be fed back based on the target terminal type, user permissions, and business scenario, determining whether to display the processed results, anonymized summary, or review prompts to the target terminal. During the memory archiving stage, the execution device de-identifies the content to be entered into the dialogue memory, task memory, or audit evidence, and controls the validity period of the relevant de-identified mapping records; when subsequent interactions retrieve the archived content, it is processed again as the stage data to be processed in the corresponding interaction stage.
[0035] The above-mentioned stage division ensures that the processing location corresponds to the data to be processed. Compared with the approach of performing desensitization processing only on fixed data sources or fixed fields, this embodiment divides the agent interaction process into multiple interaction stages, and sets corresponding desensitization processing boundaries for the data source, transmission object, and usage purpose of each stage, so that sensitive data can be processed in accordance with its usage in different interaction stages.
[0036] In one embodiment, see Figure 2 Step S2 specifically includes the following steps: S21: Based on the field identification rules, industry terminology table, entity identification model and data directory labels, identify sensitive entities and sensitive fields from the data to be processed in the stage, determine the sensitivity type and field label corresponding to each sensitive entity and sensitive field, and obtain the set of sensitive units; S22: Based on the relationship graph and the association between different sensitive units in the stage-to-process data, determine the relationship path and context relationship corresponding to each sensitive unit; S23: Based on the interaction context information and the relationship path and context relationship between different sensitive units, determine the combination of sensitive units that can jointly point to a sensitive subject or represent a sensitive relationship, and determine the combination inference risk corresponding to each sensitive unit; S24: The sensitivity type, field label, relationship path, context relationship and combined inference risk corresponding to each sensitive unit are used as the sensitivity determination information. The data sensitivity risk value is determined according to the sensitivity determination information. According to the risk range in which the data sensitivity risk value is located, the sensitivity level corresponding to each sensitive unit is determined as public data, internal ordinary data, internal restricted data, high-sensitivity business data, extremely high-sensitivity data or combined inference sensitive data.
[0037] Specifically, field recognition rules can identify content with fixed formats or explicit field names, such as contact information, ID card numbers, account fields, and contract amounts. Industry terminology tables can identify business expressions such as customer levels, pricing strategies, employee performance, project status, and internal work orders. Entity recognition models can identify entities such as customers, employees, projects, and contracts from continuous text, speech-to-text content, or optical character recognition content. Data directory labels indicate the data domain to which a field belongs and the pre-labeled field categories by the enterprise. These recognition methods can be combined to create tiered sensitive units from data of different formats. After obtaining the set of sensitive units, the execution device continues to identify the relationships between these units. For example, customer names, contract numbers, and contract amounts can form a relationship path through contract records; employee names, departments, and performance information can form a relationship path through personnel records. Contextual relationships reflect how these units co-occur in the data to be processed at each stage and in this interaction. Relationship paths explain how units are connected, while contextual relationships explain what this connection expresses in this interaction.
[0038] Combined inference risk corresponds to situations where multiple fragments together reveal a sensitive subject or relationship. For example, project category, project status, and internal work order summary, when appearing alone, may fail to identify the customer; however, when these fragments, combined with other information from the same task, point to a single customer and their contract performance status, the combination carries a higher inference risk. The execution device identifies the sensitive units involved in the combination and incorporates the combined inference risk into the sensitivity assessment information of the corresponding sensitive unit. Therefore, the sensitivity level of a unit is influenced both by its own field attributes and by the content it expresses when appearing together with other units.
[0039] In one implementation, the data sensitivity risk value can be expressed as: RiskData=a1·TypeRisk+a2·FieldRisk+a3·RelationRisk+a4·ContextRisk+a5·CombinationRisk.
[0040] Wherein, TypeRisk represents sensitive type risk, FieldRisk represents field-level risk, RelationRisk represents relationship exposure risk, ContextRisk represents context risk, CombinationRisk represents combination inference risk, and a1 to a5 represent corresponding weights. Weights can be configured by enterprise strategy or adjusted based on historical audit feedback. The execution device determines the sensitivity level based on the risk range corresponding to the data sensitivity risk value; for content involving combination inference, the corresponding risk range is configured based on its combination inference risk to avoid processing data combinations solely based on the sensitivity of a single field. In one embodiment, sensitivity levels include S0 public data, S1 internal ordinary data, S2 internal restricted data, S3 highly sensitive business data, S4 extremely highly sensitive data, and S5 combination inference sensitive data. For example, the execution device pre-sets the value range of data sensitivity risk and first to fourth risk thresholds, with the four risk thresholds increasing sequentially within the value range, thereby dividing the value range into five non-overlapping risk ranges. The intervals below the first risk threshold correspond to S0 public data; the intervals reaching the first risk threshold but below the second risk threshold correspond to S1 internal ordinary data; the intervals reaching the second risk threshold but below the third risk threshold correspond to S2 internal restricted data; the intervals reaching the third risk threshold but below the fourth risk threshold correspond to S3 highly sensitive business data; and the intervals reaching the fourth risk threshold correspond to S4 extremely highly sensitive data. After the execution device calculates the data sensitivity risk value of a sensitive unit, it determines the interval in which the risk value falls, and uses the sensitivity level corresponding to that interval as the sensitivity level of the sensitive unit. Each risk threshold can be pre-configured according to the enterprise's classification rules for the corresponding data types and adjusted in conjunction with historical audit and manual review results. For S5 combined inferred sensitive data, the execution device can also set a separate combined inference risk threshold. When multiple sensitive units are combined to point to a specific sensitive subject or represent a sensitive relationship, and the combined inference risk reaches the combined inference risk threshold, the sensitive units participating in the combination are determined as S5 combined inferred sensitive data.
[0041] For example, as shown in Table 2, publicly available product introductions and policies correspond to publicly available data; general internal policy terms and non-sensitive project descriptions correspond to internal ordinary data; customer names, project status, and internal work order summaries correspond to internal restricted data; contract amounts, pricing strategies, employee performance, financial accounts, and contact information correspond to highly sensitive business data; and keys, authentication credentials, undisclosed financial data, core trade secrets, and special personal information correspond to extremely highly sensitive data. When multiple individually low-sensitivity fragments are combined to infer customer identity, transaction status, personnel responsibility, or operational risks, they correspond to combined inferences of sensitive data. The above classification examples illustrate the processing tendencies of different data and their combinations, with specific risk ranges consistent with corporate strategies. By incorporating the field's own attributes, relationship paths, contextual relationships, and combined inference risks into the classification process, sensitive relationships and information combinations that are difficult to discover through single-field checks can be identified, ensuring that subsequent strategy selection aligns with the actual content that the data may expose.
[0042] Table 2 Sensitivity Levels and Corresponding Data Examples Sensitivity Level Data Examples and Processing Tendencies S0 Public Data Public product introductions, public policies, and external promotional materials may be used directly within the authorized scope. S1 Internal General Data Internal process descriptions, general policy clauses, and descriptions of non-sensitive projects can be displayed by employee category. S2 Internal Restricted Data Customer names, project status, internal work order summaries, contract types, and departmental statistical data must be anonymized according to role or task stage. S3 High-Sensitivity Business Data Contract amount, pricing strategy, customer level, employee performance, financial account, ID document, contact information, etc. are masked or replaced by default. S4 Extremely Sensitive Data Keys, tokens, authentication credentials, undisclosed financial data, core trade secrets, and special personal information are prohibited from entering the model context by default. S5 combined inference of sensitive data While a single field may not be highly sensitive, combining multiple data fragments can reveal information about customer identity, transaction status, personnel responsibilities, or operational risks. In one embodiment, see Figure 3 Step S3 specifically includes the following steps: S31: Obtain user role, agent role, task stage, data domain permissions, access purpose, terminal trust status, model invocation method, and session risk from the interaction context information; S32: Determine the role score based on the user role and the intelligent agent role, determine the task stage score based on the task stage, determine the data domain score based on the data domain permission, determine the access purpose score based on the access purpose, determine the terminal trust score based on the terminal trust status and the model invocation method, and determine the session risk score based on the session risk. S33: Determine the authorization evaluation value based on the role score, task phase score, data domain score, access purpose score, terminal trust score, and session risk score; S34: Based on the authorization threshold range in which the authorization evaluation value is located, the authorization level corresponding to the intelligent agent interaction request is determined as no access, existence visibility, summary visibility, de-identified visibility, partial plaintext visibility, or complete visibility and traceability.
[0043] Specifically, the user role represents the permissions held by the request initiator within the enterprise, while the agent role represents the scope of data and tools that the agent executing the task is permitted to use. The task phase refers to business processing stages such as identity verification, business consultation, or complaint review, which differs from the aforementioned input reception and retrieval phases. Data domain permissions are used to determine whether the request involves a data domain that is authorized for access; the access purpose is used to determine whether the content required by the request matches the task. The terminal trust status and model invocation method together reflect the environment in which the corresponding data will be used; session risk reflects any abnormal situations in the current session that may affect authorization decisions.
[0044] In one implementation, the authorization evaluation value can be expressed as: AuthScore=b1·RoleScore+b2·TaskStageScore+b3·DataDomainScore+b4·PurposeScore+b5·DeviceTrustScore-b6·SessionRiskScore.
[0045] The system comprises the following components: RoleScore (score for user and agent roles), TaskStageScore (score for task stage), DataDomainScore (score for data domain), PurposeScore (score for access purpose), DeviceTrustScore (score for terminal trust determined by combining terminal trust status and model invocation method), and SessionRiskScore (score for session risk). B1 to B6 represent the corresponding weights. The session risk score is used as a deduction in determining the authorization evaluation value, ensuring that, with other authorization conditions remaining constant, an increase in session risk does not raise the authorization level. Different authorization levels correspond to different authorization threshold ranges when the authorization evaluation value falls within these ranges. Therefore, when the same user or agent enters different task stages, accesses different data domains, or uses different terminal environments, they can obtain an authorization level corresponding to the current interaction conditions, avoiding reliance solely on a fixed user role to determine the scope of sensitive data display.
[0046] In one embodiment, as shown in Table 3, the authorization levels include A0 No Access, A1 Existence Visibility, A2 Summary Visibility, A3 Anonymized Visibility, A4 Partial Plaintext Visibility, and A5 Full Visibility and Traceability. At authorization level A0, the corresponding data is prohibited from entering the model or being obtained by tools, and a permission-unauthorized prompt or approval may be returned. At authorization level A1, only the existence-related information is allowed to be displayed, without displaying the subject name, field values, or relationship paths. At authorization level A2, generalized summaries, statistical information, or business categories are allowed to be displayed. At authorization level A3, content processed by masking, bucketing, alias replacement, or tokenization is allowed to be displayed. At authorization level A4, only necessary fields are displayed in specific task phases and data domains, while other fields remain anonymized. At authorization level A5, the corresponding plaintext is opened in controlled scenarios such as authorization audits, administrator reviews, or compliance investigations, and mapping backtracking capabilities are provided according to the reverse lookup strategy.
[0047] Table 3 Authorization Levels and Corresponding Control Descriptions Authorization Level Control Instructions A0 No access permission Prohibit the input of models and the invocation of tools; return a permission failure message or trigger approval. A1 Existence visible Only display "Related information exists" and do not display subject name, field value or relationship path. A2 Abstract Available Allows displaying generalized summaries, statistics, or business categories, but does not display precise values. A3 Desensitization Visible Allows displaying results after masking, bucketing, aliases, and alternative identifiers. A4 Partial plaintext visible Display necessary fields within specific task phases and data domains, while continuing to anonymize other fields. A5 is fully visible and traceable. Full plaintext and mapping backtracking capabilities are only available to authorized audits, administrator reviews, or compliance investigations. In one embodiment, see Figure 4 Step S4 specifically includes the following steps: S41: Based on the combination relationship between different interaction stages, different sensitivity levels and different authorization levels, the staged desensitization strategy matrix is pre-constructed. The staged desensitization strategy matrix includes multiple strategy items, and each strategy item records the corresponding interaction stage, sensitivity level, authorization level and desensitization action set. S42: Based on the interaction stage, the sensitivity level corresponding to each sensitive unit, and the authorization level corresponding to the agent's interaction request, determine the target strategy item that matches each sensitive unit from the staged desensitization strategy matrix. S43: Determine the desensitization decision value based on the data sensitivity risk, interaction stage risk, output risk, combined inference risk and authorization level corresponding to each sensitive unit; S44: Based on the desensitization decision threshold range where the desensitization decision value is located, determine the desensitization action corresponding to each sensitive unit from the desensitization action set corresponding to the target strategy item. The desensitization action includes at least one of masking, generalization, bucketing, alias replacement, tokenization, irreversible summarization, prohibiting input into the model, prohibiting echoing, or manual review.
[0048] Specifically, the phased desensitization strategy matrix pre-stores the correspondence between interaction phases, sensitivity levels, authorization levels, and the set of available desensitization actions. When the execution device processes a sensitive unit, it first locates the target strategy item based on the interaction phase of the unit, the sensitivity level of the unit, and the authorization level of the current request. Then, it determines the actual action to be executed from the set of actions allowed by the target strategy item. In this way, the matrix first limits which processing methods can be adopted under the corresponding conditions, and the desensitization decision value then determines which method to use for this processing.
[0049] In one implementation, the desensitization decision value can be expressed as: MaskScore=c1·RiskData+c2·StageRisk+c3·OutputRisk+c4·CombinationRisk-c5·AuthScore.
[0050] In this framework, RiskData represents data sensitivity risk, StageRisk represents interaction stage risk, OutputRisk represents output risk, CombinationRisk represents combined inference risk, AuthScore represents the authorization evaluation value, and c1 to c5 represent the corresponding weights. Interaction stage risk is related to where the data will be processed—whether it enters the model, is passed to the tool, or generates an echo; output risk is related to the exposure scope of the data after it leaves this stage. The authorization evaluation value is used as a deduction item in determining the desensitization decision value, but the final action must still be within the set of actions allowed by the target policy.
[0051] The desensitization decision threshold range can correspond to different processing intensities. For example, when the corresponding threshold condition is met, masking or generalization is selected within the range allowed by the target strategy; when the risk continues to increase, alias replacement or tokenization is selected; when the threshold for prohibiting transmission or display is reached, the selection to prohibit input or prohibit echoing is selected; when the combined inference risk exceeds the combined threshold, manual review is initiated. Irreversible summarization is suitable for content that only needs to retain verification information and does not need to echo the original value. Different actions can be combined according to strategies and executed separately on different sensitive units in the data to be processed in the same stage.
[0052] For example, as shown in Table 4, as a specific strategy configuration, when encountering internally restricted data during the retrieval and recall phase and the current request is for summary visibility, the topic and evidence number of the candidate fragment can be retained, while the subject's precise identifier can be removed. When encountering highly sensitive business data during the prompt assembly phase and the current request is for de-identified visibility, the customer name can be replaced with a session-level name, and the contract amount can be converted to a range; extremely sensitive data can be prohibited from entering the prompt words if authorization is insufficient, and only irreversible summaries or data type tags can be retained. During the tool invocation phase, highly sensitive business data can enter the tool parameters through alternative identifiers and be parsed in a controlled environment; extremely sensitive data that is not allowed to be transmitted to external tools can be intercepted or trigger manual approval. During the model output phase, generalization descriptions, statistical results, or masked feedback can be generated according to the strategy; when the result feedback phase involves combined inference of sensitive data, it is necessary to combine the leakage detection results to determine whether to display in a tiered manner, return a summary, or prompt for approval. By first matching the strategy items and then determining the action based on the current risk, the same sensitive unit can receive different treatments at different interaction phases or under authorization conditions, while avoiding the de-identification decision value directly selecting actions that are not allowed by the target strategy item.
[0053] Table 4 Desensitization Strategy Matrix Interaction phase condition Dynamic desensitization actions E2 Retrieval S2 / A2 The recalled clips retain the subject and evidence number, but the precise identifier of the subject is removed. E3 prompts for splicing S3 / A3 Replace the customer name, mobile number, and contract amount with a session level name or range value. E3 prompts for splicing S4 / A0-A3 Access to prompt words is disabled; only irreversible summaries and data type tags are retained. E4 tool call S3 / A3 The tool parameters use alternative identifiers, and the server resolves the mappings in a controlled environment. E4 tool call S4 / A0-A4 Intercept calls or trigger manual approvals to prevent transmission to external tools. E5 model output S2 / A2 Output generalization descriptions or statistical results, but not specific subjects. E5 model output S3 / A3 Allow mask echoing, for example, "Customer C-102, last four digits of mobile number 1234". E6 Result Return Combinatorial inference sensitivity / S5 Triggering a combined leakage detection, the system will display tiered feedback upon successful detection and return a summary or approval prompt upon failure. In one embodiment, see Figure 5 Step S5 specifically includes the following steps: S51: When the desensitization action corresponding to the sensitive unit includes alias replacement or tokenization, generate the substitution value corresponding to the sensitive unit, and generate the original value digest based on the original value of the sensitive unit; S52: Generate the de-identified mapping record based on the original value digest and the substitution value. The de-identified mapping record includes a mapping identifier, an original value digest, a substitution value, a scope type, a validity period, and a reverse lookup strategy. S53: Based on the scope type, associate the de-identified mapping record with the corresponding session identifier or task identifier to determine the mapping scope of the de-identified mapping record; S54: Based on the desensitization action corresponding to each sensitive unit, perform corresponding processing on each sensitive unit in the stage data to be processed to obtain the stage desensitized data; wherein, the sensitive unit that needs to be aliased or tokenized is replaced with the substitution value; when a parsing or reverse lookup request for the substitution value is received, determine whether to allow parsing or reverse lookup of the substitution value in the controlled operating environment according to the mapping scope, validity period and reverse lookup strategy.
[0054] Specifically, after determining the desensitization action corresponding to each sensitive unit, the execution device processes the data to be processed according to that action. When the desensitization action includes alias replacement or tokenization, the execution device first generates a substitute value for the corresponding sensitive unit and generates an original value digest based on its original value. The substitute value is used to refer to the sensitive unit in the processed data, enabling subsequent interactions to use the processed content; the original value digest is used to identify or verify the correspondence, but the digest itself cannot restore the original value. The execution device writes the substitute value, original value digest, and mapping identifier into the de-identified mapping record, and sets the scope type, validity period, and reverse lookup strategy. The scope type is used to limit in which interactions the substitute value is valid: when set to session level, the mapping record is associated with the session identifier; when set to task level, the mapping record is associated with the task identifier. Thus, when using the substitute value in subsequent stages, it can be determined whether it belongs to the corresponding session or task, avoiding the direct use of a substitute value from one session in an unrelated session. The validity period is used to limit the time when the mapping record can be used, and the reverse lookup strategy is used to limit under what conditions the parsing of the substitute value is allowed. After generating and associating mapping records, the execution device processes the data to be processed in each stage according to the de-identification actions corresponding to each sensitive unit: for sensitive units requiring alias replacement or tokenization, the original value is replaced with a substitute value; for sensitive units corresponding to other de-identification actions, the corresponding content transformation, removal, or interception is performed to obtain the stage de-identified data. It is worth noting that generating de-identified mapping records is only the processing corresponding to alias replacement or tokenization, and is not a necessary condition for obtaining stage de-identified data. If no sensitive unit in a certain stage requires alias replacement or tokenization, the execution device can still obtain stage de-identified data by processing other sensitive units. Subsequently, if a parsing or reverse lookup request for a substitute value is received, the execution device verifies whether the session or task corresponding to the request is within the mapping scope, whether the mapping record is still valid, and whether the request conforms to the reverse lookup policy; only after verification is parsing or reverse lookup allowed in the controlled operating environment. If the original value needs to be obtained, the protected original value correspondence should be maintained and queried by the controlled operating environment; the original value cannot be recovered solely from the original value digest. Regular audit logs can save the original value summary and mapping identifier, without needing to save the plaintext original value.
[0055] For example, please refer to Table 5. The execution device processes sensitive units according to the desensitization action. For content that allows the retention of some information, masking can be performed, for example, processing the mobile phone number "13812345678" into "138****5678"; generalization can be performed, for example, converting the precise age "37 years old" into "30-40 years old"; binning can also be performed, for example, converting the contract amount "2.46 million yuan" into "2 million-3 million yuan". For content that is not suitable to retain the original value in the interactive content but still needs to refer to the same subject later, alias replacement can be performed, replacing the customer's real name with "customer C-102"; for situations where tool calls need to reference sensitive values, a token valid within the specified scope can be used to replace the original value. Irreversible digests retain the digest value used for verification and are not used for direct echoing or restoring the original value. For content that is not allowed to enter the model context, the entry into the model is prohibited; for content that is not allowed to be displayed to the target terminal, the echoing is prohibited; for content that needs further judgment on whether it can be used or displayed, manual review is triggered.
[0056] Table 5 Desensitization Actions Action coding Action Name Example MASK mask Change the phone number 13812345678 to 138****5678 GENERALIZE generalization Convert the exact age 37 to the 30-40 age range. BUCKET Dividing into bins The contract amount of 2,460,000 will be converted to a range of 2 million to 3 million. ALIAS Alias replacement Replace the real customer name with customer C-102 TOKENIZE Tokenization Generate a session-controlled token for controlled resolution during tool calls. HASH_DIGEST Irreversible Summary Only the summary value is recorded for audit verification; direct echoing is not supported. BLOCK_IN Do not put it into the mold Prevent sensitive fields from entering model prompts or context windows BLOCK_OUT Disable echo Intercept sensitive fields or combined inference results in the model output REVIEW Manual review A review is triggered when the output involves highly sensitive fields or combined risks. In one embodiment, the de-identified mapping record may further include the original entity type, alias value, token value, session identifier, task identifier, agent identifier, authorization level, effective time, expiration time, key version, audit digest, and revocation status. Session-level scope restricts the substitute identifier to the corresponding session, while task-level scope restricts it to the corresponding task. When the same entity is in different sessions, different session-level names can be generated to reduce the possibility of aliases from different sessions being directly associated. When a resolution or reverse lookup request arrives, the execution device first checks whether the request is within the mapping scope, then checks whether the mapping is still valid and whether the reverse lookup policy allows the corresponding operation. In scenarios involving reverse lookup of the original value, it can also verify whether the complete, visible, and traceable authorization, manual review results, and the key corresponding to the key version are available. If the mapping has expired, been revoked, or does not meet the reverse lookup conditions, the original value is not returned. By setting scope, expiration, and reverse lookup conditions for surrogate values, aliases or tokens can maintain the necessary referential relationships in authorized interactions, while reducing the likelihood of surrogate values being used across sessions or reverting to the original sensitive data in normal responses.
[0057] In one embodiment, see Figure 6 Step S6 specifically includes the following steps: S61: When the stage data to be processed includes model output drafts or tool return content, the stage desensitized data is matched with the sensitive unit set, and when the deidentified mapping record has been generated, it is further matched with the deidentified mapping record to identify the original sensitive fields or sensitive fields exceeding the authorization level contained in the stage desensitized data, and obtain the direct field leakage detection result. S62: Based on the relationship path between different sensitive units in the stage desensitized data, determine whether the stage desensitized data contains sensitive subject relationships that exceed the authorization level, and obtain the subject relationship leakage detection result; S63: Based on the stage desensitization data, the interaction context information and the historical interaction information, perform combined inference on multiple sensitive units in the stage desensitization data, determine whether the corresponding sensitive unit combination can point to a specific sensitive subject or represent a sensitive relationship, and obtain the combined inference leakage detection result. S64: When the stage de-identified data contains a substitute value, determine whether there is a cross-session mapping association based on the substitute value in the stage de-identified data and the de-identified mapping records corresponding to different sessions, and obtain the cross-session mapping leakage detection result; S65: When the data to be processed in the stage includes the content returned by the tool, the range of fields returned by the tool is determined according to the access purpose, data domain permission and authorization level corresponding to the intelligent agent interaction request. The fields in the content returned by the tool are compared with the range of fields returned by the tool to determine whether the content returned by the tool carries fields that exceed the range of fields returned by the tool, and the tool return leakage detection result is obtained. S66: When all the leakage detection results obtained from the stage desensitized data meet the preset echo conditions, the stage desensitized data is determined as the stage output data; when any of the leakage detection results does not meet the preset echo conditions, the corresponding content is subjected to return field clipping, secondary desensitization, or echo prohibition, or manual review is triggered, and the stage output data is determined according to the processing results.
[0058] Specifically, after receiving the anonymized data for a given stage, the execution device reviews the content intended for transmission to the next interaction stage or output to the target terminal. When the data to be processed in a stage includes model output drafts or tool-returned content, the execution device matches the anonymized data against the sensitive unit set to check whether it still contains the original sensitive fields or sensitive fields exceeding the current authorization level. If de-identified mapping records have been generated, the device can also match the substitute values and original value summaries in the records to confirm whether the output content involves the corresponding sensitive units; the original value summaries are only used for comparison or verification and cannot be used to reconstruct the original values. For example, if the model output draft still contains the complete account information, or if the specific contract amount is intended to be displayed to users with only summary visibility permissions, a direct field leakage detection result is generated.
[0059] When a field itself meets the display requirements, the execution device also checks whether the relationships between fields can be disclosed. Based on the relationship paths between different sensitive units, the execution device determines whether the anonymized data directly or indirectly represents or retains sensitive subject relationships that exceed the authorization level, forming a subject relationship leakage detection result. For example, displaying a customer name and project status separately may meet the authorization requirements, but displaying them together may disclose customer business relationships that should not be open to that user. The execution device further combines interaction context information and historical interaction information to determine whether multiple fragments can jointly point to a specific customer, employee, or transaction, forming a combined inference leakage detection result. For example, the project status in this round of response, combined with the department, time, and work order information disclosed in previous conversations, may identify a unique customer. Even if the customer name does not appear directly in this round of response, this combined inference risk still needs to be identified.
[0060] When the de-identified data in a stage contains substitute values such as aliases or tokens, the execution device combines the de-identified mapping records corresponding to different sessions to check whether the substitute values allow the same sensitive subject to be identified in sessions that should not be associated, thus forming a cross-session mapping leakage detection result. The mapping scope should be considered during the check: for task-level mappings that are allowed to be used in different sessions of the same task according to the policy, leakage should not be concluded simply because substitute values appear in different sessions. When the data to be processed in a stage includes content returned by the tool, the execution device determines the allowed range of fields returned by the tool based on the purpose of this access, data domain permissions, and authorization level, and then compares this range with the fields actually returned by the tool to form a tool return leakage detection result. For example, if the task only requires the last few digits of the account, but the tool also returns the complete account number, fields exceeding the allowed range can be identified and pruned before entering subsequent processing stages.
[0061] The execution device determines whether the phased de-identified data meets the preset display conditions based on the applicable direct field leakage detection results, subject relationship leakage detection results, combined inference leakage detection results, cross-session mapping leakage detection results, and tool-returned leakage detection results. If no alternative value is generated, cross-session mapping leakage detection is unnecessary; if tool-returned content is not involved, tool-returned field range detection is unnecessary. If all applicable detection results meet the conditions, the phased de-identified data is determined as the phased output data; if any detection result does not meet the conditions, the corresponding content undergoes return field pruning, secondary de-identification, or display restriction, or triggers manual review, and the phased output data is determined based on the processing results. Content requiring manual review is not displayed until the review is passed.
[0062] In one embodiment, the execution device selects content that has already been displayed to the corresponding user from historical interaction information, extracts the subject references, field values, time information, and relationship paths, forming a set of information that the user has already obtained in the corresponding session or task. Content that has been intercepted, awaits manual review, or is only processed internally by the model and has not been shown to the user is not added to this set as displayed information. The execution device then extracts information of the same type from the anonymized data to be output this time, and matches the two parts of information according to the relationship between customers, employees, projects, work orders, or transactions. For content that uses aliases to refer to subjects, the corresponding mapping record is used to determine whether different fragments point to the same subject only within the scope allowed by the mapping scope, and the original value is not provided to the normal output process. The execution device can determine the range of candidate subjects that simultaneously meet the displayed information and the information to be output this time based on the matching results. When the candidate subjects are reduced from multiple to a specific subject after the current content is added, or when sensitive relationships that were not originally displayed can be determined along the relationship paths of each fragment, it is determined that the content to be output this time has increased the risk of combined inference leakage. For example, if a historical response already displays the department and time of a work order, and this response only includes the anonymized project status, this information collectively matches a unique customer project. The execution device then considers this project status as the content causing the combined risk. For situations where unique identification is not achieved but a high combined inference risk has been formed, a combined inference risk threshold can be used to determine whether to trigger manual review. After identifying the output segment causing the risk, the execution device prioritizes adjusting the displayed content for that segment. For example, removing time or work order information that allows the subject to be uniquely identified, or converting the specific project status into a broader business summary; after processing, it re-performs a combined detection with the previously displayed information set. If it can still infer subjects or relationships that should not be disclosed, the corresponding content is prohibited from being displayed or submitted for manual review. By using content already known to the user as the detection scope and checking changes after the addition of this content before output, the execution device can discover cumulative disclosures that are difficult to identify in a single round of response checks, while retaining other content that meets the authorization conditions.
[0063] In one embodiment, the method further includes the following steps: S81: Generate audit records for the processing of the intelligent agent's interaction request at each interaction stage. The audit records include the interaction stage, the hit strategy, the desensitization action, and the processing result. The processing result includes the echo result, the blocking reason, or the review status. S82: Based on the session identifier and task identifier, according to the interaction stages that the intelligent agent's interaction request goes through in sequence, the audit records corresponding to different interaction stages are associated to obtain a staged audit record sequence. S83: Adjust the weights or thresholds used to determine sensitivity levels, authorization levels, and desensitization actions based on the processing results in historical audit records.
[0064] Specifically, the execution device generates corresponding audit records for the actual data processing that occurs during the stages of intelligent agent interaction requests, including input reception, retrieval and recall, prompt assembly, tool invocation, model output, result feedback, and memory archiving. Each audit record records the interaction stage, the policy hit, the de-identification actions performed, and the processing result. The processing result can be a displayed result that is allowed, a blocking reason for prohibiting input into the model or prohibiting display, or the triggering and completion status of manual review. To facilitate verification of the processing conditions at the time, the audit record can also record the summary of the data to be processed at each stage, the sensitivity level, the authorization level, the mapping identifier or mapping summary, and the policy version. For example, in the retrieval and recall stage, it records which fields in the candidate fragments were truncated; in the prompt assembly stage, it records whether the customer name was replaced with an alias; in the model output stage, it records whether the complete account was blocked due to direct field leakage; and in the result feedback stage, it records whether the final displayed content is the actual content, the de-identified result, or the summary. Ordinary audit logs do not store the plaintext of the original sensitive values. When alias replacement or tokenization is involved, corresponding de-identified mapping records can be associated through mapping identifiers. The controlled operating environment manages the correspondence between the original and the replacement values according to the mapping scope, validity period, and reverse lookup strategy. The execution device associates audit logs generated at different stages of the same interaction request with session identifiers and task identifiers, and then arranges them according to the actual processing order to form a staged audit log sequence. Reviewers can thus verify the identification, classification, de-identification, mapping, echoing, or blocking of a certain sensitive content at each stage; no corresponding record needs to be generated for a stage that a request has not passed. The execution device can also summarize the echoing results, blocking reasons, and manual review conclusions in historical audit logs and periodically calibrate relevant weights and thresholds. For example, when the review finds that the combination of multiple low-sensitivity fragments can identify a specific customer, the weight of the combined inference risk, the combined inference risk threshold, or the de-identification decision threshold in the data sensitivity risk can be adjusted; when fields exceeding permissions are repeatedly echoed, the weights or authorization thresholds used for authorization evaluation can be adjusted based on the actual situation of the task stage, data domain permissions, and session risks. False blocking confirmed through review can also be used to calibrate the desensitization decision threshold for the corresponding policy item. The adjusted policy record records the new policy version, and subsequent requests are processed according to the adjusted policy. Previous audit records still retain the actual policy version and processing results that were applied.
[0065] The above implementation methods are explained below in conjunction with specific business scenarios.
[0066] In an internal enterprise knowledge assistant scenario, a regular employee inquires about the reason for a client's project delay. The execution device identifies that the request involves the client name, project status, internal work order, responsible person information, and contract information. When the authorization level for this request is summary visible, the retrieval recall phase retains the policy terms and project status summary, while hiding the client's real name and contract amount; during the suggestion assembly phase, the client name is replaced with a session-level name such as "Client C-102," and the amount field is converted to a range; during the model output phase, the performance and internal accountability information of the specific responsible person are prevented from being displayed, and a summary about cross-departmental delivery dependencies and approval node delays is returned to the employee. At the same time, the audit log records the anonymization strategy for this hit and the audit summary corresponding to the blocked fields.
[0067] In a financial customer service AI scenario, when a customer inquires about account transaction status, the identity verification stage allows the tool to read the necessary account number endings and tokenize the complete account field. During the product inquiry stage, only a risk level summary and compliance explanation are displayed. In the complaint review stage, after the agent supervisor completes approval, necessary partial plaintext evidence can be displayed on the controlled terminal; the model prompts still do not include the complete account number, ID number, or authentication credentials. If the model output draft attempts to repeat the complete account number, the output-side review intercepts this field, converting the allowed portion into an ending number format.
[0068] In a human resources data Q&A AI scenario, a department manager inquires about the recent turnover risk of team members. The execution device identifies employee names, performance ratings, salary ranges, interview records, and risk tags. For the department manager, only team statistics and anonymized individual trends are output, without complete salary information, detailed interview content, or sensitive health information. For business HR personnel confirmed by the authorization center, anonymized employee aliases and risk factor classifications can be displayed. For audit administrators in compliance review scenarios with appropriate authorization, controlled reverse lookups can be performed according to the mapped scope and reverse lookup strategy.
[0069] In summary, the dynamic desensitization and de-identification method for intelligent agent interaction data provided in this invention addresses the characteristic that data is repeatedly acquired, generated, and transmitted during intelligent agent interaction stages such as input reception, retrieval and recall, prompt assembly, tool invocation, model output, result feedback, and memory archiving. It identifies sensitive units at each stage and determines desensitization actions based on the sensitivity level, the authorization level corresponding to the interaction context, and the current interaction stage. Therefore, the same sensitive data can be processed differently under different task stages, data domains, and authorization conditions, reducing over-display or over-interception caused by fixed field rules failing to adapt to changes in the interaction process. For content that needs to retain the subject's reference, the use of substitute values and reverse lookups are restricted through de-identified mapping records with mapping scope, allowing ordinary interactions to use the processed data, while authorization review can still be traced under controlled conditions. Output-side review of the desensitized data at each stage can also identify original field leaks, sensitive subject relationship leaks, and combined inference leaks formed by multiple fragments, and perform secondary desensitization, prohibit echoing, or manual review before the content continues to be transmitted or displayed. By linking audit records of each interaction stage, the effectiveness of policy hits, desensitization, mapping, echoing, and interception can be verified. Combined with historical review results, relevant weights or thresholds can be adjusted, thereby reducing the risk of leakage of sensitive enterprise data during intelligent agent interaction and improving the traceability of the processing.
[0070] Example 2 Please see Figure 7 This invention provides a device 200 for dynamic de-identification and de-identification of intelligent agent interaction data. The device 200 can be installed in the interaction security control layer of an enterprise intelligent agent system, or in a data security gateway communicating with the intelligent agent server. The device includes: The request processing module is used to receive intelligent agent interaction requests, obtain the interaction context information corresponding to the intelligent agent interaction requests, determine the interaction stage of the intelligent agent interaction requests, and obtain the stage data to be processed corresponding to the interaction stage. The sensitive identification module is used to identify sensitive data in the data to be processed in the stage, obtain a set of sensitive units, and determine the sensitivity level of each sensitive unit according to the sensitivity judgment information corresponding to each sensitive unit in the set of sensitive units. The authorization determination module is used to determine the authorization level corresponding to the agent's interaction request based on the interaction context information. The strategy determination module is used to query the phased desensitization strategy matrix using the interaction stage, the sensitivity level, and the authorization level as indexes, and determine the desensitization action corresponding to each sensitive unit. The desensitization processing module is used to perform desensitization and de-identification processing on the stage data to be processed according to the desensitization action to obtain stage desensitized data. When the desensitization action includes alias replacement or tokenization, a de-identified mapping record with a mapping scope is generated for the corresponding sensitive unit. The output verification module is used to verify the sensitive information on the output side of the desensitized data of the stage, and determine the corresponding stage output data based on the verification result. The data output module is used to transmit the output data of the stage to the next interactive stage or output it to the target terminal.
[0071] In one implementation, the device further includes an audit review module, which generates audit records for the processing of the intelligent agent's interaction request at each interaction stage, associates the audit records corresponding to different interaction stages with the session identifier and task identifier to obtain a staged audit record sequence, and adjusts the weights or thresholds used to determine the sensitivity level, authorization level, and desensitization action based on the processing results in the historical audit records.
[0072] Specifically, the device can be deployed in the agent interaction security control layer of AgentOS, working in conjunction with DataOS's data catalog, knowledge base, permission center, audit center, vector retrieval service, and tool invocation gateway. The request processing module obtains data from the request entry point and corresponding interaction stage, passing the interaction context information and stage-specific data to be processed to subsequent modules. The sensitivity identification module identifies and classifies the stage-specific data to be processed; the authorization determination module determines the authorization level of this agent interaction request; and the policy determination module uses the interaction stage, sensitivity level, and authorization level to locate policy items and determine the corresponding de-identification actions for each sensitive unit.
[0073] The de-identification module executes the defined actions, generating de-identified mapping records when alias replacement or tokenization is required, and controlling the parsing and reverse lookup of substitution values according to the mapping scope, validity period, and reverse lookup strategy. The output review module checks the de-identified data during the review phase, performing appropriate processing or triggering manual review for content that does not meet the display conditions. The data output module transmits content that is allowed to continue to be used or displayed according to the review results; sensitive content that is prohibited from transmission or display is not output by this module.
[0074] The audit review module receives the identification results, hit strategies, desensitization actions, mapping identifiers, and output processing results generated by each module during the corresponding interaction phase, and generates audit records associated with session identifiers and task identifiers. When the output review module triggers manual review, the audit review module records the review status and review results; for ordinary audit records, relevant sensitive content is identified with data digests or mapping digests, and the plaintext original values are not saved. The audit review module can also adjust the corresponding weights or thresholds based on the echo results, blocking reasons, and review results in the historical records, for use by the sensitive identification module, authorization determination module, and policy determination module when processing subsequent requests.
[0075] With the cooperation of the above modules, the device performs processing at the corresponding interaction stage when data enters or leaves the intelligent agent, so that the staged strategy decision, mapping control and output review correspond to the same piece of data to be processed in the same stage; the audit review module associates the processing status of each stage with the session and task, so that the stage of occurrence of the anomaly display and the reason for processing can be verified, and the problems confirmed by the review are reflected in the subsequent strategies.
[0076] In one embodiment, an electronic device is also provided, characterized in that it includes: at least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the method as described in one embodiment.
[0077] Specifically, the electronic device can be an enterprise server, data security gateway, cloud computing node, or edge computing device running the intelligent agent. When the processor executes computer program instructions in the memory, it acquires the intelligent agent's interaction requests and corresponding stage-specific data to be processed, and performs sensitive unit identification, sensitivity level determination, authorization level determination, staged policy query, de-identification and de-identification processing, and output-side verification. The memory can store the identification rules, model parameters, policy matrices, and mapping records required to perform the above processing. The electronic device can exchange data with knowledge retrieval services, permission centers, tool services, model services, and target terminals through communication interfaces; when controlled parsing of substitute values is required, it processes the parsing request according to the mapping scope, validity period, and reverse lookup strategy.
[0078] The electronic device can either run on the same server as the agent or act as a separate gateway to access the agent's interaction process. In both deployment methods, the processor obtains the corresponding data according to the interaction stage and executes the above methods. Therefore, the data processing conditions do not change regardless of whether the agent and the de-identification function are located on the same device.
[0079] It should be clarified that the present invention is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of the present invention.
[0080] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this invention are programs or code segments used to perform the required tasks. The programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0081] It should also be noted that the exemplary embodiments mentioned in this invention describe methods or systems based on a series of steps or apparatus. However, this invention is not limited to the order of the steps described above; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0082] The above description is merely a specific embodiment of the present invention. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the protection scope of the present invention.
Claims
1. A method for dynamic desensitization and de-identification of intelligent agent interaction data, characterized in that, The method includes: Receive an agent interaction request, obtain the interaction context information corresponding to the agent interaction request, determine the interaction stage of the agent interaction request, and obtain the stage data to be processed corresponding to the interaction stage. Sensitive data identification is performed on the data to be processed in the aforementioned stage to obtain a set of sensitive units. Based on the sensitivity judgment information corresponding to each sensitive unit in the set of sensitive units, the sensitivity level corresponding to each sensitive unit is determined. The authorization level corresponding to the agent's interaction request is determined based on the interaction context information. The interaction stage, the sensitivity level, and the authorization level are used as indexes to query the staged desensitization strategy matrix and determine the desensitization action corresponding to each sensitive unit. The data to be processed in the stage is desensitized and de-identified according to the desensitization action to obtain stage desensitized data. When the desensitization action includes alias replacement or tokenization, a de-identified mapping record with a mapping scope is generated for the corresponding sensitive unit. The sensitive information of the desensitized data at each stage is reviewed on the output side, and the corresponding output data for each stage is determined based on the review results. The output data of the aforementioned stage is passed to the next interaction stage or output to the target terminal.
2. The method for dynamic desensitization and de-identification of intelligent agent interaction data according to claim 1, characterized in that, The interaction stages of the intelligent agent interaction request include at least two of the following: input reception stage, retrieval and recall stage, prompt assembly stage, tool invocation stage, model output stage, result feedback stage, and memory archiving stage; among which... The data to be processed in the input receiving stage includes user input, uploaded files, speech-to-text content, or optical character recognition content. The data to be processed in the retrieval and recall stage includes candidate fragments returned by the knowledge base, vector library, relation graph, or database. The data to be processed in the prompting and splicing stage includes system prompts, task prompts, retrieval evidence, or contextual memory. The data to be processed in the tool invocation stage includes tool invocation parameters, application programming interface requests, database query conditions, or tool returned content. The data to be processed in the model output stage includes model output drafts. The data to be processed in the result feedback stage includes content to be feedback. The data to be processed in the memory archiving stage includes content to be archived.
3. The method for dynamic desensitization and de-identification of intelligent agent interaction data according to claim 1, characterized in that, The process of identifying sensitive data in the data to be processed at the stage to obtain a set of sensitive units, and determining the sensitivity level of each sensitive unit based on the sensitivity judgment information corresponding to each sensitive unit in the set, includes: Based on field identification rules, industry terminology, entity identification model, and data directory labels, sensitive entities and sensitive fields are identified from the data to be processed in the stage, and the sensitivity type and field label corresponding to each sensitive entity and sensitive field are determined to obtain the set of sensitive units. Based on the relationship graph and the association between different sensitive units in the data to be processed in the stage, determine the relationship path and context relationship corresponding to each sensitive unit; Based on the interaction context information and the relationship paths and contextual relationships between different sensitive units, determine the combination of sensitive units that can jointly point to a sensitive subject or represent a sensitive relationship, and determine the combination inference risk corresponding to each sensitive unit. The sensitivity type, field label, relationship path, contextual relationship, and combined inference risk corresponding to each sensitive unit are used as the sensitivity determination information. The data sensitivity risk value is determined based on the sensitivity determination information. Based on the risk range in which the data sensitivity risk value is located, the sensitivity level corresponding to each sensitive unit is determined as public data, internal ordinary data, internal restricted data, highly sensitive business data, extremely highly sensitive data, or combined inference sensitive data.
4. The method for dynamic desensitization and de-identification of intelligent agent interaction data according to claim 1, characterized in that, Determining the authorization level corresponding to the agent's interaction request based on the interaction context information includes: The user role, agent role, task stage, data domain permissions, access purpose, terminal trust status, model invocation method, and session risks are obtained from the interaction context information. The role score is determined based on the user role and the agent role; the task stage score is determined based on the task stage; the data domain score is determined based on the data domain permission; the access purpose score is determined based on the access purpose; the terminal trust score is determined based on the terminal trust status and the model invocation method; and the session risk score is determined based on the session risk. The authorization evaluation value is determined based on the role score, task phase score, data domain score, access purpose score, terminal trust score, and session risk score. Based on the authorization threshold range in which the authorization evaluation value falls, the authorization level corresponding to the agent interaction request is determined as unauthorized access, existence visibility, summary visibility, anonymized visibility, partial plaintext visibility, or complete visibility and traceability.
5. The method for dynamic desensitization and de-identification of intelligent agent interaction data according to claim 3, characterized in that, The step of querying the phased desensitization strategy matrix using the interaction stage, the sensitivity level, and the authorization level as indexes to determine the desensitization action corresponding to each sensitive unit includes: Based on the combination relationship between different interaction stages, different sensitivity levels and different authorization levels, the staged desensitization strategy matrix is pre-constructed. The staged desensitization strategy matrix includes multiple strategy items, and each strategy item records the corresponding interaction stage, sensitivity level, authorization level and desensitization action set. Based on the interaction stage, the sensitivity level corresponding to each sensitive unit, and the authorization level corresponding to the agent's interaction request, a target strategy item matching each sensitive unit is determined from the staged desensitization strategy matrix. The desensitization decision value is determined based on the data sensitivity risk, interaction stage risk, output risk, combined inference risk, and authorization level corresponding to each sensitive unit; Based on the desensitization decision threshold range in which the desensitization decision value is located, the desensitization action corresponding to each sensitive unit is determined from the desensitization action set corresponding to the target strategy item. The desensitization action includes at least one of masking, generalization, bucketing, alias replacement, tokenization, irreversible summarization, prohibition of input into the model, prohibition of echoing, or manual review.
6. The method for dynamic desensitization and de-identification of intelligent agent interaction data according to claim 5, characterized in that, The process involves desensitizing and de-identifying the stage-specific data according to the desensitization action to obtain stage-specific desensitized data. When the desensitization action includes alias replacement or tokenization, a de-identified mapping record with a mapping scope is generated for the corresponding sensitive unit, including: When the desensitization action corresponding to the sensitive unit includes alias replacement or tokenization, a replacement value corresponding to the sensitive unit is generated, and an original value digest is generated based on the original value of the sensitive unit. The de-identified mapping record is generated based on the original value digest and the substitution value. The de-identified mapping record includes a mapping identifier, an original value digest, a substitution value, a scope type, an expiration date, and a reverse lookup strategy. Based on the scope type, the de-identified mapping record is associated with the corresponding session identifier or task identifier to determine the mapping scope of the de-identified mapping record; Based on the desensitization action corresponding to each sensitive unit, each sensitive unit in the stage data to be processed is processed accordingly to obtain the stage desensitized data. Specifically, when a sensitive unit that needs to be aliased or tokenized is replaced with the substitute value, and a parsing or reverse lookup request for the substitute value is received, it is determined whether to allow the parsing or reverse lookup of the substitute value in a controlled operating environment based on the mapping scope, validity period, and reverse lookup strategy.
7. The method for dynamic desensitization and de-identification of intelligent agent interaction data according to claim 1, characterized in that, The step of performing output-side sensitive information verification on the de-identified data of the stage, and determining the corresponding stage output data based on the verification results, includes: When the stage data to be processed includes model output drafts or tool return content, the stage desensitized data is matched with the sensitive unit set, and when the deidentified mapping record has been generated, it is further matched with the deidentified mapping record to identify the original sensitive fields or sensitive fields exceeding the authorization level contained in the stage desensitized data, and obtain the direct field leakage detection result. Based on the relationship paths between different sensitive units in the staged de-identified data, determine whether the staged de-identified data contains sensitive subject relationships that exceed the authorization level, and obtain the subject relationship leakage detection result; Based on the stage desensitized data, the interaction context information, and the historical interaction information, multiple sensitive units in the stage desensitized data are combined and inferred to determine whether the corresponding combination of sensitive units can point to a specific sensitive subject or represent a sensitive relationship, and the combined inference leakage detection result is obtained. When the stage de-identified data contains substitute values, the existence of cross-session mapping association is determined based on the substitute values in the stage de-identified data and the de-identified mapping records corresponding to different sessions, and the cross-session mapping leakage detection result is obtained. When the data to be processed in the stage includes the content returned by the tool, the range of fields returned by the tool is determined according to the access purpose, data domain permissions and authorization level corresponding to the intelligent agent interaction request. The fields in the content returned by the tool are compared with the range of fields returned by the tool to determine whether the content returned by the tool carries fields that exceed the range of fields returned by the tool, and the tool return leakage detection result is obtained. When all the leakage detection results obtained from the stage de-identified data meet the preset echo conditions, the stage de-identified data is determined as the stage output data; when any of the leakage detection results do not meet the preset echo conditions, the corresponding content is subjected to return field pruning, secondary de-identification, or echo prohibition, or manual review is triggered, and the stage output data is determined according to the processing results.
8. The method for dynamic desensitization and de-identification of intelligent agent interaction data according to claim 1, characterized in that, The method further includes: An audit log is generated for the processing of the intelligent agent's interaction request at each interaction stage. The audit log includes the interaction stage, the hit strategy, the desensitization action, and the processing result. The processing result includes the echo result, the blocking reason, or the review status. Based on the session identifier and task identifier, and according to the interaction stages that the intelligent agent's interaction request goes through in sequence, the audit records corresponding to different interaction stages are associated to obtain a staged audit record sequence. Based on the processing results in historical audit records, the weights or thresholds used to determine sensitivity levels, authorization levels, and desensitization actions are adjusted.
9. A device for dynamic desensitization and de-identification of intelligent agent interaction data, characterized in that, The device includes: The request processing module is used to receive intelligent agent interaction requests, obtain the interaction context information corresponding to the intelligent agent interaction requests, determine the interaction stage of the intelligent agent interaction requests, and obtain the stage data to be processed corresponding to the interaction stage. The sensitive identification module is used to identify sensitive data in the data to be processed in the stage, obtain a set of sensitive units, and determine the sensitivity level of each sensitive unit according to the sensitivity judgment information corresponding to each sensitive unit in the set of sensitive units. The authorization determination module is used to determine the authorization level corresponding to the agent's interaction request based on the interaction context information. The strategy determination module is used to query the phased desensitization strategy matrix using the interaction stage, the sensitivity level, and the authorization level as indexes, and determine the desensitization action corresponding to each sensitive unit. The desensitization processing module is used to perform desensitization and de-identification processing on the stage data to be processed according to the desensitization action to obtain stage desensitized data. When the desensitization action includes alias replacement or tokenization, a de-identified mapping record with a mapping scope is generated for the corresponding sensitive unit. The output verification module is used to verify the sensitive information on the output side of the desensitized data of the stage, and determine the corresponding stage output data based on the verification result. The data output module is used to transmit the output data of the stage to the next interactive stage or output it to the target terminal.
10. An electronic device, characterized in that, include: At least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the method as described in any one of claims 1-8.
