A data security management method, system and storage medium based on vulnerability detection

By generating and verifying dynamic keys between terminals, the security of data during communication and transmission is ensured, which solves the problem of security risks in the existing technology being concentrated on the token server, and achieves secure decentralization and authenticity verification of data transmission. .

CN117478404BActive Publication Date: 2024-10-25HENAN DINGXIN INFORMATION SECURITY RATING EVALUATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311496699.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-10
Publication Date
2024-10-25
Estimated Expiration
2043-11-10

AI Technical Summary

Technical Problem

In the existing technology, data is easily stolen or tampered with during communication and transmission, causing security risks to be concentrated on the token server and difficult to effectively disperse.

Method used

By sending key request signals between terminals, dynamic keys and verification messages are generated, encryption and decryption operations are performed to ensure the authenticity of the messages during transmission, and confidential data is obtained through decryption at the second terminal to avoid the need for token verification. Decrypted on the server.

Benefits of technology

It effectively disperses security risks, improves the security of confidential data during communication and transmission, prevents theft and tampering, and ensures the authenticity of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117478404B_ABST
    Figure CN117478404B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of data transmission technology, and more specifically to a data security management method, system and storage medium based on vulnerability detection. The first terminal sends a key request signal to a key generation unit; the key generation unit generates a dynamic key and verification message, generates a first message based on a first encrypted message package, a first verification message and a first encrypted key information, and similarly generates a second message, and sends the first message and the second message to the first terminal and the second terminal corresponding to the first object respectively and verifies the authenticity; when the first message and the second message are respectively true, obtain the first dynamic key, encrypt the confidential data of the first object to obtain a digital token, and send the digital token to the second terminal; the second terminal obtains the second dynamic key, and decrypts the digital token through the second dynamic key to obtain the confidential data of the first object. The beneficial effect of the present invention is to disperse security risks and improve the security of confidential data during communication transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data transmission technology, and more specifically to a data security management method, system and storage medium based on vulnerability detection. Background Art

[0002] In the context of the rapid development of e-commerce, the online transmission and use of personal information is becoming more and more common. For example, when an individual user uses a bank card to make a purchase, the store terminal encrypts the bank card information and sends it to the token server to request the generation of a token; the token server generates a token corresponding to the bank card information and sends the token to the store terminal, while storing the token and the bank card information matching it in the token server; after receiving the token, the store terminal sends it to the bank card server, and the bank card server requests the token server to decrypt it to confirm the bank card information; the token server decodes the bank card information based on the stored information corresponding to the token and notifies the bank card server. Since all confidential information and tokens are stored on the token server, security risks are concentrated on the token server. However, criminals can also steal personal information during the communication process through various means, posing a serious threat to data security.

[0003] In the prior art, for example, the data transmission method, device, system and equipment of the Chinese patent "CN111585749B" provide a data transmission method, device, system and equipment, including: generating an asymmetric key pair including a first public key and a first private key, and sending a data request carrying the first public key to a server; receiving a ciphertext and a second public key sent by the server, the second public key is a public key in an asymmetric key pair obtained by the server, the asymmetric key pair obtained by the server also includes a second private key, the ciphertext is information encrypted using a shared key with a seed parameter for generating an offline payment code; the shared key is a key generated according to the second private key and the first public key using a preset key negotiation algorithm; according to the first private key and the second public key, a shared key is generated using a key negotiation algorithm, and the ciphertext is decrypted using the shared key to obtain a seed parameter.

[0004] For example, the Chinese patent "CN109120649A" key negotiation method, cloud server, device, storage medium and system discloses a key negotiation method, including the following steps: when the cloud server receives a random number request sent by the device, it generates a first random number and returns the first random number to the device; when the cloud server receives a key negotiation request message, it obtains the device public key and signature data according to the key negotiation request message; the signature data is decrypted by the device public key to obtain a second random number; when the second random number is consistent with the first random number, the cloud server and the device perform key negotiation.

[0005] Both inventions transmit data requests and keys simultaneously between the server and the terminal, which can easily cause the request data and the key to be intercepted together during the communication transmission process, resulting in the target data being tampered with or leaked. Therefore, the present invention proposes a data security management method based on vulnerability detection, which can not only solve the problem that security risks are concentrated on the token server, thereby dispersing security risks, but also improve the security of confidential data during communication transmission. Summary of the invention

[0006] In order to increase the security of confidential data during transmission, the present invention provides a data security management method based on vulnerability detection, the method comprising:

[0007] Step S1: A first terminal sends a key request signal to a key generation unit, wherein the key request signal includes identity data of a first object corresponding to the first terminal;

[0008] Step S2: the key generation unit receives the key request signal, and generates a first dynamic key, a second dynamic key, a first verification message, and a second verification message based on the key request signal, obtains a first encryption key from a first key database in the key generation unit, encrypts the first dynamic key and the first verification message to obtain a first encrypted message package, and generates a first message based on the first encrypted message package, the first verification message, and the first encryption key information, and similarly generates a second message, and sends the first message and the second message to the first terminal and the second terminal corresponding to the first object, respectively;

[0009] Step S3: the first terminal and the second terminal receive the first message and the second message respectively, and verify the authenticity of the first message and the second message respectively through the first verification message and the second verification message;

[0010] Step S4: When the first message and the second message are respectively true, the first terminal obtains a first decryption key from a second key database based on the first encryption key information in the first message, decrypts the first encrypted message packet by using the first decryption key, obtains the first dynamic key, encrypts the confidential data of the first object by using the first dynamic key to obtain a digital token, and sends the digital token to the second terminal;

[0011] Step S5: The second terminal obtains a second decryption key from a third key database based on the second encryption key information, decrypts the second encrypted message packet according to the second decryption key and obtains the second dynamic key, the second terminal receives the digital token, and decrypts the digital token through the second dynamic key to obtain the confidential data of the first object.

[0012] As a preferred technical solution of the present invention, step S6 is further included after step S5:

[0013] The first key database of the key generation unit is periodically updated, and the second key database of the first terminal and the third key database of the second terminal are synchronously updated.

[0014] As a preferred technical solution of the present invention, in the step S2, the first verification message and the second verification message are generated by the random generation module of the key generation unit, and the first verification message and the second verification are a string of random numbers including n bytes.

[0015] As a preferred technical solution of the present invention, step S3 includes the following steps:

[0016] Step S31: the first terminal receives the first message, obtains the first encryption key information from the first message, and obtains a first decryption key corresponding to the first encryption key from the second key database based on the first encryption key information;

[0017] Step S32: decrypting the first encrypted message package in the first message according to the first decryption key to obtain the decrypted first dynamic key and the first verification message;

[0018] Step S33: Compare the first verification message in the first message with the decrypted first verification message, and obtain a comparison result. If the first verification message and the decrypted first verification message are the same, determine that the first message is true, otherwise, determine that the first message is false;

[0019] Step S34: Similarly, determine whether the second message received by the second terminal is true or false.

[0020] As a preferred technical solution of the present invention, the step S3 also includes: when the second message received by the second terminal is true, sending a confirmation signal to the first terminal, and when the first terminal receives the confirmation signal within a predetermined time before and after the first terminal receives the first message, and when the first message is true, executing the step S4, otherwise, the first terminal re-sends the key request signal to the key generation unit.

[0021] As a preferred technical solution of the present invention, step S6 comprises the following steps:

[0022] Step S61: the key generation unit generates a Mith key based on the seed key stored in the storage module in the key generation unit, randomly extracts a Nith key from the first key database, and encrypts the Mith key by the Nith key to obtain a third encrypted message packet, and sends the third encrypted message packet, the Nith key information and the first update information as a third message to the first terminal and the second terminal, wherein the Nith key is any key before the first key database is updated;

[0023] Step S62: the first terminal receives the third message, obtains the first update information from the third message, and when the first update information is consistent with the first confirmation information stored in the first terminal, obtains the Ni-th key from the second key database according to the Ni-th key information in the third message, decrypts the third encrypted message packet using the Ni-th key, obtains the Mi-th key, replaces the Ni-th key with the Mi-th key, and sends the second update information to the key generation unit, otherwise, does not replace; similarly, updates the Ni-th key in the second key database in the second terminal;

[0024] Step S63: the key generation unit receives the second update information of the first terminal and the second update information of the second terminal respectively, and compares the second update information of the first terminal and the second update information of the second terminal with the second confirmation information stored in the storage module of the key generation unit to obtain a first comparison result and a second comparison result. When the first comparison result and the second comparison result are both that the second confirmation information is consistent with the second update information sent by the first terminal and the second update information sent by the second terminal respectively, the Mi key replaces the Ni key in the first key database, otherwise repeat the steps S61 and S62 to re-update at least one of the Ni key in the first terminal and the second terminal that failed to update;

[0025] Step S64: Repeat steps S61 to S63 to complete the synchronous update of the first key database, the second key database, and the third key database.

[0026] The present invention also provides a data security management system based on vulnerability detection as described above, comprising the following modules:

[0027] A request unit, configured for the first terminal to send a key request signal to the key generation unit, wherein the key request signal includes identity data of the first terminal corresponding to the first object;

[0028] a key generation unit, configured to receive the key request signal, and generate a first dynamic key, a second dynamic key, a first verification message, and a second verification message based on the key request signal, obtain a first encryption key from a first key database in the key generation unit, encrypt the first dynamic key and the first verification message to obtain a first encrypted message package, and generate a first message based on the first encrypted message package, the first verification message, and the first encryption key information, and similarly generate a second message, and send the first message and the second message to the first terminal and the second terminal corresponding to the first object, respectively;

[0029] a verification unit, configured to verify the authenticity of the first message and the second message respectively on the first verification message and the second verification message after the first terminal and the second terminal receive the first message and the second message respectively;

[0030] a sending unit, configured to, when the first message and the second message are respectively true, the first terminal obtains a first decryption key from a second key database based on the first encryption key information in the first message, decrypts the first encrypted message packet by using the first decryption key, obtains the first dynamic key, encrypts the confidential data of the first object by using the first dynamic key to obtain a digital token, and sends the digital token to the second terminal;

[0031] A receiving unit is used for the second terminal to obtain a second decryption key from a third key database based on the second encryption key information, decrypt the second encrypted message packet according to the second decryption key and obtain the second dynamic key, the second terminal receives the digital token, and decrypts the digital token through the second dynamic key to obtain the confidential data of the first object.

[0032] The present invention also provides a storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, the above-mentioned data security management method based on vulnerability detection is implemented.

[0033] Compared with the prior art, the beneficial effects of the present invention are at least as follows:

[0034] The technical solution of the present invention is to enhance the security of confidential data during communication transmission by sending a key request signal to a key generation unit through a first terminal, and the key request signal includes the identity data of the first object corresponding to the first terminal. The key generation unit receives the key request signal, and generates a first dynamic key, a second dynamic key, a first verification message and a second verification message based on the key request signal, obtains a first encryption key from a first key database in the key generation unit, encrypts the first dynamic key and the first verification message to obtain a first encrypted message package, and generates a first message based on the first encrypted message package, the first verification message and the first encryption key information, and similarly generates a second message, and sends the first message and the second message to the first terminal and the second terminal corresponding to the first object respectively; to ensure that the key generation unit and the first terminal and the second terminal corresponding to the key request signal are safe during the communication transmission process. The first terminal and the second terminal receive the first message and the second message respectively, and verify the authenticity of the first message and the second message through the first verification message and the second verification message respectively; thereby ensuring that confidential data is not stolen or tampered with during the communication transmission process, and confirming whether the received messages are all true. When the first message and the second message are respectively true, the first terminal obtains the first decryption key from the second key database based on the first encryption key information in the first message, and decrypts the first encrypted message package through the first decryption key to obtain the first dynamic key, and encrypts the confidential data of the first object through the first dynamic key to obtain a digital token, and sends the digital token to the second terminal; the second terminal obtains the second decryption key from the third key database based on the second encryption key information, decrypts the second encrypted message package according to the second decryption key and obtains the second dynamic key, the second terminal receives the digital token, and decrypts the digital token through the second dynamic key to obtain the confidential data of the first object. It can solve the problem that security risks are concentrated on the token server, thereby dispersing security risks, and at the same time improve the security of confidential data during communication transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0036] Figure 1 A flowchart of the steps of a data security management method based on vulnerability detection according to the present invention;

[0037] Figure 2 This is a composition structure diagram of a data security management system based on vulnerability detection in the present invention. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0039] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script.

[0040] In the context of the rapid development of e-commerce, the online transmission and use of personal information is becoming more and more common. For example, when an individual user uses a bank card to make a purchase, the store terminal encrypts the bank card information and sends it to the token server to request the generation of a token; the token server generates a token corresponding to the bank card information and sends the token to the store terminal, while storing the token and the bank card information matching it in the token server; after receiving the token, the store terminal sends it to the bank card server, and the bank card server requests the token server to decrypt it to confirm the bank card information; the token server decodes the bank card information based on the stored information corresponding to the token and notifies the bank card server. Since all confidential information and tokens are stored on the token server, security risks are concentrated on the token server. However, criminals can also steal personal information during the communication process through various means, posing a serious threat to data security.

[0041] In view of the above technical problems, the inventor proposes Figure 1 The data security governance method based on vulnerability detection shown includes the following steps:

[0042] Step S1: A first terminal sends a key request signal to a key generation unit, where the key request signal includes identity data of a first object corresponding to the first terminal;

[0043] Specifically, for example, when an individual uses a bank card to make a payment by swiping the card, when the card swiping terminal sends confidential data such as the bank card to the bank server corresponding to the bank card, if it is sent directly, these confidential data can be easily stolen or tampered with during the communication transmission process. In order to enhance the security of confidential data such as the bank card during the communication transmission process, before sending the confidential data of the bank card, first send a key request signal to the key unit to obtain a dynamic key, and then use the dynamic key to encrypt the confidential data of the bank card to enhance the security of confidential data such as the bank card during the communication transmission process. The key request signal at least includes the identity data of the personal bank card corresponding to the first terminal. Because each terminal can use multiple bank cards, the identity data of the bank card is added to the request signal so that the server side can confirm which bank card is used for business processing. In the present invention, the first terminal can be a user-used device such as a POS terminal and a card payment machine, and the first terminal is not specifically limited; the first object can be a bank card, a credit card or a membership card, etc., and the confidential data about the bank card includes the current consumption information, etc.

[0044] Step S2: the key generation unit receives the key request signal, and generates a first dynamic key, a second dynamic key, a first verification message, and a second verification message based on the key request signal, obtains a first encryption key from a first key database in the key generation unit, encrypts the first dynamic key and the first verification message to obtain a first encrypted message package, and generates a first message based on the first encrypted message package, the first verification message, and the first encryption key information, and similarly generates a second message, and sends the first message and the second message to the first terminal and the second terminal corresponding to the first object, respectively;

[0045] Specifically, in order to ensure that the data between the key generation unit and the first terminal and the second terminal corresponding to the bank card is safe during the communication transmission process, the key generation unit generates a first dynamic key, a second dynamic key, a first verification message and a second verification message according to the key request signal after receiving the key request signal, wherein the first dynamic key and the first verification message are the first group of data, and the second dynamic key and the second verification message are the second group of data, and then obtains the first encryption key and the second encryption key respectively from the first key database in the key generation unit, encrypts the first group of data with the first encryption key to obtain a first encrypted message package, and encrypts the second group of data with the second encryption key to obtain a second encrypted message package; the first encrypted message package, the first verification message and the first encryption key information are packaged to generate a first message, it should be noted that the first verification message in the first message is the original code (i.e., the first verification message), and the first verification message in the first encrypted message package is the encrypted first verification message; the second encrypted message package, the second verification message and the second encryption key information are packaged to generate a second message, and the second verification message is the same as the first verification message. The first message is sent to the first terminal, and the second message is sent to the second terminal corresponding to the bank card, respectively, in order to obtain the first dynamic key to encrypt the confidential data, and the second dynamic key to decrypt the confidential data. The first dynamic key and the second dynamic key are corresponding, one is for encryption, and the other is for decryption, so as to complete the entire communication process safely. The second terminal refers to a server that processes bank card data or corresponding services, etc. The present invention does not specifically limit the first terminal; the first or second encryption key information includes the position or name of the first or second encryption key in the first or second key database, and does not include the first or second encryption key. Since the first, second, and third key databases are consistent, the first or second encryption key information can be found in the corresponding key database through the first or second encryption key information. The first or second encryption key information also includes the first or second decryption key and other information.

[0046] Step S3: The first terminal and the second terminal receive the first message and the second message respectively, and verify the authenticity of the first message and the second message respectively through the first verification message and the second verification message;

[0047] Specifically, in order to prevent confidential data from being stolen or tampered with during the communication transmission process, the present invention adopts the technical solution in the above-mentioned step S3 to verify the authenticity of the received first message and the second message, thereby ensuring that the confidential data is not stolen or tampered with during the communication transmission process. The generation and specific verification method of the first verification message and the second verification message are described in detail later.

[0048] Step S4: When the first message and the second message are respectively true, the first terminal obtains the first decryption key from the second key database based on the first encryption key information in the first message, decrypts the first encrypted message packet by using the first decryption key, obtains the first dynamic key, encrypts the confidential data of the first object by using the first dynamic key to obtain a digital token, and sends the digital token to the second terminal;

[0049] Step S5: The second terminal obtains a second decryption key from the third key database based on the second encryption key information, decrypts the second encrypted message packet according to the second decryption key and obtains the second dynamic key. The second terminal receives the digital token and decrypts the digital token using the second dynamic key to obtain the confidential data of the first object.

[0050] Specifically, in the prior art, since all confidential information and tokens are stored on the token server, once the token server is attacked, confidential data will be seriously threatened. The present invention adopts the above technical solution to generate a digital token on the first terminal, transmit the digital token to the second terminal, and decrypt the digital token on the second terminal instead of on the token server, so that the problem of security risks being concentrated on the token server can be solved, thereby dispersing security risks. At the same time, the digital token can only obtain the first dynamic key after being encrypted with the first dynamic key. Since the first key database and the second key database are synchronized, and the first dynamic key is obtained from the first encrypted message packet, the first encrypted message packet is encrypted information, and it is necessary to use the first decryption key to decrypt it before obtaining the first dynamic key. Since the first key database and the second key database are synchronized, and the first decryption key is obtained from the second key database of the first terminal through the first encryption key information (that is, the position or name of the first encryption key in the first key database), that is, the first decryption key is not transmitted in the network communication, and the first terminal only receives the first encryption key information. Even if the first message is intercepted during the communication transmission of the network, the decryption key of the first encrypted message packet cannot be obtained from the first message, and the first dynamic key cannot be obtained, and the digital token cannot be decrypted. Similarly, the second terminal adopts the same method to obtain the confidential data of the first object in the digital token. The above scheme can also improve the security of confidential data during communication transmission.

[0051] Furthermore, after the above step S5, the method further includes step S6:

[0052] The first key database of the key generation unit is updated periodically, and the second key database of the first terminal and the third key database of the second terminal are also updated synchronously.

[0053] Specifically, after the keys in the first key database have been used for a period of time, they may be leaked as time accumulates. The first key database is updated through the dynamic key generation method of the key generation unit, and the update cycle of the key database is not specifically limited. Since the first, second and third key databases are completely synchronized, after the first key database is updated, the second and third key databases should also be updated. The specific update strategy of the key database will be described in detail below. The above scheme can further improve the security of the first, second and third key databases.

[0054] Furthermore, in the above step S2, the first verification message and the second verification message are generated by a random generation module of the key generation unit, and the first verification message and the second verification message are a string of random numbers including n bytes.

[0055] Specifically, in order to ensure the correctness of data acquired by the first terminal and the second terminal, the above solution is used to generate different random verification messages each time to compare the data in the terminals.

[0056] Furthermore, the above step S3 includes the following steps:

[0057] Step S31: The first terminal receives the first message, obtains first encryption key information from the first message, and obtains a first decryption key corresponding to the first encryption key from a second key database based on the first encryption key information;

[0058] Step S32: decrypting the first encrypted message packet in the first message according to the first decryption key, and obtaining the decrypted first dynamic key and the first verification message;

[0059] Step S33: Compare the first verification message in the first message with the decrypted first verification message, and obtain a comparison result. If the first verification message and the decrypted first verification message are the same, determine that the first message is true, otherwise it is false;

[0060] Step S34: Similarly, determine whether the second message received by the second terminal is true or false.

[0061] Specifically, to ensure that the digital token is safe before and after transmission, before the digital token is generated and decrypted, it is necessary to verify the first message received by the first terminal and the second message received by the second terminal after the first terminal sends a key request signal, so as to confirm that the received first dynamic key and the second dynamic key are safe. In the above scheme, the verification process of the first verification message is taken as an example for explanation. After the first terminal receives the first message, the first encryption key information, the first encrypted message package and the first verification message can be obtained from the first message. Since the first encrypted message package is encrypted, the first encrypted message package needs to be decrypted first to obtain the first verification message from it, and the first decryption key needs to be obtained from the second key database of the first terminal to decrypt the first encrypted message package. Which decryption key is obtained from the second key database can only be obtained based on the first encryption key information (that is, the position or name of the first encryption key in the first key database). The above scheme is used because the decryption key obtained in this way is not transmitted during the communication process. Even if the first message is intercepted by an attacker, the attacker cannot get the decryption key, so the data is more secure during the communication transmission process. By verifying the authenticity of the received first message and the second message, it is ensured that the first and second dynamic keys for encrypting and decrypting the digital token are safe during the communication transmission process.

[0062] Furthermore, the above-mentioned step S3 also includes: when the second message received by the second terminal is true, sending a confirmation signal to the first terminal, and when the first terminal receives the confirmation signal within a predetermined time before and after receiving the first message, and when the first message is true, executing step S4, otherwise, the first terminal re-sends the key request signal to the key generation unit.

[0063] Specifically, in order to verify that the second message received by the second terminal and the first message received by the first terminal are both safe and correct, the second terminal sends a confirmation signal to the first terminal for confirmation. In fact, the second terminal is to tell the first terminal that the second message has been received and is true. Because once the second message received by the second terminal is false, it means that the second dynamic key obtained by the second terminal is not necessarily accurate. Even if the first dynamic key received by the first terminal is accurate, the second terminal cannot decrypt the data sent by the first terminal. Therefore, it is necessary to send a confirmation signal from the second terminal to the first terminal to tell the first terminal that the information received by the second terminal is true.

[0064] Furthermore, the above step S6 includes the following steps:

[0065] Step S61: the key generation unit generates a Mith key based on the seed key stored in the storage module in the key generation unit, randomly extracts a Nith key from the first key database, and encrypts the Mith key by the Nith key to obtain a third encrypted message packet, and sends the third encrypted message packet, the Nith key information and the first update information as a third message to the first terminal and the second terminal, wherein the Nith key is any key before the first key database is updated;

[0066] Specifically, the keys in the first, second and third key databases may be leaked after being used for a period of time. In order to further improve data security, different encryption keys are obtained each time, and the key database is updated frequently to ensure the security of key data. In the above technical solution, a new Mi key is generated by a seed key, and an existing key Ni is randomly extracted from the first key database to encrypt the new Mi key, because the key is random during the key update process and is not easy to be intercepted, that is, even if it is intercepted once in the middle, other keys will not be affected. Thus, the third encrypted message packet is obtained and sent to the first terminal and the second terminal, so that the second key database and the third key database are synchronized with the first key database to ensure that the key information stored in the three key databases is always synchronized. In this way, when the first message and the second message are sent next time, only the location or name of the first encryption key stored in the corresponding first key database needs to be sent, and the key itself does not need to be sent. The first terminal or the second terminal only uses the location or name of the first encryption key stored in the corresponding second or second key database to find the first or second decryption key.

[0067] Step S62: The first terminal receives the third message, obtains the first update information from the third message, and when the first update information is consistent with the first confirmation information stored in the first terminal, obtains the Nith key from the second key database according to the Nith key information in the third message, decrypts the third encrypted message packet using the Nith key, obtains the Mith key, replaces the Nith key with the Mith key, and sends the second update information to the key generation unit, otherwise, does not replace; similarly, updates the Nith key in the second key database in the second terminal;

[0068] Specifically, by comparing the first update information and the first confirmation information in the above scheme, it is confirmed that the third message is used to update the key in the first key database. The first confirmation information of the first terminal is a fixed data segment of the first terminal. Then it is determined whether the data sent by the third message is correct. If it is correct, it is decrypted to update the second key database and the third key database. The updating principle of the third key database is the same as that of the second key database.

[0069] Step S63: the key generation unit receives the second update information of the first terminal and the second update information of the second terminal respectively, and compares the second update information of the first terminal and the second update information of the second terminal with the second confirmation information stored in the storage module of the key generation unit to obtain a first comparison result and a second comparison result. When the first comparison result and the second comparison result are both that the second confirmation information is consistent with the second update information sent by the first terminal and the second update information sent by the second terminal respectively, the Mith key replaces the Nith key in the first key database, otherwise repeat steps S61 and S62 to re-update at least one of the first terminal and the second terminal where the Nith key update fails;

[0070] Specifically, through the above scheme, it is determined that the first key database is updated only after the second key database and the third key database are updated, and it is confirmed that the three key databases are always consistent. If one key database is not updated, the key generation unit resends the update message. Otherwise, if the key in one of the key databases is replaced while the other is not replaced, resending the message separately will cause the key data in the two key databases to be inconsistent.

[0071] Step S64: Repeat steps S61 to S63 to complete the synchronous update of the first key database, the second key database, and the third key database.

[0072] Specifically, the second key database and the third key database are updated at the same time, so that when sending the first message and the second message, it is not necessary to put the key directly in the first or second message, but only the location or name of the encryption key stored in the corresponding key database can be used to find the decryption key. In this way, even if the attacker intercepts the first message or the second message, the confidential data cannot be decrypted, thereby ensuring the security of the data. Even if the first message or the second message is occasionally intercepted, because the key database is constantly updated, the previous key cannot decrypt the new message.

[0073] The present invention also provides a Figure 2 The data security governance system based on vulnerability detection shown includes the following modules:

[0074] A request unit, configured for the first terminal to send a key request signal to the key generation unit, wherein the key request signal includes identity data of the first terminal corresponding to the first object;

[0075] A key generation unit, configured to receive a key request signal, and generate a first dynamic key, a second dynamic key, a first verification message, and a second verification message based on the key request signal, obtain a first encryption key from a first key database in the key generation unit, encrypt the first dynamic key and the first verification message to obtain a first encrypted message package, and generate a first message based on the first encrypted message package, the first verification message, and the first encryption key information, and similarly generate a second message, and send the first message and the second message to the first terminal and the second terminal corresponding to the first object, respectively;

[0076] A verification unit, configured to verify the authenticity of the first message and the second message respectively after the first terminal and the second terminal receive the first message and the second message respectively;

[0077] A sending unit, configured to, when the first message and the second message are respectively true, the first terminal obtains a first decryption key from a second key database based on the first encryption key information in the first message, decrypts the first encrypted message packet by using the first decryption key, obtains a first dynamic key, encrypts the confidential data of the first object by using the first dynamic key to obtain a digital token, and sends the digital token to the second terminal;

[0078] A receiving unit is used for the second terminal to obtain a second decryption key from a third key database based on the second encryption key information, decrypt the second encrypted message packet according to the second decryption key and obtain a second dynamic key, the second terminal receives a digital token, and decrypts the digital token through the second dynamic key to obtain confidential data of the first object.

[0079] The present invention also provides a computer storage medium, which stores program instructions, wherein when the program instructions are executed, the device where the computer storage medium is located is controlled to execute the above-mentioned data security management method based on vulnerability detection.

[0080] In summary, the key request signal is sent to the key generation unit by the first terminal, and the key request signal includes the identity data of the first object corresponding to the first terminal; to enhance the security of confidential data during the communication transmission process. The key generation unit receives the key request signal, and generates the first dynamic key, the second dynamic key, the first verification message and the second verification message based on the key request signal, obtains the first encryption key from the first key database in the key generation unit, and encrypts the first dynamic key and the first verification message to obtain the first encrypted message package, and generates the first message based on the first encrypted message package, the first verification message and the first encryption key information, and generates the second message in the same way, and sends the first message and the second message to the first terminal and the second terminal corresponding to the first object respectively; to ensure that the key generation unit and the first terminal and the second terminal corresponding to the key request signal are safe during the communication transmission process. The first terminal and the second terminal receive the first message and the second message respectively, and verify the authenticity of the first message and the second message through the first verification message and the second verification message respectively; thereby ensuring that the confidential data is not stolen or tampered with during the communication transmission process, and confirming whether the received messages are all true. When the first message and the second message are respectively true, the first terminal obtains the first decryption key from the second key database based on the first encryption key information in the first message, and decrypts the first encrypted message package through the first decryption key to obtain the first dynamic key, and encrypts the confidential data of the first object through the first dynamic key to obtain a digital token, and sends the digital token to the second terminal; the second terminal obtains the second decryption key from the third key database based on the second encryption key information, decrypts the second encrypted message package according to the second decryption key and obtains the second dynamic key, the second terminal receives the digital token, and decrypts the digital token through the second dynamic key to obtain the confidential data of the first object. It can solve the problem that security risks are concentrated on the token server, thereby dispersing security risks, and at the same time improve the security of confidential data during communication transmission.

[0081] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.

[0082] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The above-mentioned program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0083] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0084] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

[0085] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A data security management method based on vulnerability detection, characterized in that: The method comprises the following steps: Step S1: A first terminal sends a key request signal to a key generation unit, wherein the key request signal includes identity data of a first object corresponding to the first terminal; Step S2: the key generation unit receives the key request signal, and generates a first dynamic key, a second dynamic key, a first verification message, and a second verification message based on the key request signal, obtains a first encryption key from a first key database in the key generation unit, encrypts the first dynamic key and the first verification message to obtain a first encrypted message package, and generates a first message based on the first encrypted message package, the first verification message, and the first encryption key information, and similarly generates a second message, and sends the first message and the second message to the first terminal and the second terminal corresponding to the first object, respectively; Step S3: the first terminal and the second terminal receive the first message and the second message respectively, and verify the authenticity of the first message and the second message respectively through the first verification message and the second verification message; Step S4: When the first message and the second message are respectively true, the first terminal obtains a first decryption key from a second key database based on the first encryption key information in the first message, decrypts the first encrypted message packet by using the first decryption key, obtains the first dynamic key, encrypts the confidential data of the first object by using the first dynamic key to obtain a digital token, and sends the digital token to the second terminal; Step S5: the second terminal obtains a second decryption key from a third key database based on the second encryption key information, decrypts the second encrypted message packet according to the second decryption key and obtains the second dynamic key, the second terminal receives the digital token, and decrypts the digital token using the second dynamic key to obtain the confidential data of the first object; Step S6: periodically updating the first key database of the key generation unit, and synchronously updating the second key database of the first terminal and the third key database of the second terminal; In the step S2, the first verification message and the second verification message are generated by the random generation module of the key generation unit, and the first verification message and the second verification message are a string of random numbers including n bytes; The step S3 comprises the following steps: Step S31: the first terminal receives the first message, obtains the first encryption key information from the first message, and obtains a first decryption key corresponding to the first encryption key from the second key database based on the first encryption key information; Step S32: decrypting the first encrypted message package in the first message according to the first decryption key to obtain the decrypted first dynamic key and the first verification message; Step S33: Compare the first verification message in the first message with the decrypted first verification message, and obtain a comparison result. If the first verification message and the decrypted first verification message are the same, determine that the first message is true, otherwise, determine that the first message is false; Step S34: Similarly, determining whether the second message received by the second terminal is true or false; The step S6 comprises the following steps: Step S61: the key generation unit generates a Mith key based on the seed key stored in the storage module in the key generation unit, randomly extracts a Nith key from the first key database, and encrypts the Mith key by the Nith key to obtain a third encrypted message packet, and sends the third encrypted message packet, the Nith key information and the first update information as a third message to the first terminal and the second terminal, wherein the Nith key is any key before the first key database is updated; Step S62: the first terminal receives the third message, obtains the first update information from the third message, and when the first update information is consistent with the first confirmation information stored in the first terminal, obtains the Ni-th key from the second key database according to the Ni-th key information in the third message, decrypts the third encrypted message packet using the Ni-th key, obtains the Mi-th key, replaces the Ni-th key with the Mi-th key, and sends the second update information to the key generation unit, otherwise, does not replace; similarly, updates the Ni-th key in the third key database in the second terminal; Step S63: the key generation unit receives the second update information of the first terminal and the second update information of the second terminal respectively, and compares the second update information of the first terminal and the second update information of the second terminal with the second confirmation information stored in the storage module of the key generation unit to obtain a first comparison result and a second comparison result. When the first comparison result and the second comparison result are both that the second confirmation information is consistent with the second update information sent by the first terminal and the second update information sent by the second terminal respectively, the Mi key replaces the Ni key in the first key database, otherwise repeat the steps S61 and S62 to re-update at least one of the Ni key in the first terminal and the second terminal that failed to update; Step S64: Repeat steps S61 to S63 to complete the synchronous update of the first key database, the second key database, and the third key database.

2. The data security management method based on vulnerability detection according to claim 1 is characterized in that: The step S3 also includes: when the second message received by the second terminal is true, sending a confirmation signal to the first terminal, and when the first terminal receives the confirmation signal within a predetermined time before or after the first terminal receives the first message, and when the first message is true, executing the step S4, otherwise, the first terminal re-sends the key request signal to the key generation unit.

3. A data security management system based on vulnerability detection, used to implement the method according to any one of claims 1-2, characterized in that: The system includes the following modules: A request unit, configured for the first terminal to send a key request signal to the key generation unit, wherein the key request signal includes identity data of the first terminal corresponding to the first object; a key generation unit, configured to receive the key request signal, and generate a first dynamic key, a second dynamic key, a first verification message, and a second verification message based on the key request signal, obtain a first encryption key from a first key database in the key generation unit, encrypt the first dynamic key and the first verification message to obtain a first encrypted message package, and generate a first message based on the first encrypted message package, the first verification message, and the first encryption key information, and similarly generate a second message, and send the first message and the second message to the first terminal and the second terminal corresponding to the first object, respectively; a verification unit, configured to verify the authenticity of the first message and the second message respectively on the first verification message and the second verification message after the first terminal and the second terminal receive the first message and the second message respectively; a sending unit, configured to, when the first message and the second message are respectively true, the first terminal obtains a first decryption key from a second key database based on the first encryption key information in the first message, decrypts the first encrypted message packet by using the first decryption key, obtains the first dynamic key, encrypts the confidential data of the first object by using the first dynamic key to obtain a digital token, and sends the digital token to the second terminal; A receiving unit, configured for the second terminal to obtain a second decryption key from a third key database based on the second encryption key information, decrypt the second encrypted message packet according to the second decryption key and obtain the second dynamic key, the second terminal to receive the digital token, and decrypt the digital token by using the second dynamic key to obtain the confidential data of the first object; An updating unit, configured to periodically update the first key database of the key generating unit, and simultaneously update the second key database of the first terminal and the third key database of the second terminal; The key generation unit is further configured to generate the first verification message and the second verification message through a random generation module of the key generation unit, wherein the first verification message and the second verification message are a string of random numbers including n bytes; The verification unit is further configured to receive the first message at the first terminal, obtain the first encryption key information from the first message, and obtain a first decryption key corresponding to the first encryption key from the second key database based on the first encryption key information; decrypt the first encrypted message packet in the first message according to the first decryption key, and obtain the decrypted first dynamic key and the first verification message; Compare the first verification message in the first message with the decrypted first verification message, and obtain a comparison result, and determine that the first message is true when the first verification message and the decrypted first verification message are the same, otherwise, the first message is false; similarly, determine the truth or falsity of the second message received by the second terminal; The updating unit is further used to generate a Mith key based on the seed key stored in the storage module in the key generating unit, and randomly extract a Nith key from the first key database, and encrypt the Mith key by the Nith key to obtain a third encrypted message packet, and send the third encrypted message packet, the Nith key information and the first update information as a third message to the first terminal and the second terminal, wherein the Nith key is any key before the first key database is updated; the first terminal receives the third message, obtains the first update information from the third message, and when the first update information is consistent with the first confirmation information stored in the first terminal, obtains the Nith key from the second key database according to the Nith key information in the third message, and uses the Nith key to decrypt the third encrypted message packet, and obtains the Mith key, and replaces the Nith key with the Mith key, and sends the second update information to the key generating unit, otherwise, No replacement; similarly, update the Ni-th key in the third key database in the second terminal; the key generation unit receives the second update information of the first terminal and the second update information of the second terminal respectively, and compares the second update information of the first terminal and the second update information of the second terminal with the second confirmation information stored in the storage module of the key generation unit to obtain a first comparison result and a second comparison result. When the first comparison result and the second comparison result are both that the second confirmation information is consistent with the second update information sent by the first terminal and the second update information sent by the second terminal respectively, replace the Ni-th key in the first key database with the Mi-th key, otherwise repeat the steps S61 and S62 to re-update at least one of the Ni-th key updates in the first terminal and the second terminal that failed; repeat the steps S61 to S63 to complete the synchronous update of the first key database, the second key database, and the third key database.

4. A computer storage medium, characterized in that: The storage medium stores program instructions, wherein when the program instructions are executed, the device where the storage medium is located is controlled to execute the data security management method based on vulnerability detection as described in any one of claims 1-2.