Big data processing system and method based on hybrid engine

Through the big data processing system based on the hybrid engine, the use of desensitization rules and user secret level management solves the problem that the Presto engine cannot support flexible and efficient data desensitization, achieves efficient and safe sharing and compliance of data, and ensures that the data is desensitized Then maintain the original characteristics and privacy.

CN114625764BActive Publication Date: 2024-10-01SHENZHEN COMTOP INFORMATION TECH
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The Presto engine has deficiencies in data desensitization management and cannot support flexible and efficient data desensitization functions, resulting in the risk of sensitive data leakage and difficulty in meeting compliance requirements.

Method used

Provides big data processing systems and methods based on hybrid engines, including steps such as generating desensitization rules, configuring table desensitization rules, managing user secret levels, and executing queries. Through algorithms such as relationship mapping, hashing, and range mapping, and regular expressions, it ensures The data maintains its original characteristics after desensitization, and the dynamic desensitization function is implemented through the user confidentiality management module.

Benefits of technology

It achieves efficient and secure sharing of data, supports custom desensitization rules, has a full-process platform, and engine decoupling. It can be expanded and upgraded according to demand scenarios, and integrates different user management platforms to ensure data privacy and compliance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114625764B_ABST
    Figure CN114625764B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of computer technology and information security technology, and discloses a big data processing system and method based on a hybrid engine, including the following steps: S1, desensitization rule generation, including system rules and user rules; a, desensitization rules mainly include the following information, desensitization template name and type, field type of desensitized field (only fields that meet the field type requirements can apply the desensitization rule, field type list). The present invention implements dynamic desensitization function through presto, supports the management of desensitization rule templates, supports predefined and customized methods, and manages table field-level desensitization rules (templates, parameters, confidentiality levels, and data fields are interrelated) through user confidentiality management modules. The computing engine implements dynamic desensitization function, thereby solving the problem that the presto engine cannot support flexible and efficient data desensitization functions, and can achieve efficient and secure sharing of data through customized desensitization rules.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer technology and information security technology, and specifically relates to a big data processing system and method based on a hybrid engine. Background Art

[0002] In the information age, data is a valuable asset. Both enterprises and government agencies are intentionally or unintentionally collecting, storing and sharing data every day, and the scale is getting bigger and bigger. Dealing with various types of data is the only way for modern enterprises to grow, but the risk of sensitive data leakage is also increasing day by day. Once sensitive data is leaked, it will cause irreparable damage to the government, enterprises and individual users. 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", "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 clearly still in the early stages, and 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, is suitable for interactive analysis queries, and supports data volumes from GB to PB bytes; it is widely used in interactive queries, batch ETL processes, and A / B Tests, etc.; however, Presto is lacking in data desensitization management. The present invention is mainly to fill in the functions related to data desensitization of the Presto engine and realize efficient and secure data sharing. Summary of the invention

[0006] The purpose of the present invention is to provide a big data processing system and method based on a hybrid engine to solve the problems raised in the above background technology.

[0007] In order to achieve the above object, the present invention provides the following technical solution: a big data processing system and method based on a hybrid engine, comprising the following steps:

[0008] S1. Desensitization rule generation, including system rules and user rules;

[0009] a. The desensitization rules mainly include the following information: the name and type of the desensitization template, the field type of the desensitization field, the algorithm for implementing the desensitization function, the relationship mapping, and the predefined parameter column of the desensitization algorithm corresponding to this rule;

[0010] b. The desensitized data must maintain certain original characteristics while ensuring that the privacy information is hidden, including: 1. Maintaining the data type, that is, the desensitized data is consistent with the original data type, including but not limited to strings, numbers, dates and times; 2. Maintaining the data format, that is, the desensitized data must comply with the encoding rules and types of the original data; 3. Maintaining the dependencies between data. Common dependencies between data include but are not limited to: data reference integrity, different data are associated through mutual references of sensitive data; there is no reference relationship between data, but there is a dependency relationship in business logic; 4. Maintaining data statistical characteristics, the desensitized data maintains the overall statistical characteristics unchanged in the dimensions required by the business; 5. Maintaining data frequency distribution, the desensitized data maintains the same quantity in each group divided according to business requirements; 6. Maintaining data uniqueness, different data will not be the same after desensitization, and the same data must be the same after desensitization;

[0011] c. Names of desensitization rule type definitions, including: subscript masking, regular expression masking, hashing, range mapping, and single value mapping;

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

[0013] 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 users and obtains the maximum confidentiality level for verification;

[0014] S4. Execute the query. The desensitization execution methods include:

[0015] a. Three types of confidentiality: the original access confidentiality of the data column, the confidentiality of the data column after desensitization, and the user confidentiality;

[0016] b. Determination method of desensitization rules: 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 confidentiality level is lower than the original confidentiality level of the field, and lower than all the confidentiality levels after desensitization, it is degraded to no viewing permission;

[0017] c. 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 field desensitization rule name is obtained by obtaining metadata information and desensitization 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 desensitization function will be called to produce the final query result. When executing the query calculation, the audit log is recorded.

[0018] The dynamic desensitization function is realized through Presto, which supports the management of desensitization rule templates, supports predefined and customized methods, and realizes the dynamic desensitization function through the user confidentiality management module, table field level desensitization rule management, and calculation engine, thus 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 the demand scenarios, and different user management platforms, metadata management platforms, etc. can be better integrated, thereby realizing efficient and secure data sharing.

[0019] Preferably, the system and method described herein have an already built data warehouse or data lake management system, support the corresponding metadata management function, have an overall user management system, and can perform user authentication and authorization. The complete authentication and authorization system can better control the browsing permissions after real-time data desensitization, and avoid data leakage and loss.

[0020] Preferably, the system rules in step S1 refer to predefined rules in the system, which can be used directly by users and whose parameters have been configured; user rules refer to new desensitization rules or new rule parameters defined by users.

[0021] Preferably, the purpose of using the relationship mapping algorithm in step S1 is to allow business association relationships to exist between the original sensitive data, and this relationship needs to be maintained after the data is desensitized. Therefore, during the desensitization process, the algorithm expression is used to perform function mapping on the desensitized data so that the business association relationship is still maintained after desensitization. The relationship mapping algorithm is applicable to all data types, and dynamic desensitization and static desensitization can be implemented.

[0022] Preferably, the parameter list of subscript masking in step S1 is: begin: the subscript at the beginning of masking, which can support negative numbers, -n indicates the number of digits from which masking starts, end: the subscript at the end of masking, which can support 0 and negative numbers, 0 indicates masking to the end, -n indicates the number of digits from which masking ends, char: the masking character, the default is *;

[0023] When the calculated value of end is less than begin, no masking is performed.

[0024] The parameter list for regular masking is as follows: regex: the regular expression for matching groups, replace: the masking string;

[0025] Mask all matching groups in the regular expression.

[0026] The parameter list for hashing is as follows: algorithm: the hashing algorithm, default is SHA256;

[0027] The parameter list for range mapping is as follows: {'mapping': [{'begin': '0', 'end': '20','replace': '0~20'}, {'begin': '20', 'end': '30','replace': '20~30'}, {'begin': '31', 'end': "','replace': '31~'}]};

[0028] The parameter list for single-value mapping is as follows: {'mapping': [{'value': 'Male','replace': '0'}, {'value': 'Female','replace': '1'}]}.

[0029] Preferably, the present processing system manages user permissions as follows:

[0030] a. The system administrator logs in to the user terminal system and creates a browsing role for the required users;

[0031] b. Set the corresponding data source usage permissions, i.e., the security level, for the corresponding browsing role;

[0032] c. The browsing role enters the login system internally through the user login terminal, and at the same time, the authentication judgment system will identify the security level of the browsing role;

[0033] d. Prepare data with the corresponding security level permissions for the browsing role, and it is impossible to view data with higher security level permissions.

[0034] The beneficial effects of the present invention are as follows:

[0035] 1. The present invention realizes the dynamic desensitization function through Presto, supports the management of desensitization rule templates, supports predefined and customized methods, and realizes the dynamic desensitization function through the user confidentiality management module and the table field level desensitization rule management (templates, parameters, confidentiality levels, and data fields are interrelated). The computing engine thus solves the problem that the Presto engine cannot support flexible and efficient data desensitization functions. Through customized desensitization rules, the platform is fully process-oriented, the engine is decoupled, the master data rule engine is generated, the data standard specification engine, and the data quality rule engine can be expanded and upgraded based on the demand scenarios, and different user management platforms and metadata management platforms can be better integrated, thereby realizing efficient and secure sharing of data. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a schematic diagram of the overall process of the present invention;

[0037] Figure 2 This is a schematic diagram of the desensitization execution method of the present invention;

[0038] Figure 3 This is a schematic diagram of the user confidentiality level authority distribution of the present invention;

[0039] Figure 4 A schematic diagram of the applicable scope of data resources for users of different confidentiality levels in the present invention;

[0040] Figure 5 This is a schematic diagram of the confidentiality distribution of data sources in the present invention. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] like Figures 1 to 5 As shown, in an embodiment of the present invention, a big data processing system and method based on a hybrid engine includes the following steps:

[0043] S1. Desensitization rule generation, including system rules and user rules;

[0044] a. The desensitization rules mainly include the following information: the name and type of the desensitization template, the field type of the desensitization field, the algorithm for implementing the desensitization function, the relationship mapping, and the predefined parameter column of the desensitization algorithm corresponding to this rule;

[0045] b. The desensitized data must maintain certain original characteristics while ensuring that the privacy information is hidden, including: 1. Maintaining the data type, that is, the desensitized data is consistent with the original data type, including but not limited to strings, numbers, dates and times; 2. Maintaining the data format, that is, the desensitized data must comply with the encoding rules and types of the original data; 3. Maintaining the dependencies between data. Common dependencies between data include but are not limited to: data reference integrity, different data are associated through mutual references of sensitive data; there is no reference relationship between data, but there is a dependency relationship in business logic; 4. Maintaining data statistical characteristics, the desensitized data maintains the overall statistical characteristics unchanged in the dimensions required by the business; 5. Maintaining data frequency distribution, the desensitized data maintains the same quantity in each group divided according to business requirements; 6. Maintaining data uniqueness, different data will not be the same after desensitization, and the same data must be the same after desensitization;

[0046] c. Names of desensitization rule type definitions, including: subscript masking, regular expression masking, hashing, range mapping, and single value mapping;

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

[0048] 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 users and obtains the maximum confidentiality level for verification;

[0049] S4. Execute the query. The desensitization execution methods include:

[0050] a. Three types of confidentiality: the original access confidentiality of the data column, the confidentiality of the data column after desensitization, and the user confidentiality;

[0051] b. Determination method of desensitization rules: 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 confidentiality level is lower than the original confidentiality level of the field, and lower than all the confidentiality levels after desensitization, it is degraded to no viewing permission;

[0052] c. 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 field desensitization rule name is obtained by obtaining metadata information and desensitization 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 desensitization function will be called to produce the final query result. When executing the query calculation, the audit log is recorded.

[0053] The dynamic desensitization function is realized through Presto, which supports the management of desensitization rule templates, supports predefined and customized methods, and realizes the dynamic desensitization function through the user confidentiality management module, table field level desensitization rule management, and calculation engine, thus 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 the demand scenarios, and different user management platforms, metadata management platforms, etc. can be better integrated, thereby realizing efficient and secure data sharing.

[0054] Among them, the system and method have an already built data warehouse or data lake management system, support the corresponding metadata management function, have an overall user management system, can perform user authentication and authorization, and the complete authentication and authorization system can better browse the real-time data after desensitization to avoid data leakage and loss.

[0055] Among them, the system rules in step S1 refer to the predefined rules in the system, which users can use directly and the parameters have been configured; user rules refer to new desensitization rules or new rule parameters defined by users.

[0056] Among them, the purpose of using the relationship mapping algorithm in step S1 is to enable the existence of business association relationships between the original sensitive data, and it is necessary to maintain this relationship after the data is desensitized. Therefore, in the desensitization process, the algorithm expression is used to perform function mapping on the desensitized data so that the business association relationship is still maintained after desensitization. The relationship mapping algorithm is applicable to all data types, and dynamic desensitization and static desensitization can be implemented.

[0057] The parameter list of subscript masking in step S1 is as follows: begin: the subscript at which masking starts, which can support negative numbers, -n indicates the number of digits from which masking starts, end: the subscript at which masking ends, which can support 0 and negative numbers, 0 indicates masking to the end, -n indicates the number of digits from which masking ends, char: the masking character, the default is *;

[0058] When the calculated value of end is less than begin, no masking is performed.

[0059] The parameter list for regular masking is as follows: regex: the regular expression for matching groups, replace: the masking string;

[0060] Mask all matching groups in the regular expression.

[0061] The parameter list for hashing is as follows: algorithm: the hashing algorithm, default is SHA256;

[0062] The parameter list for range mapping is as follows: {'mapping': [{'begin': '0', 'end': '20','replace': '0~20'}, {'begin': '20', 'end': '30','replace': '20~30'}, {'begin': '31', 'end': ",'replace': '31~'}]};

[0063] The parameter list for single-value mapping is as follows: {'mapping': [{'value': '男','replace': '0'}, {'value': '女','replace': '1'}]}.

[0064] Among them, the processing system manages user permissions in the following steps:

[0065] a. The system administrator logs in to the user terminal system and creates browsing roles for the required users;

[0066] b. Set the corresponding data source usage permissions, that is, the security levels, for the corresponding browsing roles;

[0067] c. The browsing role enters the internal login system through the user login terminal, and at the same time, the authentication judgment system will identify the security level of the browsing role;

[0068] d. Prepare data with corresponding security level permissions for the browsing role, and it is impossible to view data with higher security level permissions.

[0069] It should be noted that in this article, relational terms such as first and second 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 term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

Claims

1. A big data processing method based on a hybrid engine, characterized in that: The steps include: S1. Desensitization rule generation, including system rules and user rules; a. The desensitization rule includes the following information: the name and type of the desensitization template, the field type of the desensitization field, the algorithm for implementing the desensitization function, which is the relationship mapping algorithm, and the predefined parameter column of the desensitization algorithm corresponding to this rule; b. The desensitized data must maintain certain original characteristics while ensuring that the privacy information is hidden, including:

1. Maintaining the data type, that is, the desensitized data is consistent with the original data type, including string, number, date and time; 2. Maintaining the data format, that is, the desensitized data must comply with the encoding rules and types of the original data; 3. Maintaining the dependencies between data. Common dependencies between data include: data reference integrity, different data are associated through mutual references of sensitive data; there is no reference relationship between data, but there is a dependency relationship in business logic; 4. Maintaining data statistical characteristics, the desensitized data maintains the overall statistical characteristics unchanged in the dimensions required by the business; 5. Maintaining data frequency distribution, the desensitized data maintains the same quantity in each group divided according to business requirements; 6. Maintaining data uniqueness, different data will not be the same after desensitization, and the same data must be the same after desensitization; c. Names of desensitization rule type definitions, including: subscript masking, regular expression masking, hashing, range mapping, and single value mapping; S2. Configure table desensitization rules: select the corresponding columns, desensitization rules, and the confidentiality level after desensitization. When modifying the 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 the user system, you can set the user group, user role and user itself; and set confidentiality for these three categories of topics. The system comprehensively calculates all the identities of the user and obtains the maximum confidentiality level for verification; S4. Execute the query. The desensitization execution methods include: a. Three types of confidentiality: the original access confidentiality of the data column, the confidentiality of the data column after desensitization, and the user confidentiality; b. Determination method of desensitization rules: 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 confidentiality level is lower than the original confidentiality level of the field, and lower than all the confidentiality levels after desensitization, it is degraded to no viewing permission; c. After the desensitization rules are determined, they are pushed down to the computing tasks by the execution engine. In the semantic analysis phase of the Presto execution process, the field desensitization rule name is obtained by obtaining metadata information and desensitization 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 desensitization function will be called to produce the final query result. When executing the query calculation, the audit log is recorded; The parameter list for subscript masking in step S1 is as follows: begin: the subscript at which masking starts, supporting negative numbers; -n indicates starting masking from the last n digits; end: the subscript at which masking ends, supporting 0 and negative numbers, 0 means masking to the end; -n means masking to the last n digits; char: the masking character, default is *; The parameter list for regular masking is: regex: the regular expression for matching groups, replace: the masking string; The parameter list for hashing is: algorithm: the hashing algorithm, default is SHA256; The parameter list for range mapping is: {'mapping': [{'begin': '0', 'end': '20','replace': '0~20'}, {'begin': '20', 'end': '30','replace': '20~30'}, {'begin': '31', 'end': '','replace': '31~'}]}; The parameter list for single-value mapping is: {'mapping': [{'value': 'Male','replace': '0'}, {'value': 'Female','replace': '1'}]}; 2. The big data processing method based on the hybrid engine according to claim 1, characterized in that: The method is stored in an already built data warehouse or data lake management system, supporting corresponding metadata management functions stored in the overall user management system, and can perform user authentication and authorization.

3. The big data processing method based on the hybrid engine according to claim 1, characterized in that: The system rules in step S1 refer to the pre-defined rules in the system that users can directly use with the parameters already configured; user rules refer to new desensitization rules defined by users or new rule parameters.

4. The big data processing method based on the hybrid engine according to claim 1, characterized in that: In step S1, the relationship mapping algorithm is used to make there be business association relationships among the original sensitive data, and these relationships need to be maintained after data desensitization. Therefore, during the desensitization process, the algorithm expression is used to perform function mapping on the desensitized data so that the business association relationships are still maintained after desensitization.

5. The big data processing method based on the hybrid engine according to claim 1, characterized in that: The method for user permission management is as follows: a. The system administrator logs in to the user-end system and creates a browsing role for the required users; b. Set the corresponding data source usage permissions, i.e., the security levels, for the corresponding browsing roles; c. The browsing role enters the internal login system through the user login terminal, and at the same time, the authentication and authorization judgment system will identify the security level of the browsing role; d. Prepare data with the corresponding security level permissions for the browsing role, and it is impossible to view data with higher security level permissions.

Citation Information

Patent Citations

  • Data access method, device and system

    CN113535754A

  • Query engine selection

    US20190026335A1