A sensitive data identification and desensitization method based on presto engine

By designing sensitive data identification and desensitization methods on the Presto engine, the deficiencies of the Presto engine in data desensitization management are solved, efficient and secure data sharing and compliance management are achieved, and custom desensitization rules and user confidentiality levels are supported. Management, improving the flexibility and efficiency of data desensitization.

CN114722064BActive Publication Date: 2024-10-15SHENZHEN COMTOP INFORMATION TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210175023.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-23
Publication Date
2024-10-15
Estimated Expiration
2042-02-23

AI Technical Summary

Technical Problem

The Presto engine has deficiencies in data desensitization management and cannot effectively support flexible and efficient data desensitization functions, making it difficult to meet compliance requirements.

Method used

A sensitive data identification and desensitization method based on the Presto engine is designed, including a data input unit, a data identification unit, a data desensitization unit and a data output unit. The calculation engine determines sensitive data and performs desensitization operations, supporting desensitization rules. Template management, user secret level management and dynamic desensitization functions use the Presto engine to achieve efficient and safe sharing of data.

Benefits of technology

It achieves flexible and efficient desensitization of data on the Presto engine, meets compliance requirements, can customize desensitization rules, implements a full-process platform, decouples the engine, and supports the integration of different user management platforms and metadata management platforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114722064B_ABST
    Figure CN114722064B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of big data technology, and discloses a sensitive data identification and desensitization method based on the presto engine, including a data input unit, a data identification unit, a data desensitization unit and a data output unit; the data input unit is used for inputting user data and triggering the sensitive data identification unit; the data identification unit. The invention uses its simple data structure and columnar storage logical rows, and most of the data can be easily converted into the data structure required by presto, and uses the presto engine to perform data desensitization, solving the problem that the presto engine cannot support flexible and efficient data desensitization functions. Through custom desensitization rules, platform full process, engine decoupling, master data rule engine generation, data standard specification engine, and data quality rule engine, the capabilities can be expanded and upgraded based on the demand scenario, and different user management platforms and metadata management platforms can be better integrated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of big data technology, and specifically relates to a sensitive data identification and desensitization method based on the Presto engine. Background Art

[0002] In addition to the pressure of the external risk environment, we also have to face compliance requirements. Only by complying with market rules can we participate in market activities.

[0003] Abroad, there are GDPR (General Data Protection Regulation), HIPAA (Health Insurance Portability and Accountability Act of the United States), SOX (Sarbanes-Oxley Act of the United States, an important law for reforms in accounting professional supervision, corporate governance, securities market supervision, etc.), and PCI DSS (Global Payment Card Industry Data Security Standard).

[0004] China has the Cybersecurity Law, the Guidelines for the Protection of Personal Information in Public and Commercial Service Information Systems, and the Guidelines for Information Technology Risk Management of Commercial Banks, which are closely related to the financial industry. Of course, domestic legal norms on data protection are still in their infancy. I believe that in the next few years, more and more detailed and strict laws and regulations will be introduced.

[0005] Among big data real-time query engines, Presto has been widely used due to its rich usage scenarios and excellent execution performance. It is an open source distributed SQL query engine that supports multi-source and ad hoc queries, suitable for interactive analytical queries, and supports data volumes from GB to PB. It is widely used in interactive queries, batch ETL processes, and A / B testing.

[0006] However, Presto is lacking in data desensitization management. The present invention is mainly to fill the functions related to data desensitization of the Presto engine and realize efficient and secure data sharing. Summary of the invention

[0007] In view of the deficiencies in the prior art, the present invention provides a sensitive data identification and desensitization method based on the Presto engine, which has the advantages of high scalability and good openness.

[0008] To achieve the above-mentioned object, the present invention provides the following technical solution: A sensitive data identification and desensitization method based on the presto engine includes a data input unit, a data identification unit, a data desensitization unit and a data output unit;

[0009] The data input unit is used to input user data and trigger the sensitive data identification unit;

[0010] The data identification unit is used to analyze the user data and use the computing engine to determine whether there is sensitive data in the target user data. If so, the data is directly input into the data desensitization unit; if not, the data is directly output to the data output unit;

[0011] The data desensitization unit is used to perform desensitization operations on user data judged as sensitive data, including supporting the management of desensitization rule templates, supporting predefined and customized methods, user confidentiality management modules, table field level desensitization rule management (templates, parameters, confidentiality levels, data fields are interrelated), and a computing engine to implement a dynamic desensitization function, wherein the computing engine is a presto engine;

[0012] The data output unit is used to output user data that does not carry sensitive data, and includes user data that does not contain any sensitive data and user data that contains sensitive data after desensitization processing.

[0013] Preferably, the identification method of the data identification unit includes:

[0014] S1: Determine the user data type based on the user data, that is, the Client sends a request to the Coordinator, and SQL is parsed through ANTLR to generate AST;

[0015] S2: After the keywords for analysis are generated, they are matched with the sensitive data keywords in the MySQL database. If no match is found, the result is directly output to the data output unit. If a match is found, AST performs semantic analysis through metadata.

[0016] S3: Generates a logical execution plan based on semantically parsed data, optimizes it through data recognition rules, divides the logical execution plan into different stages, and schedules Worker nodes to generate tasks.

[0017] S4: Task generates corresponding physical execution plans based on different sensitive data keywords;

[0018] S5: After scheduling, the Coordinator connects the Stages in series according to the scheduling results;

[0019] S6: Worker executes the corresponding physical execution plan and marks sensitive data;

[0020] S7: The Client continuously pulls query results from the Coordinator, and the Coordinator pulls query results from the Worker node where the final output is aggregated, and finally summarizes and outputs them to the data desensitization unit

[0021] Preferably, the Coordinator is used to obtain SQL statements from the data input unit, parse the SQL statements, plan the execution plan of the query, and manage the worker node status.

[0022] Preferably, the Coordinator only accepts SQL language, and the user end can interact with the Coordinator through tools such as PrestoCLI, JDBC, ODBC driver, and other language tool libraries.

[0023] Preferably, the Coordinator communicates with the worker and the client via an HTTP-based protocol.

[0024] Preferably, the data desensitization method of the data desensitization unit comprises the following steps:

[0025] S1: Desensitization rule generation. Desensitization rules include system rules and user rules. System rules refer to predefined rules in the system, which users can use directly and whose parameters have been configured. User rules refer to new desensitization rules or new rule parameters defined by users.

[0026] S2: Configure table desensitization rules, select corresponding columns, desensitization rules, and the confidentiality level after desensitization. When modifying table desensitization configuration, record the desensitization operation audit log, record the operator and the changes before and after the desensitization configuration;

[0027] S3: Configure user confidentiality. For general user systems, you can set user groups, user roles, and users themselves. You can set confidentiality for these three categories of topics. The system comprehensively calculates all identities of the user and obtains the maximum confidentiality level for verification.

[0028] S4: Execute the query.

[0029] Preferably, the desensitization rules include a desensitization template name, a desensitization template type, supported field types, a desensitization algorithm name, and desensitization algorithm parameters.

[0030] Preferably, the supported field type refers to the field type of the desensitizing field, and only the fields that meet the field type requirements can apply the desensitizing rule, the field type list, the desensitizing algorithm name refers to the algorithm name for implementing the desensitizing function, and the desensitizing algorithm parameters refer to the predefined parameter list of the desensitizing algorithm corresponding to this rule.

[0031] Preferably, the data desensitization method also includes the following desensitization execution mode:

[0032] 1) Three levels of confidentiality:

[0033] The original access level of the data column;

[0034] The confidentiality level of the data column after desensitization (a field can define multiple desensitization rules and confidentiality levels after desensitization);

[0035] User confidentiality level;

[0036] 2) Desensitization rule determination method:

[0037] If the user's confidentiality level is not lower than the original confidentiality level of the data column, desensitization is not required;

[0038] If the user's confidentiality level is lower than the original confidentiality level of the field, and there is a desensitization rule whose confidentiality level after desensitization is not higher than the user's confidentiality level, the desensitization rule with the highest confidentiality level after desensitization is selected;

[0039] If the user's security level is lower than the original security level of the field and lower than all the desensitized security levels, the user will be degraded to having no viewing permission;

[0040] 3) After the desensitization rules are determined, they are pushed down to the computing tasks by the execution engine for execution:

[0041] In the semantic analysis phase of the Presto execution process, the name of the field masking rule is obtained by obtaining metadata information and masking configuration information. The name can be associated with the predefined function in Presto. By replacing the corresponding node in AST, the goal of rewriting SQL is achieved. In the actual calculation process, the algorithm logic of the masking function is called to produce the final query result;

[0042] When executing query calculations, audit logs are recorded.

[0043] Compared with the prior art, the present invention has the following beneficial effects:

[0044] The invention combines the identification and desensitization methods of sensitive data with the Presto engine. The Presto engine has a clear architecture and is a system that can run independently. It does not rely on any other external system. Its simple data structure and columnar storage of logical rows can easily convert most data into the data structure required by Presto. The Presto engine is used to desensitize data, solving the problem that the Presto engine cannot support flexible and efficient data desensitization functions. Through customized desensitization rules, full platform process, engine decoupling, master data rule engine generation, data standard specification engine, and data quality rule engine, the capabilities can be expanded and upgraded based on demand scenarios, and different user management platforms and metadata management platforms can be better integrated. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 It is a schematic diagram of the overall design of the present invention;

[0046] Figure 2 This is a schematic diagram of a commonly used algorithm for data desensitization in the present invention;

[0047] Figure 3 A schematic diagram of business application requirements for the data desensitization feature of the present invention;

[0048] Figure 4 It is a schematic diagram of parameters of desensitization rules based on subscript masking and regular masking in the present invention;

[0049] Figure 5 This is a schematic diagram of desensitization rule parameters based on hash and range mapping and single value mapping in the present invention;

[0050] Figure 6 It is a schematic diagram of the desensitization execution method of the present invention. DETAILED DESCRIPTION

[0051] Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making any creative work shall fall within the scope of protection of the present invention.

[0052] The present invention provides a technical solution for a sensitive data identification and desensitization method based on a presto engine: a sensitive data identification and desensitization method based on a presto engine comprises a data input unit, a data identification unit, a data desensitization unit and a data output unit;

[0053] A data input unit, used for inputting user data and triggering a sensitive data identification unit;

[0054] The data identification unit is used to analyze the user data and use the computing engine to determine whether there is sensitive data in the target user data. If so, the data is directly input into the data desensitization unit; if not, the data is directly output to the data output unit;

[0055] The data desensitization unit is used to desensitize user data that is judged to be sensitive data, including supporting the management of desensitization rule templates, supporting predefined and customized methods, user confidentiality management module, table field level desensitization rule management (templates, parameters, confidentiality levels, data fields are interrelated), and the calculation engine realizes dynamic desensitization function. The calculation engine is the Presto engine;

[0056] The data output unit is used to output user data that does not carry sensitive data, and includes user data that does not contain any sensitive data and user data that contains sensitive data after desensitization processing.

[0057] The identification method of the data identification unit includes:

[0058] S1: Determine the user data type based on the user data, that is, the Client sends a request to the Coordinator, and SQL is parsed through ANTLR to generate AST;

[0059] S2: After the keywords for analysis are generated, they are matched with the sensitive data keywords in the MySQL database. If no match is found, the result is directly output to the data output unit. If a match is found, AST performs semantic analysis through metadata.

[0060] S3: Generates a logical execution plan based on semantically parsed data, optimizes it through data recognition rules, divides the logical execution plan into different stages, and schedules Worker nodes to generate tasks.

[0061] S4: Task generates corresponding physical execution plans based on different sensitive data keywords;

[0062] S5: After scheduling, the Coordinator connects the Stages in series according to the scheduling results;

[0063] S6: Worker executes the corresponding physical execution plan and marks sensitive data;

[0064] S7: The Client continuously pulls query results from the Coordinator. The Coordinator pulls query results from the Worker node where the final output is aggregated, and finally summarizes and outputs them to the data desensitization unit.

[0065] Among them, the Coordinator is used to obtain SQL statements from the data input unit, parse SQL statements, plan the query execution plan, and manage the worker node status.

[0066] Among them, Coordinator only accepts SQL language, and the user end interacts with Coordinator through tools such as PrestoCLI, JDBC, ODBC driver, and other language tool libraries.

[0067] Among them, the Coordinator communicates with the worker and the client through an HTTP-based protocol.

[0068] The data desensitization method of the data desensitization unit includes the following steps:

[0069] S1: Desensitization rule generation. Desensitization rules include system rules and user rules. System rules refer to predefined rules in the system, which users can use directly and whose parameters have been configured. User rules refer to new desensitization rules or new rule parameters defined by users.

[0070] S2: Configure table desensitization rules, select corresponding columns, desensitization rules, and the confidentiality level after desensitization. When modifying table desensitization configuration, record the desensitization operation audit log, record the operator and the changes before and after the desensitization configuration;

[0071] S3: Configure user confidentiality. For general user systems, you can set user groups, user roles, and users themselves. You can set confidentiality for these three categories of topics. The system comprehensively calculates all identities of the user and obtains the maximum confidentiality level for verification.

[0072] S4: Execute the query.

[0073] Among them, the masking rules include the masking template name, masking template type, supported field types, masking algorithm name, and masking algorithm parameters.

[0074] Among them, supported field types refer to the field types of masked fields. Only fields that meet the field type requirements can apply the masking rule. Field type list, masking algorithm name refers to the algorithm name that implements the masking function, and masking algorithm parameters refer to the predefined parameter list of the masking algorithm corresponding to this rule.

[0075] Among them, the data desensitization method also includes the following desensitization execution methods:

[0076] 1) Three levels of confidentiality:

[0077] The original access level of the data column;

[0078] The confidentiality level of the data column after desensitization (a field can define multiple desensitization rules and confidentiality levels after desensitization);

[0079] User confidentiality level;

[0080] 2) Desensitization rule determination method:

[0081] If the user's confidentiality level is not lower than the original confidentiality level of the data column, desensitization is not required;

[0082] If the user's confidentiality level is lower than the original confidentiality level of the field, and there is a desensitization rule whose confidentiality level after desensitization is not higher than the user's confidentiality level, the desensitization rule with the highest confidentiality level after desensitization is selected;

[0083] If the user's security level is lower than the original security level of the field and lower than all the desensitized security levels, the user will be degraded to having no viewing permission;

[0084] 3) After the desensitization rules are determined, they are pushed down to the computing tasks by the execution engine for execution:

[0085] In the semantic analysis phase of the Presto execution process, the name of the field masking rule is obtained by obtaining metadata information and masking configuration information. The name can be associated with the predefined function in Presto. By replacing the corresponding node in AST, the goal of rewriting SQL is achieved. In the actual calculation process, the algorithm logic of the masking function is called to produce the final query result;

[0086] When executing query calculations, audit logs are recorded.

[0087] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0088] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A sensitive data identification and desensitization method based on the presto engine, characterized by: It includes a data input unit, a data identification unit, a data desensitization unit and a data output unit; The data input unit is used to input user data and trigger the sensitive data identification unit; The data identification unit is used to analyze the user data and use the computing engine to determine whether there is sensitive data in the target user data. If so, the data is directly input into the data desensitization unit; if not, the data is directly output to the data output unit; The identification method of the data identification unit includes: S1: Determine the user data type based on the user data, that is, the Client sends a request to the Coordinator, and SQL is parsed through ANTLR to generate AST; S2: After the keywords for analysis are generated, they are matched with the sensitive data keywords in the MySQL database. If no match is found, the result is directly output to the data output unit. If a match is found, AST performs semantic analysis through metadata. S3: Generates a logical execution plan based on semantically parsed data, optimizes it through data recognition rules, divides the logical execution plan into different stages, and schedules Worker nodes to generate tasks. S4: Task generates corresponding physical execution plans based on different sensitive data keywords; S5: After scheduling, the Coordinator connects the Stages in series according to the scheduling results; S6: Worker executes the corresponding physical execution plan and marks sensitive data; S7: The Client continuously pulls query results from the Coordinator. The Coordinator pulls query results from the Worker node where the final output is aggregated, and finally summarizes and outputs them to the data desensitization unit. The data desensitization unit is used to perform desensitization operations on user data judged as sensitive data, including supporting the management of desensitization rule templates, supporting predefined and customized methods, user confidentiality management modules, table field level desensitization rule management, including templates, parameters, confidentiality levels, data fields are related to each other, and the computing engine realizes dynamic desensitization function, and the computing engine is a presto engine; The data desensitization method of the data desensitization unit comprises the following steps: S1: Desensitization rule generation. Desensitization rules include system rules and user rules. System rules refer to predefined rules in the system, which users can use directly and whose parameters have been configured. User rules refer to new desensitization rules or new rule parameters defined by users. S2: Configure table desensitization rules, select corresponding columns, desensitization rules, and the confidentiality level after desensitization. When modifying table desensitization configuration, record the desensitization operation audit log, record the operator and the changes before and after the desensitization configuration; S3: Configure user confidentiality. For general user systems, you can set user groups, user roles, and users themselves. You can set confidentiality for these three categories of topics. The system comprehensively calculates all identities of the user and obtains the maximum confidentiality level for verification. S4: execute query; The data desensitization method also includes the following desensitization execution methods: 1) Three levels of confidentiality: The original access level of the data column; The confidentiality level of the data column after desensitization, that is, a field can define multiple desensitization rules and confidentiality levels after desensitization; User confidentiality level; 2) Desensitization rule determination method: If the user's confidentiality level is not lower than the original confidentiality level of the data column, desensitization is not required; If the user's confidentiality level is lower than the original confidentiality level of the field, and there is a desensitization rule whose confidentiality level after desensitization is not higher than the user's confidentiality level, the desensitization rule with the highest confidentiality level after desensitization is selected; If the user's security level is lower than the original security level of the field and lower than all the desensitized security levels, the user will be degraded to having no viewing permission; 3) After the desensitization rules are determined, they are pushed down to the computing tasks by the execution engine for execution; In the semantic analysis phase of the Presto execution process, the name of the field masking rule is obtained by obtaining metadata information and masking configuration information. The name can be associated with the predefined function in Presto. By replacing the corresponding node in AST, the goal of rewriting SQL is achieved. In the actual calculation process, the algorithm logic of the masking function is called to produce the final query result; When executing query calculations, audit logs are recorded; The data output unit is used to output user data that does not carry sensitive data, and includes user data that does not contain any sensitive data and user data that contains sensitive data after desensitization processing.

2. According to claim 1, a sensitive data identification and desensitization method based on the presto engine is characterized by: The Coordinator is used to obtain SQL statements from the data input unit, parse the SQL statements, plan the execution plan of the query, and manage the worker node status.

3. According to claim 1, a sensitive data identification and desensitization method based on the presto engine is characterized by: The Coordinator only accepts SQL language, and the user end can interact with the Coordinator through PrestoCLI, JDBC, ODBC driver, language tool library tool.

4. According to claim 1, a sensitive data identification and desensitization method based on the Presto engine is characterized by: The Coordinator communicates with the workers and clients via an HTTP-based protocol.

5. According to claim 1, a sensitive data identification and desensitization method based on the presto engine is characterized by: The desensitization rules include desensitization template name, desensitization template type, supported field types, desensitization algorithm name, and desensitization algorithm parameters.

6. According to claim 5, a sensitive data identification and desensitization method based on the Presto engine is characterized in that: The supported field type refers to the field type of the desensitizing field. Only fields that meet the field type requirements can apply the desensitizing rule. The field type list, the desensitizing algorithm name refers to the algorithm name that implements the desensitizing function, and the desensitizing algorithm parameters refer to the predefined parameter list of the desensitizing algorithm corresponding to this rule.

Citation Information

Patent Citations

  • Data desensitization system and method

    CN107766741A

  • Dynamic desensitization method and device, electronic equipment and computer readable storage medium

    CN111125767A

  • Client information desensitization method

    CN113420332A

  • Data access method, device and system

    CN113535754A

  • Facilitating queries of encrypted sensitive data via encrypted variant data objects

    WO2019183483A2