A data lineage tracking method, system and device with privacy protection
Through multi-level desensitization processing and differential privacy algorithms, combined with data lineage mapping and encrypted communication, the problem of insufficient privacy security protection in data lineage tracking is solved, and efficient security and privacy protection are achieved in data collection, analysis and storage.
Patent Information
- Application Number
- CN202411001306.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-25
AI Technical Summary
Existing data lineage tracking technology has shortcomings in privacy security protection. It is difficult to conduct real-time data usage and access review, and it is difficult to understand complex data usage scenarios, resulting in insufficient protection of sensitive data and increasing the risk of data leakage and abuse.
It uses multi-level desensitization processing and differential privacy algorithms to record data sources and flow paths by constructing a data lineage map, dynamically determine user access rights, add random noise according to sensitivity and access rights, and combine encrypted communication channels to transmit data to ensure data security. Privacy and security.
It effectively reduces the risk of privacy leakage during data flow, enhances the traceability and transparency of the data usage process, achieves precise and personalized privacy protection, and reduces the risk of data leakage and abuse.
Smart Images

Figure CN118536164B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data security, and in particular to a data lineage tracking method, system and device with privacy and security protection. Background Art
[0002] In the context of the deep application of the Internet, data and information are being created, exchanged and accumulated at an astonishing speed and scale, which also brings challenges to data management. How to effectively store, process, analyze and protect these data and ensure the quality and security of data has become an urgent problem to be solved in modern society. Data lineage tracking is a data management technology that has emerged as the times require. It ensures the transparency, traceability and compliance of data by recording and tracking the entire life cycle of data from the source to the final destination, including the creation, processing, storage and use of data. Data lineage tracking technology helps to quickly locate the source of the problem when data leakage or abuse occurs, and is an important tool for achieving data governance and ensuring data security.
[0003] In the existing technology, although data lineage tracking plays an important role in tracking data flow and enhancing data transparency, it still has some defects in privacy and security protection. First, it is difficult to conduct real-time manual review of data use and access when conducting data lineage tracking, making the data lineage tracking system itself a potential privacy leakage risk point. Second, it is difficult for the data lineage tracking system to understand complex data usage scenarios, which may lead to insufficient protection of many sensitive data, thereby increasing the risk of data leakage and abuse. Summary of the invention
[0004] The present application provides a data lineage tracing method, system and device with privacy and security protection, which are used to enhance privacy and security protection in the data lineage tracing process and reduce the risk of data leakage and abuse.
[0005] The first aspect of the present application provides a data lineage tracking method with privacy and security protection, comprising:
[0006] Collecting initial data from a data source, and performing multi-level desensitization processing on the initial data;
[0007] Construct and maintain a data lineage map based on the desensitized initial data, the desensitization record and the lineage information of the initial data, wherein the desensitization record includes a desensitization strategy and desensitization operation information, and the lineage information of the initial data includes the source, processing process and data flow path of the initial data;
[0008] When receiving a tracking request from a user, obtaining the identity information and query record of the user, and dynamically determining the access rights of the user according to the identity information and the query record;
[0009] Obtaining directional data in the data lineage graph according to the tracking request, and determining the sensitivity of the directional data;
[0010] Determine a differential privacy parameter according to the access permission and the sensitivity, and add random noise to the directional data through a differential privacy algorithm according to the differential privacy parameter to obtain target data;
[0011] The target data is sent to the user using an encrypted communication channel.
[0012] Optionally, the collecting of initial data from the data source and performing multi-level desensitization processing on the initial data include:
[0013] Collecting initial data from a data source, and identifying sensitive information in the initial data using a pre-trained named entity recognition model;
[0014] Determine a corresponding sensitivity level according to the sensitive information, where the sensitivity level includes a high sensitivity level, a medium sensitivity level, and a low sensitivity level;
[0015] Desensitization processing of the sensitive information is performed according to the sensitivity level, and the desensitization processing includes masking processing, replacement processing and generalization processing.
[0016] Optionally, obtaining directional data in the data lineage map according to the tracking request and determining the sensitivity of the directional data includes:
[0017] Determine a target data node in the data lineage graph according to the tracking request, and obtain directional data related to the target data node and context information of the target data node;
[0018] The sensitivity of the directional data is comprehensively evaluated based on the desensitization processing record of the target data node and the context information.
[0019] Optionally, determining a differential privacy parameter according to the access permission and the sensitivity, and adding random noise to the directional data by using a differential privacy algorithm according to the differential privacy parameter to obtain target data includes:
[0020] Determine a privacy budget parameter according to the access permission, and determine a relaxation factor parameter according to the sensitivity;
[0021] Determine a global impact factor of the directional data, where the global impact factor is used to represent the maximum impact of a change in a single element in the directional data on a query result;
[0022] Calculate the noise intensity through a target formula according to the privacy budget parameter, the relaxation factor and the global impact factor;
[0023] Random noise is added to the directional data according to the noise intensity to obtain target data.
[0024] Optionally, the target formula is:
[0025] ;
[0026] Wherein, S is the global impact factor, is the privacy budget parameter, δ is the relaxation factor parameter, d is the number of features in the directional data, D is the feature diversity index of the directional data, F(x) is the data distribution function of the directional data, is the geometric mean of F(x), and σ is the noise intensity.
[0027] Optionally, dynamically determining the access rights of the user according to the identity information and the query record includes:
[0028] Inputting the query record into a pre-trained behavior analysis model to perform abnormal behavior detection;
[0029] The access rights of the user are dynamically determined according to the identity information and the behavior detection result.
[0030] Optionally, after obtaining directional data in the data lineage map according to the tracking request and determining the sensitivity of the directional data, the method further includes:
[0031] The directional data is desensitized and restored according to the access permission and the sensitivity to obtain the target data.
[0032] The second aspect of the present application provides a data lineage tracking system with privacy and security protection, including:
[0033] A processing unit, used to collect initial data from a data source and perform multi-level desensitization processing on the initial data;
[0034] A construction unit, used to construct and maintain a data lineage map based on the desensitized initial data, the desensitization record and the lineage information of the initial data, wherein the desensitization record includes a desensitization strategy and desensitization operation information, and the lineage information of the initial data includes a source of the initial data, a processing process and a data flow path;
[0035] a determination unit, configured to, when receiving a tracking request from a user, obtain the identity information and query record of the user, and dynamically determine the access rights of the user according to the identity information and the query record;
[0036] an acquisition unit, configured to acquire directional data in the data lineage map according to the tracking request, and determine a sensitivity of the directional data;
[0037] a noise adding unit, configured to determine a differential privacy parameter according to the access right and the sensitivity, and add random noise to the directional data by using a differential privacy algorithm according to the differential privacy parameter to obtain target data;
[0038] A sending unit is used to send the target data to the user using an encrypted communication channel.
[0039] Optionally, the processing unit is specifically used for:
[0040] Collecting initial data from a data source, and identifying sensitive information in the initial data using a pre-trained named entity recognition model;
[0041] Determine a corresponding sensitivity level according to the sensitive information, where the sensitivity level includes a high sensitivity level, a medium sensitivity level, and a low sensitivity level;
[0042] Desensitization processing of the sensitive information is performed according to the sensitivity level, and the desensitization processing includes masking processing, replacement processing and generalization processing.
[0043] Optionally, the acquiring unit is specifically used for:
[0044] Determine a target data node in the data lineage graph according to the tracking request, and obtain directional data related to the target data node and context information of the target data node;
[0045] The sensitivity of the directional data is comprehensively evaluated based on the desensitization processing record of the target data node and the context information.
[0046] Optionally, the noise adding unit is specifically used for:
[0047] Determine a privacy budget parameter according to the access permission, and determine a relaxation factor parameter according to the sensitivity;
[0048] Determine a global impact factor of the directional data, where the global impact factor is used to represent the maximum impact of a change in a single element in the directional data on a query result;
[0049] Calculate the noise intensity through a target formula according to the privacy budget parameter, the relaxation factor and the global impact factor;
[0050] Random noise is added to the directional data according to the noise intensity to obtain target data.
[0051] Optionally, the target formula is:
[0052] ;
[0053] Wherein, S is the global impact factor, is the privacy budget parameter, δ is the relaxation factor parameter, d is the number of features in the directional data, D is the feature diversity index of the directional data, F(x) is the data distribution function of the directional data, is the geometric mean of F(x), and σ is the noise intensity.
[0054] Optionally, the determining unit is specifically configured to:
[0055] Inputting the query record into a pre-trained behavior analysis model to perform abnormal behavior detection;
[0056] The access rights of the user are dynamically determined according to the identity information and the behavior detection result.
[0057] Optionally, the system further comprises: a desensitization recovery unit;
[0058] The desensitizing and restoring unit is used to perform desensitizing and restoring on the directional data according to the access permission and the sensitivity level to obtain the target data.
[0059] A third aspect of the present application provides a data lineage tracking device with privacy and security protection, the device comprising:
[0060] Processor, memory, input-output unit, and bus;
[0061] The processor is connected to the memory, the input and output unit, and the bus;
[0062] The memory stores a program, and the processor calls the program to execute the first aspect and any optional data lineage tracking method with privacy and security protection in the first aspect.
[0063] A fourth aspect of the present application provides a computer-readable storage medium, on which a program is stored. When the program is executed on a computer, the data lineage tracking method with privacy and security protection in the first aspect and any optional item in the first aspect is executed.
[0064] It can be seen from the above technical solutions that this application has the following advantages:
[0065] Through multi-level desensitization processing, the sensitivity of data is reduced from the source, reducing the risk of privacy leakage during data flow. The data lineage map is constructed and maintained by combining the desensitized initial data with the desensitization processing records, recording the source and flow path of the data, and enhancing the traceability and transparency of the data use process. When the user queries the data lineage map, the user's access rights are first dynamically determined, and the access control is flexibly adjusted according to the user's identity information and query records, further ensuring the reasonable use of data. In the query response stage, noise is introduced through differential privacy technology to balance the practicality of the data and the need for privacy protection. The determination of differential privacy parameters takes into account the user's access rights and the sensitivity of the data, making the privacy protection measures more accurate and personalized. Finally, the use of encrypted communication channels to transmit data provides additional security for the data transmission process.
[0066] Through the comprehensive use of multi-level desensitization processing, dynamic access control and differential privacy technology, the security and privacy protection of data in various links such as collection, analysis, storage and query can be improved, so that data lineage tracking can be carried out under the premise of ensuring personal privacy, enhancing privacy and security protection in the process of data lineage tracking and reducing the risk of data leakage and abuse. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] In order to more clearly illustrate the technical solution in the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0068] Figure 1 A flowchart of an embodiment of a data lineage tracing method with privacy and security protection provided by the present application;
[0069] Figure 2 A flowchart of another embodiment of the data lineage tracing method with privacy and security protection provided by the present application;
[0070] Figure 3 A schematic diagram of the structure of an embodiment of a data lineage tracking system with privacy and security protection provided by the present application;
[0071] Figure 4 A schematic diagram of the structure of an embodiment of a data lineage tracking device with privacy and security protection provided in this application. DETAILED DESCRIPTION
[0072] The present application provides a data lineage tracing method, system and device with privacy and security protection, which are used to enhance privacy and security protection in the data lineage tracing process and reduce the risk of data leakage and abuse.
[0073] It should be noted that the privacy-protected data lineage tracking method provided in this application can be applied to terminals or servers. For example, the terminal can be a smart phone or computer, tablet computer, smart TV, smart watch, portable computer terminal or a fixed terminal such as a desktop computer. For the convenience of explanation, this application uses a privacy-protected data lineage tracking system (hereinafter referred to as the system) as an example for the execution subject.
[0074] See also Figure 1 , Figure 1 An embodiment of a data lineage tracing method with privacy and security protection provided by the present application includes:
[0075] 101. Collect initial data from data sources and perform multi-level desensitization processing on the initial data;
[0076] During the data collection phase, the system collects initial data from data sources, which can be databases, real-time data streams, cloud service platforms, API interfaces, etc., which are not limited here. The initial data can cover various types of personal and business information, such as personal information, identity information, financial information, health information, behavioral data, location data, business data, etc. The initial data that has not been desensitized may contain a large amount of personal sensitive information, such as name, address, telephone number, social security number, credit card number, etc. Once leaked, this information may be used by criminals for identity theft, financial fraud and other illegal activities. Therefore, the system needs to desensitize these initial data so that they lose actual sensitive information while ensuring the data structure and format to ensure privacy and security.
[0077] Specifically, the system performs multi-level desensitization processing on the collected initial data. The multi-level desensitization processing refers to applying different desensitization strategies according to the sensitivity level of the initial data, ensuring that each layer of data privacy protection measures can effectively protect specific types of sensitive information, thereby meeting the protection needs of data with different sensitivities. It should be noted that after collecting the initial data, the system also needs to continuously record its lineage information, which includes information such as the source of the data, the processing process, and the data flow path. In the desensitization processing stage, the system also needs to record the detailed operation information of the desensitization processing, such as the processing method, parameter settings, execution time, etc., and encrypt the storage and transmission of the desensitization processing records for subsequent tracking of the desensitization history of the initial data.
[0078] 102. Construct and maintain a data lineage map based on the desensitized initial data, the desensitization records and the lineage information of the initial data. The desensitization records include the desensitization strategy and desensitization operation information. The lineage information of the initial data includes the source of the initial data, the processing process and the data flow path.
[0079] The concept of data lineage is to track the entire life cycle of data from its origin to the end user, including various stages such as data collection, processing, storage and distribution. Data lineage maps are used as a visualization tool to help organizations understand the flow and transformation process of data. Data lineage maps are essential for data governance, compliance checks and privacy protection. Data lineage maps can be used in a variety of scenarios, including data impact analysis, data quality control, data lifecycle management, etc. In this embodiment, before the initial data is included in the lineage map, it is first desensitized to ensure that personal privacy is not violated. And through desensitization, even if the initial data is accessed without authorization during the storage or transmission process of the data lineage map construction stage, the attacker cannot directly identify or use the data, thereby effectively reducing the risk of data leakage.
[0080] The system builds and maintains a data lineage graph based on the desensitized initial data, desensitization records, and lineage information of the initial data. In the data lineage graph, data entities (such as data tables and fields) serve as nodes of the graph, and node attributes include information such as the name, type, and desensitization records of the data entity. Data flow and processing relationships serve as edges of the graph, and edge attributes include data flow paths, processing operation types, and timestamps. The data lineage graph can efficiently store and query complex data relationship networks, obtain a comprehensive view of data flow, and thus improve data governance capabilities. However, the data lineage graph needs to be able to reflect the latest status of the data, so the system also needs to maintain and update the data lineage graph to capture any changes in the data, including new data flows, processing operations, or updates to desensitization processing, and update the data lineage graph in real time.
[0081] 103. When receiving a tracking request from a user, obtaining the user's identity information and query records, and dynamically determining the user's access rights based on the identity information and query records;
[0082] In the use of data lineage graphs, data lineage tracking is an important link. Users can obtain relevant information such as the origin, flow path, processing activities, etc. of the data through tracking requests to achieve data lineage tracking. When a user initiates a tracking request, the system first needs to verify the user's identity, which usually involves checking the user's login credentials, such as username and password, or more advanced identity authentication methods, such as face recognition and fingerprint authentication. Once the user's identity is confirmed, the system will further obtain the user's identity information and query records. The identity information includes but is not limited to the user's role, department, position and other information. The query record refers to the user's historical query record in the past period of time. The query record can reflect the user's query purpose and query frequency. After that, the system will dynamically evaluate the user's access rights based on the user's identity information and query records, and perform subsequent steps based on the access rights to process the user's tracking request.
[0083] 104. Obtain directional data in the data lineage graph based on the tracking request and determine the sensitivity of the directional data;
[0084] The system parses the user's tracking request and understands the type of data, time range, specific conditions or data entity that the user needs to retrieve. By parsing the tracking request, the system can clarify the user's data query intention and retrieve the relevant data entities and flow paths in the data lineage map to obtain targeted data that matches the tracking request. The system can specifically use natural language processing (NLP) technology or predefined query grammar rules to extract key information in the tracking request and generate corresponding query conditions for retrieval. When obtaining targeted data, the system specifically extracts all data entities that meet the query conditions and their associated flow paths in the data lineage map to form a complete data set.
[0085] In addition, the system needs to conduct a sensitivity assessment on the targeted data to determine the sensitivity of the targeted data. Sensitivity assessment can be based on factors such as data classification (such as personal information, financial data, health records, etc.), data content, scope of impact (such as the number of users involved in the data, the importance of the data) and compliance requirements (various regulatory requirements). The system determines the sensitivity of the targeted data based on the results of the data sensitivity assessment. When evaluating the sensitivity of the data, the system can further consider the use environment of the data, including the context of the targeted data, the role of the user (such as data analyst, business manager, etc.) and the purpose of the query (such as data analysis, troubleshooting, compliance audit, etc.) to comprehensively judge the sensitivity of the data.
[0086] 105. Determine differential privacy parameters according to access rights and sensitivity, and add random noise to the directional data through a differential privacy algorithm according to the differential privacy parameters to obtain target data;
[0087] Differential Privacy is a data privacy protection technology that protects privacy by adding an appropriate amount of random noise to the query results, so that attackers cannot infer the existence of a single record from the data. The core of differential privacy technology is to balance the practicality and privacy of data by controlling the amount of noise, and the amount of noise is determined by the differential privacy parameters. In this embodiment, the system will determine the differential privacy parameters based on the user's access rights to ensure that users with different permissions can obtain data protection that matches their permission levels. When determining the access rights, information such as user identity, query purpose, and query frequency is considered. Frequent queries or queries for sensitive purposes require stricter privacy protection. Different levels of sensitivity may bring different risks of data leakage, that is, the sensitivity of the targeted data determines the strength of its privacy protection. For example, the impact of leakage of highly sensitive data (personal identity information, medical records, financial data) is far greater than that of low-sensitivity data (aggregate statistics). Therefore, the system will also adjust the differential privacy parameters according to the sensitivity of the targeted data: add more noise to highly sensitive data to improve the level of privacy protection; reduce noise addition for low-sensitivity data to ensure the practicality of the data. The system then adds random noise to the directional data through the differential privacy algorithm based on the determined differential privacy parameters to generate the target data. For example, if the user's access rights are lower and the directional data is more sensitive, the differential privacy parameters will be smaller (that is, more noise will be added), thereby enhancing privacy protection.
[0088] The directional data after adding random noise is the target data in this application, and the value of random noise depends on the user's access rights and the sensitivity of the directional data, so that the system can achieve flexible privacy and security protection. When high-authority users (such as system administrators) can obtain relatively more accurate data when needed, low-authority users (such as ordinary users) can only obtain data that has been processed with more noise, thereby ensuring the privacy protection needs of different users. More noise is added to highly sensitive data to provide higher privacy protection, and less noise is added to low-sensitivity data to maintain the high practicality of the data. In this way, the target data finally obtained not only protects the privacy security of the information, but also retains the practicality of the data, which can be analyzed and queried by different users. And by adding random noise to the query results, even if the same data set is queried multiple times, the results obtained are different, thereby preventing attackers from inferring the existence or non-existence of a single record through multiple queries.
[0089] 106. Use an encrypted communication channel to send the target data to the user.
[0090] The system will send the target data after adding random noise to the user using an encrypted communication channel to ensure the integrity of the target data during transmission, prevent the target data from being tampered with or damaged by unauthorized third parties, and provide higher security for the entire system. The system can use end-to-end encryption to ensure that only the sender and receiver can access the data content. Even if the target data passes through a third-party server during transmission, the target data remains encrypted and cannot be read.
[0091] In this embodiment, through multi-level desensitization processing, the sensitivity of the data is reduced from the source, and the risk of privacy leakage during the data flow process is reduced. The data lineage map is constructed and maintained by combining the desensitized initial data with the desensitization processing records, and the source and flow path of the data are recorded, which enhances the traceability and transparency of the data use process. When the user queries the data lineage map, the user's access rights are first dynamically determined, and the access control is flexibly adjusted according to the user's identity information and query records, further ensuring the reasonable use of the data. In the query response stage, noise is introduced through differential privacy technology to balance the practicality of the data and the need for privacy protection. The determination of differential privacy parameters takes into account the user's access rights and the sensitivity of the data, making the privacy protection measures more accurate and personalized. Finally, the use of encrypted communication channels to transmit data provides additional security for the data transmission process.
[0092] Through the comprehensive use of multi-level desensitization processing, dynamic access control and differential privacy technology, the security and privacy protection of data in various links such as collection, analysis, storage and query can be improved, so that data lineage tracking can be carried out under the premise of ensuring personal privacy, enhancing privacy and security protection in the process of data lineage tracking and reducing the risk of data leakage and abuse.
[0093] The following is a detailed description of the privacy protection data lineage tracking method provided by this application. Figure 2 , Figure 2 Another embodiment of the data lineage tracing method with privacy and security protection provided by the present application includes:
[0094] 201. Collect initial data from the data source and use the pre-trained named entity recognition model to identify sensitive information in the initial data;
[0095] In the process of big data processing and analysis, the initial data may contain a large amount of sensitive information, such as personal identity information, financial data, medical records, etc. If this sensitive information is not properly protected, it may lead to privacy leakage and data abuse. In order to effectively identify and protect this sensitive information, in this embodiment, a pre-trained named entity recognition model (such as BERT-NER, BiLSTM-CRF, SpaCy) is used to automatically identify the named entities (names, place names, dates, credit card numbers, etc.) in the initial data, thereby determining the sensitive information in the initial data and providing a basis for subsequent desensitization processing.
[0096] The system can analyze according to specific business needs to determine the data types in the data lineage map and the sensitive information it may contain, as well as the sensitive information clearly stipulated in different regulations. For example, for initial data in the medical field, sensitive information may include patient names, medical record numbers, drug names, diagnosis results, etc. in medical records. For initial data in the e-commerce field, sensitive information may include contact information, purchase records, payment information, etc. in user data. The system collects and prepares training data in specific fields to train the named entity recognition model to improve the accuracy of sensitive information recognition. In actual application, the system preprocesses the collected initial data, such as cleaning, segmentation and standardization, and then inputs the initial data into the pre-trained named entity recognition model. The model will automatically mark out the sensitive information in the initial data.
[0097] 202. Determine the corresponding sensitivity level according to the sensitive information, and the sensitivity level includes high sensitivity level, medium sensitivity level and low sensitivity level;
[0098] Different types of sensitive information have different impacts on privacy and security, so they need to be managed in a hierarchical manner. Highly sensitive information, such as personal identity information, medical records, financial data, etc., once leaked, may lead to serious privacy violations and financial losses. Medium-sensitive information, such as contact information, location data, etc., may bring moderate risks after leakage. Low-sensitive information, such as summary statistics, public non-personal information, etc., has a lower risk of leakage. The system can define the level classification standards for various types of sensitive information by establishing preset rules. After identifying sensitive information in the initial data, the preset rules determine the sensitivity level corresponding to the sensitive information. By managing sensitive information in a hierarchical manner, the system can take different protection measures for sensitive information of different levels and improve the accuracy of privacy protection.
[0099] 203. Perform desensitization processing of sensitive information according to the sensitivity level, the desensitization processing includes masking processing, replacement processing and generalization processing;
[0100] The system performs corresponding desensitization processing according to the sensitivity level of different sensitive information, which includes but is not limited to masking, replacement and generalization, which are described below:
[0101] Masking: Applicable to highly sensitive information, by replacing part or all of the sensitive data with special characters (such as asterisks *), for example, masking the bank card number 1234-5678-9012-3456 to ****---3456;
[0102] Replacement: Applicable to medium-sensitivity information, by replacing sensitive information with randomly generated or irrelevant data, such as replacing the phone number 123-456-7890 with 987-654-3210;
[0103] Generalization: Applicable to information with low sensitivity level, by generalizing specific data into a broader category or range, such as generalizing the specific age of 34 to between 30-40 years old.
[0104] At the same time, the system also needs to record the desensitization methods and results of each sensitive information, and ensure that the desensitization records are included in the data lineage map for subsequent tracking.
[0105] 204. Construct and maintain a data lineage map based on the desensitized initial data, the desensitization processing records and the lineage information of the initial data. The desensitization processing records include the desensitization processing strategy and desensitization processing operation information. The lineage information of the initial data includes the source of the initial data, the processing process and the data flow path.
[0106] In this embodiment, step 204 is similar to step 102 in the above embodiment and will not be described again here.
[0107] 205. When receiving a tracking request from a user, obtaining the user's identity information and query records, and dynamically determining the user's access rights based on the identity information and query records;
[0108] In this embodiment, step 205 is similar to step 103 in the above embodiment and will not be described again here.
[0109] In some specific embodiments, when determining the access rights of a user, it is also possible to consider detecting abnormal behavior of the user through a behavior analysis model. The system specifically performs the following steps:
[0110] Input query records into the pre-trained behavior analysis model to detect abnormal behavior; dynamically determine the user's access rights based on identity information and behavior detection results.
[0111] In this embodiment, the user behavior model is a model that uses machine learning technology to identify and analyze user behavior patterns, which can be implemented based on the K-Means clustering algorithm or the random forest algorithm. By collecting and analyzing data on user interactions with the system, a baseline for normal user behavior can be established, and abnormal behaviors that deviate from these baselines can be identified, which indicate security threats or data abuse. The behavior analysis model takes the user's query records as input and detects whether there is abnormal behavior by analyzing the user's behavior pattern. For example, if a user suddenly starts accessing a large amount of data that has never been accessed before, or makes frequent queries during non-working hours, it may be considered abnormal behavior. The system dynamically adjusts the user's access rights based on the user's identity information and behavior detection results. If the user's access rights are high, but the behavior analysis model detects that the user has abnormal behavior, the system will reduce the user's access rights and limit his access to sensitive data, thereby achieving further privacy and security protection.
[0112] 206. Determine the target data node in the data lineage map according to the tracking request, and obtain directional data related to the target data node and context information of the target data node;
[0113] Based on the analysis results of the tracking request, the system retrieves the matching target data node in the data lineage graph and extracts the relevant directional data from the target data node. There can be multiple target data nodes. These target data nodes and the connected edges together constitute the directional data. The directional data is directly related to the user's tracking request and meets the user's retrieval needs. At the same time, the system also needs to obtain the context information of the target data node. The context information specifically refers to some information other than the directional data, including data source, usage history, access records, and metadata related to the data node. The context information is used to help the system analyze the usage scenario and potential impact of the directional data.
[0114] 207. Comprehensively evaluate the sensitivity of the targeted data based on the desensitization processing records and context information of the target data node;
[0115] The system obtains the desensitization processing records of the target data node. These records detail the sensitivity level of each data in the targeted data during the desensitization process and the desensitization methods adopted, helping the system understand the original sensitivity of the data and its security after processing. Combined with the contextual information of the target data node, such as data usage scenarios, potential impacts, etc., the actual sensitivity of the data in a specific environment can be further analyzed, including the value of the data, potential threats to privacy, and possible compliance requirements. By comprehensively considering the desensitization processing records and contextual information, the system conducts a comprehensive assessment of the overall sensitivity of the targeted data, ensures appropriate protection of the targeted data, and provides a basis for subsequent differential privacy processing.
[0116] Specifically, a sensitivity scoring model can be established to extract each field of the target data node and its corresponding desensitization processing record. First, the desensitization processing record of each field is scored, and the scoring criteria can be based on the processing type and processing intensity. For example, masking processing (high intensity): score 1, replacement processing (medium intensity): score 2, generalization processing (low intensity): score 3. The initial sensitivity score is formed by accumulating the desensitization processing scores of the target data nodes. Thereafter, the initial sensitivity score of the data is corrected according to the contextual information, that is, the data usage context and potential impact. For example, if the correction coefficient of medical data is set to 0.75, the final sensitivity score is the initial sensitivity score * 0.75. By combining the desensitization processing records and contextual information of the target data node to form the final sensitivity score, and based on the final sensitivity score, the data can be divided into different sensitivity levels, thereby comprehensively evaluating the sensitivity of the directional data (for example, high, medium, and low).
[0117] 208. Determine the privacy budget parameter according to the access rights, and determine the relaxation factor parameter according to the sensitivity;
[0118] In this embodiment, the differential privacy parameters include a privacy budget parameter and a relaxation factor parameter. The system determines the privacy budget parameter based on the access rights, that is, comprehensively considers factors such as the user's identity information, permission level, and historical behavior to assign an appropriate privacy budget parameter value. The privacy budget parameter is used to quantify the level of privacy protection in differential privacy. A smaller privacy budget parameter value means stronger privacy protection, and more noise is added to the data, making it more difficult to infer information about individual data items from the data. That is, for users with higher permissions, the system can assign a larger privacy budget parameter value to allow them to access statistical results that are closer to the original data, while for users with lower permissions, a smaller privacy budget parameter value is assigned to increase the amount of noise and provide stronger privacy protection. Specifically, the system can directly determine the privacy budget parameter based on the permission level, and predefine the mapping relationship between the permission level and the privacy budget parameter. The specific privacy budget parameter value can be flexibly adjusted according to demand, for example, set to:
[0119] High-privilege users (system administrators): =1.0;
[0120] Medium-privilege users (authorized customers): =0.5;
[0121] Low-privilege users (ordinary visitors): =0.1.
[0122] The system also needs to determine the relaxation factor parameters according to the sensitivity of the directional data. The relaxation factor parameters are used to control the strictness of the differential privacy algorithm in practical applications. The relaxation factor parameters and the privacy budget parameters jointly define the boundaries of differential privacy. For more sensitive data, the system can choose a smaller relaxation factor parameter value to achieve more noise addition, thereby reducing the risk of privacy protection failure. In step 207, the sensitivity of the directional data has been comprehensively evaluated as high, medium, and low. At this time, the relaxation factor parameter value can be assigned according to the sensitivity. The higher the sensitivity level, the smaller the relaxation factor parameter value. The specific relaxation factor parameter value can also be flexibly adjusted according to demand, for example, set to:
[0123] High sensitivity: relaxation factor δ = 0.1;
[0124] Medium sensitivity: relaxation factor δ = 0.3;
[0125] Low sensitivity: relaxation factor δ=0.5.
[0126] 209. Determine the global impact factor of the directional data, where the global impact factor is used to indicate the maximum impact of a change in a single element in the directional data on the query result;
[0127] In this embodiment, the differential privacy parameters also include a global impact factor for directional data, which is used to evaluate the degree of impact of introducing noise into directional data. It is known that when acquiring directional data, the system specifically extracts all data entities that meet the query conditions and their associated flow paths in the data lineage map to form a complete data set, and the global impact factor is used as a measurement indicator to indicate the degree of impact of changes in a single element in the directional data (noise addition) on the overall directional data, that is, the maximum impact on the final query result. By determining this global impact factor, the system can better understand and control data changes and security impacts during the data query process, ensuring that privacy protection measures are both effective and meet the expected data usage requirements.
[0128] Specifically, a query function Q is defined, which is used to process a data set and output a query result. For a data set D, multiple adjacent data sets Di are generated, each of which is obtained by adding noise to a data element in D. For each adjacent data set Di, the result Q(Di) of the query function Q is calculated, and the difference in query results |Q(D)−Q(Di)| between each adjacent data set and the original data set is calculated, and the maximum query result difference is found as the global impact factor S.
[0129] 210. Calculate the noise intensity through the target formula according to the privacy budget parameter, the relaxation factor and the global impact factor;
[0130] The goal of calculating noise intensity is to maximize the practicality of directional data while protecting data privacy. The privacy budget parameter is used to limit the total amount of noise to ensure that it does not exceed the limit of privacy protection. The relaxation factor adjusts the strictness of privacy protection measures according to the sensitivity of the directional data. The global impact factor reflects the impact of changes in a single element on the overall data set and helps determine the scope of the impact of noise addition. By comprehensively considering the privacy budget parameter, relaxation factor and global impact factor, the target formula is designed to calculate the noise intensity, which can ensure that the directional data achieves the best balance between privacy protection and data practicality. It should be noted that the specific calculation method and target formula can be adjusted and optimized according to the specific application scenario and privacy requirements to meet different data protection needs and compliance requirements.
[0131] In some specific embodiments, the target formula is specifically:
[0132] ;
[0133] Among them, S is the global impact factor, is the privacy budget parameter, δ is the relaxation factor parameter;
[0134] d is the number of features in the directional data. d represents the breadth of information that can be extracted from the directional data. A larger number of features can provide a more detailed description of the data.
[0135] D is the feature diversity index of directional data. D describes the degree of difference between each element in the directional data, that is, the uniqueness and variation range of each element in the directional data;
[0136] F(x) is the data distribution function of directional data. F(x) describes the distribution characteristics of directional data, including their central tendency, dispersion and potential distribution shape (such as normal distribution, uniform distribution, etc.);
[0137] is the geometric mean of F(x), and σ is the noise intensity.
[0138] Specifically, the integral term in the objective formula Representing the non-uniformity of the distribution of directional data, that is, the entropy or information content of the directional data distribution, this design allows the differential privacy algorithm to dynamically adjust the noise intensity according to the actual distribution characteristics of the data to more effectively protect data privacy. By considering multiple dimensions and characteristics of directional data, this objective formula can adapt to different directional data content and query requirements, and maximize the availability of directional data while protecting privacy.
[0139] 211. Add random noise to the directional data according to the noise intensity to obtain target data;
[0140] Based on the determined noise intensity, the system generates a random noise vector of the same dimension as the directional data, and adds the generated random noise vector to the directional data to obtain the target data, which can be used to feedback the user's tracking request while meeting the requirements of differential privacy.
[0141] 212. Desensitize and restore targeted data based on access rights and sensitivity to obtain target data;
[0142] In this embodiment, taking into account specific business needs, for users with specific access rights, the directional data can be desensitized and restored according to their access rights and the sensitivity of the directional data, that is, the directional data can be fully or partially restored to the initial data level in order to conduct in-depth analysis or meet specific business needs. The user can specifically send a data recovery request to the system. If the system evaluates that the sensitivity of the directional data meets its access rights, the specific data fields in the directional data can be desensitized and restored according to the data recovery request. However, in this process, the system needs to ensure that data privacy protection and security are not affected through strict access control and monitoring measures. The target data obtained by desensitization recovery is then sent to the user in step 213.
[0143] 213. Use an encrypted communication channel to send the target data to the user.
[0144] In this embodiment, step 213 is similar to step 106 in the above embodiment and will not be described again here.
[0145] In this embodiment, sensitive information is identified by using a pre-trained named entity recognition model, and multi-level desensitization is performed according to the sensitivity level, which effectively reduces the risk of privacy leakage. The data lineage map is constructed and maintained by combining the desensitized initial data with the desensitization processing record, and the source and flow path of the data are recorded, which enhances the traceability and transparency of the data use process. When the user queries the data lineage map, the user access rights are first dynamically determined, and the access control is flexibly adjusted according to the user's identity information and query records, further ensuring the reasonable use of data. In the query response stage, noise is introduced through differential privacy technology. In this process, the global impact factor of the directional data needs to be determined, so as to accurately evaluate the impact of data changes on the query results and achieve more refined privacy protection. When calculating the differential privacy parameters, the noise intensity is calculated by comprehensively considering the privacy budget parameters, relaxation factors and global impact factors, and the optimal balance between privacy security protection and data practicality of the directional data is achieved, making the privacy protection measures more accurate and personalized. Finally, the use of encrypted communication channels to transmit data provides additional security for the data transmission process.
[0146] Through the comprehensive use of multi-level desensitization processing, dynamic access control and differential privacy technology, the security and privacy protection of data in various links such as collection, analysis, storage and query can be improved, so that data lineage tracking can be carried out under the premise of ensuring personal privacy, enhancing privacy and security protection in the process of data lineage tracking and reducing the risk of data leakage and abuse.
[0147] The following is a detailed description of the privacy protection data lineage tracking system provided by this application. Figure 3 , Figure 3 Another embodiment of the data lineage tracking system with privacy and security protection provided by the present application includes:
[0148] The processing unit 301 is used to collect initial data from the data source and perform multi-level desensitization processing on the initial data;
[0149] A construction unit 302 is used to construct and maintain a data lineage map based on the desensitized initial data, the desensitization processing record and the lineage information of the initial data, wherein the desensitization processing record includes the desensitization processing strategy and the desensitization processing operation information, and the lineage information of the initial data includes the source of the initial data, the processing process and the data flow path;
[0150] The determination unit 303 is used to obtain the user's identity information and query record when receiving the user's tracking request, and dynamically determine the user's access rights according to the identity information and query record;
[0151] The acquisition unit 304 is used to acquire the directional data in the data lineage map according to the tracking request and determine the sensitivity of the directional data;
[0152] A noise adding unit 305 is used to determine a differential privacy parameter according to the access right and the sensitivity, and to add random noise to the directional data through a differential privacy algorithm according to the differential privacy parameter to obtain target data;
[0153] The sending unit 306 is used to send the target data to the user using an encrypted communication channel.
[0154] Optionally, the processing unit 301 is specifically configured to:
[0155] Collect initial data from the data source and use the pre-trained named entity recognition model to identify sensitive information in the initial data;
[0156] Determine the corresponding sensitivity level according to the sensitive information, which includes high sensitivity level, medium sensitivity level and low sensitivity level;
[0157] Desensitization of sensitive information is performed according to the sensitivity level, and the desensitization processing includes masking, replacement and generalization.
[0158] Optionally, the acquiring unit 304 is specifically configured to:
[0159] Determine the target data node in the data lineage graph according to the tracking request, and obtain the directional data related to the target data node and the context information of the target data node;
[0160] The sensitivity of the targeted data is comprehensively evaluated based on the desensitizing processing records and context information of the target data node.
[0161] Optionally, the noise adding unit 305 is specifically used for:
[0162] Determine the privacy budget parameter based on the access rights, and determine the relaxation factor parameter based on the sensitivity;
[0163] Determine the global impact factor of the directional data. The global impact factor is used to indicate the maximum impact of a single element change in the directional data on the query result.
[0164] The noise intensity is calculated through the target formula according to the privacy budget parameter, relaxation factor and global impact factor;
[0165] Random noise is added to the directional data according to the noise intensity to obtain the target data.
[0166] Optionally, the target formula is:
[0167] ;
[0168] Among them, S is the global impact factor, is the privacy budget parameter, δ is the relaxation factor parameter, d is the number of features in the directional data, D is the feature diversity index of the directional data, F(x) is the data distribution function of the directional data, is the geometric mean of F(x), and σ is the noise intensity.
[0169] Optionally, the determining unit 303 is specifically configured to:
[0170] Input query records into the pre-trained behavior analysis model to detect abnormal behavior;
[0171] Dynamically determine user access rights based on identity information and behavior detection results.
[0172] Optionally, the system further includes: a desensitization recovery unit 307;
[0173] The desensitization recovery unit 307 is used to perform desensitization recovery on the directional data according to the access rights and sensitivity to obtain the target data.
[0174] In this embodiment, the functions of each unit are the same as those described above. Figure 1 or Figure 2The steps in the method embodiment shown correspond to each other and will not be repeated here.
[0175] This application also provides a data lineage tracking device with privacy protection, see Figure 4 , Figure 4 An embodiment of a data lineage tracking device with privacy and security protection provided by the present application includes:
[0176] Processor 401, memory 402, input and output unit 403, bus 404;
[0177] The processor 401 is connected to the memory 402, the input and output unit 403 and the bus 404;
[0178] The memory 402 stores a program, and the processor 401 calls the program to execute any of the above privacy and security protection data lineage tracking methods.
[0179] The present application also relates to a computer-readable storage medium on which a program is stored. When the program is run on a computer, the computer executes any of the above privacy and security protection data lineage tracking methods.
[0180] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0181] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0182] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0183] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0184] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.
Claims
1. A data lineage tracing method with privacy protection, characterized in that: The data lineage tracing method comprises: Collecting initial data from a data source, and performing multi-level desensitization processing on the initial data; Construct and maintain a data lineage map based on the desensitized initial data, the desensitization record and the lineage information of the initial data, wherein the desensitization record includes a desensitization strategy and desensitization operation information, and the lineage information of the initial data includes the source, processing process and data flow path of the initial data; When receiving a tracking request from a user, obtaining the identity information and query record of the user, and dynamically determining the access rights of the user according to the identity information and the query record; Obtaining directional data in the data lineage graph according to the tracking request, and determining the sensitivity of the directional data; Determine a differential privacy parameter according to the access permission and the sensitivity, and add random noise to the directional data through a differential privacy algorithm according to the differential privacy parameter to obtain target data; The target data is sent to the user using an encrypted communication channel.
2. The data lineage tracing method according to claim 1, characterized in that: The initial data is collected from the data source, and the initial data is subjected to multi-level desensitization processing, including: Collecting initial data from a data source, and identifying sensitive information in the initial data using a pre-trained named entity recognition model; Determine a corresponding sensitivity level according to the sensitive information, where the sensitivity level includes a high sensitivity level, a medium sensitivity level, and a low sensitivity level; Desensitization processing of the sensitive information is performed according to the sensitivity level, and the desensitization processing includes masking processing, replacement processing and generalization processing.
3. The data lineage tracing method according to claim 1, characterized in that: The obtaining of directional data in the data lineage graph according to the tracking request and determining the sensitivity of the directional data includes: Determine a target data node in the data lineage graph according to the tracking request, and obtain directional data related to the target data node and context information of the target data node; The sensitivity of the directional data is comprehensively evaluated based on the desensitization processing record of the target data node and the context information.
4. The data lineage tracing method according to claim 1, characterized in that: The step of determining a differential privacy parameter according to the access permission and the sensitivity, and adding random noise to the directional data by using a differential privacy algorithm according to the differential privacy parameter to obtain target data includes: Determine a privacy budget parameter according to the access permission, and determine a relaxation factor parameter according to the sensitivity; Determine a global impact factor of the directional data, where the global impact factor is used to represent the maximum impact of a change in a single element in the directional data on a query result; Calculate the noise intensity through a target formula according to the privacy budget parameter, the relaxation factor and the global impact factor; Random noise is added to the directional data according to the noise intensity to obtain target data.
5. The data lineage tracing method according to claim 4, characterized in that: The target formula is: ; Wherein, S is the global impact factor, is the privacy budget parameter, δ is the relaxation factor parameter, d is the number of features in the directional data, D is the feature diversity index of the directional data, F(x) is the data distribution function of the directional data, is the geometric mean of F(x), and σ is the noise intensity.
6. The data lineage tracing method according to claim 1, characterized in that: The dynamically determining the access rights of the user according to the identity information and the query record includes: Inputting the query record into a pre-trained behavior analysis model to perform abnormal behavior detection; The access rights of the user are dynamically determined according to the identity information and the behavior detection result.
7. The data lineage tracing method according to any one of claims 1 to 6, characterized in that: After obtaining the directional data in the data lineage graph according to the tracking request and determining the sensitivity of the directional data, the method further includes: The directional data is desensitized and restored according to the access permission and the sensitivity to obtain the target data.
8. A data lineage tracking system with privacy protection, characterized in that: The data lineage tracking system includes: A processing unit, used to collect initial data from a data source and perform multi-level desensitization processing on the initial data; A construction unit, used to construct and maintain a data lineage map based on the desensitized initial data, the desensitization record and the lineage information of the initial data, wherein the desensitization record includes a desensitization strategy and desensitization operation information, and the lineage information of the initial data includes a source of the initial data, a processing process and a data flow path; a determination unit, configured to, when receiving a tracking request from a user, obtain the identity information and query record of the user, and dynamically determine the access rights of the user according to the identity information and the query record; an acquisition unit, configured to acquire directional data in the data lineage map according to the tracking request, and determine a sensitivity of the directional data; a noise adding unit, configured to determine a differential privacy parameter according to the access right and the sensitivity, and add random noise to the directional data by using a differential privacy algorithm according to the differential privacy parameter to obtain target data; A sending unit is used to send the target data to the user using an encrypted communication channel.
9. A data lineage tracking device with privacy and security protection, characterized in that: The device comprises: Processor, memory, input-output unit, and bus; The processor is connected to the memory, the input and output unit, and the bus; The memory stores a program, and the processor calls the program to execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a program stored thereon, wherein the program, when executed on a computer, performs the method according to any one of claims 1 to 7.
