Data security vulnerability repair method, device, equipment and storage medium

By receiving security vulnerability repair requests from the database system, performing identity authentication and encrypting sensitive information, the problem of security vulnerabilities in the database system during data transmission is solved, and the security of data transmission and the effectiveness of identity authentication are improved.

CN113849797BActive Publication Date: 2024-09-06SHENZHEN DIGITAL CERTIFICATE AUTHORITY CENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111152065.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-29
Publication Date
2024-09-06
Estimated Expiration
2041-09-29

AI Technical Summary

Technical Problem

Existing database systems have security vulnerabilities in the data transmission process. In particular, they cannot provide effective protection against attackers who forge the identity information of the requester or storage end, resulting in sensitive data being leaked during the transmission process and insufficient data transmission security.

Method used

By receiving the security vulnerability repair request from the target terminal, a digital certificate is issued for identity authentication, a sensitive information scanning script is generated, and the sensitive information is encrypted using a preset encryption algorithm to repair the sensitive information leakage security vulnerability of the data source.

Benefits of technology

It improves the security during the data transmission process, prevents the leakage of sensitive data, ensures the identity authenticity and data integrity of the data source, and enhances the protection ability against attackers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113849797B
    Figure CN113849797B
Patent Text Reader

Abstract

The present invention relates to the field of artificial intelligence, and discloses a method, device, equipment and storage medium for repairing data security vulnerabilities, which are used to repair data security vulnerabilities and improve the security during data transmission. The method for repairing data security vulnerabilities includes: receiving a security vulnerability repair request for a data source sent by a target terminal, and issuing a digital certificate to the target terminal; receiving an identity authentication ciphertext returned by the target terminal based on the digital certificate, and decrypting the identity authentication ciphertext through a preset private key to obtain an identity decryption result; generating a sensitive information scanning script according to a preset sensitive information detection mechanism; scanning the data source through the sensitive information scanning script to obtain sensitive information to be encrypted; and performing encryption operations on the sensitive information to be encrypted based on a preset encryption algorithm to repair the security vulnerability of the sensitive information leakage of the data source. In addition, the present invention also relates to blockchain technology, and digital certificates can be stored in blockchain nodes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence, and in particular to a method, device, equipment and storage medium for repairing data security vulnerabilities. Background Art

[0002] The progress and development of computer network technology has led to the increasing application of network databases in various industries. As a result, the size of databases and the amount of data stored are gradually increasing, which not only changes the original structure of databases, but also makes the openness and sharing of network databases constantly enhanced. However, it is under such development that network databases have become the main platform for storing data and the main target of hacker attacks. However, network users have not realized the importance of strengthening the security protection of network databases. In recent years, the number of incidents of losses caused by the leakage of database data has gradually increased. Therefore, it is particularly important to improve security through network database encryption technology.

[0003] The existing database system provides its own encryption mechanism, and implements storage encryption in the database kernel. This encryption method can prevent sensitive data leakage caused by disk loss and file duplication. However, for attackers who can forge the identity information of the requester or storage end, the information is open and has no protection capability. Sensitive data is easily leaked during transmission, and the security of data transmission cannot be guaranteed. There are data security loopholes and low data transmission security. Summary of the invention

[0004] The present invention provides a method, device, equipment and storage medium for repairing data security holes, which are used to repair data security holes and improve the security during data transmission.

[0005] A first aspect of the present invention provides a method for repairing a data security vulnerability, comprising:

[0006] Receiving a security vulnerability repair request for a data source sent by a target terminal, and issuing a digital certificate to the target terminal according to the security vulnerability repair request, wherein the digital certificate includes a digital signature, a public key, and certificate information;

[0007] Receiving the identity authentication ciphertext returned by the target terminal based on the digital certificate, and decrypting the identity authentication ciphertext by using a preset private key to obtain an identity decryption result;

[0008] Obtaining the identity authentication information of the target terminal through the identity decryption result, and generating a sensitive information scanning script for the data source based on the identity authentication information and in accordance with a preset sensitive information detection mechanism;

[0009] Scan the data source using the sensitive information scanning script to obtain the sensitive information to be encrypted;

[0010] Based on a preset encryption algorithm, an encryption operation is performed on the sensitive information to be encrypted to repair the security vulnerability of the sensitive information leakage of the data source.

[0011] Optionally, in a first implementation manner of the first aspect of the present invention, the receiving a security vulnerability repair request for a data source sent by a target terminal, and issuing a digital certificate to the target terminal according to the security vulnerability repair request, wherein the digital certificate includes a digital signature, a public key, and certificate information, including:

[0012] Receiving a security vulnerability repair request for a data source sent by a target terminal, wherein the target terminal and the data source adopt a unified encryption protocol;

[0013] Read the certificate information of the encryption protocol, and use a preset hash function to perform a digest calculation on the certificate information to obtain the summary information corresponding to the digital certificate;

[0014] Encrypting the summary information with a preset private key to obtain a digital signature, reading a public key corresponding to the certificate information, and generating a digital certificate by combining the public key corresponding to the certificate information, the certificate information and the digital signature;

[0015] The digital certificate is sent to the target terminal.

[0016] Optionally, in a second implementation manner of the first aspect of the present invention, the receiving the identity authentication ciphertext returned by the target terminal based on the digital certificate, and decrypting the identity authentication ciphertext by using a preset private key to obtain an identity decryption result includes:

[0017] Receiving an identity authentication ciphertext returned by the target terminal based on the digital certificate, the identity authentication ciphertext being used to indicate the identity authentication ciphertext encrypted by the target terminal using a public key of a unified encryption protocol to encrypt the digital certificate;

[0018] The identity authentication ciphertext is decrypted by using a preset private key to obtain an identity decryption result, which includes the decrypted signature information and certificate information.

[0019] Optionally, in a third implementation manner of the first aspect of the present invention, obtaining the identity authentication information of the target terminal through the identity decryption result, and generating a sensitive information scanning script for the data source based on the identity authentication information and according to a preset sensitive information detection mechanism, includes:

[0020] Obtaining target information of the identity decryption result and digital certificate information of the digital certificate, and determining whether the target information is consistent with the digital certificate information, wherein the target information includes decrypted signature information and certificate information;

[0021] If the decrypted signature information and certificate information are consistent with the digital signature and certificate information in the digital certificate, it is determined that the identity information returned by the target terminal is legal, and the identity authentication information of the target terminal is obtained;

[0022] Based on the identity authentication information of the target terminal, read the sensitive field name in multiple naming forms through a preset sensitive information detection mechanism;

[0023] The database type of the data source is identified to obtain a target database type, and a sensitive information scanning script is generated based on the sensitive field names in multiple naming forms according to the target database type.

[0024] Optionally, in a fourth implementation manner of the first aspect of the present invention, scanning the data source by using the sensitive information scanning script to obtain the sensitive information to be encrypted includes:

[0025] Identify a non-functional database table in the data source, and filter the data source through the non-functional database table to obtain a functional database table in the data source, wherein the non-functional database table is used to indicate a database table automatically created by a database management system corresponding to the data source;

[0026] The sensitive information scanning script is executed in the database management system corresponding to the data source, and sensitive information detection is performed on the functional database table in the data source to obtain the sensitive information to be encrypted, wherein the sensitive information to be encrypted includes the field information to be encrypted and the annotation information to be encrypted.

[0027] Optionally, in a fifth implementation of the first aspect of the present invention, the performing an encryption operation on the sensitive information to be encrypted based on a preset encryption algorithm to repair the security vulnerability of the sensitive information leakage of the data source includes:

[0028] Generate a key pair based on a key generation function in a preset fully homomorphic encryption algorithm, wherein the key pair includes a public key and a private key, and the fully homomorphic encryption algorithm includes a key generation function, a multiplication homomorphic function, an addition homomorphic function, and an encryption function;

[0029] Performing homomorphic operations on the sensitive information to be encrypted by using the multiplication homomorphic function and the addition homomorphic function to obtain an operation result;

[0030] Based on the public key in the key pair, the operation result is encrypted through the encryption function to obtain an encrypted result, so as to repair the security vulnerability of the sensitive information leakage of the data source.

[0031] Optionally, in a sixth implementation of the first aspect of the present invention, after performing an encryption operation on the operation result through the encryption function based on the public key in the key pair to obtain an encrypted result to repair the security vulnerability of sensitive information leakage of the data source, the method for repairing the data security vulnerability further includes:

[0032] Encrypting the key pair to obtain an encrypted key pair, and backing up the encrypted key pair to a preset key management system;

[0033] When receiving a query request for sensitive information, sending a key acquisition request to the key management system, and receiving a decrypted key pair sent by the key management system;

[0034] The decrypted key pair is used to perform a ciphertext query on the data source based on a preset ciphertext query algorithm to obtain a ciphertext query result.

[0035] A second aspect of the present invention provides a device for repairing a data security vulnerability, comprising:

[0036] A first authentication module is used to receive a security vulnerability repair request for a data source sent by a target terminal, and issue a digital certificate to the target terminal according to the security vulnerability repair request, wherein the digital certificate includes a digital signature, a public key and certificate information;

[0037] A second authentication module is used to receive the identity authentication ciphertext returned by the target terminal based on the digital certificate, and decrypt the identity authentication ciphertext by using a preset private key to obtain an identity decryption result;

[0038] A script generation module, used to obtain the identity authentication information of the target terminal through the identity decryption result, and generate a sensitive information scanning script for the data source based on the identity authentication information and in accordance with a preset sensitive information detection mechanism;

[0039] An information scanning module, used to scan the data source through the sensitive information scanning script to obtain the sensitive information to be encrypted;

[0040] The encryption operation module is used to perform encryption operation on the sensitive information to be encrypted based on a preset encryption algorithm to repair the security vulnerability of the sensitive information leakage of the data source.

[0041] Optionally, in a first implementation manner of the second aspect of the present invention, the first authentication module is specifically used to:

[0042] Receiving a security vulnerability repair request for a data source sent by a target terminal, wherein the target terminal and the data source adopt a unified encryption protocol;

[0043] Read the certificate information of the encryption protocol, and use a preset hash function to perform a digest calculation on the certificate information to obtain the summary information corresponding to the digital certificate;

[0044] Encrypting the summary information with a preset private key to obtain a digital signature, reading a public key corresponding to the certificate information, and generating a digital certificate by combining the public key corresponding to the certificate information, the certificate information and the digital signature;

[0045] The digital certificate is sent to the target terminal.

[0046] Optionally, in a second implementation of the second aspect of the present invention, the second authentication module is specifically used to:

[0047] Receiving an identity authentication ciphertext returned by the target terminal based on the digital certificate, the identity authentication ciphertext being used to indicate the identity authentication ciphertext encrypted by the target terminal using a public key of a unified encryption protocol to encrypt the digital certificate;

[0048] The identity authentication ciphertext is decrypted by using a preset private key to obtain an identity decryption result, which includes the decrypted signature information and certificate information.

[0049] Optionally, in a third implementation of the second aspect of the present invention, the script generation module is specifically used to:

[0050] Obtaining target information of the identity decryption result and digital certificate information of the digital certificate, and determining whether the target information is consistent with the digital certificate information, wherein the target information includes decrypted signature information and certificate information;

[0051] If the decrypted signature information and certificate information are consistent with the digital signature and certificate information in the digital certificate, it is determined that the identity information returned by the target terminal is legal, and the identity authentication information of the target terminal is obtained;

[0052] Based on the identity authentication information of the target terminal, read the sensitive field name in multiple naming forms through a preset sensitive information detection mechanism;

[0053] The database type of the data source is identified to obtain a target database type, and a sensitive information scanning script is generated based on the sensitive field names in multiple naming forms according to the target database type.

[0054] Optionally, in a fourth implementation of the second aspect of the present invention, the information scanning module is specifically used to:

[0055] Identify a non-functional database table in the data source, and filter the data source through the non-functional database table to obtain a functional database table in the data source, wherein the non-functional database table is used to indicate a database table automatically created by a database management system corresponding to the data source;

[0056] The sensitive information scanning script is executed in the database management system corresponding to the data source, and sensitive information detection is performed on the functional database table in the data source to obtain the sensitive information to be encrypted, wherein the sensitive information to be encrypted includes the field information to be encrypted and the annotation information to be encrypted.

[0057] Optionally, in a fifth implementation of the second aspect of the present invention, the encryption operation module is specifically used to:

[0058] Generate a key pair based on a key generation function in a preset fully homomorphic encryption algorithm, wherein the key pair includes a public key and a private key, and the fully homomorphic encryption algorithm includes a key generation function, a multiplication homomorphic function, an addition homomorphic function, and an encryption function;

[0059] Performing homomorphic operations on the sensitive information to be encrypted by using the multiplication homomorphic function and the addition homomorphic function to obtain an operation result;

[0060] Based on the public key in the key pair, the operation result is encrypted through the encryption function to obtain an encrypted result, so as to repair the security vulnerability of the sensitive information leakage of the data source.

[0061] Optionally, in a sixth implementation of the second aspect of the present invention, the data security vulnerability repairing device further includes:

[0062] A key backup module, used to encrypt the key pair to obtain an encrypted key pair, and back up the encrypted key pair to a preset key management system;

[0063] A key acquisition module, configured to, when receiving a query request for sensitive information, send a key acquisition request to the key management system and receive a decrypted key pair sent by the key management system;

[0064] The ciphertext query module is used to perform a ciphertext query on the data source based on a preset ciphertext query algorithm using a decrypted key pair to obtain a ciphertext query result.

[0065] The third aspect of the present invention provides a data security vulnerability repairing device, comprising: a memory and at least one processor, wherein the memory stores a computer program; the at least one processor calls the computer program in the memory so that the data security vulnerability repairing device executes the above-mentioned data security vulnerability repairing method.

[0066] A fourth aspect of the present invention provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the above-mentioned method for repairing data security vulnerabilities.

[0067] In the technical solution provided by the present invention, a security vulnerability repair request for a data source sent by a target terminal is received, and according to the security vulnerability repair request, a digital certificate is issued to the target terminal, the digital certificate including a digital signature, a public key and certificate information; an identity authentication ciphertext returned by the target terminal based on the digital certificate is received, and the identity authentication ciphertext is decrypted by a preset private key to obtain an identity decryption result; the identity authentication information of the target terminal is obtained through the identity decryption result, and based on the identity authentication information, a sensitive information scanning script of the data source is generated according to a preset sensitive information detection mechanism; the data source is scanned by the sensitive information scanning script to obtain sensitive information to be encrypted; based on a preset encryption algorithm, an encryption operation is performed on the sensitive information to be encrypted to repair the security vulnerability of sensitive information leakage of the data source. In an embodiment of the present invention, in order to improve the security of sensitive information during transmission, the server performs identity authentication on the target terminal and the data source through a digital certificate. After the authentication is passed, a sensitive information scanning script is generated through a preset sensitive information detection mechanism, and the scanned sensitive information to be encrypted is encrypted through a preset encryption algorithm, thereby repairing the sensitive information leakage security vulnerability in the data source. The present invention can repair data security vulnerabilities and improve the security during data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 A schematic diagram of an embodiment of a method for repairing a data security vulnerability in an embodiment of the present invention;

[0069] Figure 2 A schematic diagram of another embodiment of a method for repairing a data security vulnerability in an embodiment of the present invention;

[0070] Figure 3 A schematic diagram of an embodiment of a device for repairing a data security vulnerability in an embodiment of the present invention;

[0071] Figure 4 A schematic diagram of another embodiment of a device for repairing a data security vulnerability in an embodiment of the present invention;

[0072] Figure 5 A schematic diagram of an embodiment of a device for repairing a data security vulnerability in an embodiment of the present invention. DETAILED DESCRIPTION

[0073] The embodiments of the present invention provide a method, device, equipment and storage medium for repairing data security vulnerabilities, which are used to repair data security vulnerabilities and improve the security during data transmission.

[0074] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0075] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0076] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0077] The server can be a stand-alone server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.

[0078] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 , an embodiment of a method for repairing a data security vulnerability in an embodiment of the present invention includes:

[0079] 101. Receive a security vulnerability repair request for a data source sent by a target terminal, and issue a digital certificate to the target terminal according to the security vulnerability repair request. The digital certificate includes a digital signature, a public key, and certificate information;

[0080] It is understandable that the execution subject of the present invention may be a device for repairing a data security vulnerability, or may be a terminal or a server, which is not specifically limited herein. The embodiment of the present invention is described by taking a server as the execution subject as an example.

[0081] In this embodiment, in order to repair data security vulnerabilities that pose a risk of sensitive information leakage, the server performs identity authentication on the data source end, and the server issues a digital certificate in accordance with a unified encryption protocol with the target terminal, wherein the unified encryption protocol includes, but is not limited to, secure sockets layer (SSL) and transport layer security (TLS). Before the server receives a security vulnerability repair request for the data source sent by the target terminal, it also applies for a digital certificate from a trusted digital certificate authority (CA). The CA verifies the authenticity of the information provided by the applicant through various means, such as whether the organization exists, whether the enterprise is legal, whether it owns the domain name, etc. If the applicant's information is approved, the CA will issue a certification document, i.e., a digital certificate, to the applicant.

[0082] In this embodiment, the digital certificate includes: a digital signature, a public key and certificate information, wherein the certificate information includes: information of the digital certificate issuing authority CA, organizational information and personal information of the applicant, certificate validity period, certificate serial number and other plain text information. The server performs a summary operation on the certificate information through a preset hash function to obtain an information summary, and then uses the CA's private key to encrypt the information summary to obtain a digital signature. The digital signature is unique and is used to authenticate whether the identity information of the data source is legal, and can ensure the authenticity of the subject identity of the data source, as well as the authenticity, security, integrity and non-repudiation of the data source data.

[0083] 102. Receive the identity authentication ciphertext returned by the target terminal based on the digital certificate, and decrypt the identity authentication ciphertext using the preset private key to obtain an identity decryption result;

[0084] In this embodiment, after the target terminal receives the digital certificate issued by the data source, the target terminal reads the plaintext information in the certificate information, and uses the same hash function to calculate the information digest to obtain the information digest calculated by the target terminal. Then, the digital signature is decrypted by the public key to obtain the decrypted information digest, and then the information digest calculated by the target terminal is compared with the decrypted information digest to determine whether the information digest calculated by the target terminal is consistent with the decrypted information digest. If the information digest calculated by the target terminal is consistent with the decrypted information digest, the target terminal passes the identity authentication of the data source and generates an identity authentication ciphertext and returns it to the data source.

[0085] In this embodiment, after the target terminal passes the identity authentication of the data source, a random number is generated, and the random number, digital signature and information digest calculated by the target terminal are encrypted by the public key in the digital certificate to obtain the identity authentication ciphertext, and the identity authentication ciphertext is returned to the data source. After the server receives the identity authentication ciphertext returned by the target terminal, in order to verify whether the identity information of the target terminal is legal, the server decrypts the identity authentication ciphertext by the preset private key to obtain the identity decryption result, which includes the information digest returned by the target terminal, the signature information returned by the target terminal and the random number. The server compares the information digest returned by the target terminal with the information digest of the data source, and compares the signature information returned by the target terminal with the digital signature in the digital certificate of the data source to determine whether the identity information of the target terminal is legal. This embodiment can prevent data leakage caused by illegal attacks such as forgery and tampering of the identity of the target terminal, so as to improve the security of data during transmission.

[0086] 103. Obtain the identity authentication information of the target terminal through the identity decryption result, and generate a sensitive information scanning script for the data source based on the identity authentication information and in accordance with a preset sensitive information detection mechanism;

[0087] In this embodiment, the server determines whether the identity information of the target terminal is legal through the identity decryption result, and obtains the identity authentication information of the target terminal. If the identity authentication information of the target terminal indicates that the identity information of the target terminal is legal, the server generates a sensitive information scanning script for the data source through a preset sensitive information detection mechanism, wherein the sensitive information detection mechanism includes a sensitive field name in a multi-naming form, and the sensitive field name in a multi-naming form can be a sensitive word in a preset sensitive vocabulary package, or a user-configured custom sensitive word, and there is no specific limitation. For example, the sensitive vocabulary package contains sensitive words such as password and ID card, and the user can also configure custom sensitive words such as address, name, and phone number. This embodiment can perform sensitive information detection based on the user's specific encryption requirements, so that the user has more encryption options and the encryption method is more flexible, thereby improving the security of the data.

[0088] 104. Scan the data source through the sensitive information scanning script to obtain the sensitive information to be encrypted;

[0089] In this embodiment, the sensitive information to be encrypted is a data security vulnerability that poses a risk of sensitive data leakage. In order to scan the data source for sensitive information according to a preset sensitive information detection mechanism, the server executes a sensitive information scanning script in a database management system corresponding to the database of the data source to scan all database tables in the data source for sensitive information, thereby obtaining the sensitive information to be encrypted. The sensitive information to be encrypted includes an identifier of the database table to which the sensitive information to be encrypted belongs and a sensitive field name of the sensitive information to be encrypted. The sensitive information to be encrypted is used to indicate index information and dictionary information when the server performs encryption.

[0090] 105. Based on the preset encryption algorithm, encryption operation is performed on the sensitive information to be encrypted to repair the security vulnerability of sensitive information leakage in the data source.

[0091] In this embodiment, the preset encryption algorithm includes a semi-homomorphic encryption algorithm and a fully homomorphic encryption algorithm. The semi-homomorphic encryption algorithm refers to an encryption algorithm that satisfies finite operation homomorphism but does not satisfy arbitrary operation homomorphism. The semi-homomorphic encryption algorithm includes a multiplication homomorphic function, an addition homomorphic function, a finite number of fully homomorphic functions, etc. A fully homomorphic encryption algorithm refers to an encryption algorithm that satisfies arbitrary operation homomorphism. Since any calculation can be constructed through addition and multiplication gate circuits, a fully homomorphic encryption algorithm is said to satisfy the fully homomorphic property as long as it satisfies the multiplication homomorphism and addition homomorphism characteristics at the same time. The fully homomorphic encryption algorithm includes a multiplication homomorphic function and an addition homomorphic function. The encryption algorithm of this embodiment preferably uses a fully homomorphic encryption algorithm to perform encryption operations on sensitive information to be encrypted, so as to repair the security vulnerabilities of sensitive information in the data source. This embodiment can satisfy more homomorphic operations and improve the security of data.

[0092] Furthermore, the digital certificate is stored in a blockchain database, which is not specifically limited here.

[0093] In an embodiment of the present invention, in order to improve the security of sensitive information during transmission, the server performs identity authentication on the target terminal and the data source through a digital certificate. After the authentication is passed, a sensitive information scanning script is generated through a preset sensitive information detection mechanism, and the scanned sensitive information to be encrypted is encrypted through a preset encryption algorithm, thereby repairing the sensitive information leakage security vulnerability in the data source. The present invention can repair data security vulnerabilities and improve the security during data transmission.

[0094] See also Figure 2 Another embodiment of the method for repairing a data security vulnerability in an embodiment of the present invention includes:

[0095] 201. Receive a security vulnerability repair request for a data source sent by a target terminal, and issue a digital certificate to the target terminal according to the security vulnerability repair request. The digital certificate includes a digital signature, a public key, and certificate information.

[0096] Specifically, the server receives a security vulnerability repair request for a data source sent by a target terminal, and the target terminal and the data source adopt a unified encryption protocol; the server reads the certificate information of the encryption protocol, and uses a preset hash function to perform a summary calculation on the certificate information to obtain the summary information corresponding to the digital certificate; the server uses a preset private key to encrypt the summary information to obtain a digital signature, reads the public key corresponding to the certificate information, and generates a digital certificate by combining the public key corresponding to the certificate information, the certificate information and the digital signature; the server sends the digital certificate to the target terminal.

[0097] In this optional embodiment, in order to verify whether the identity of each participant in the data transmission process is legal, the server uses a unified encryption protocol for communication. When receiving a security vulnerability repair request for the data source sent by the target terminal, the server performs identity authentication on the data source end through the certificate information of the unified encryption protocol. Specifically, the server first applies for an authentication certificate from a trusted digital certificate issuing authority. After the digital certificate issuing authority authenticates the legality of the applicant's organization, it issues an authentication certificate to the applicant (data source end). The authentication certificate includes certificate information and a public key. After the server performs a summary calculation on the certificate information through a hash function, the summary information is obtained. The summary information is then encrypted with a preset private key to obtain a digital signature, and the public key corresponding to the certificate information (issued by a trusted digital certificate issuing authority) is obtained to obtain a digital certificate. The digital certificate includes a digital signature, a public key and certificate information. The server sends the digital certificate to the target terminal for the target terminal to authenticate the data source end and returns the identity authentication ciphertext. This optional embodiment can ensure the legality of the identity of all data ends (data source ends) during the data transmission process, thereby improving the security of the data transmission process.

[0098] 202. Receive the identity authentication ciphertext returned by the target terminal based on the digital certificate, and decrypt the identity authentication ciphertext using the preset private key to obtain an identity decryption result;

[0099] Specifically, the server receives the identity authentication ciphertext returned by the target terminal based on the digital certificate, and the identity authentication ciphertext is used to indicate the identity authentication ciphertext encrypted by the target terminal using the public key of the unified encryption protocol for the digital certificate; the server decrypts the identity authentication ciphertext using the preset private key to obtain the identity decryption result, which includes the decrypted signature information and certificate information.

[0100] In this optional embodiment, the identity authentication ciphertext returned by the target terminal is the identity authentication ciphertext generated by encrypting the digital certificate issued by the data source end based on the public key of the same encryption protocol. After decrypting the identity authentication ciphertext, the server can extract the signature information and certificate information in the identity authentication ciphertext, that is, the identity decryption result. The identity decryption result is used for the subsequent server to authenticate the target terminal.

[0101] 203. Obtain the identity authentication information of the target terminal through the identity decryption result, and generate a sensitive information scanning script for the data source based on the identity authentication information and in accordance with a preset sensitive information detection mechanism;

[0102] Specifically, the server obtains the target information of the identity decryption result and the digital certificate information of the digital certificate, and determines whether the target information is consistent with the digital certificate information, wherein the target information includes the decrypted signature information and certificate information; if the decrypted signature information and certificate information are consistent with the digital signature and certificate information in the digital certificate, the server determines that the identity information returned by the target terminal is legal, and obtains the identity authentication information of the target terminal; based on the identity authentication information of the target terminal, the server reads the sensitive field name in multiple naming forms through a preset sensitive information detection mechanism; the server identifies the database type of the data source to obtain the target database type, and generates a sensitive information scanning script based on the sensitive field name in multiple naming forms according to the target database type.

[0103] In this optional embodiment, the server obtains the target information in the identity decryption result and the digital certificate information in the digital certificate, and then compares the decrypted signature information in the target information with the digital signature in the digital certificate information to determine whether the decrypted signature information is consistent with the digital signature in the digital certificate information, and then compares the decrypted certificate information in the target information with the certificate information in the digital certificate information to determine whether the decrypted certificate information is consistent with the certificate information in the digital certificate information. If the decrypted signature information is consistent with the digital signature in the digital certificate information, and the decrypted certificate information is consistent with the certificate information in the digital certificate information, the server determines that the identity of the target terminal is legal, that is, the server determines that the identity information returned by the target terminal is legal, and obtains the identity authentication information of the target terminal. In this optional embodiment, the legitimacy of the identity of the data receiving end (target terminal) during data transmission can be guaranteed, thereby improving the security during data transmission.

[0104] In this optional embodiment, after the server determines that the identity information of the target terminal is legal, the server generates a sensitive information scanning script for the data source according to a preset sensitive information detection mechanism, wherein the sensitive information detection mechanism may be preset or user-configured, and the sensitive information detection mechanism includes multiple naming forms of sensitive field names, for example, the sensitive field name "id card", and the naming form of the sensitive field name may include but is not limited to lower camel case naming (idCard), upper camel case naming (IdCard), underscore naming (id_card), concatenated naming (idcard), etc., and multiple naming forms of sensitive field names can expand the detection scope of sensitive information and improve the detection accuracy of sensitive information.

[0105] 204. Scan the data source through the sensitive information scanning script to obtain the sensitive information to be encrypted;

[0106] Specifically, the server identifies non-functional database tables in the data source, and filters the data source through the non-functional database tables to obtain functional database tables in the data source, where the non-functional database tables are used to indicate database tables automatically created by the database management system corresponding to the data source; the server executes a sensitive information scanning script in the database management system corresponding to the data source, performs sensitive information detection on the functional database tables in the data source, and obtains sensitive information to be encrypted, where the sensitive information to be encrypted includes field information to be encrypted and comment information to be encrypted.

[0107] In this optional embodiment, different types of database management systems will come with non-functional database tables for collecting performance parameters of the database server and saving permissions, parameters, objects and status information, etc., which are non-business-related database tables. In order to improve the detection efficiency of sensitive information, the server narrows the detection scope of sensitive information by filtering non-functional database tables. The server obtains a table name list of non-functional database tables based on the database type of the data source to obtain database tables automatically created by the database management system of the corresponding database type, and then identifies and filters the non-functional database tables in the data source based on the table name list of non-functional database tables to obtain functional database tables, that is, business-related database tables. Finally, the server only needs to scan the functional database tables for sensitive information to obtain the sensitive information to be encrypted. In order to improve the comprehensiveness of the encryption of sensitive information, the sensitive information scan includes scanning the fields and comments. Therefore, the sensitive information to be encrypted includes the field information to be encrypted and the comment information to be encrypted.

[0108] 205. Based on the key generation function in the preset fully homomorphic encryption algorithm, generate a key pair, the key pair includes a public key and a private key, the fully homomorphic encryption algorithm includes a key generation function, a multiplication homomorphic function, an addition homomorphic function and an encryption function;

[0109] In this embodiment, the fully homomorphic encryption algorithm is a type of data encryption method, which is characterized by allowing data to perform mathematical or logical operations under encryption, and has the characteristic of being computable but invisible. Since any calculation can be constructed through addition and multiplication gate circuits, the fully homomorphic encryption algorithm is said to satisfy the fully homomorphic characteristics as long as it satisfies both the multiplication homomorphism and the addition homomorphism characteristics. That is, the fully homomorphic encryption algorithm includes multiplication homomorphic functions and addition homomorphic functions. The fully homomorphic encryption algorithm also includes an encryption function and a key generation function. The encryption function is used to encrypt the data after the operation, and the key generation function is used to generate a key pair. The fully homomorphic encryption algorithm can improve the protection capability against attackers who control the database system, thereby improving the security of the data.

[0110] 206. Perform homomorphic operations on the encrypted sensitive information through multiplication homomorphic functions and addition homomorphic functions to obtain operation results;

[0111] In this embodiment, in order to store the sensitive information to be encrypted in a non-plaintext manner in the database, the server performs homomorphic operations on the sensitive information to be encrypted through multiplication homomorphic functions and addition homomorphic functions to obtain operation results. The data demand end can obtain indirect information of the sensitive information to be encrypted by directly obtaining the operation results, and obtain the operation results required for the business on the basis of the multiplication homomorphic functions and addition homomorphic functions, thereby increasing the business role of the information to be encrypted and improving the data security of the information to be encrypted.

[0112] 207. Based on the public key in the key pair, an encryption operation is performed on the operation result through an encryption function to obtain an encrypted result, so as to repair the security vulnerability of sensitive information leakage of the data source.

[0113] In this embodiment, in order to improve the security of the data to be encrypted, the server uses the public key in the key pair and the encryption function in the fully homomorphic encryption algorithm to perform an encryption operation on the operation result to obtain an encryption result, so that the sensitive information to be encrypted is not only stored in the database in ciphertext, but also presented in ciphertext during the business operation process, thereby greatly improving the security of the sensitive information.

[0114] Furthermore, after encrypting the calculation result through an encryption function based on the public key in the key pair to obtain an encrypted result to repair the security vulnerability of sensitive information leakage in the data source, the method for repairing the data security vulnerability also includes: the server encrypts the key pair to obtain an encrypted key pair, and backs up the encrypted key pair to a preset key management system; when a query request for sensitive information is received, the server sends a key acquisition request to the key management system, and receives a decrypted key pair sent by the key management system; the server uses the decrypted key pair to perform a ciphertext query on the data source based on a preset ciphertext query algorithm to obtain a ciphertext query result.

[0115] In this optional embodiment, the security of the key often affects the security of the database. The large amount of data stored in the database leads to a large number of keys. In order to achieve effective management of the key, the server encrypts the key through a preset key encryption algorithm to obtain an encrypted key pair, and then backs up the encrypted key pair to a preset key management system. The key management system can be a management system provided by a trusted third party or a key management system configured by the user to back up the key to the user's local device, thereby increasing the user's data security in the cloud database. When the server receives a query request for sensitive information, the server first sends a key acquisition request to the key management system, obtains the key pair for decryption, and then performs data query through a preset ciphertext query algorithm to obtain a ciphertext query result. The ciphertext query result includes sensitive information after homomorphic encryption operation.

[0116] In an embodiment of the present invention, in order to improve the security of sensitive information during transmission, the server performs identity authentication on the target terminal and the data source through a digital certificate. After the authentication is passed, a sensitive information scanning script is generated through a preset sensitive information detection mechanism, and the scanned sensitive information to be encrypted is encrypted through the key generation function, multiplication homomorphic function, addition homomorphic function and encryption function in the preset fully homomorphic encryption algorithm, thereby repairing the sensitive information leakage security vulnerability in the data source. The present invention can repair data security vulnerabilities and improve the security during data transmission.

[0117] The above describes the method for repairing a data security vulnerability in an embodiment of the present invention. The following describes the device for repairing a data security vulnerability in an embodiment of the present invention. Figure 3 , an embodiment of a device for repairing a data security vulnerability in an embodiment of the present invention includes:

[0118] The first authentication module 301 is used to receive a security vulnerability repair request for a data source sent by a target terminal, and issue a digital certificate to the target terminal according to the security vulnerability repair request, wherein the digital certificate includes a digital signature, a public key and certificate information;

[0119] The second authentication module 302 is used to receive the identity authentication ciphertext returned by the target terminal based on the digital certificate, and decrypt the identity authentication ciphertext by using a preset private key to obtain an identity decryption result;

[0120] The script generation module 303 is used to obtain the identity authentication information of the target terminal through the identity decryption result, and generate a sensitive information scanning script for the data source based on the identity authentication information and according to a preset sensitive information detection mechanism;

[0121] An information scanning module 304 is used to scan the data source through the sensitive information scanning script to obtain the sensitive information to be encrypted;

[0122] The encryption operation module 305 is used to perform encryption operation on the sensitive information to be encrypted based on a preset encryption algorithm to repair the security vulnerability of the sensitive information leakage of the data source.

[0123] Furthermore, the digital certificate is stored in a blockchain database, which is not specifically limited here.

[0124] In an embodiment of the present invention, in order to improve the security of sensitive information during transmission, the server performs identity authentication on the target terminal and the data source through a digital certificate. After the authentication is passed, a sensitive information scanning script is generated through a preset sensitive information detection mechanism, and the scanned sensitive information to be encrypted is encrypted through a preset encryption algorithm, thereby repairing the sensitive information leakage security vulnerability in the data source. The present invention can repair data security vulnerabilities and improve the security during data transmission.

[0125] See also Figure 4 Another embodiment of the device for repairing a data security vulnerability in the embodiment of the present invention includes:

[0126] The first authentication module 301 is used to receive a security vulnerability repair request for a data source sent by a target terminal, and issue a digital certificate to the target terminal according to the security vulnerability repair request, wherein the digital certificate includes a digital signature, a public key and certificate information;

[0127] The second authentication module 302 is used to receive the identity authentication ciphertext returned by the target terminal based on the digital certificate, and decrypt the identity authentication ciphertext by using a preset private key to obtain an identity decryption result;

[0128] The script generation module 303 is used to obtain the identity authentication information of the target terminal through the identity decryption result, and generate a sensitive information scanning script for the data source based on the identity authentication information and according to a preset sensitive information detection mechanism;

[0129] An information scanning module 304 is used to scan the data source through the sensitive information scanning script to obtain the sensitive information to be encrypted;

[0130] The encryption operation module 305 is used to perform encryption operation on the sensitive information to be encrypted based on a preset encryption algorithm to repair the security vulnerability of the sensitive information leakage of the data source.

[0131] Optionally, the first authentication module 301 is specifically used for:

[0132] Receiving a security vulnerability repair request for a data source sent by a target terminal, wherein the target terminal and the data source adopt a unified encryption protocol;

[0133] Read the certificate information of the encryption protocol, and use a preset hash function to perform a digest calculation on the certificate information to obtain the summary information corresponding to the digital certificate;

[0134] Encrypting the summary information with a preset private key to obtain a digital signature, reading a public key corresponding to the certificate information, and generating a digital certificate by combining the public key corresponding to the certificate information, the certificate information and the digital signature;

[0135] The digital certificate is sent to the target terminal.

[0136] Optionally, the second authentication module 302 is specifically used for:

[0137] Receiving an identity authentication ciphertext returned by the target terminal based on the digital certificate, the identity authentication ciphertext being used to indicate the identity authentication ciphertext encrypted by the target terminal using a public key of a unified encryption protocol to encrypt the digital certificate;

[0138] The identity authentication ciphertext is decrypted by using a preset private key to obtain an identity decryption result, which includes the decrypted signature information and certificate information.

[0139] Optionally, the script generation module 303 is specifically used for:

[0140] Obtaining target information of the identity decryption result and digital certificate information of the digital certificate, and determining whether the target information is consistent with the digital certificate information, wherein the target information includes decrypted signature information and certificate information;

[0141] If the decrypted signature information and certificate information are consistent with the digital signature and certificate information in the digital certificate, it is determined that the identity information returned by the target terminal is legal, and the identity authentication information of the target terminal is obtained;

[0142] Based on the identity authentication information of the target terminal, read the sensitive field name in multiple naming forms through a preset sensitive information detection mechanism;

[0143] The database type of the data source is identified to obtain a target database type, and a sensitive information scanning script is generated based on the sensitive field names in multiple naming forms according to the target database type.

[0144] Optionally, the information scanning module 304 is specifically used for:

[0145] Identify a non-functional database table in the data source, and filter the data source through the non-functional database table to obtain a functional database table in the data source, wherein the non-functional database table is used to indicate a database table automatically created by a database management system corresponding to the data source;

[0146] The sensitive information scanning script is executed in the database management system corresponding to the data source, and sensitive information detection is performed on the functional database table in the data source to obtain the sensitive information to be encrypted, wherein the sensitive information to be encrypted includes the field information to be encrypted and the annotation information to be encrypted.

[0147] Optionally, the encryption operation module 305 is specifically used for:

[0148] Generate a key pair based on a key generation function in a preset fully homomorphic encryption algorithm, wherein the key pair includes a public key and a private key, and the fully homomorphic encryption algorithm includes a key generation function, a multiplication homomorphic function, an addition homomorphic function, and an encryption function;

[0149] Performing homomorphic operations on the sensitive information to be encrypted by using the multiplication homomorphic function and the addition homomorphic function to obtain an operation result;

[0150] Based on the public key in the key pair, the operation result is encrypted through the encryption function to obtain an encrypted result, so as to repair the security vulnerability of the sensitive information leakage of the data source.

[0151] Optionally, the data security vulnerability repairing device further includes:

[0152] The key backup module 306 is used to encrypt the key pair to obtain an encrypted key pair, and back up the encrypted key pair to a preset key management system;

[0153] The key acquisition module 307 is used to send a key acquisition request to the key management system when receiving a query request for sensitive information, and receive a decrypted key pair sent by the key management system;

[0154] The ciphertext query module 308 is used to perform a ciphertext query on the data source based on a preset ciphertext query algorithm using the decrypted key pair to obtain a ciphertext query result.

[0155] In an embodiment of the present invention, in order to improve the security of sensitive information during transmission, the server performs identity authentication on the target terminal and the data source through a digital certificate. After the authentication is passed, a sensitive information scanning script is generated through a preset sensitive information detection mechanism, and the scanned sensitive information to be encrypted is encrypted through the key generation function, multiplication homomorphic function, addition homomorphic function and encryption function in the preset fully homomorphic encryption algorithm, thereby repairing the sensitive information leakage security vulnerability in the data source. The present invention can repair data security vulnerabilities and improve the security during data transmission.

[0156] above Figure 3 and Figure 4 The data security vulnerability repairing device in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The data security vulnerability repairing device in the embodiment of the present invention is described in detail from the perspective of hardware processing.

[0157] Figure 5 1 is a schematic diagram of the structure of a data security vulnerability repair device provided by an embodiment of the present invention. The data security vulnerability repair device 500 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 510 (for example, one or more processors) and a memory 520, and one or more storage media 530 (for example, one or more mass storage devices) storing application programs 533 or data 532. Among them, the memory 520 and the storage medium 530 can be short-term storage or permanent storage. The program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of computer program operations in the data security vulnerability repair device 500. Furthermore, the processor 510 can be configured to communicate with the storage medium 530 to execute a series of computer program operations in the storage medium 530 on the data security vulnerability repair device 500.

[0158] The data security vulnerability repair device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input and output interfaces 560, and / or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Figure 5 The structure of the data security vulnerability repairing device shown does not constitute a limitation on the data security vulnerability repairing device, and may include more or less components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0159] The present invention also provides a device for repairing data security vulnerabilities, wherein the computer device includes a memory and a processor, wherein a computer-readable computer program is stored in the memory, and when the computer-readable computer program is executed by the processor, the processor executes the steps of the method for repairing data security vulnerabilities in the above-mentioned embodiments.

[0160] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program runs on a computer, the computer executes the steps of the method for repairing a data security vulnerability.

[0161] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.

[0162] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0163] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0164] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several computer programs to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0165] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for repairing a data security vulnerability, characterized in that: The method for repairing the data security vulnerability includes: Receiving a security vulnerability repair request for a data source sent by a target terminal, and issuing a digital certificate to the target terminal according to the security vulnerability repair request, wherein the digital certificate includes a digital signature, a public key, and certificate information; Reading the plain text information in the certificate information through the target terminal, and calculating the information digest using a preset hash function to obtain the information digest calculated by the target terminal; Decrypting the digital signature using the public key to obtain a decrypted information summary; Determine whether the information digest calculated by the target terminal is consistent with the decrypted information digest; If yes, the target terminal generates a random number through identity authentication of the data source, and encrypts the random number, the digital signature and the information digest calculated by the target terminal through the public key in the digital certificate to obtain the identity authentication ciphertext and return it to the data source; Receiving the identity authentication ciphertext returned by the target terminal based on the digital certificate, and decrypting the identity authentication ciphertext by using a preset private key to obtain an identity decryption result; Obtaining the identity authentication information of the target terminal through the identity decryption result, and generating a sensitive information scanning script for the data source based on the identity authentication information and in accordance with a preset sensitive information detection mechanism; Scan the data source using the sensitive information scanning script to obtain the sensitive information to be encrypted; Based on a preset fully homomorphic encryption algorithm, an encryption operation is performed on the sensitive information to be encrypted to repair the security vulnerability of the sensitive information leakage of the data source; The step of generating a sensitive information scanning script for the data source based on the identity authentication information and in accordance with a preset sensitive information detection mechanism includes: Based on the identity authentication information of the target terminal, read the sensitive field name in multiple naming forms through a preset sensitive information detection mechanism, where the multiple naming forms at least include lower camel case naming, upper camel case naming, underline naming and concatenated naming, and the sensitive field name includes sensitive words in a preset sensitive vocabulary package and user-configured custom sensitive words; Performing database type identification on the data source to obtain a target database type, and generating a sensitive information scanning script based on the sensitive field names in the multiple naming forms according to the target database type; The step of scanning the data source by using the sensitive information scanning script to obtain the sensitive information to be encrypted includes: Identify a non-functional database table in the data source, and filter the data source through the non-functional database table to obtain a functional database table in the data source, wherein the non-functional database table is used to indicate a database table automatically created by a database management system corresponding to the data source; The sensitive information scanning script is executed in the database management system corresponding to the data source, and sensitive information detection is performed on the functional database table in the data source to obtain the sensitive information to be encrypted, wherein the sensitive information to be encrypted includes the field information to be encrypted and the annotation information to be encrypted.

2. The method for repairing a data security vulnerability according to claim 1, characterized in that: The receiving a security vulnerability repair request for a data source sent by a target terminal, and issuing a digital certificate to the target terminal according to the security vulnerability repair request, wherein the digital certificate includes a digital signature, a public key and certificate information, including: Receiving a security vulnerability repair request for a data source sent by a target terminal, wherein the target terminal and the data source adopt a unified encryption protocol; Read the certificate information of the encryption protocol, and use a preset hash function to perform a summary calculation on the certificate information to obtain summary information corresponding to the digital certificate; Encrypting the summary information with a preset private key to obtain a digital signature, reading a public key corresponding to the certificate information, and generating a digital certificate by combining the public key corresponding to the certificate information, the certificate information and the digital signature; The digital certificate is sent to the target terminal.

3. The method for repairing a data security vulnerability according to claim 1, characterized in that: The receiving the identity authentication ciphertext returned by the target terminal based on the digital certificate, and decrypting the identity authentication ciphertext by using a preset private key to obtain an identity decryption result, includes: Receiving an identity authentication ciphertext returned by the target terminal based on the digital certificate, the identity authentication ciphertext being used to indicate the identity authentication ciphertext encrypted by the target terminal using a public key of a unified encryption protocol to encrypt the digital certificate; The identity authentication ciphertext is decrypted by using a preset private key to obtain an identity decryption result, which includes the decrypted signature information and certificate information.

4. The method for repairing a data security vulnerability according to claim 1, characterized in that: The obtaining the identity authentication information of the target terminal through the identity decryption result includes: Obtaining target information of the identity decryption result and digital certificate information of the digital certificate, and determining whether the target information is consistent with the digital certificate information, wherein the target information includes decrypted signature information and certificate information; If the decrypted signature information and certificate information are consistent with the digital signature and certificate information in the digital certificate, it is determined that the identity information returned by the target terminal is legal, and the identity authentication information of the target terminal is obtained.

5. The method for repairing a data security vulnerability according to any one of claims 1 to 4, characterized in that: The step of performing encryption operation on the sensitive information to be encrypted based on a preset encryption algorithm to repair the security vulnerability of sensitive information leakage of the data source includes: Generate a key pair based on a key generation function in a preset fully homomorphic encryption algorithm, wherein the key pair includes a public key and a private key, and the fully homomorphic encryption algorithm includes a key generation function, a multiplication homomorphic function, an addition homomorphic function, and an encryption function; Performing homomorphic operations on the sensitive information to be encrypted by using the multiplication homomorphic function and the addition homomorphic function to obtain an operation result; Based on the public key in the key pair, the operation result is encrypted through the encryption function to obtain an encrypted result, so as to repair the security vulnerability of the sensitive information leakage of the data source.

6. The method for repairing a data security vulnerability according to claim 5, characterized in that: After performing encryption operation on the operation result through the encryption function based on the public key in the key pair to obtain an encryption result to repair the security vulnerability of sensitive information leakage of the data source, the method for repairing the data security vulnerability further includes: Encrypting the key pair to obtain an encrypted key pair, and backing up the encrypted key pair to a preset key management system; When receiving a query request for sensitive information, sending a key acquisition request to the key management system, and receiving a decrypted key pair sent by the key management system; The decrypted key pair is used to perform a ciphertext query on the data source based on a preset ciphertext query algorithm to obtain a ciphertext query result.

7. A device for repairing a data security vulnerability, characterized in that: The data security vulnerability repairing device executes the data security vulnerability repairing method according to any one of claims 1 to 6, and the data security vulnerability repairing device comprises: A first authentication module is used to receive a security vulnerability repair request for a data source sent by a target terminal, and issue a digital certificate to the target terminal according to the security vulnerability repair request, wherein the digital certificate includes a digital signature, a public key and certificate information; A second authentication module is used to receive the identity authentication ciphertext returned by the target terminal based on the digital certificate, and decrypt the identity authentication ciphertext by using a preset private key to obtain an identity decryption result; A script generation module, used to obtain the identity authentication information of the target terminal through the identity decryption result, and generate a sensitive information scanning script for the data source based on the identity authentication information and in accordance with a preset sensitive information detection mechanism; An information scanning module, used to scan the data source through the sensitive information scanning script to obtain the sensitive information to be encrypted; The encryption operation module is used to perform encryption operation on the sensitive information to be encrypted based on a preset encryption algorithm to repair the security vulnerability of the sensitive information leakage of the data source.

8. A device for repairing data security vulnerabilities, characterized in that: The data security vulnerability repair device comprises: a memory and at least one processor, wherein the memory stores a computer program; The at least one processor calls the computer program in the memory so that the data security vulnerability repairing device executes the data security vulnerability repairing method as described in any one of claims 1-6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for repairing a data security vulnerability as described in any one of claims 1 to 6 is implemented.