A method, device, equipment, medium and product for distinguishing business scenarios

By differentiating the desensitization methods according to business scenarios, and using DOM4J parsing and Spring container technology to automatically build desensitization process components, combined with distributed storage rules, the problem of the inflexibility of traditional desensitization methods is solved, realizing dynamic desensitization and efficient data display of sensitive data in government and financial business systems.

CN123179451APending Publication Date: 2026-11-27SHENZHEN COMTOP INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611379899.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-07
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Traditional data anonymization methods cannot flexibly adjust protection strategies according to different business scenarios, resulting in over-protection affecting business query efficiency or under-protection causing sensitive information leakage. It is difficult to balance data security protection and system access and operation efficiency in high-concurrency business scenarios.

Method used

By differentiating desensitization methods based on business scenarios and determining desensitization rule sets according to business scenario identifiers, the plaintext returned data is accurately desensitized, enabling the scenario-based display of sensitive data. DOM4J parsing technology and Spring container lifecycle post-processors are used to automatically build desensitization process components, and distributed storage desensitization rules support online configuration and real-time updates.

Benefits of technology

It enables dynamic data anonymization for different business scenarios in government and financial business systems, meeting the requirements of refined data security management and ensuring a balance between data security and system performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179451A_ABST
    Figure CN123179451A_ABST
Patent Text Reader

Abstract

The application discloses a method, device, equipment, medium and product for distinguishing business scenarios. The method comprises the following steps: filtering and analyzing a query request forwarded by a front end to obtain a request context of the query request; the request context comprises a business scenario identifier; determining a desensitization rule set suitable for the query request according to the business scenario identifier; desensitizing the query request according to the desensitization rule set and the business scenario identifier to obtain compliance return data; and sending the compliance return data to the front end, so that the front end renders and displays the compliance return data. The embodiment of the application can meet the dynamic desensitization requirement in different business scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data anonymization, and more particularly to an anonymization method, apparatus, equipment, medium, and product for differentiating business scenarios. Background Technology

[0002] With the continuous iteration of information systems across industries and the ever-growing volume of business data, internal data sharing and external data interaction are becoming increasingly frequent, highlighting the growing security risks of data leakage, unauthorized access, and misuse of sensitive information. Traditional data masking methods mostly employ static, uniform masking models, which suffer from drawbacks such as fixed masking rules, limited adaptability to specific scenarios, and the inability to adjust protection strategies in real time. This easily leads to over-protection impacting business query efficiency or under-protection causing sensitive information leakage. Furthermore, in high-concurrency business scenarios, most masking solutions are prone to performance degradation, making it difficult to balance data security protection with system access and operational efficiency.

[0003] Taking static rule-based data masking as an example, this technology relies on a preset fixed masking strategy to complete sensitive data processing. The masking fields, masking methods and replacement rules are set uniformly in advance. It can only complete the data masking transformation according to the established logic. It cannot flexibly adjust the protection strategy according to different business scenarios. The overall rules are solidified and rigid. It can only meet the data masking needs of a single fixed scenario and it is difficult to achieve refined and differentiated data security management. Summary of the Invention

[0004] This invention provides a method, apparatus, device, medium, and product for desensitizing data based on different business scenarios, in order to meet the dynamic desensitization needs under different business scenarios.

[0005] According to one aspect of the present invention, a desensitization method for distinguishing business scenarios is provided, comprising: The query requests forwarded by the front end are filtered and parsed to obtain the request context of the query request; the request context includes a business scenario identifier; The set of de-identification rules applicable to the plaintext returned data of the query request is determined based on the business scenario identifier; Based on the de-identification rule set and the business scenario identifier, the plaintext returned data is de-identified to obtain compliant returned data; The compliance return data is sent to the front end to instruct the front end to render and display the compliance return data.

[0006] According to another aspect of the present invention, a desensitization device for distinguishing business scenarios is provided, comprising: The request processing module is used to filter and parse the query requests forwarded by the front end to obtain the request context of the query request; the request context includes a business scenario identifier; The rule determination module is used to determine the set of de-identification rules applicable to the plaintext returned data of the query request based on the business scenario identifier; The data anonymization module is used to anonymize the plaintext returned data according to the anonymization rule set and the business scenario identifier to obtain compliant returned data; The request feedback module is used to send the compliance return data to the front end, and to instruct the front end to render and display the compliance return data.

[0007] According to another aspect of the present invention, a computer program product is provided, the computer program product comprising a computer program that, when executed by a processor, implements the desensitization method for distinguishing business scenarios according to any embodiment of the present invention.

[0008] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the desensitization method for distinguishing business scenarios as described in any embodiment of the present invention.

[0009] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions, the computer instructions being configured to cause a processor to execute and implement the desensitization method for distinguishing business scenarios as described in any embodiment of the present invention.

[0010] This invention refines the desensitization control to specific business scenarios. In government and financial business systems, different desensitization rules can be set for different business scenarios, enabling sensitive data to be displayed according to different scenarios and meeting the dynamic desensitization needs under different business scenarios.

[0011] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0012] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0013] Figure 1 This is a flowchart of a desensitization method for differentiating business scenarios according to an embodiment of the present invention; Figure 2 This is a flowchart of a desensitization method for differentiating business scenarios according to another embodiment of the present invention; Figure 3 This is a schematic diagram of a desensitization device for distinguishing business scenarios according to another embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of an electronic device that implements an embodiment of the present invention. Detailed Implementation

[0014] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0015] It should be noted that the terms "first," "second," etc., used in this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0016] Figure 1 This is a flowchart illustrating a de-identification method for differentiating business scenarios according to an embodiment of the present invention. This embodiment is applicable to situations where it is necessary to de-identify data requested by users. The method can be executed by a de-identification device that differentiates business scenarios. This device can be implemented in hardware and / or software and can be configured in an electronic device with corresponding data processing capabilities. Figure 1 As shown, the method includes: S110. Filter and parse the query request forwarded by the front end to obtain the request context of the query request.

[0017] S120. Determine the set of de-identification rules applicable to the plaintext returned data of the query request based on the business scenario identifier.

[0018] S130. Based on the desensitization rule set and the business scenario identifier, the plaintext returned data is desensitized to obtain compliant returned data.

[0019] S140. Send the compliance return data to the front end to instruct the front end to render and display the compliance return data.

[0020] The request context includes the user account, access permissions, request API path, query parameters, and business scenario identifier. Business scenarios include development scenarios, testing scenarios, and more.

[0021] Specifically, DOM4J parsing technology is used to traverse the XML configuration file line by line, accurately extracting structured parameters such as "interface pointcut matching rules, AOP notification types, desensitization function switches, and second-level cache expiration time," and eliminating invalid and redundant configurations. Based on the Spring container lifecycle post-processor, the bean definitions of the components required for each desensitization process are automatically built before the business bean is instantiated. A reflection preloading mechanism is started to scan all entity classes and DTO classes in the project in batches, extracting all field names, field types, and read / write get / set methods, establishing a "field-class-interface" mapping relationship, and storing it in the first-level cache in memory for subsequent sensitive field identification; the IoC container automatically completes the registration, instantiation, and hosting of all desensitization process components, without the need for manual coding and embedding. The business side only needs to add common function annotations to bind capabilities. After the desensitization framework is automatically mounted, the full business field cache is preloaded, and the pointcut binding of the business interfaces to be intercepted is ready, the system enters a standby state, and the service initialization is completed.

[0022] When a user triggers a data query operation through the front-end page, the front-end listens for the operation, encapsulates the query request (i.e., the HTTP request message), and sends the query request to the back-end microservice. The back-end microservice, through Spring AOP dynamic proxy around advice, determines the rules based on the interface pointcut matching preloaded during the initialization phase, and seamlessly intercepts query requests destined for the business interface. For intercepted query requests, the back-end microservice filters them, removing invalid requests and requests with empty parameters. For valid query requests that are not filtered out, the request context is extracted based on the specific request content. Simultaneously, the plaintext data returned by executing the query request, such as the electricity payment records for the most recent year from a certain website, is obtained as the object for subsequent data anonymization.

[0023] For plaintext returned data, first locate the sensitive fields in the plaintext returned data that need to be de-identified, then determine the scenario-specific de-identification rules or system-wide de-identification rules applicable to each sensitive field based on the business scenario identifier, and finally obtain the de-identification rule set for plaintext returned data.

[0024] After determining the set of de-identification rules, the corresponding algorithm instance is loaded, and the applicable de-identification algorithm is determined based on the business scenario identifier. The plaintext returned data is then de-identified based on the algorithm instance to obtain compliant returned data.

[0025] Anomaly checks are performed on compliant and anonymized data, and compliant return data that passes the anomaly check is sent to the front end. After receiving the compliant return data, the front end renders and displays the compliant return data according to the page layout without any data modification or secondary calculation operations, thus completing the closed loop of storage and access separation between the back end (plaintext storage) and the front end (anonymized access).

[0026] This invention refines the desensitization control to specific business scenarios. In government and financial business systems, different desensitization rules can be set for different business scenarios, enabling sensitive data to be displayed according to different scenarios and meeting the dynamic desensitization needs under different business scenarios.

[0027] Figure 2 This is a flowchart illustrating a desensitization method for differentiating business scenarios, provided in another embodiment of the present invention. This embodiment is an optimization and improvement upon the above embodiment. Figure 2 As shown, the method includes: S210. Filter and parse the query request forwarded by the front end to obtain the request context of the query request.

[0028] S220. Based on the field mapping relationship in the memory cache, determine the sensitive fields in the plaintext returned data of the query request; based on the business scenario identifier, determine the desensitization rules applicable to each sensitive field from the scenario-specific desensitization rules and the system-general desensitization rules.

[0029] S230. Generate a set of desensitization rules applicable to the plaintext returned data based on the desensitization rules applicable to each sensitive field.

[0030] Among these, the determination of scenario-specific desensitization rules has a higher priority than the determination of system-wide desensitization rules. The content of the sensitivity rules includes: desensitization algorithm type, desensitization strength, replacement characters, number of characters to retain, and fallback strategy for exceptions.

[0031] Specifically, based on the field mapping relationships cached in memory, the sensitive and non-sensitive fields in the plaintext returned data, as well as the range of sensitive fields, are determined. Non-sensitive fields are then allowed to pass directly without participating in the desensitization operation, avoiding the overhead of a full data traversal.

[0032] For sensitive fields, the system prioritizes determining whether there are applicable scenario-specific desensitization rules for the sensitive field within the current business scenario based on the business scenario identifier. If so, it will not search for applicable rules from the system's general desensitization rules. If not, it will then search for applicable desensitization rules from the system's general desensitization rules.

[0033] The field range and applicable sensitivity rules for each sensitive field are summarized to obtain the set of desensitization rules applicable to the plaintext returned data.

[0034] S240. Based on the desensitization rule set and the business scenario identifier, the plaintext returned data is desensitized to obtain compliant returned data.

[0035] S250. Send the compliance return data to the front end to instruct the front end to render and display the compliance return data.

[0036] Based on the above embodiments, optionally, the step of de-identifying the plaintext returned data according to the de-identification rule set and the business scenario identifier to obtain compliant returned data includes: Based on the desensitization algorithm type in the desensitization rule set, initialize the desensitization algorithm instance corresponding to the desensitization algorithm type; Based on the business scenario identifier, load the desensitization algorithm corresponding to the business scenario identifier into the desensitization algorithm instance; The number of characters to retain, the replacement characters, and the desensitization range in the desensitization rule set are injected into the desensitization algorithm instance; The aforementioned desensitization algorithm instance is executed to desensitize the compliant returned data and obtain the plaintext returned data.

[0037] Specifically, an algorithm lazy loading mechanism is adopted, and the system does not preload algorithm instances for all algorithm types. It only initializes the corresponding de-identification algorithm instances in real time based on the de-identification algorithm types (mask de-identification, replacement de-identification, and fragmented de-identification) existing in the de-identification rule set.

[0038] If the business scenario identifier indicates that the business scenario is a development scenario, then the full debugging algorithm (with de-identification logs retained) is loaded in the de-identification algorithm instance; if the business scenario identifier indicates that the business scenario is a test scenario, then the standard verification algorithm is loaded in the de-identification algorithm instance; if the business scenario identifier indicates that the business scenario is a production scenario, then the high-performance lightweight algorithm is loaded in the de-identification algorithm instance.

[0039] The field range of sensitive fields in the desensitization rule set, as well as parameters such as the number of characters to retain, desensitization strength, and replacement characters of the desensitization rules, are injected into the desensitization algorithm instance after the algorithm loading is completed, thus completing the final construction of the desensitization algorithm instance.

[0040] The algorithm instance is executed to separately desensitize sensitive data in the compliant returned data. The desensitized sensitive fields are then concatenated and recombined with the original non-sensitive fields to generate complete plaintext returned data.

[0041] Based on the above embodiments, optionally, after desensitizing the plaintext returned data according to the desensitization rule set and the business scenario identifier to obtain compliant returned data, the method further includes: Release the de-identification algorithm instance from memory.

[0042] Specifically, microservices do not maintain the existence of de-identification algorithm instances indefinitely. After the de-identification algorithm instance completes its de-identification process and confirms that the returned data is compliant and without anomalies, it will proactively release the de-identification algorithm instance in memory to reduce persistent memory usage. Furthermore, not only the de-identification algorithm instance, but also the field mapping relationships cached in memory and the de-identification rules cached in the remote dictionary service cache nodes are all loaded once at startup (the remote dictionary service cache nodes also need to load sensitive nodes when rules are updated). These can be released when necessary or when de-identification is complete. This approach ensures comprehensive security for sensitive data storage and transmission while minimizing system performance overhead caused by de-identification operations, guaranteeing that business data queries, exports, and API calls are not affected, thus achieving a balance between security protection and operational performance.

[0043] Optionally, based on the above embodiments, the method further includes: Compare the key-value pairs between the old and new desensitization rule sets to determine the desensitization rules that need to be updated. Locate the remote dictionary service cache node that caches the de-identification rule to be updated, and update the de-identification rule to be updated in the remote dictionary service cache node.

[0044] Specifically, facing the challenges of changing scenarios such as business function iterations, data security level adjustments, and data flow switching between internal and external networks, traditional static data masking rules cannot quickly adapt and adjust. This application distributes the data masking rules across different remote dictionary service cache Redis nodes, with each remote dictionary service cache node caching one or more data masking rules. When a data masking rule is invoked, it can be directly read from the remote dictionary service cache node.

[0045] When an update to a masking rule is detected, both the new and old full masking rule sets are converted into structured JSON data. Key-value comparisons are then performed on the structured JSON data to identify the masking rules that need updating. Based on the correspondence between masking rules and remote dictionary service cache nodes, the remote dictionary service cache node containing the masking rule to be updated is determined. Masking rules to be updated fall into three categories: rules to be added, rules to be modified, and rules to be discarded. For rules to be added, they are simply written to the remote dictionary service cache node; for rules to be discarded, they are simply deleted; and for rules to be modified, their content is modified within the remote dictionary service cache node. After the update is complete, the latest masking rule is automatically determined when processing new query requests. Distributed storage of masking rules supports online configuration and real-time updates, allowing for updates without service restarts or business interruptions.

[0046] This invention supports online configuration and real-time updates of de-identification rules through distributed storage, and can update de-identification rules without restarting the service or pausing business.

[0047] Figure 3 This is a schematic diagram of a desensitization device for distinguishing business scenarios, provided as another embodiment of the present invention. Figure 3 As shown, the device includes: The request processing module 310 is used to filter and parse the query request forwarded by the front end to obtain the request context of the query request; the request context includes a business scenario identifier. The rule determination module 320 is used to determine the set of de-identification rules applicable to the plaintext returned data of the query request based on the business scenario identifier; The data desensitization module 330 is used to desensitize the plaintext returned data according to the desensitization rule set and the business scenario identifier to obtain compliant returned data; The request feedback module 340 is used to send the compliance return data to the front end and to instruct the front end to render and display the compliance return data.

[0048] The desensitization device for distinguishing business scenarios provided in the embodiments of the present invention can execute the desensitization method for distinguishing business scenarios provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0049] Optionally, the rule determination module 320 is specifically used for: Based on the field mapping relationship in the memory cache, determine the sensitive fields in the plaintext returned data of the query request; Based on the business scenario identifier, the desensitization rules applicable to each sensitive field are determined from scenario-specific desensitization rules and system-general desensitization rules; the determination priority of the scenario-specific desensitization rules is greater than the determination priority of the system-general desensitization rules. Generate a set of desensitization rules applicable to the plaintext returned data based on the desensitization rules applicable to each sensitive field.

[0050] Optionally, the data anonymization module 330 is specifically used for: Based on the desensitization algorithm type in the desensitization rule set, initialize the desensitization algorithm instance corresponding to the desensitization algorithm type; Based on the business scenario identifier, load the desensitization algorithm corresponding to the business scenario identifier into the desensitization algorithm instance; The number of characters to retain, the replacement characters, and the desensitization range in the desensitization rule set are injected into the desensitization algorithm instance; The aforementioned desensitization algorithm instance is executed to desensitize the compliant returned data and obtain the plaintext returned data.

[0051] Optionally, the device further includes an instance release module for: Release the de-identification algorithm instance from memory.

[0052] Optionally, the device further includes a rule update module for: Compare the key-value pairs between the old and new desensitization rule sets to determine the desensitization rules that need to be updated. Locate the secondary remote dictionary service cache node that caches the de-identification rule to be updated, and update the de-identification rule to be updated in the secondary remote dictionary service cache node.

[0053] Optionally, the request context may also include user account, access permissions, request interface path, and query parameters.

[0054] The desensitization device for distinguishing business scenarios, as further explained, can also execute the desensitization method for distinguishing business scenarios provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0055] Figure 4A schematic diagram of an electronic device 40 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0056] like Figure 4 As shown, the electronic device 40 includes at least one processor 41 and a memory, such as a read-only memory (ROM) 42 or a random access memory (RAM) 43, communicatively connected to the at least one processor 41. The memory stores computer programs executable by the at least one processor. The processor 41 can perform various appropriate actions and processes based on the computer program stored in the ROM 42 or loaded from storage unit 48 into the RAM 43. The RAM 43 may also store various programs and data required for the operation of the electronic device 40. The processor 41, ROM 42, and RAM 43 are interconnected via a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.

[0057] Multiple components in electronic device 40 are connected to I / O interface 45, including: input unit 46, such as keyboard, mouse, etc.; output unit 47, such as various types of monitors, speakers, etc.; storage unit 48, such as disk, optical disk, etc.; and communication unit 49, such as network card, modem, wireless transceiver, etc. Communication unit 49 allows electronic device 40 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0058] Processor 41 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 41 include, but are not limited to, central processing unit (CPU), graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 41 performs the various methods and processes described above, such as de-identification methods for differentiating business scenarios.

[0059] In some embodiments, the desensitization method for differentiating business scenarios can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 48. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 40 via ROM 42 and / or communication unit 49. When the computer program is loaded into RAM 43 and executed by processor 41, one or more steps of the desensitization method for differentiating business scenarios described above can be performed. Alternatively, in other embodiments, processor 41 can be configured to perform the desensitization method for differentiating business scenarios by any other suitable means (e.g., by means of firmware).

[0060] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0061] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0062] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0063] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0064] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0065] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0066] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0067] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A dynamic data anonymization method, characterized in that, The method includes: The query requests forwarded by the front end are filtered and parsed to obtain the request context of the query request; the request context includes a business scenario identifier; The set of de-identification rules applicable to the plaintext returned data of the query request is determined based on the business scenario identifier; Based on the de-identification rule set and the business scenario identifier, the plaintext returned data is de-identified to obtain compliant returned data; The compliance return data is sent to the front end to instruct the front end to render and display the compliance return data.

2. The method according to claim 1, characterized in that, The set of de-identification rules applicable to the plaintext returned data of the query request, determined based on the business scenario identifier, includes: Based on the field mapping relationship in the memory cache, determine the sensitive fields in the plaintext returned data of the query request; Based on the business scenario identifier, the desensitization rules applicable to each sensitive field are determined from scenario-specific desensitization rules and system-general desensitization rules; the determination priority of the scenario-specific desensitization rules is greater than the determination priority of the system-general desensitization rules. Generate a set of desensitization rules applicable to the plaintext returned data based on the desensitization rules applicable to each sensitive field.

3. The method according to claim 2, characterized in that, The step of de-identifying the plaintext returned data to obtain compliant returned data based on the de-identification rule set and the business scenario identifier includes: Based on the desensitization algorithm type in the desensitization rule set, initialize the desensitization algorithm instance corresponding to the desensitization algorithm type; Based on the business scenario identifier, load the de-identification algorithm corresponding to the business scenario identifier into the de-identification algorithm instance; The number of characters to retain, the replacement characters, and the desensitization range in the desensitization rule set are injected into the desensitization algorithm instance; The aforementioned desensitization algorithm instance is executed to desensitize the compliant returned data and obtain the plaintext returned data.

4. The method according to claim 3, characterized in that, After desensitizing the plaintext returned data according to the desensitization rule set and the business scenario identifier to obtain compliant returned data, the process further includes: Release the de-identification algorithm instance from memory.

5. The method according to claim 2, characterized in that, The method further includes: Compare the key-value pairs between the old and new desensitization rule sets to determine the desensitization rules to be updated. Locate the secondary remote dictionary service cache node that caches the de-identification rule to be updated, and update the de-identification rule to be updated in the secondary remote dictionary service cache node.

6. The method according to claim 1, characterized in that, The request context also includes user account, access permissions, request interface path, and query parameters.

7. A desensitization device for differentiating business scenarios, characterized in that, The device includes: The request processing module is used to filter and parse the query requests forwarded by the front end to obtain the request context of the query request; the request context includes a business scenario identifier; The rule determination module is used to determine the set of de-identification rules applicable to the plaintext returned data of the query request based on the business scenario identifier; The data anonymization module is used to anonymize the plaintext returned data according to the anonymization rule set and the business scenario identifier to obtain compliant returned data; The request feedback module is used to send the compliance return data to the front end and to instruct the front end to render and display the compliance return data.

8. An electronic device, characterized in that, The electronic device includes: At least one processor; and a memory communicatively connected to said at least one processor; The memory stores a computer program that can be executed by the at least one processor, which is then executed by the at least one processor to enable the at least one processor to perform the desensitization method for distinguishing business scenarios as described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that are used to cause a processor to execute the desensitization method for distinguishing business scenarios as described in any one of claims 1-6.

10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the desensitization method for distinguishing business scenarios as described in any one of claims 1-6.