Data desensitization method, data desensitization device and computer readable medium

By constructing desensitization rules and mapping relational data to identify sensitive fields, the issue of security risks of sensitive data in audit analysis is solved, effective desensitization and correlation of data is achieved, and the security and business logic meaning of data are ensured.

CN112231747BActive Publication Date: 2024-10-22CHINA CONSTRUCTION BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011022904.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-25
Publication Date
2024-10-22
Estimated Expiration
2040-09-25

AI Technical Summary

Technical Problem

In the field of audit analysis, there is a large amount of sensitive data in the original data, which leads to security risks in data learning and system use, and existing data desensitization methods cannot guarantee the business logic meaning of the data and the correlation of cross-component data.

Method used

By analyzing source data, we build masking rules, identify and match masked fields, prepare mapping relationship data, generate masking result tables, and identify sensitive fields through machine learning to ensure that the masked data retains the correlation.

Benefits of technology

It achieves effective data desensitization while retaining the business logic meaning of the data, ensuring the relevance and security of data after desensitization, and reducing user trust and legal risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112231747B_ABST
    Figure CN112231747B_ABST
Patent Text Reader

Abstract

The present invention relates to a data desensitization method, a data desensitization device and a computer-readable medium. The data desensitization method comprises: analyzing source data, constructing a first desensitization rule based on the characteristics of the source data; constructing a benchmark desensitization field matching table from the source data, and identifying and matching the fields of the source data based on the benchmark desensitization field matching table; according to the identified desensitized field, matching the front and back contents of the matching information based on a second desensitization rule different from the first desensitization rule, so as to confirm the combination rule and construct a desensitization parameter table; preparing mapping relationship data for the combination rule; and performing data desensitization based on the desensitization parameter table and the mapping relationship data to generate a corresponding desensitization result table. According to the present invention, it is possible to more accurately retain the cross-reference relationship in cross-component data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method for data desensitization, and in particular to a method for cross-component data desensitization for audit training or testing environments, and also to a device and computer-readable medium using the data desensitization method. Background Art

[0002] Audit analysis refers to the use of systematic methods by audit institutions or personnel to classify and distinguish the specific information and content of the audit object. It can be divided into two types: detection analysis and judgment analysis. (1) Detection analysis is a method of detecting erroneous items before and during the audit. It is mainly used to review the economic activities and financial revenue and expenditure activities of the audited unit, as well as errors in accounting data, in order to find clues. (2) Judgment analysis is a method of making judgments on verified facts at the end of the audit. It is mainly used to verify the correctness of audit data and make evaluations and conclusions on audit results. The specific methods used in audit analysis include comparative analysis, ratio analysis, structural analysis, index analysis, trend analysis, balance analysis and factor analysis.

[0003] Audit analysis method refers to the method by which auditors use analytical techniques to evaluate audit matters during the audit process. The purpose of audit analysis is to conduct audit evaluation and provide sufficient basis for the conclusion of audit fairness. Audit analysis method is universal and has great flexibility in application. It can be used for comprehensive analysis as well as special analysis; it can be analyzed from both static and dynamic aspects; it can be used for financial audit analysis as well as benefit audit (operational audit and management audit) analysis, from capital, cost, profit analysis to investment, capital, risk analysis, and then extended to efficiency, speed, and benefit analysis; it can be used for single audit evaluation as well as comprehensive audit evaluation.

[0004] With the rapid development of information technology, the application of computer technology in various fields of national economy and social life is becoming more and more extensive, and it has a profound impact on the audit environment, audit model and other aspects. The digital audit model is the inevitable product under this condition. The core of digital audit is to collect, convert, organize and analyze data. Data is the carrier of information and the basic object of audit. It is the quantification of laws, regulations, financial systems and business processes under a certain system environment. Due to the virtualization and intangibility of data, how to combine data with audit objects, convert and map the relationship between data into the entity relationship between audit objects, so as to restore data to the essence of the business it embodies, has become the key point of implementing digital audit, and this process is the process of building an audit analysis model. After the model is built, auditors can use computer technology methods to determine the audit focus and doubts through data processing and analysis, and achieve audit goals.

[0005] The audit analysis system needs to conduct a comprehensive analysis of all aspects of the business based on the data of each business component, but there is a large amount of sensitive data in the original data.

[0006] Sensitive data, also known as private data, commonly includes name, ID number, address, phone number, bank account number, email address, password, medical information, educational background, etc. Although there are many different definitions of sensitive data in various literatures, the definition of which information is not sensitive data is relatively consistent: non-personal data is generally not sensitive data, and the sensitivity of various types of personal data is also different. This information closely related to personal life and work is regulated by data privacy regulations of different industries and governments. If the companies or governments responsible for storing and publishing this information cannot guarantee data privacy, they will face serious financial, legal or accountability risks, and suffer huge losses in user trust.

[0007] According to relevant laws and regulations, the processing of personal information should have specific, clear and reasonable purposes, should obtain the consent of the personal information subject with the knowledge of the personal information subject, and should delete the personal information after the purpose of use has been achieved.

[0008] As mentioned earlier, in the field of audit analysis, there is a large amount of sensitive data in the analysis process of raw data, such as customer information, account numbers, ID cards, etc., which leads to security risks in users' learning of data and use of the system. Summary of the invention

[0009] In view of this, a method for processing desensitized data is needed so as to retain the business logic meaning of the data while achieving data desensitization. Furthermore, when in the case of audit analysis of desensitized data, it effectively helps auditors learn and organize audit analysis ideas and implement audit analysis methods.

[0010] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for desensitizing data is provided, comprising:

[0011] Analyze the source data, and construct a first desensitization rule based on the characteristics of the source data;

[0012] Constructing a benchmark desensitized field matching table from the source data, and identifying and matching the fields of the source data based on the benchmark desensitized field matching table;

[0013] According to the identified desensitized field, the preceding and following contents of the matching information are matched based on a second desensitization rule different from the first desensitization rule, so as to confirm the combination rule and construct a desensitization parameter table;

[0014] According to the combination rule, preparing mapping relationship data; and

[0015] Based on the desensitization parameter table and the mapping relationship data, data desensitization is performed to generate a corresponding desensitization result table.

[0016] Optionally, in the method of the embodiment of the present invention, the source data includes data based on multiple data source systems in an audit training environment.

[0017] Optionally, in the method of the embodiment of the present invention, the first desensitization rule includes:

[0018] Public rules, which are basic desensitization rules summarized based on fields with common data characteristics belonging to different data source systems; and

[0019] Private rules are desensitizing rules specific to each data source system, which are composed of public rules, feature rules, and rules without retaining cross-references.

[0020] Optionally, in the method of the embodiment of the present invention, the second desensitization rule is classified based on the data content, and includes at least one of the following: Chinese, English, 1 digit, 2 digits, Chinese and English numbers, month, and day.

[0021] Optionally, in the method of the embodiment of the present invention, after the combination rule is confirmed and the desensitization parameter table is constructed, manual review is performed to confirm the combination rule.

[0022] Optionally, in the method of the embodiment of the present invention, in the preparation of mapping relationship data, the Chinese source data is divided into surnames, non-desensitized characters, high-frequency characters and low-frequency characters, and the mapping comparison is achieved in a random manner.

[0023] Optionally, in the method of the embodiment of the present invention, in the preparation of mapping relationship data, the desensitization rules are written into desensitization functions, and the mapping results are spliced ​​using the function results.

[0024] Optionally, in the method of the embodiment of the present invention, after generating the corresponding desensitization result table, the data desensitization is verified. In the verification, the fields that need to retain mapping consistency are associated, and the number of associated records is recorded, and the accuracy of the desensitization is checked by comparing the number of records.

[0025] Optionally, in the method of the embodiment of the present invention, the sensitive field is identified by machine learning, and the machine learning is based on at least one of the following feature information:

[0026] Field name feature extraction, system business scope, table name feature extraction, field type, field length.

[0027] To achieve the above objective, according to another aspect of an embodiment of the present invention, a data desensitization device is provided.

[0028] A data desensitization device according to an embodiment of the present invention includes:

[0029] A data rule analysis module, which constructs a first desensitization rule based on the characteristics of the source data;

[0030] A data desensitization field identification module, which constructs a benchmark desensitization field matching table from the source data, and identifies and matches the fields of the source data based on the benchmark desensitization field matching table;

[0031] A data desensitization configuration module, according to the identified desensitization field, matches the preceding and following contents of the matching information based on a second desensitization rule different from the first desensitization rule, so as to confirm the combination rule and construct a desensitization parameter table;

[0032] Data desensitization preparation module, which prepares mapping relation data;

[0033] A data desensitization execution module performs data desensitization based on the desensitization parameter table and the mapping relationship data to generate a corresponding desensitization result table.

[0034] To achieve the above purpose, according to another aspect of an embodiment of the present invention, a data desensitization electronic device is provided. The electronic device includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the data desensitization methods of the embodiments of the present invention.

[0035] To achieve the above object, according to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided. A computer program is stored on the computer-readable storage medium, and when the program is executed by a processor, the data desensitization method of each embodiment of the present invention is implemented.

[0036] In traditional data desensitization methods, independent mapping schemes cannot guarantee the consistency of desensitization of related data; at the same time, there are no good desensitization field identification and verification measures. This method implements a desensitization method that retains cross-component data cross-references through sensitive data rule analysis and formulation, data desensitization field identification, data desensitization configuration, data desensitization preparation, data desensitization execution, and data desensitization verification.

[0037] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with specific implementation examples. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0039] Figure 1 is a schematic diagram of main steps of a data desensitization method according to an embodiment of the present invention;

[0040] Figure 2 is a schematic diagram schematically showing the content of data desensitization requirements in a data desensitization method according to an embodiment of the present invention;

[0041] Figure 3 is a schematic diagram showing a process of data desensitization according to an embodiment of the present invention;

[0042] Figure 4 is a schematic diagram of main modules of a data desensitization device according to an embodiment of the present invention;

[0043] Figure 5 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0044] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0045] It should be pointed out that the embodiments of the present invention and the technical features therein may be combined with each other without conflict.

[0046] In the following embodiments, the definitions of some common technical terms appearing in the technical solutions refer to the following explanations.

[0047] Cross-checking relationship refers to the inevitable relationship between the relevant indicators and figures in the accounting books and reports, which can be used to check and verify each other. Paying attention to cross-checking relationship is conducive to ensuring the accuracy of accounting data. Generally speaking, cross-checking relationship refers to the correlation between data.

[0048] Usually, cross-references are used to check project data and the correctness of reports by setting comparison formulas between report items. It can be used for inter-table audits, project difference audits, and can audit reports of all organizations. The main functions of cross-references are:

[0049] (1) Add preconditions for cross-checking relationships. Cross-checking relationships are checked only when the report meets the preconditions.

[0050] (2) Cross-checking is divided into legality and rationality checks. Reports that pass the legality cross-checking can be submitted, but if they fail the rationality check, they can still be submitted or can be submitted after adding comments;

[0051] (3) Cross-references are assigned to templates so that different cross-reference checks can be applied to consolidated reports and individual reports.

[0052] Component: refers to a system with complete functions, specifically the data provided by different business group systems for desensitization analysis, which is generally loaded into the analysis system through ETL.

[0053] Generally speaking, audit operations require analysis and auditing of the businesses within their scope of responsibility. These businesses are usually completed by corresponding systems, and these business systems are required to provide audit data to the audit system for analysis. Usually, since multiple different business system components are required to complete different types of businesses, the audit data usually comes from multiple different components or systems.

[0054] Full scale: records all the latest status data every day.

[0055] Incremental table: records the new data added every day. Incremental data is the new data after the last export.

[0056] Snapshot table: partitioned by day, recording the full amount of data up to the data date.

[0057] Slice table: Slice table is based on the base table and often only reflects the corresponding data of a certain dimension. Its table structure is the same as the base table structure, but the data often only has a certain dimension or a certain fact condition. Usually, the slice table corresponds to the detailed data table of the business system.

[0058] Zipper table: records the life cycle of each piece of information. When the life cycle of a record ends, a new record will be started again, and the current date will be added to the effective start date. If the current information is still valid, a maximum value (such as 9999-99-99) will be filled in the effective end date. Generally, it is represented by adding two columns, start_date and end_date, in the data warehouse. Usually, the zipper table corresponds to the main file data table of the business system, and saves the change history of the main file data table.

[0059] Data desensitization, also known as data de-privacy or data deformation, is a technical mechanism for transforming and modifying sensitive data under given rules and policies. It can largely solve the problem of using sensitive data in untrusted environments.

[0060] Below is a brief explanation of the principle of data desensitization. Data desensitization transforms sensitive information content as needed while retaining the original characteristics of the data. Only authorized administrators or users can access the true value of the data through specific applications and tools when they need to know, thereby reducing the risk of sharing and moving these important data. Data desensitization expands the scope of use and sharing of original data without reducing security, so it is the most effective sensitive data protection method in the big data environment.

[0061] Any industry involving sensitive information has a natural need for data desensitization. Among them, the financial, government and medical industries are the first to bear the brunt. Relevant units generally use real data in application development, testing, training and other activities, resulting in serious data leakage risks during exposure. With the help of data desensitization, enterprises can define precise and flexible desensitization strategies according to data usage goals, desensitize different categories of data in different ways according to user permission levels, and achieve rapid and consistent access restrictions across tools, applications and environments.

[0062] Common traditional data desensitization methods include:

[0063] Replacement: Replace the real value with fictitious data. For example, create a large virtual value data table, generate a random seed for each real value record, and replace the original data content with a hash map. The data obtained by this method is very similar to the real data. Invalidation: Replace the real value or part of the real value with NULL or *****, such as covering the last 12 digits of a credit card number.

[0064] Scrambling: Randomly redistribute the values ​​of sensitive data columns to confuse the original values ​​and the connection with other fields. This method does not affect the statistical characteristics of the original data, such as the maximum / minimum / variance, which are the same as the original data.

[0065] Averaging: For numerical data, first calculate their mean, and then make the desensitized values ​​randomly distributed around the mean, so as to keep the sum of the data unchanged. Usually used in product cost tables, salary tables, etc.

[0066] De-inference: Find mappings that may infer another sensitive field from certain fields, and desensitize these fields, such as scenarios where ID number, gender, and region can be inferred from date of birth.

[0067] Offset: Altering digital data by randomly shifting it.

[0068] FPE: Format Preserving Encryption, which is a special reversible desensitization method. The original data is encrypted by encryption key and algorithm, and the ciphertext format is consistent with the original data in logical rules, such as date, card number, structured value, etc. The original data can be restored by decryption key.

[0069] Blocking based on other reference information: only part of the response content is changed according to predefined rules (for example, blocking the name of VIP customers, but showing other customers, etc.).

[0070] Limit the number of returned rows: Provide only a subset of the response data to prevent users from accessing all the data that meets the requirements.

[0071] In the audit data analysis system, source data from hundreds of components are usually connected as analysis source data, and the sensitive data information of each system is different. In this case, if the methods provided by each component are used for desensitization, the desensitized data will not be relevant. Therefore, a desensitization method that conforms to the business meaning of the field is needed for the data in the audit training environment, so that the data of each component can still be cross-referenced after desensitization.

[0072] In the existing desensitization technology, the common desensitization method is mainly to process the sensitive field according to the specified desensitization algorithm, for example, according to the following desensitization algorithm:

[0073] Table 1

[0074]

[0075]

[0076] In the above table, Hiding, Hashing, Truncation, Mask, and Floor may cause the data cross-reference relationship to be lost. Therefore, for sensitive fields that need to support correct aggregation or connection operations, the data is usually mapped to a unique value.

[0077] However, the inventors have found that for fields that need to map data to unique values, fields of different business types actually contain some common data information. For example, the ID card field and the internal account field seem to be different, but some system internal accounts may be generated based on the ID card, which results in the ID card information being contained in the generated internal signal. For example, the organization information and the personnel number seem to be different, but the personnel number rules of some systems contain the organization information. If a single data mapping desensitization algorithm is used without combining the actual meaning of the field, it is easy to cause the desensitized data to lose data availability. Therefore, it is necessary to sort out a unified desensitization rule, identify the implicit business meaning of each field at the same time, and assemble the desensitization algorithm rules to ensure the desensitization consistency across components and fields. Assembling desensitization rules refers to generating new rules for a certain field by combining after identification based on existing rules, so as to adapt to the desensitization rules of previously unidentified fields.

[0078] Figure 1 It is a schematic diagram of the main steps of a data desensitization method according to an embodiment of the present invention.

[0079] like Figure 1 As shown, in brief, a data desensitization method according to an embodiment of the present invention mainly includes the following steps:

[0080] Step S101: Sensitive data rule analysis

[0081] Step S102: Data desensitization field identification

[0082] Step S103: Data desensitization field configuration

[0083] Step S104: Data desensitization preparation

[0084] Step S105: Data desensitization execution

[0085] Step S106: Data desensitization verification

[0086] Corresponding to the above steps, the specific operations are as follows:

[0087] 1) Analysis of sensitive data rules:

[0088] Analyze sensitive data, determine desensitization requirements, and determine specific desensitization methods based on desensitization rules. Specifically, construct a first desensitization rule based on the characteristics of the source data.

[0089] 2) Data desensitization field identification:

[0090] Construct a sensitive data benchmark desensitization field table, and match the corresponding fields of the table to be identified based on the benchmark desensitization field names in the field table. Based on the matched fields, match other data fields in the table according to the matched field contents to determine whether other fields contain sensitive information.

[0091] 3) Data desensitization field configuration:

[0092] According to the identified desensitized field, the preceding and following contents of the matching information are matched based on a second desensitization rule that is different from the first desensitization rule, so that the combination rule is confirmed and a desensitization parameter table is constructed.

[0093] Specifically, according to the identified desensitized field information, the preceding and following contents of the matching information are matched based on the feature rules, and the combination of rules is confirmed. For example, the following identification types are set:

[0094] For those directly identified by name, set the corresponding rules directly. Based on the same piece of data, its content may contain sensitive information, for example, the first-level organization may exist in some unidentified sensitive fields, or the ID number may exist in some account information.

[0095] Therefore, based on the above-identified type of field, its content is matched with other unidentified fields to determine whether other fields contain the content of the above-identified type of field, thereby combining into a rule for a new field.

[0096] If there are any problems after matching, manual review will be carried out.

[0097] Then, on the basis of constructing basic desensitization rules and feature rules, the cross-reference relationship of desensitized data is ensured based on the combination of feature rules, basic rules and private rules;

[0098] 4) Data desensitization preparation:

[0099] Prepare corresponding mapping relationship data for desensitization rules.

[0100] 5) Data desensitization execution:

[0101] Based on the desensitization parameter table and the mapping relationship data, data desensitization is performed to generate a corresponding desensitization result table. Specifically, based on the data desensitization field configuration parameter table and the mapping data prepared for desensitization, data desensitization is performed by traversing (i.e., accessing all) the configuration parameter table, thereby generating a corresponding desensitization table, i.e., a desensitized data table.

[0102] 6) Data desensitization verification:

[0103] For fields that need to retain mapping consistency, according to the data masking field configuration table information, the data fields of the same rule are associated according to the previous inspection combination of the original data, and the number of associated records is recorded. By comparing the number of records, the accuracy of masking can be checked.

[0104] refer to Figure 2 , the following specifically describes step S101, namely, sensitive data rule analysis.

[0105] Sensitive data mainly includes two categories: one is the customer's inherent identity information, such as name, ID card, telephone number, address, position, etc.; the other is sensitive information generated by the system to identify the customer or generated by a transaction, such as account number, password, transaction serial number, etc.

[0106] like Figure 2 As shown, the determination of desensitization requirements needs to consider three attributes, namely, security, rationality, and relevance.

[0107] Specifically, it should be reasonable and relevant under the premise of ensuring security. For any desensitization method, security is the premise, that is, to ensure that there is no sensitive information in the data visible to the user. Reasonableness means that the desensitized data still has the business meaning of the data before desensitization as much as possible. For example, after the transaction serial number is replaced, each segment of its data must still comply with the original business rules. Relevance means that fields with the same business meaning in different data tables must adopt unified desensitization rules, such as the replacement rules of the ID card number field in the data tables of each system must be consistent. In addition, after desensitization, the fields with associated relationships must still try their best to ensure that the original associated relationships are not lost. For example, although the replacement rules for internal and external accounts are different, after replacement, they must still comply with the translation rules of internal and external accounts to ensure that the corresponding relationship remains unchanged.

[0108] There are certain desensitization rules for desensitization methods. Desensitization methods and desensitization rules need to be selected based on the characteristics of the fields. Here, desensitization rules are divided into public rules and private rules. Public rules are basic desensitization rules summarized based on fields with common data characteristics belonging to different systems, such as name address, external account number, organization code, etc.; private rules are desensitization rules unique to each system, which perform desensitization processing on specific fields of each system, and can be a combination of different public rules. When defining field usage rules, public rules and private rules are adopted instead of directly using feature rules.

[0109] Below, we have organized the basic desensitization rules according to the sensitive data types, and abstracted and sorted them out according to the common sense information contained in the data. The analysis of the sensitive types of the organized data fields is shown in Table 2 below:

[0110] Table 2

[0111]

[0112] Sensitive fields refer to fields that need to be desensitized. For example, internal accounts contain ID card information. According to the above classification, the surname, province, region, year, date, and ID card information need to be kept consistent within sensitive fields. Under the desensitization principle of keeping the information consistent within the basic rules, other fields are combined according to the basic rules to ensure the relevance between desensitized data.

[0113] In addition, data can be further classified from the perspective of data content. For example, construct desensitization rules such as Chinese (feature rule 01), English (feature rule 02), 1-digit (feature rule 03), 2-digit (feature rule 04), Chinese and English numbers (feature rule 05), month (feature rule 06), and day (feature rule 07). Based on these feature-based rules, basic desensitization rules are constructed by combination. Note that the data content here refers to the most basic classification of language, that is, Chinese, English, numbers, dates, etc. Different from data content, data meaning refers to fields with certain specific industry business attributes, such as identity cards, internal codes, etc.

[0114] Note that feature rules are basic mapping rules without business meanings, and public rules are rules that are composed of rules that do not retain cross-references, such as interception and nullification, on the basis of feature rules. Private rules are rules that are composed of rules that do not retain cross-references, such as interception and nullification, on the basis of public rules and feature rules.

[0115] With reference to Table 3 below, step S102 is described in detail below.

[0116] First, construct a benchmark desensitized field table. Specifically, based on the name, address type, customer code, ID number, institution code type, external account number, internal account number, card number, teller number, transaction serial number, telephone type, occupation, position, title, zip code, EMAIL address, fax, paging, QQ, MSN, password, track information, personal loan system account number, date, personal loan system account number, and institution split field, the field is preliminarily identified based on several sets of commonly used system tables (six sets in this embodiment), and then the benchmark desensitized field table is formed after confirmation by the verification personnel (a total of 1153 benchmarks). The 1153 benchmark desensitized field tables are specific to the field name. For example, when the field is a branch alias, the field is identified as an institution code type, and it is desensitized using rule 03. An example is as follows:

[0117] Table 3

[0118]

[0119]

[0120] Based on the Chinese labels of the sensitive data benchmark desensitized fields, match each field in the table to be desensitized; at the same time, based on the matched fields, match other data fields of the table to be desensitized according to the matching field contents to see whether other fields contain sensitive information.

[0121] With reference to Table 4, step S103 is described in detail below.

[0122] According to the identified desensitized field information, that is, the content in the desensitized field, the content before and after the matching information is matched based on the feature rules to confirm the combination of rules. For example, if a field is composed of "institution number + ID number + sequence", it is considered to match the ID number. Therefore, matching is based on numbers, Chinese, and English. If there are problems after matching, manual review can be continued. Configure the desensitization parameter table, as shown below:

[0123] Table 4

[0124] Table name Field Name Rule Number Desensitization rules TABLE_A COL_A Rule 02 Rule 02 TABLE_A COL_B Private Rules 01 Feature Rule 01 + Rule 02 + Feature Rule 01 … … … …

[0125] According to this embodiment, a desensitization parameter table is formed by specifically applying and combining one or more desensitization rules for different fields.

[0126] For fields that need to retain mapping consistency, according to the data desensitization field configuration table information, the original data (screening designated institutions + designated periods - select p9_data_date field screening period for slice tables, select p9_end_date field screening period for zipper tables) is associated by desensitization field, and the number of associated records is recorded. Different components and different data tables have related fields to maintain data consistency.

[0127] For example, the account number field of a personal current deposit file is usually associated with the account number field of a personal current transaction flow sheet. Therefore, before desensitization, the association is first performed to obtain the number of associated records; after desensitization, the association is performed again to obtain the number of associated records, and then the two are compared.

[0128] If there is a large amount of data that cannot be associated, it means that the source data itself has no cross-reference relationship. In this case, it is necessary to manually confirm its actual content and adjust the desensitization rules accordingly.

[0129] With reference to Table 5, step S104, i.e., data desensitization preparation, is described in detail below.

[0130] First, we need to prepare the corresponding mapping relationship data for the desensitization rules. We divide Chinese characters into surnames, non-desensitized characters (for example, company, province, city, etc.), high-frequency characters, and low-frequency characters, and use a random method to achieve mapping comparison, ensuring that each desensitization generates a random mapping relationship, and at the same time ensuring that the same batch of desensitization guarantees data consistency and data readability.

[0131] In addition, the desensitization rules can be written into corresponding desensitization functions, and the function results can be spliced ​​to adapt to the rules for desensitization through combination. First, all fields of the data table are obtained, and the non-desensitized fields and desensitized field scripts are assembled to obtain the query statement for generating the desensitized table.

[0132] Then, by splicing and executing the table creation statements, a desensitized table is created by creating a new table. Thus, the form desensitization is completed.

[0133] The following is an example of running a program that creates a list of characters to form a comparison for a Chinese character comparison table.

[0134] Table 5

[0135]

[0136]

[0137]

[0138]

[0139]

[0140]

[0141]

[0142]

[0143]

[0144]

[0145]

[0146] As mentioned above, the desensitization rules can be written into corresponding desensitization functions, and the function results can be concatenated to adapt to the rules for desensitization in a combined manner. Note that some rules are combined rules, so the desensitization can be achieved by combining multiple functions to concatenate the results.

[0147] The following table is an example of a desensitization function.

[0148] --9.1 15-digit ID card desensitization

[0149]

[0150]

[0151] --9.1 18-digit ID card desensitization

[0152]

[0153] Here is another example of a desensitization function,

[0154] Table 6

[0155]

[0156] refer to Figure 3 , step S105 - execution of data desensitization - is described in detail.

[0157] First, preprocessing is performed on the data. In the preprocessing stage, for the desensitized field configuration table and the mapping data generated by random means as described above, (i) duplication is removed by table name, (ii) rule function matching is performed by field configuration, and splicing and assembly are performed.

[0158] In the deduplication operation, based on the rules corresponding to the fields in the table, the field corresponding table with the rules defined is screened out, and the table is deduplicated to obtain a list of tables that need to be desensitized. After deduplication in step (i), a desensitized table list is formed.

[0159] After the assembly in step (ii), a desensitized field configuration script parameter table is formed.

[0160] Note that the assembly in the data preprocessing stage refers to the combination and definition of the corresponding desensitization function and field name according to the rule number.

[0161] Next, determine whether there is a table that needs to be desensitized. If the result is yes or no, desensitization is considered to be completed and the process ends. If the result is that there is a table that needs to be desensitized (that is, "yes"), desensitization is performed table by table. Specifically, all fields of the data table are obtained, and the non-desensitized fields are assembled with the desensitized field script to obtain a query statement for generating the desensitized table. Note that the assembly in this desensitization stage means: according to the dimension of the table, the function definitions of all desensitized fields are spliced ​​together to form a desensitized query statement for the corresponding table. For example, assuming that there is a table TABLEA, in which cola and colb need to be desensitized, and the other 3 fields are not desensitized, the query statement is spliced ​​to generate:

[0162] select col_other1,

[0163] get_mapping_rule02(COL_A),

[0164] col_other2,get_mapping_als01(COL_B),col_other3 from TABLEA;

[0165] Then, create a table statement by splicing and executing it. By creating a new table, a desensitized table is created, and then the form desensitization is completed.

[0166] Table 7 below is an example of the function code for performing table-by-table desensitization:

[0167] Table 7

[0168]

[0169]

[0170]

[0171]

[0172]

[0173]

[0174] Next, step S106 is explained. In step S106, for the fields that need to retain mapping consistency, according to the data desensitization field configuration table information, the data fields of the same rule are associated according to the previous inspection combination of the original data, and the number of associated records is recorded. By comparing the number of records, the accuracy of desensitization is checked. For example, the account field of a personal current deposit file must be consistently associated with the account field of a personal current transaction flow sheet. Therefore, before desensitization, an association is performed to obtain the number of associated records; after desensitization, the number of associated records is obtained by re-association, and the two are compared to achieve verification.

[0175] It is understandable that in the existing technology, independent mapping solutions cannot guarantee the consistency of desensitization of related data; at the same time, there is no better desensitized field identification and verification measures. In traditional technology, there is no way to preserve cross-component relationships, retain the readability of desensitized information, and summarize and design rules.

[0176] Compared with the existing conventional technology, according to the embodiments of the present invention, through the various links and / or combinations of sensitive data rule analysis and formulation, data desensitization field identification, data desensitization configuration, data desensitization preparation, data desensitization execution and / or data desensitization verification, a desensitization method for cross-component data retention cross-reference relationship is implemented. In particular, by sorting out feature rules, basic rules, and private rules based on data features, desensitization is achieved based on the use of these rules alone or in combination.

[0177] According to an embodiment of the present invention, by constructing basic desensitization rules and feature rules, the cross-reference relationship of desensitized data is guaranteed based on the rules. If Chinese characters are divided into surnames, non-desensitized characters (for example: company, company, province, city, etc.), high-frequency characters, and low-frequency characters, while ensuring the randomness of desensitization, the readability of the data can also be guaranteed. Moreover, by means of association, the accuracy of rule formulation can also be verified.

[0178] <Variation>

[0179] For sensitive field identification, you can consider using machine learning methods to build a desensitized field type classification model based on feature information such as field name feature extraction, system business scope, table name feature extraction, field type, and field length to assist in identifying desensitized field types.

[0180] Figure 4 It is a schematic diagram of main modules of a data desensitization device according to another embodiment of the present invention.

[0181] like Figure 4 As shown, a data desensitization device 400 according to an embodiment of the present invention includes: a first data rule analysis module 401, a second data desensitization field identification module 402, a third data desensitization configuration module 403, a fourth data desensitization preparation module 404, a fifth data desensitization execution module 405, and a sixth data desensitization verification module 406.

[0182] Specifically, the first data rule analysis module 401 is used to:

[0183] Analyze sensitive data, determine desensitization requirements, and determine desensitization methods based on desensitization rules, wherein a first desensitization rule is constructed based on the characteristics of the source data.

[0184] The second data desensitization field identification module 402 is used to:

[0185] Construct a sensitive data benchmark desensitization field table, and match the corresponding fields in the table based on the sensitive data benchmark desensitization field. Based on the matched fields, identify and match other data fields in this table according to the content of the matched fields to determine whether other fields contain sensitive information.

[0186] The third data desensitization configuration module 403 is used to:

[0187] According to the identified desensitized field information, the preceding and following contents of the matching information are matched based on the feature rules to confirm the combination of rules.

[0188] If there are any problems after matching, manual review will be carried out.

[0189] On the basis of constructing basic desensitizing rules and feature rules, the cross-reference relationship of desensitized data is ensured based on the combination of a whole set of rules, namely feature rules, basic rules and private rules.

[0190] The fourth data desensitization preparation module 404 is used for:

[0191] Prepare corresponding mapping relationship data for desensitization rules.

[0192] The fifth data desensitization execution module 405 is used for:

[0193] Based on the data masking field configuration parameter table and the mapping data prepared for masking, data masking is performed by traversing the configuration parameter table to generate the corresponding masking table.

[0194] The sixth data desensitization verification module 406 is used to:

[0195] For fields that need to retain mapping consistency, according to the data masking field configuration table information, the data fields of the same rule are associated according to the previous inspection combination of the original data, and the number of associated records is recorded. By comparing the number of records, the accuracy of masking can be checked.

[0196] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 500 of a terminal device suitable for implementing another embodiment of the present invention. Figure 5 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0197] like Figure 5 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0198] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.

[0199] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.

[0200] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0201] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0202] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor, for example, may be described as: a processor including the functional modules; and a storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement any method described in the embodiments of the present invention.

[0203] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device implements a data desensitization method of an embodiment of the present invention.

[0204] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for data desensitization, comprising: Analyze the source data so as to construct a first desensitization rule based on the characteristics of the source data; Constructing a benchmark desensitized field matching table from the source data, and identifying and matching the fields of the source data based on the benchmark desensitized field matching table; According to the identified desensitized field, the preceding and following contents of the matching information are matched based on a second desensitization rule different from the first desensitization rule, so as to confirm the combination rule and construct a desensitization parameter table; According to the combination rule, preparing mapping relationship data; as well as Based on the desensitization parameter table and the mapping relationship data, data desensitization is performed to generate a corresponding desensitization result table; The source data includes data based on multiple data source systems in the audit training environment; The first desensitization rule includes: Public rules, which are basic desensitization rules summarized based on fields with common data characteristics belonging to different data source systems; and Private rules are desensitization rules specific to each data source system. They are formed by combining public rules, feature rules, and rules without retaining cross-references. Feature rules are basic mapping rules without business meaning. In the preparation of mapping relational data, the desensitization rules are written into desensitization functions, and the mapping results are spliced ​​using the function results; After the corresponding desensitization result table is generated, the data desensitization is verified. In the verification, the fields that need to retain mapping consistency are associated, and the number of associated records is recorded. The accuracy of desensitization is checked by comparing the number of records.

2. The method according to claim 1, characterized in that The second desensitization rule is classified based on the data content, and includes at least one of the following: Chinese, English, 1 digit, 2 digits, Chinese and English digits, month, day.

3. The method according to claim 1, characterized in that: After confirming the combination rules and constructing the desensitization parameter table, manual review is performed to confirm the combination rules.

4. The method according to claim 1, characterized in that: In the preparation of mapping relationship data, the Chinese source data is divided into surnames, non-desensitized characters, high-frequency characters and low-frequency characters, and the mapping comparison is achieved in a random manner.

5. The method according to claim 1, characterized in that Sensitive fields are identified through machine learning, where the machine learning is based on at least one of the following feature information: Field name feature extraction, system business scope, table name feature extraction, field type, field length.

6. A data desensitization device, comprising: A data rule analysis module, which constructs a first desensitization rule based on the characteristics of the source data; A data desensitization field identification module, which constructs a benchmark desensitization field matching table from the source data, and identifies and matches the fields of the source data based on the benchmark desensitization field matching table; A data desensitization configuration module, according to the identified desensitization field, matches the preceding and following contents of the matching information based on a second desensitization rule different from the first desensitization rule, so as to confirm the combination rule and construct a desensitization parameter table; Data desensitization preparation module, which prepares mapping relation data; A data desensitization execution module, which performs data desensitization based on the desensitization parameter table and the mapping relationship data to generate a corresponding desensitization result table; The source data includes data based on multiple data source systems in the audit training environment; The first desensitization rule includes: Public rules, which are basic desensitization rules summarized based on fields with common data characteristics belonging to different data source systems; and Private rules are desensitization rules specific to each data source system. They are formed by combining public rules, feature rules, and rules without retaining cross-references. Feature rules are basic mapping rules without business meaning. In the preparation of mapping relational data, the desensitization rules are written into desensitization functions, and the mapping results are spliced ​​using the function results; After the corresponding desensitization result table is generated, the data desensitization is verified. In the verification, the fields that need to retain mapping consistency are associated, and the number of associated records is recorded. The accuracy of desensitization is checked by comparing the number of records.

7. The device according to claim 6, wherein: The second desensitization rule is classified based on the data content, and includes at least one of the following: Chinese, English, 1 digit, 2 digits, Chinese and English digits, month, day.

8. The device according to claim 6, wherein: After confirming the combination rules and constructing the desensitization parameter table, manual review is performed to confirm the combination rules.

9. The device according to claim 6, wherein: In the preparation of mapping relationship data, the Chinese source data is divided into surnames, non-desensitized characters, high-frequency characters and low-frequency characters, and the mapping comparison is achieved in a random manner.

10. The device according to claim 6, wherein: Sensitive fields are identified through machine learning, where the machine learning is based on at least one of the following feature information: Field name feature extraction, system business scope, table name feature extraction, field type, field length.

11. An electronic device for data desensitization, characterized in that: include: one or more processors; as well as a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method as claimed in any one of claims 1 to 5.

12. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.