Data desensitization system and method
By adopting off-the-shelf memory operations and encrypted transmission methods in the data desensitization system, the problems of data leakage and temporary file risks in the existing technology are solved, and the safe use and efficient desensitization of data in non-production environments are realized.
Patent Information
- Application Number
- CN201710995533.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2017-10-23
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2037-10-23
AI Technical Summary
The existing data desensitization system lacks confidentiality measures during the data access and transmission process, and there is a risk of leakage. Moreover, the file-based desensitization method needs to generate temporary files, which increases the possibility of leakage.
Adopt an off-the-shelf data desensitization system, read the original data from the data source server through the desensitization execution server, perform the desensitization operation in the memory, and send the desensitized data directly to the target server, using JDBC, ODBC and pipeline flow methods , avoids the generation of temporary files, and ensures data security through encrypted transmission.
It realizes the ability to safely use production data in non-production environments, prevents the leakage of sensitive information, and improves the efficiency of desensitization operations and data security.
Smart Images

Figure CN107766741B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information security technology, and in particular to a data desensitization system and method. Background Art
[0002] As the market grows and business develops, more and more customer information is stored in corporate databases. Once leaked, it will bring huge trust crisis and economic losses to the company. Desensitizing sensitive data is an active and effective means to prevent data leakage. Data desensitization refers to the deformation of certain sensitive information through desensitization rules to achieve reliable protection of sensitive privacy data. With the help of data desensitization technology, sensitive information is shielded, and the shielded information retains its original data format and attributes to ensure that the system or application can operate normally during the development and testing process using desensitized data. Users in various industries such as government, finance, telecommunications, banks, public institutions, and individual enterprises realize that data has become the core asset of the enterprise. Sensitive information such as business data, human resources data, and financial data will directly affect the survival and development of the enterprise. They attach great importance to core data assets and question the implementation method of data landing during the desensitization process. They are worried that the landing data will have the risk of leakage.
[0003] In the prior art, the process of desensitization processing by a common desensitization system is as follows: Figure 1 As shown, according to the test and development requirements, the core data is extracted into a compressed extraction file, the sensitive fields (customer information related fields) in the extraction are desensitized, and the object definition DDL retained in the desensitized extraction file is used to change or create the initial data environment in the development environment, and the desensitized data is inserted into the target environment, including the development and test environment. However, the existing desensitization system does not use confidentiality measures during data access and transmission, and there is a possibility of data leakage in this process. In addition, the file-based desensitization method must generate temporary files during the desensitization process, and there is also a possibility of data leakage in this process. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a data desensitization system and method, which can perform "data desensitization before it is landed" processing.
[0005] According to one aspect of an embodiment of the present invention, there is provided a data desensitizing system, comprising: a data source server for storing original data; a target server for storing desensitized data; a desensitizing execution server for receiving a data desensitizing instruction sent by a client device, reading original data from the data source server and putting it into a memory according to the data desensitizing instruction, performing a desensitizing operation in the memory to generate desensitized data, and sending the desensitized data to the target server for storage; wherein the desensitizing operation comprises: locating sensitive information in the original data based on preset data desensitizing rules and generating replacement information corresponding to the sensitive information, replacing the sensitive information in the original data with the corresponding replacement information to generate the desensitized data.
[0006] According to another aspect of the present invention, there is provided a data desensitizing method, comprising: a desensitizing execution server receives a data desensitizing instruction sent by a client device, and reads original data from a data source server and puts the data into a memory according to the data desensitizing instruction; the desensitizing execution server locates sensitive information in the original data in the memory based on preset data desensitizing rules and generates replacement information corresponding to the sensitive information, and replaces the sensitive information in the original data with the corresponding replacement information to generate the desensitized data; the desensitizing execution server sends the desensitized data to the target server for storage.
[0007] The data desensitization system and method of the present invention, the desensitization execution server reads the original data from the data source server, replaces the sensitive information in the original data with the corresponding replacement information to generate desensitized data and sends it to the target server for storage, adopts JDBC, ODBC and pipeline stream and other methods to obtain the original data and store the target data, no temporary files need to be generated during the desensitization process, and the desensitization execution server and the client communicate using encrypted transmission mode, which can perform "non-landing data desensitization", can ensure the safe use of customer production data in non-production environments, prevent sensitive information leakage, ensure data security, and improve the efficiency of desensitization operations.
[0008] Additional aspects and advantages of the embodiments of the present invention will be partially given in the following description, which will become obvious from the following description, or will be learned through the practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor:
[0010] Figure 1A schematic diagram of a process for desensitization processing by a desensitization system in the prior art;
[0011] Figure 2 A schematic diagram of an embodiment of a data desensitization system according to the present invention;
[0012] Figure 3 A schematic diagram of a module of a client device in one embodiment of a data desensitization system according to the present invention;
[0013] Figure 4 A schematic diagram of a module of a desensitization execution server in one embodiment of a data desensitization system according to the present invention;
[0014] Figure 5 A schematic diagram of a process of performing desensitization processing according to an embodiment of a data desensitization system of the present invention;
[0015] Figure 6 The figure is a flow chart of an embodiment of a data desensitization method according to the present invention. DETAILED DESCRIPTION
[0016] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.
[0017] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0018] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0019] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0020] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0021] Embodiments of the present invention may be applied to computer systems / servers that may operate with numerous other general or special computing system environments or configurations. Examples of well-known computing systems, environments, and / or configurations suitable for use with computer systems / servers include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, networked personal computers, minicomputer systems, mainframe computer systems, and distributed cloud computing technology environments including any of the above systems, etc.
[0022] Computer systems / servers may be described in the general context of computer system executable instructions (such as program modules) executed by a computer system. In general, program modules may include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers may be implemented in a distributed cloud computing environment where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules may be located on local or remote computing system storage media including storage devices.
[0023] The present invention provides a data desensitization system, such as Figure 2 As shown, the data desensitization system includes: a desensitization execution server 1, a data source server 2, a target server 3 and a client device 4. The client device 4 can be a PC, a mobile terminal, etc. The data source server 2 stores the original data, and the target server 3 stores the desensitized data.
[0024] The desensitizing execution server 1 receives the data desensitizing instruction sent by the client device 4, reads the original data from the data source server 2 and puts it into the memory according to the data desensitizing instruction, performs the desensitizing operation in the memory to generate desensitized data, and sends the desensitized data to the target server 2 for storage.
[0025] The desensitization execution server 1 performs various desensitization operations, such as locating sensitive information in the original data based on preset data desensitization rules and generating replacement information corresponding to the sensitive information, replacing sensitive information in the original data with corresponding replacement information to generate desensitized data, etc.
[0026] The desensitizing execution server 1 performs the desensitizing operation in the memory, does not generate any temporary files during the desensitizing process, and directly sends the desensitized data to the target server 3 for storage, so that the data in the desensitizing process does not fall to the ground, thereby improving the security protection of the data.
[0027] The "non-landing data desensitization" in the present invention means that when sensitive business data involving personal privacy or other sensitive business data that needs to be protected in the production environment needs to enter a non-production environment or a test environment, no temporary files need to be generated during the desensitization process, and the desensitized target data directly enters the non-production environment or the test environment.
[0028] Sensitive data usually includes customer personal privacy data and certain key sensitive business data, such as name: customer name, customer name, etc.; address: home address, company address, etc.; email: company email, regular email, etc.; phone: mobile phone, landline, etc.; ID: ID card, passport, military officer ID, etc.; account number: bank card, customer number, tax registration number, organization code, business license number, etc.; postal code: company postal code, home address postal code, etc.; date: birthday, etc.
[0029] like Figure 3 As shown, the client device 4 includes: a connection establishment module 41, a first encryption and decryption module 41 and an instruction sending module 42. Figure 4 As shown, the desensitizing execution server 1 includes: a certificate management module 11, a second encryption and decryption module 12, a desensitizing rule establishment module 13, a desensitizing data processing module 14, a source data acquisition module 15 and a target data storage module 16.
[0030] The connection establishment module 41 establishes an HTTPs connection with the desensitization execution server 1, and encrypts information through the https protocol to prevent sensitive information from being obtained by a third party. The client device 4 can be set up with a browser, and connect to the 443 port of the desensitization execution server 1 by entering the https website of the desensitization execution server 1 in the browser.
[0031] The first encryption and decryption module 42 sends a digital certificate request to the desensitizing execution server 1. The certificate management module 11 sends the digital certificate corresponding to the client device 4 to the client device 4 through the HTTPs connection. The digital certificate contains an encrypted public key. Servers using the HTTPS protocol must have a set of digital certificates, which can be made by themselves or applied for from an organization. Self-made certificates require client verification before they can continue to be accessed, while certificates applied for by trusted companies will not pop up a prompt page. The digital certificate corresponds to a pair of encrypted public keys and encrypted private keys, and the digital certificate containing the encrypted public key is sent to the client device 4.
[0032] The first encryption and decryption module 42 parses the digital certificate based on the TLS protocol and verifies whether the encryption public key is valid, such as the issuing authority, expiration time, etc. If the encryption public key is determined to be valid, the first encryption and decryption module 42 generates a set of random numbers, encrypts the random numbers using the encryption public key, and sends the encrypted results of the random numbers to the desensitization execution server. If the first encryption and decryption module 42 verifies the encryption public key and finds an abnormality, a warning box will pop up to prompt that there is a problem with the certificate.
[0033] The second encryption and decryption module 12 uses the encryption private key to decrypt the encryption result and obtain a random number. The client device 4 and the desensitization execution server 1 use random numbers as shared keys for encrypted communication. For example, the first encryption and decryption module 42 uses a random number as a key, symmetrically encrypts the data desensitization instruction based on a preset symmetric encryption algorithm, and sends the encrypted data desensitization instruction to the desensitization execution server 1. The second encryption and decryption module 12 uses a random number and decrypts the encrypted data desensitization instruction based on a symmetric encryption algorithm to obtain the data desensitization instruction. The methods used for symmetric encryption and decryption include: DES algorithm, 3DES algorithm, etc., and the methods used for asymmetric encryption and decryption include: RSA algorithm, backpack algorithm, etc.
[0034] In one embodiment, the data desensitization instruction carries a variety of information, such as sensitive data types, desensitization algorithms corresponding to sensitive data types, etc. The desensitization rule establishment module 13 configures a data desensitization rule template corresponding to the data source server based on the data desensitization rule information. The data desensitization rules in the data desensitization rule template include: sensitive data types and desensitization algorithms used to desensitize them, etc. For example, a data desensitization rule in the data desensitization rule template is how to determine that sensitive data is an ID card number, and the desensitization algorithm used to desensitize the ID card number when the sensitive data type is determined to be the ID card number.
[0035] When performing a desensitization task, the desensitizing data processing module 14 obtains the data desensitization rules in the data desensitization rule template to analyze the original data, locates the sensitive information in the original data, determines the sensitive data type of the sensitive information and the corresponding desensitization algorithm, calls the determined desensitization algorithm to generate replacement information corresponding to the sensitive information and replaces it.
[0036] The data desensitization rule template can be saved in the database. When desensitizing, the data desensitization rule template and the desensitization algorithm package are loaded into the memory. The data desensitization rule template can be dynamically modified and set through the client device 4 to determine the desensitization algorithm used for desensitizing a certain type of desensitized data. The desensitization algorithm can be dynamically called by reflection. Calling the desensitization algorithm is actually calling the program function corresponding to the desensitization algorithm, such as the method corresponding to the desensitization algorithm in the relevant class in the jar package.
[0037] The JAVA reflection mechanism is in the running state. For any class, all the properties and methods of this class can be known. For any object, any of its methods and properties can be called. This function of dynamically obtaining information and dynamically calling object methods is called the reflection mechanism of the java language. The client device 4 uploads the desensitization algorithm update package to the desensitization execution server. The desensitization data processing module 14 obtains the desensitization algorithm update package according to the preset desensitization algorithm package name, and searches for the target class corresponding to the desensitization algorithm in the desensitization algorithm update package. The desensitization data processing module 14 uses the java reflection mechanism to obtain the new desensitization calculation target method and attribute corresponding to the desensitization algorithm in the target class, and calls the new desensitization calculation target method and attribute to generate replacement information corresponding to this sensitive information and replace it.
[0038] The information carried by the data desensitization instruction includes: connection information and authentication information of the source database, connection information and authentication information of the target database, etc. The connection information is the IP address and port information of the database, and the authentication information can be a user name and password. The source data acquisition module 15 establishes a source database connection with the source database in the data source server 2 according to the connection information and authentication information of the source database.
[0039] The sql query statement can be used to obtain the total number of data records to be read in the source database through the source database connection, set paging based on the total number, and generate a paging query statement, which contains the primary key value of the starting data to be read and the number of read data. The source data acquisition module 15 sends the paging query statement to the source database in turn, extracts the data in the source database by paging, and obtains the paging data.
[0040] The desensitized data processing module 14 performs desensitization operations on the paging data based on the data desensitization rules and generates paging desensitized data. The desensitized data storage module 16 establishes a target database connection with the target database in the target server 3 according to the connection information and authentication information of the target database, and sends the paging desensitized data to the target database for storage through the target database connection. The source database connection and the target database connection include: jdbc connection, ODBC connection, etc.
[0041] like Figure 5As shown, the desensitization execution server can obtain the original data from the source database or source data file in the data source server, and send the desensitized data to the target database or target data file in the target server for storage, thereby performing "non-landing desensitization". The source database and the target database can support a variety of databases, such as Oracle, IBM DB2, MSSQl SERVER, Mysql, Informix, Teradata, Sybase, etc., and can also support other relational databases. Both the source data file and the target data file are formatted files.
[0042] The source data acquisition module 15 takes out the source data from the relational database through JDBC, ODBC, etc., and can read in batches according to the corresponding methods of different databases. The source data acquisition module 15 sets the paging and blocking methods according to the different databases and the size and number of rows of the table. It can obtain data from the database by paging or blocking according to the system default optimal method. At the same time, it can also modify the default paging or blocking method according to the specific implementation environment and the provided service interface, which is flexible and convenient. The desensitized data storage module 16 puts the target data into the target database through JDBC, ODBC, etc., and performs the corresponding batch submission method according to the size of different databases and tables. The data is directly put into the target database after receiving the data desensitization request from the database. This process does not fall to the ground.
[0043] In one embodiment, the source data acquisition module 15 establishes a source data flow pipeline with the source database in the data source server 2. The data flow pipeline can be an input and output stream, and the source database can be a data warehouse or a distributed database. The source data acquisition module 15 will establish a source data flow pipeline according to the corresponding database read command, quickly obtain the source data flow of the database, save the process of frequent data query, and effectively improve the efficiency of database reading.
[0044] According to the database command sent by the source data acquisition module 15 to the source database, the source database extracts the original data from the source data file, encapsulates the original data into the original data object based on the preset pipeline data format, and writes the original data object into the source data flow pipeline. The source data acquisition module 15 reads the original data object from the source data flow pipeline. The desensitized data processing module 14 performs desensitization operations on the original data object based on the data desensitization rules and generates desensitized data.
[0045] The desensitized data storage module 16 establishes a target data flow pipeline with the target database in the target server. The data flow pipeline can be an input and output stream, and the target database is a data warehouse, a distributed database, etc. The desensitized data storage module 16 will establish a target data flow pipeline according to the corresponding database read command, and can quickly send data streams to the database. The desensitized data storage module 16 encapsulates the desensitized data into a desensitized data object according to the pipeline data format, and writes the desensitized data object into the target data flow pipeline. According to the database command sent by the source data acquisition module 15 to the source database, the target database obtains the desensitized data object from the target data flow pipeline, and stores the desensitized data in the desensitized data object in the target data file.
[0046] The source data stream extracted from the source data file by the source database is encapsulated as the original data object, and the desensitized data processing process is encapsulated as the desensitized data object. The original data object can write data into the pipeline, and the desensitized data object is stored in the target database in the form of pipeline flow without dropping. This pipeline flow method does not consume memory, so it saves memory space and realizes continuous processing without dropping data. This process is in batch mode, and does not require repeated query and insertion processes. There is no disk writing in this process.
[0047] Figure 6 : is a flow chart of an embodiment of a data desensitization method according to the present invention, as shown in Figure 6 As shown:
[0048] Step 601: The desensitization execution server receives a data desensitization instruction sent by a client device, and reads original data from a data source server and puts the data into a memory according to the data desensitization instruction.
[0049] Step 602: The desensitization execution server locates the sensitive information in the original data in the memory based on the preset data desensitization rules and generates replacement information corresponding to the sensitive information.
[0050] Step 603: The desensitization execution server replaces the sensitive information in the original data with the corresponding replacement information to generate desensitized data.
[0051] Step 604: the desensitizing execution server sends the desensitized data to the target server for storage.
[0052] In one embodiment, the client device establishes an HTTPs connection with the desensitization execution server. The client device sends a digital certificate request to the desensitization execution server, and the desensitization execution server sends a digital certificate corresponding to the client device to the client device via the HTTPs connection, wherein the digital certificate includes an encrypted public key.
[0053] The client device parses the digital certificate based on the TLS protocol and verifies whether the encryption public key is valid. If so, it generates a set of random numbers, encrypts the random numbers using the encryption public key, and sends the encrypted results of the random numbers to the desensitization execution server. The desensitization execution server decrypts the encrypted results using the encryption private key to obtain the random numbers. The client device and the desensitization execution server use the random numbers as shared keys for encrypted communication.
[0054] The client device uses a random number as a key, symmetrically encrypts the data desensitization instruction based on a preset symmetric encryption algorithm, and sends the encrypted data desensitization instruction to the desensitization execution server. The desensitization execution server uses a random number and decrypts the encrypted data desensitization instruction based on the symmetric encryption algorithm to obtain the data desensitization instruction.
[0055] In one embodiment, the information carried by the data desensitization instruction includes: sensitive data types, desensitization algorithms corresponding to the sensitive data types, etc. The desensitization execution server configures a data desensitization rule template corresponding to the data source server based on the data desensitization rule information, and the data desensitization rules in the data desensitization rule template include: sensitive data types and desensitization algorithms used to desensitize them.
[0056] When performing a desensitization task, the desensitizing data processing module obtains the data desensitization rules in the data desensitization rule template to analyze the original data, locates the sensitive information in the original data, determines the sensitive data type of the sensitive information and the corresponding desensitization algorithm, calls the determined desensitization algorithm to generate replacement information corresponding to the sensitive information and replaces it.
[0057] The client device uploads the desensitization algorithm update package to the desensitization execution server. The desensitization execution server obtains the desensitization algorithm update package according to the preset desensitization algorithm package name, and searches for the target class corresponding to the desensitization algorithm in the desensitization algorithm update package. The desensitization execution server uses the Java reflection mechanism to obtain the new desensitization calculation target method and attribute corresponding to the desensitization algorithm in the target class, calls the new desensitization calculation target method and attribute to generate replacement information corresponding to this sensitive information and replaces it.
[0058] The information carried by the data desensitization instruction includes: the connection information and authentication information of the source database, the connection information and authentication information of the target database. The desensitization execution server establishes a source database connection with the source database in the data source server based on the connection information and authentication information of the source database. The desensitization execution server obtains the total number of data records to be read in the source database through the source database connection, sets paging based on the total number, and generates a paging query statement, which contains the primary key value of the starting data to be read and the number of read data.
[0059] The desensitization execution server sends paging query statements to the source database in sequence, extracts data from the source database in pages, obtains paging data, performs desensitization operations on the paging data based on data desensitization rules, and generates paging desensitized data. The desensitization execution server establishes a target database connection with the target database in the target server based on the connection information and authentication information of the target database, and sends the paging desensitized data to the target database for storage through the target database connection.
[0060] In one embodiment, the desensitization execution server establishes a source data flow pipeline with the source database in the data source server. The source database extracts the original data from the source data file, and the source database encapsulates the original data into an original data object based on a preset pipeline data format, and writes the original data object into the source data flow pipeline. The desensitization execution server reads the original data object from the source data flow pipeline, performs a desensitization operation on the original data object based on the data desensitization rule, and generates desensitized data.
[0061] The desensitization execution server establishes a target data flow pipeline with the target database in the target server, encapsulates the desensitized data into a desensitized data object according to the pipeline data format, and writes the desensitized data object into the target data flow pipeline. The target database obtains the desensitized data object from the target data flow pipeline and stores the desensitized data in the desensitized data object in the target data file.
[0062] In the data desensitization system and method in the above-mentioned embodiments, the desensitization execution server reads the original data from the data source server, replaces the sensitive information in the original data with the corresponding replacement information to generate desensitized data and sends it to the target server for storage, and adopts JDBC, ODBC and pipeline stream and other methods to obtain the original data and store the target data. No temporary files need to be generated during the desensitization process, and the desensitization execution server and the client communicate using encrypted transmission method, which can perform "non-landing data desensitization", and can ensure the safe use of customer production data in non-production environments, prevent the leakage of sensitive information, ensure data security, improve the efficiency of desensitization operations, and meet the company's requirements for information security.
[0063] The method, apparatus and device of the present invention may be implemented in many ways. For example, the method, apparatus and device of the present invention may be implemented by software, hardware, firmware or any combination of software, hardware and firmware. The above sequence of steps for the method is for illustration only, and the steps of the method of the present invention are not limited to the sequence specifically described above unless otherwise specified. In addition, in some embodiments, the present invention may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present invention. Therefore, the present invention also covers a recording medium storing a program for executing the method according to the present invention.
[0064] The description of the present invention is given for the purpose of illustration and description, and is not intended to be exhaustive or to limit the invention to the disclosed form. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present invention and to enable those of ordinary skill in the art to understand the present invention and thereby design various embodiments with various modifications suitable for particular uses.
[0065] An embodiment of the present invention provides A1, a data desensitizing system, comprising: a data source server, for storing original data; a target server, for storing desensitized data; a desensitizing execution server, for receiving a data desensitizing instruction sent by a client device, reading original data from the data source server according to the data desensitizing instruction and putting it into a memory, performing a desensitizing operation in the memory to generate desensitized data, and sending the desensitized data to the target server for storage; wherein the desensitizing operation comprises: locating sensitive information in the original data based on preset data desensitizing rules and generating replacement information corresponding to the sensitive information, replacing the sensitive information in the original data with the corresponding replacement information to generate the desensitized data.
[0066] A2. A system as described in A1, wherein the client device includes: a connection establishment module and a first encryption and decryption module; the desensitizing execution server includes: a certificate management module and a second encryption and decryption module; the connection establishment module is used to establish an HTTPs connection with the desensitizing execution server; the first encryption and decryption module is used to send a digital certificate request to the desensitizing execution server; the certificate management module is used to send the digital certificate corresponding to the client device to the client device through the HTTPs connection, wherein the digital certificate contains an encrypted public key; the first encryption and decryption module is also used to parse the digital certificate based on the TLS protocol and verify whether the encrypted public key is valid. If so, a set of random numbers is generated, the random numbers are encrypting the random numbers using the encrypted public key, and the encrypted results of the random numbers are sent to the desensitizing execution server; the second encryption and decryption module is used to decrypt the encrypted results using the encrypted private key to obtain the random numbers; wherein the client device and the desensitizing execution server use the random numbers as shared keys for encrypted communication.
[0067] A3. A system as described in A2, wherein the client device includes: an instruction sending module; the first encryption and decryption module is also used to use the random number as a key to symmetrically encrypt the data desensitization instruction based on a preset symmetric encryption algorithm; the instruction sending module is used to send the encrypted data desensitization instruction to the desensitization execution server; the second encryption and decryption module is also used to use the random number and decrypt the encrypted data desensitization instruction based on the symmetric encryption algorithm to obtain the data desensitization instruction.
[0068] A4. A system as described in A2, wherein the data desensitization rule information carried by the data desensitization instruction includes: sensitive data types and desensitization algorithms corresponding to the sensitive data types; the desensitization execution server includes: a desensitization rule establishment module, which is used to configure a data desensitization rule template corresponding to the data source server based on the data desensitization rule information, wherein the data desensitization rules in the data desensitization rule template include: sensitive data types and desensitization algorithms used for desensitizing the sensitive data types; a desensitized data processing module, which is used to obtain the data desensitization rules in the data desensitization rule template to analyze the original data when executing the desensitization task, locate the sensitive information in the original data, determine the sensitive data type and the corresponding desensitization algorithm of this sensitive information, call the determined desensitization algorithm to generate replacement information corresponding to this sensitive information and replace it.
[0069] A5. A system as described in A4, wherein the client device uploads the desensitizing algorithm update package to the desensitizing execution server; the desensitizing data processing module is further used to obtain the desensitizing algorithm update package according to a preset desensitizing algorithm package name, and search for a target class corresponding to the desensitizing algorithm in the desensitizing algorithm update package; utilize the Java reflection mechanism to obtain a new desensitizing calculation target method and properties corresponding to the desensitizing algorithm in the target class, call the new desensitizing calculation target method and properties to generate replacement information corresponding to this sensitive information and replace it.
[0070] A6. A system as described in A5, wherein the information carried by the data desensitization instruction includes: connection information and authentication information of the source database, connection information and authentication information of the target database; the desensitization execution server includes: a source data acquisition module, which is used to establish a source database connection with the source database in the data source server according to the connection information and authentication information of the source database; obtain the total number of data records to be read in the source database through the source database connection; set paging based on the total number, and generate a paging query statement, wherein the paging query statement contains the primary key value of the starting data to be read and the amount of data to be read; and sequentially send the source data to the target database. The database sends a paging query statement, extracts the data in the source database in pages, and obtains the paging data; the desensitized data processing module is also used to perform a desensitization operation on the paging data based on the data desensitization rule and generate paging desensitized data; the desensitization execution server includes: a desensitized data storage module, which is used to establish a target database connection with the target database in the target server according to the connection information and authentication information of the target database, and send the paging desensitized data to the target database for storage through the target database connection; wherein, the source database connection and the target database connection include: jdbc connection, ODBC connection.
[0071] A7. A system as described in A6, wherein the source data acquisition module is further used to establish a source data flow pipeline with the source database in the data source server, wherein the source database extracts original data from the source data file, and the source database encapsulates the original data into an original data object based on a preset pipeline data format, and writes the original data object into the source data flow pipeline; the source data acquisition module is further used to read the original data object from the source data flow pipeline; the desensitized data processing module is further used to perform a desensitization operation on the original data object based on the data desensitization rule and generate desensitized data; the desensitized data storage module is used to establish a target data flow pipeline with the target database in the target server, encapsulate the desensitized data into a desensitized data object according to the pipeline data format, and write the desensitized data object into the target data flow pipeline; the target database obtains the desensitized data object from the target data flow pipeline, and stores the desensitized data in the desensitized data object in the target data file.
[0072] B8. A data desensitizing method, comprising: a desensitizing execution server receives a data desensitizing instruction sent by a client device, and reads original data from a data source server and puts it into a memory according to the data desensitizing instruction; the desensitizing execution server locates sensitive information in the original data in the memory based on preset data desensitizing rules and generates replacement information corresponding to the sensitive information, and replaces the sensitive information in the original data with the corresponding replacement information to generate the desensitized data; the desensitizing execution server sends the desensitized data to the target server for storage.
[0073] B9. A method as described in B8, wherein the client device establishes an HTTPs connection with the desensitizing execution server; the client device sends a digital certificate request to the desensitizing execution server; the desensitizing execution server sends the digital certificate corresponding to the client device to the client device through the HTTPs connection, wherein the digital certificate contains an encrypted public key; the client device parses the digital certificate based on the TLS protocol and verifies whether the encrypted public key is valid, and if so, generates a set of random numbers, encrypts the random numbers using the encrypted public key, and sends the encrypted results of the random numbers to the desensitizing execution server; the desensitizing execution server decrypts the encrypted results using the encrypted private key to obtain the random numbers; the client device and the desensitizing execution server use the random numbers as shared keys for encrypted communication.
[0074] B10. A method as described in B9, wherein the client device uses the random number as a key, symmetrically encrypts the data desensitization instruction based on a preset symmetric encryption algorithm, and sends the encrypted data desensitization instruction to the desensitization execution server; the desensitization execution server uses the random number and decrypts the encrypted data desensitization instruction based on the symmetric encryption algorithm to obtain the data desensitization instruction.
[0075] B11. A method as described in B9, wherein the data desensitization rule information carried by the data desensitization instruction includes: sensitive data types and desensitization algorithms corresponding to the sensitive data types; the desensitization execution server configures a data desensitization rule template corresponding to the data source server based on the data desensitization rule information, wherein the data desensitization rules in the data desensitization rule template include: sensitive data types and desensitization algorithms used for desensitizing the sensitive data types; when executing the desensitization task, the desensitized data processing module obtains the data desensitization rules in the data desensitization rule template to analyze the original data, locates the sensitive information in the original data, determines the sensitive data type and the corresponding desensitization algorithm of the sensitive information, calls the determined desensitization algorithm to generate replacement information corresponding to the sensitive information and replaces it.
[0076] B12. A method as described in B11, wherein the client device uploads a desensitizing algorithm update package to the desensitizing execution server; the desensitizing execution server obtains the desensitizing algorithm update package according to a preset desensitizing algorithm package name, and searches for a target class corresponding to the desensitizing algorithm in the desensitizing algorithm update package; the desensitizing execution server utilizes a Java reflection mechanism to obtain a new desensitizing calculation target method and properties corresponding to the desensitizing algorithm in the target class, calls the new desensitizing calculation target method and properties to generate replacement information corresponding to the sensitive information, and replaces the information.
[0077] B13. A method as described in B12, wherein the information carried by the data desensitization instruction includes: connection information and authentication information of the source database, connection information and authentication information of the target database; the desensitization execution server establishes a source database connection with the source database in the data source server according to the connection information and authentication information of the source database; the desensitization execution server obtains the total number of data records to be read in the source database through the source database connection; sets paging based on the total number, and generates a paging query statement, wherein the paging query statement contains the primary key value of the starting data to be read and the number of read data; the desensitization execution server sends paging query statements to the source database in turn, extracts the data in the source database by paging, obtains paging data, performs desensitization operations on the paging data based on the data desensitization rules, and generates paging desensitized data; the desensitization execution server establishes a target database connection with the target database in the target server according to the connection information and authentication information of the target database, and sends the paging desensitized data to the target database for storage through the target database connection; wherein the source database connection and the target database connection include: jdbc connection and ODBC connection.
[0078] B14. A method as described in B13, wherein the desensitizing execution server establishes a source data flow pipeline with the source database in the data source server; the source database extracts original data from the source data file, and the source database encapsulates the original data into an original data object based on a preset pipeline data format, and writes the original data object into the source data flow pipeline; the desensitizing execution server reads the original data object from the source data flow pipeline, performs a desensitizing operation on the original data object based on the data desensitization rule and generates desensitized data; the desensitizing execution server establishes a target data flow pipeline with the target database in the target server, encapsulates the desensitized data into a desensitized data object according to the pipeline data format, and writes the desensitized data object into the target data flow pipeline; the target database obtains the desensitized data object from the target data flow pipeline, and stores the desensitized data in the desensitized data object in the target data file.
Claims
1. A data desensitization system, characterized in that: include: Data source server, used to store original data; Target server, used to store desensitized data; A desensitization execution server is used to receive a data desensitization instruction sent by a client device, read the original data from the data source server and put it into a memory according to the data desensitization instruction, perform a desensitization operation in the memory to generate desensitized data, and send the desensitized data to the target server for storage; wherein the desensitization operation includes: locating the sensitive information in the original data based on a preset data desensitization rule and generating replacement information corresponding to the sensitive information, and replacing the sensitive information in the original data with the corresponding replacement information to generate the desensitized data; The desensitization execution server includes: a source data acquisition module, a desensitization data processing module, and a desensitization data storage module; The source data acquisition module is used to establish a source data flow pipeline with a source database in the data source server, wherein the source database extracts original data from a source data file, and the source database encapsulates the original data into a raw data object based on a preset pipeline data format, and writes the raw data object into the source data flow pipeline; The source data acquisition module is further used to read the original data object from the source data flow pipeline; The desensitized data processing module is used to perform a desensitization operation on the original data object based on the data desensitization rule and generate desensitized data; The desensitized data storage module is used to establish a target data flow pipeline with the target database in the target server, encapsulate the desensitized data into a desensitized data object according to the pipeline data format, and write the desensitized data object into the target data flow pipeline; The target database obtains the desensitized data object from the target data flow pipeline, and stores the desensitized data in the desensitized data object in the target data file.
2. The system according to claim 1, characterized in that The client device includes: a connection establishment module and a first encryption and decryption module; the desensitization execution server includes: a certificate management module and a second encryption and decryption module; The connection establishment module is used to establish an HTTPs connection with the desensitization execution server; The first encryption and decryption module is used to send a digital certificate request to the desensitization execution server; The certificate management module is used to send the digital certificate corresponding to the client device to the client device through the HTTPs connection, wherein the digital certificate includes an encrypted public key; The first encryption and decryption module is further used to parse the digital certificate based on the TLS protocol and verify whether the encryption public key is valid. If so, a set of random numbers is generated, the random numbers are encrypting using the encryption public key, and the encryption result of the random numbers is sent to the desensitization execution server; The second encryption and decryption module is used to decrypt the encryption result using the encryption private key to obtain the random number; The client device and the desensitization execution server use the random number as a shared key for encrypted communication.
3. The system according to claim 2, characterized in that The client device comprises: an instruction sending module; The first encryption and decryption module is further used to use the random number as a key to symmetrically encrypt the data desensitization instruction based on a preset symmetric encryption algorithm; The instruction sending module is used to send the encrypted data desensitization instruction to the desensitization execution server; The second encryption and decryption module is further used to use the random number and decrypt the encrypted data desensitization instruction based on the symmetric encryption algorithm to obtain the data desensitization instruction.
4. The system according to claim 2, characterized in that The data desensitization rule information carried by the data desensitization instruction includes: sensitive data types and desensitization algorithms corresponding to the sensitive data types; The desensitization execution server includes: A desensitization rule establishment module, configured to configure a data desensitization rule template corresponding to the data source server based on the data desensitization rule information, wherein the data desensitization rule in the data desensitization rule template includes: sensitive data types and desensitization algorithms used for desensitizing the sensitive data types; The desensitized data processing module is used to obtain the data desensitization rules in the data desensitization rule template to analyze the original data when performing a desensitization task, locate the sensitive information in the original data, determine the sensitive data type of the sensitive information and the corresponding desensitization algorithm, call the determined desensitization algorithm to generate replacement information corresponding to the sensitive information and replace it.
5. The system according to claim 4, characterized in that The client device uploads the desensitization algorithm update package to the desensitization execution server; The desensitizing data processing module is also used to obtain the desensitizing algorithm update package according to the preset desensitizing algorithm package name, and search for the target class corresponding to the desensitizing algorithm in the desensitizing algorithm update package; utilize the Java reflection mechanism to obtain the new desensitizing calculation target method and attributes corresponding to the desensitizing algorithm in the target class, call the new desensitizing calculation target method and attributes to generate replacement information corresponding to this sensitive information and replace it.
6. The system according to claim 5, characterized in that The information carried by the data desensitization instruction includes: connection information and authentication information of the source database, connection information and authentication information of the target database; The source data acquisition module is used to establish a source database connection with the source database in the data source server according to the connection information and authentication information of the source database; obtain the total number of data records to be read in the source database through the source database connection; set paging based on the total number, and generate a paging query statement, wherein the paging query statement contains the primary key value of the starting data to be read and the number of read data; send the paging query statements to the source database in sequence, extract the data in the source database by paging, and obtain paging data; The desensitized data processing module is further used to perform a desensitization operation on the paging data based on the data desensitization rule and generate paging desensitized data; The desensitized data storage module is used to establish a target database connection with the target database in the target server according to the connection information and authentication information of the target database, and send the paging desensitized data to the target database for storage through the target database connection; The source database connection and the target database connection include: jdbc connection and ODBC connection.
7. A data desensitization method, characterized in that: include: The desensitization execution server receives the data desensitization instruction sent by the client device, and reads the original data from the data source server and puts it into the memory according to the data desensitization instruction; The desensitization execution server locates the sensitive information in the original data based on the preset data desensitization rule in the memory and generates replacement information corresponding to the sensitive information, and replaces the sensitive information in the original data with the corresponding replacement information to generate the desensitized data; The desensitization execution server sends the desensitized data to the target server for storage; The desensitization execution server establishes a source data flow pipeline with the source database in the data source server; the source database extracts original data from the source data file, and the source database encapsulates the original data into an original data object based on a preset pipeline data format, and writes the original data object into the source data flow pipeline; The desensitization execution server reads the original data object from the source data flow pipeline, performs a desensitization operation on the original data object based on the data desensitization rule and generates desensitized data; the desensitization execution server establishes a target data flow pipeline with the target database in the target server, encapsulates the desensitized data into a desensitized data object according to the pipeline data format, and writes the desensitized data object into the target data flow pipeline; The target database obtains the desensitized data object from the target data flow pipeline, and stores the desensitized data in the desensitized data object in the target data file.
8. The method according to claim 7, characterized in that The client device establishes an HTTPs connection with the desensitization execution server; The client device sends a digital certificate request to the desensitization execution server; The desensitization execution server sends the digital certificate corresponding to the client device to the client device through the HTTPs connection, wherein the digital certificate includes an encrypted public key; The client device parses the digital certificate based on the TLS protocol and verifies whether the encryption public key is valid. If so, a set of random numbers is generated, the random numbers are encrypting using the encryption public key, and the encryption result of the random numbers is sent to the desensitization execution server; The desensitization execution server decrypts the encryption result using the encryption private key to obtain the random number; The client device and the desensitization execution server use the random number as a shared key for encrypted communication.
9. The method according to claim 8, characterized in that The client device uses the random number as a key, symmetrically encrypts the data desensitization instruction based on a preset symmetric encryption algorithm, and sends the encrypted data desensitization instruction to the desensitization execution server; The desensitizing execution server uses the random number and decrypts the encrypted data desensitizing instruction based on the symmetric encryption algorithm to obtain the data desensitizing instruction.
10. The method according to claim 8, characterized in that The data desensitization rule information carried by the data desensitization instruction includes: sensitive data types and desensitization algorithms corresponding to the sensitive data types; The desensitization execution server configures a data desensitization rule template corresponding to the data source server based on the data desensitization rule information, wherein the data desensitization rule in the data desensitization rule template includes: sensitive data types and desensitization algorithms used for desensitizing the data types; When performing a desensitization task, the desensitizing data processing module obtains the data desensitization rules in the data desensitization rule template to analyze the original data, locates the sensitive information in the original data, determines the sensitive data type of the sensitive information and the corresponding desensitization algorithm, calls the determined desensitization algorithm to generate replacement information corresponding to the sensitive information and replaces it.
11. The method according to claim 10, characterized in that The client device uploads the desensitization algorithm update package to the desensitization execution server; The desensitization execution server obtains the desensitization algorithm update package according to a preset desensitization algorithm package name, and searches for a target class corresponding to the desensitization algorithm in the desensitization algorithm update package; The desensitizing execution server uses the Java reflection mechanism to obtain new desensitizing calculation target methods and properties corresponding to the desensitizing algorithm in the target class, calls the new desensitizing calculation target methods and properties to generate replacement information corresponding to this sensitive information and replaces it.
12. The method according to claim 11, characterized in that The information carried by the data desensitization instruction includes: connection information and authentication information of the source database, connection information and authentication information of the target database; The desensitization execution server establishes a source database connection with the source database in the data source server according to the connection information and authentication information of the source database; The desensitizing execution server obtains the total number of data records to be read in the source database through the source database connection; sets paging based on the total number and generates a paging query statement, wherein the paging query statement contains the primary key value of the starting data to be read and the number of read data; The desensitization execution server sends paging query statements to the source database in sequence, extracts data from the source database in pages, obtains paging data, performs desensitization operations on the paging data based on the data desensitization rules, and generates paging desensitized data; The desensitization execution server establishes a target database connection with the target database in the target server according to the connection information and authentication information of the target database, and sends the paging desensitized data to the target database for storage through the target database connection; The source database connection and the target database connection include: jdbc connection and ODBC connection.
Citation Information
Patent Citations
Data encapsulation method and device
CN105550604A
Data desensitization method and data desensitization device
CN106407843A
Data processing method and apparatus
CN106548085A
Data desensitization method and device
CN107145799A
Desensitizing database information
US20080270370A1
