Terminal trusted connection method and device based on block chain, and distributed communication system
Through the blockchain-based terminal trusted connection method, using session keys and platform integrity reports, the security threat problem of terminal devices in the cloud network environment is solved, and a secure and trusted connection between terminal devices and the network environment is achieved. safety guarantee.
Patent Information
- Application Number
- CN202410457760.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-16
- Publication Date
- 2024-08-23
AI Technical Summary
In the existing technology, terminal devices are vulnerable to network threats from unauthorized users and illegal platforms in cloud network environments, leading to security threats and data leaks, and there is a lack of effective solutions.
Adopt a blockchain-based terminal trusted connection method to ensure trusted network connections between terminals through session key generation and platform integrity reporting, detect platform integrity and prevent illegal access, and use the blockchain network to verify terminal identities. and platform integrity.
It realizes safe and trusted connections between terminal devices, prevents intrusions from unauthorized users and illegal platforms, and ensures the security and data protection of the entire network environment.
Smart Images

Figure CN118540100A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology or other related fields, and in particular to a terminal trusted connection method and device based on blockchain, and a distributed communication system. Background Art
[0002] With the rapid increase in business terminals and application systems, in the cloud network environment, when terminals interact with each other, it is necessary to perform operations such as identifying the identity of the device terminal, protecting privacy information, maintaining system security, and accurately protecting data in advance. The terminal devices in the network environment of related technologies face a certain degree of security threats, including:
[0003] (1) Unauthorized users pose network threats. As a terminal user, if a user accesses the network environment without initial registration, then this type of user is an unauthorized user and may have the following attack behaviors: 1) directly access the network and steal and destroy the data and environment of the entire distributed system; 2) establish a trusted network connection with other terminals in the system and actively steal the other party's private trusted information; 3) launch a man-in-the-middle attack to spy on and steal the private data of other terminal communication sessions. As a result, unauthorized users will successfully access the distributed network and further pose a serious threat to each terminal node in the entire distributed system.
[0004] (2) Illegal platforms pose network threats. As a platform for terminal devices, if the platform is illegal, that is, the attacker manipulates the platform of the terminal device so that its integrity cannot meet the network access policy, then the attacker may have the following attack behaviors: 1) Transmit false platform measurement data to other trusted terminals during the two-way verification process; 2) Broadcast false transactions containing the integrity of the illegal platform to the blockchain. As a result, the illegal platform is identified as a trusted platform that meets the network access policy and further successfully invades the network environment.
[0005] (3) Platform replacement attacks pose network threats. If an authorized attacker with an illegal platform can collude with another unauthorized attacker with a legal platform, this type of attack has the following attack behaviors: 1) Disguise as a trusted terminal and successfully access the protected network environment; 2) Be able to establish a trusted network connection with other trusted terminals and actively steal their private information. As a result, this type of attack will destroy the security environment of the entire trusted network.
[0006] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0007] The embodiments of the present invention provide a terminal trusted connection method and device, and a distributed communication system based on blockchain, so as to at least solve the technical problem in the related technology that terminal devices in a network environment are susceptible to network threats.
[0008] According to one aspect of an embodiment of the present invention, a terminal trusted connection method based on blockchain is provided, which is applied to a current terminal pre-installed with trusted protection software, including: receiving a session request from a session request terminal, and sending the generated session response information to the session request terminal, wherein the session request includes at least one of the following: the identity identifier of the session request terminal, the terminal identifier, and any pre-selected random number, and the session response information includes: the identity identifier of the current terminal, the terminal identifier, and any pre-selected random number; receiving a transaction public key returned by the session request terminal, forming a key pair with the transaction public key and the transaction private key of the current terminal, generating a session key for this trusted network connection based on the key pair, sending the session key to the session request terminal, and establishing a trusted network connection with the session request terminal through the session key; receiving a certification response information, after decrypting the authentication response information, obtaining the platform integrity report and platform measurement value of the session request terminal, wherein the platform integrity report is an integrity report generated based on the key sub-product, the trusted report and the identity of the session request terminal, and the platform measurement value is the measurement value obtained by the session request terminal through the trusted platform control module to measure the integrity of the terminal platform; transmitting the platform integrity report and the platform measurement value to the blockchain network, and the blockchain network detects whether the platform integrity report and the platform measurement value of the session request terminal meet the network access policy; if the network access policy is met, signing the verification information transmitted by the session request terminal, integrating the platform integrity report of the session request terminal and the signed verification information into an update transaction, and uploading the transaction record of the update transaction to the blockchain according to the transaction consensus mechanism.
[0009] Optionally, before receiving the session request from the session request terminal, the method further includes: calling a trusted platform control module through trusted protection software pre-installed on the current terminal, calling a preset function interface through the trusted platform control module, performing integrity measurement on the terminal platform, and obtaining a platform measurement value; generating terminal registration information based on the terminal identifier of the current terminal, the platform measurement value, and signature information; sending the terminal registration information to a trusted third-party object, verifying the redundant features of the terminal identifier, the complete features of the platform measurement value, and the correctness of the signature information by the trusted third-party object to obtain a verification result, and when the verification result indicates that the verification is passed, the trusted third-party object signs the terminal registration information, and generates response registration information based on the signed terminal registration information; and receiving the response registration information transmitted by the trusted third-party object.
[0010] Optionally, the step of calling a preset function interface through the trusted platform control module to measure the integrity of the terminal platform and obtain a platform measurement value includes: calling a preset function interface through the trusted platform control module, and having the preset function interface perform an initial measurement of the platform integrity of the terminal platform to obtain an initial measurement value; calling a pre-configured trusted trust chain based on the initial measurement value, starting from the trust root of the terminal platform, performing hierarchical progressive verification to obtain the platform measurement value.
[0011] Optionally, the trusted third-party object signs the terminal registration information, and generates response registration information based on the signed terminal registration information, including: after signing the terminal registration information, the trusted third-party object integrates the signature value with the terminal registration information of the current terminal to generate a plain text verification information; the trusted third-party object encrypts the plain text verification information based on the public key of the current terminal to obtain a ciphertext verification information; the trusted third-party object injects the ciphertext verification information into the response registration information, and sends the response registration information to the current terminal.
[0012] Optionally, after receiving the response registration information transmitted by the trusted third-party object, it also includes: using the terminal private key to decrypt the verification information ciphertext in the response registration information, and performing signature value verification on the verification information ciphertext; when the signature value verification passes, reintegrating the decrypted verification information plaintext into a basic transaction, broadcasting the basic transaction to a distributed network environment, uploading the transaction record of the basic transaction to the blockchain, and completing the terminal network initialization operation of the current terminal, wherein the transaction record of the basic transaction includes: transaction identifier, terminal identifier, register value, platform measurement value, terminal private key signature value, and signature value of a trusted third-party object.
[0013] Optionally, after sending the generated session response information to the session requesting terminal, it also includes: generating the transaction private key based on the session timestamp of the current terminal; using the transaction private key to query the blockchain, obtain the transaction record of the most recent transaction of the current terminal, and extract the signature information in the transaction record, wherein the transaction type of the most recent transaction is one of the following: basic transaction or update transaction; based on the signature information, generating the transaction public key of the session requesting terminal.
[0014] Optionally, after sending the session key to the session request terminal, the method further includes: sending an authentication request to the session request terminal, wherein after receiving the authentication request, the session request terminal calculates two key sub-products according to a current timestamp, uses the key sub-products as verification keys for network information transmission with the current terminal, uses trusted protection software to perform trust measurement on the terminal operation status, generates a trusted report, binds the key sub-products, the trusted report and the identity of the session request terminal, and generates the platform integrity report.
[0015] According to another aspect of an embodiment of the present invention, a distributed communication system is also provided, including: a session request terminal, initiating a session request, and returning a transaction public key to a session response terminal, wherein the session request includes at least one of the following: an identity identifier of the session request terminal, a terminal identifier, and any pre-selected random number; a session response terminal, sending the generated session response information to the session request terminal, receiving the authentication response information transmitted by the session request terminal, and after decrypting the authentication response information, obtaining a platform integrity report and a platform measurement value of the session request terminal, and transmitting the platform integrity report and the platform measurement value to a blockchain network, wherein the session response information includes: the identity identifier of the current terminal, the terminal identifier, and any pre-selected random number, and the platform integrity report The report is an integrity report generated based on the key sub-product, the trusted report and the identity of the session request terminal, and the platform measurement value is a measurement value obtained by the session request terminal through the trusted platform control module to measure the integrity of the terminal platform; the blockchain detects whether the platform integrity report and the platform measurement value of the session request terminal meet the network access policy, and receives the transaction record transmitted by the session response terminal, and timestamps the transaction record; wherein, if the platform integrity report and the platform measurement value meet the network access policy, the session response terminal signs the verification information transmitted by the session request terminal, integrates the platform integrity report of the session request terminal and the signed verification information into an update transaction, and uploads the transaction record of the update transaction to the blockchain according to the transaction consensus mechanism.
[0016] Optionally, the session response terminal includes: a registration module, which calls a trusted platform control module through pre-installed trusted protection software, and calls a preset function interface through the trusted platform control module to perform integrity measurement on the terminal platform to obtain a platform measurement value; generates terminal registration information based on the terminal identification of the session response terminal, the platform measurement value and signature information; sends the terminal registration information to a trusted third-party object, and the trusted third-party object verifies the redundant features of the terminal identification, the complete features of the platform measurement value and the correctness of the signature information to obtain a verification result, and when the verification result indicates that the verification is passed, the trusted third-party object verifies the terminal registration information. The basic transaction upload module signs the verification information in the response registration information, and generates response registration information based on the signed terminal registration information; receives the response registration information transmitted by the trusted third-party object; the basic transaction upload module uses the terminal private key to decrypt the verification information ciphertext in the response registration information, and performs signature value verification on the verification information ciphertext; when the signature value verification passes, the decrypted verification information plaintext is reintegrated into the basic transaction, and the basic transaction is broadcast to the distributed network environment, and the transaction record of the basic transaction is uploaded to the blockchain, wherein the transaction record of the basic transaction includes: transaction identifier, terminal identifier, register value, platform measurement value, terminal private key signature value and signature value of the trusted third-party object.
[0017] Optionally, it also includes: a trusted third-party object, after signing the terminal registration information, integrates the signature value with the terminal registration information of the session response terminal to generate a plain text verification information; based on the public key of the session response terminal, encrypts the plain text verification information to obtain a cipher text verification information; injects the cipher text verification information into the response registration information, and sends the response registration information to the session response terminal.
[0018] According to another aspect of an embodiment of the present invention, a terminal trusted connection device based on blockchain is also provided, which is applied to a current terminal pre-installed with trusted protection software, including: a session request receiving unit, which is used to receive a session request from a session request terminal, and send the generated session response information to the session request terminal, wherein the session request includes at least one of the following: the identity identifier of the session request terminal, the terminal identifier, and any pre-selected random number, and the session response information includes: the identity identifier of the current terminal, the terminal identifier, and any pre-selected random number; a public key receiving unit, which is used to receive a transaction public key returned by the session request terminal, form a key pair with the transaction public key and the transaction private key of the current terminal, generate a session key for this trusted network connection based on the key pair, send the session key to the session request terminal, and establish a trusted network connection with the session request terminal through the session key; a response information receiving unit, which is used to receive the transaction public key returned by the session request terminal, form a key pair with the transaction public key and the transaction private key of the current terminal, generate a session key for this trusted network connection based on the key pair, send the session key to the session request terminal, and establish a trusted network connection with the session request terminal through the session key; The authentication response information transmitted by the terminal is decrypted to obtain the platform integrity report and platform measurement value of the session request terminal, wherein the platform integrity report is an integrity report generated based on the key sub-product, the trusted report and the identity of the session request terminal, and the platform measurement value is a measurement value obtained by the session request terminal through the trusted platform control module to measure the integrity of the terminal platform; a platform measurement unit is used to transmit the platform integrity report and the platform measurement value to the blockchain network, and the blockchain network detects whether the platform integrity report and the platform measurement value of the session request terminal meet the network access policy; a transaction record uploading unit is used to sign the verification information transmitted by the session request terminal when the network access policy is met, integrate the platform integrity report of the session request terminal and the signed verification information into an update transaction, and upload the transaction record of the update transaction to the blockchain according to the transaction consensus mechanism.
[0019] Optionally, the blockchain-based terminal trusted connection device also includes: a control module calling unit, which is used to call the trusted platform control module through the trusted protection software pre-installed on the current terminal before receiving the session request of the session request terminal, and call the preset function interface through the trusted platform control module to perform integrity measurement on the terminal platform to obtain the platform measurement value; a terminal registration information generating unit, which is used to generate terminal registration information based on the terminal identification of the current terminal, the platform measurement value and signature information; a platform measurement information verification unit, which is used to send the terminal registration information to a trusted third-party object, and the trusted third-party object verifies the redundant characteristics of the terminal identification, the complete characteristics of the platform measurement value and the correctness of the signature information to obtain a verification result, and when the verification result indicates that the verification is passed, the trusted third-party object signs the terminal registration information, and generates response registration information based on the signed terminal registration information; a response registration information receiving unit, which is used to receive the response registration information transmitted by the trusted third-party object.
[0020] Optionally, the control module calling unit includes: a function interface calling module, which is used to call a preset function interface through the trusted platform control module, and the preset function interface performs an initial measurement on the platform integrity of the terminal platform to obtain an initial measurement value; a platform measurement module, which is used to call a pre-configured trusted trust chain based on the initial measurement value, and perform hierarchical progressive verification starting from the trust root of the terminal platform to obtain the platform measurement value.
[0021] Optionally, the platform measurement information verification unit includes: an information integration module, which is used for the trusted third-party object to integrate the signature value with the terminal registration information of the current terminal after signing the terminal registration information, so as to generate a plain text of verification information; an information plain text encryption module, which is used for the trusted third-party object to encrypt the plain text of verification information based on the public key of the current terminal to obtain a ciphertext of verification information; and a ciphertext injection module, which is used for the trusted third-party object to inject the ciphertext of verification information into the response registration information, and send the response registration information to the current terminal.
[0022] Optionally, the terminal trusted connection device based on blockchain also includes: an information ciphertext decryption unit, which is used to use the terminal private key to decrypt the verification information ciphertext in the response registration information after receiving the response registration information transmitted by the trusted third-party object, and perform signature value verification on the verification information ciphertext; a plaintext integration unit, which is used to reintegrate the decrypted verification information plaintext into a basic transaction when the signature value verification passes, broadcast the basic transaction to a distributed network environment, upload the transaction record of the basic transaction to the blockchain, and complete the terminal network initialization operation of the current terminal, wherein the transaction record of the basic transaction includes: transaction identifier, terminal identifier, register value, platform measurement value, terminal private key signature value and signature value of the trusted third-party object.
[0023] Optionally, the terminal trusted connection device based on blockchain also includes: a transaction private key generation unit, used to generate the transaction private key based on the session timestamp of the current terminal after sending the generated session response information to the session request terminal; a blockchain query unit, used to use the transaction private key to query the blockchain, obtain the transaction record of the most recent transaction of the current terminal, and extract the signature information in the transaction record, wherein the transaction type of the most recent transaction is one of the following: basic transaction or update transaction; a transaction public key generation unit, used to generate the transaction public key of the session request terminal based on the signature information.
[0024] Optionally, the blockchain-based terminal trusted connection device also includes: an authentication request sending unit, used to send an authentication request to the session request terminal after sending the session key to the session request terminal, wherein after receiving the authentication request, the session request terminal calculates two key sub-products according to the current timestamp, uses the key sub-products as verification keys for network information transmission with the current terminal, and uses trusted protection software to perform trust measurement on the terminal operation status, generates a trusted report, binds the key sub-products, the trusted report and the identity of the session request terminal, and generates the platform integrity report.
[0025] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is also provided, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned blockchain-based terminal trusted connection methods.
[0026] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement any one of the above-mentioned blockchain-based terminal trusted connection methods.
[0027] In the present disclosure, a session request of a session request terminal is received, and the generated session response information is sent to the session request terminal, then a transaction public key returned by the session request terminal is received, the transaction public key and the transaction private key of the current terminal are combined into a key pair, a session key for this trusted network connection is generated based on the key pair, the session key is sent to the session request terminal, a trusted network connection is established with the session request terminal through the session key, authentication response information transmitted by the session request terminal is received, and after decrypting the authentication response information, a platform integrity report and a platform measurement value of the session request terminal are obtained, wherein the platform integrity report is an integrity report generated based on the key sub-product, the trusted report and the identity of the session request terminal, and the platform measurement value is the measurement value obtained by the session request terminal through the trusted platform control module to measure the integrity of the terminal platform, and the platform integrity report and the platform measurement value are transmitted to the blockchain network, and the blockchain network detects whether the platform integrity report and the platform measurement value of the session request terminal meet the network access policy. If the network access policy is met, the verification information transmitted by the session request terminal is signed, and the platform integrity report of the session request terminal and the signed verification information are integrated into an update transaction, and the transaction record of the update transaction is uploaded to the blockchain according to the transaction consensus mechanism.
[0028] The present disclosure can ensure the security of the session between two terminals through the session key, and can identify unauthorized users while ensuring that authorized and trusted users successfully access the network, and prevent unauthorized users from further accessing the network or establishing a trusted network connection with other trusted terminals, thereby ensuring the security of the entire network environment. At the same time, in the present embodiment, during the trusted network connection session, the trusted terminal can detect and identify the false measurement values transmitted by the attacker's illegal platform while proving the integrity of its own legitimate platform, interrupt the session connection with the attacker and further prevent the illegal platform device from intruding into the secure and trusted network environment, thereby solving the technical problem that the terminal devices in the network environment are vulnerable to network threats in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0030] Figure 1 is a flowchart of an optional blockchain-based terminal trusted connection method according to an embodiment of the present invention;
[0031] Figure 2 is a schematic diagram of an optional distributed communication system according to an embodiment of the present invention;
[0032] Figure 3 is a schematic diagram of an optional blockchain-based trusted network connection framework according to an embodiment of the present invention;
[0033] Figure 4 is a schematic diagram of an optional blockchain-based terminal trusted connection device according to an embodiment of the present invention;
[0034] Figure 5 This is a hardware structure block diagram of an electronic device (or mobile device) according to a terminal trusted connection method based on blockchain according to an embodiment of the present invention. DETAILED DESCRIPTION
[0035] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0036] It should be noted that the terms "first", "second", etc. 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 of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "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.
[0037] To facilitate those skilled in the art to understand the present invention, some terms or nouns involved in the embodiments of the present invention are explained below:
[0038] Trusted terminal: a terminal with trusted security protection software installed.
[0039] Dynamic measurement is a method of periodically measuring the integrity of the operating system through mechanisms such as timing triggering and conditional triggering while the operating system is running.
[0040] TCM, Trusted Cryptographic Module, is a hardware module of the trusted computing platform that provides cryptographic operations for the trusted computing platform and has protected storage space.
[0041] TPCM, Trusted Platform Control Module, is a hardware core module integrated in the trusted computing platform for establishing and protecting the trust source point, providing integrity measurement, secure storage, trusted reporting, and cryptographic services for trusted computing.
[0042] Trust measurement is the action of measuring, evaluating and judging the security of system integrity and behavior (including the subject, object, process status, operation type, access resources and system environment of the behavior).
[0043] It should be noted that the blockchain-based terminal trusted connection method and its device in the present disclosure can be used in the field of blockchain technology when security verification is performed on the communication connection between network terminals based on blockchain, and can also be used in any field other than the field of blockchain technology when security verification is performed on the communication connection between network terminals based on blockchain. The present disclosure does not limit the application field of the blockchain-based terminal trusted connection method and its device.
[0044] It should be noted that the information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) collected by this disclosure are information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with the relevant laws, regulations and standards of the relevant regions, necessary confidentiality measures are taken, and public order and good customs are not violated, and corresponding operation portals are provided for users to choose to authorize or refuse. For example, an interface is set up between this system and relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.
[0045] It should be noted that in the present disclosure, when collecting and analyzing customer information, corresponding operation entrances are provided for users to choose to agree or reject the automated decision results; if the user chooses to reject, the expert decision-making process is entered.
[0046] The following embodiments of the present invention can be applied to various blockchain-based terminal trusted connection systems / applications / devices. The present invention proposes a terminal network trusted connection method integrating blockchain technology, which can perform user authorization, identity authentication, and resist platform replacement attacks.
[0047] User authentication: The present invention can verify and identify authorized and unauthorized users, that is, while ensuring that authorized and trusted users successfully access the network, it can also identify unauthorized users and prevent them from further accessing the network or establishing a trusted network connection with other trusted terminals, thereby ensuring the security of the entire network environment.
[0048] Identity authentication: The present invention can detect the integrity of the terminal platform, that is, during a trusted network connection session, the trusted terminal can detect and identify the false measurement values transmitted by the attacker's illegal platform while proving the integrity of its own legitimate platform, thereby interrupting the session connection with the attacker and further preventing illegal platform devices from intruding into the secure and trusted network environment.
[0049] Resisting platform replacement attacks: The solution of the present invention can resist platform replacement attacks, that is, by extending the trusted network connection framework, it can successfully resist this specific attack model in which authorized users with illegal platforms and unauthorized users with legal platforms collude in a distributed environment based on blockchain.
[0050] The present invention is described in detail below in conjunction with various embodiments.
[0051] Embodiment 1
[0052] According to an embodiment of the present invention, an embodiment of a terminal trusted connection method based on blockchain is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.
[0053] The embodiment of the present invention provides a terminal trusted connection method based on blockchain, which is applied to the current terminal pre-installed with trusted protection software. The trusted protection software measures the trustworthiness of the current terminal, and measures, evaluates and determines the security of the integrity and behavior (including the subject, object, process status, operation type, access resources and system environment) of the terminal installed applications and the system.
[0054] Figure 1 is a flowchart of an optional blockchain-based terminal trusted connection method according to an embodiment of the present invention, such as Figure 1 As shown, the method comprises the following steps:
[0055] Step S101, receiving a session request from a session requesting terminal, and sending generated session response information to the session requesting terminal, wherein the session request includes at least one of the following: an identity identifier of the session requesting terminal, a terminal identifier, and any pre-selected random number, and the session response information includes: an identity identifier of the current terminal, a terminal identifier, and any pre-selected random number.
[0056] It should be noted that the terminal mentioned in this embodiment can be used as both a session request terminal and a session response terminal. For the session request terminal A, it can include user A and platform A. Terminal A, as a requester, can initiate a session request and establish a trusted network connection with terminal B, and then obtain the current platform integrity measurement value of terminal B by message passing. Then terminal A can identify and authenticate the user and platform of terminal B and broadcast its updated verification results to the blockchain. For the session response terminal B, that is, the current terminal mentioned in this embodiment, as a responder, it can respond to the session request of terminal A and establish a trusted connection, and then obtain the current platform integrity measurement value of terminal A by message passing. Then the terminal can identify and authenticate the user and platform of terminal A and broadcast its updated verification results to the blockchain.
[0057] This embodiment also includes an execution entity: blockchain, which is responsible for maintaining and updating the transaction information it receives throughout the process.
[0058] It should be noted that the terminal identity mentioned in this embodiment may refer to identification information of the user to which the terminal belongs, such as a terminal ID number, and the terminal identifier may refer to the hardware address of the terminal, such as a physical MAC address.
[0059] In the process of establishing a session request, in order to start the identification and authentication of the terminal identity and the platform, the session request initiated by the session requesting terminal may include the identity of the current terminal in addition to the identity of the session requesting terminal, the terminal identifier, and any pre-selected random number. The session response information generated by the current terminal and sent to the session requesting terminal may include the identity of the session requesting terminal in addition to the identity of the current terminal, the terminal identifier, and any pre-selected random number.
[0060] Step S102, receiving the transaction public key returned by the session request terminal, combining the transaction public key and the transaction private key of the current terminal into a key pair, generating a session key for this trusted network connection based on the key pair, sending the session key to the session request terminal, and establishing a trusted network connection with the session request terminal through the session key.
[0061] After the current terminal completes sending the session response information, in order to complete the two-way user authentication process in the trusted network connection phase, both parties in the session must generate their own specific transaction private keys before conducting the key negotiation process.
[0062] Optionally, after sending the generated session response information to the session requesting terminal, it also includes: generating a transaction private key based on the session timestamp of the current terminal; using the transaction private key to query the blockchain, obtaining the transaction record of the most recent transaction of the current terminal, and extracting the signature information in the transaction record, wherein the transaction type of the most recent transaction is one of the following: a basic transaction or an update transaction; based on the signature information, generating a transaction public key of the session requesting terminal.
[0063] After the current terminal derives its own specific transaction private key, it can query the blockchain and obtain the signature information in the terminal's most recent transaction record (basic transaction or update transaction), and then generate a transaction public key about the terminal.
[0064] The current terminal can calculate the public parameters of this session (transaction public key and transaction private key), and the current terminal can generate the session key for this trusted network connection. Similarly, the session requesting terminal can also derive the session key for this trusted network connection based on its own specific transaction private key and the current terminal's specific transaction public key.
[0065] Step S103, receiving the authentication response information transmitted by the session request terminal, and after decrypting the authentication response information, obtaining the platform integrity report and platform measurement value of the session request terminal, wherein the platform integrity report is an integrity report generated based on the key sub-product, trusted report and identity identification of the session request terminal, and the platform measurement value is a measurement value obtained by the session request terminal through the trusted platform control module to measure the integrity of the terminal platform.
[0066] Optionally, after sending the session key to the session request terminal, the method further includes: sending an authentication request to the session request terminal, wherein after receiving the authentication request, the session request terminal calculates two key sub-products according to the current timestamp, uses the key sub-products as verification keys for network information transmission with the current terminal, uses trusted protection software to perform trust measurement on the terminal operation status, generates a trusted report, binds the key sub-products, the trusted report and the identity of the session request terminal, and generates a platform integrity report.
[0067] After the terminal generates the session key, in order to further perform the platform authentication process in the trusted network connection stage, the two key sub-products are used as verification keys for subsequent message transmission.
[0068] Subsequently, the terminal binds the key sub-product, the trusted report and the identity to generate an integrity report. The integrity report binds the system status with the session status, which not only effectively guarantees the authentication process of the subsequent platform, but also can resist man-in-the-middle attacks.
[0069] Step S104: The platform integrity report and the platform measurement value are transmitted to the blockchain network, and the blockchain network detects whether the platform integrity report and the platform measurement value of the session request terminal meet the network access policy.
[0070] The two parties who have passed the user authentication process will continue the blockchain-based platform authentication process, that is, to detect whether the platform integrity report and platform measurement values sent by the other party meet the network access policy. If they meet, they will sign the verification information sent by the other party; if not, the session connection will be terminated.
[0071] Step S105, when the network access policy is met, the verification information transmitted by the session request terminal is signed, the platform integrity report of the session request terminal and the signed verification information are integrated into an update transaction, and the transaction record of the update transaction is uploaded to the blockchain according to the transaction consensus mechanism.
[0072] The two parties in the conversation integrate their respective signed verification information into an update transaction and broadcast it to the entire network environment, and then upload the update transaction to the blockchain according to the relevant consensus mechanism. Finally, the update transaction of both parties in the conversation is added to the blockchain.
[0073] Through the above steps, a session request from a session request terminal can be received, and the generated session response information can be sent to the session request terminal, and then a transaction public key returned by the session request terminal can be received, and the transaction public key and the transaction private key of the current terminal can be used to form a key pair, and a session key for this trusted network connection can be generated based on the key pair, and the session key can be sent to the session request terminal, and a trusted network connection can be established with the session request terminal through the session key, and the authentication response information transmitted by the session request terminal can be received. After decrypting the authentication response information, a platform integrity report and a platform measurement value of the session request terminal can be obtained, wherein the platform integrity report is an integrity report generated based on the key sub-product, the trusted report and the identity of the session request terminal, and the platform measurement value is the measurement value obtained by the session request terminal performing integrity measurement on the terminal platform through the trusted platform control module, and the platform integrity report and the platform measurement value are transmitted to the blockchain network, and the blockchain network detects whether the platform integrity report and the platform measurement value of the session request terminal meet the network access policy, and if the network access policy is met, the verification information transmitted by the session request terminal is signed, and the platform integrity report of the session request terminal and the signed verification information are integrated into an update transaction, and the transaction record of the update transaction is uploaded to the blockchain according to the transaction consensus mechanism. In this embodiment, the security of the two terminal sessions can be guaranteed by the session key. While ensuring that the authorized and trusted users can successfully access the network, unauthorized users can be identified and prevented from further accessing the network or establishing a trusted network connection with other trusted terminals, thereby ensuring the security of the entire network environment. At the same time, in this embodiment, during the trusted network connection session, the trusted terminal can detect and identify the false measurement values transmitted by the attacker's illegal platform while proving the integrity of its own legitimate platform, interrupt the session connection with the attacker and further prevent the illegal platform device from intruding into the secure and trusted network environment, thereby solving the technical problem in the related technology that the terminal devices in the network environment are vulnerable to network threats.
[0074] The embodiments of the present invention can be applied to various systems / software that implement trusted network connections between terminals based on blockchain.
[0075] The embodiment of the present invention is described in detail below in combination with the above steps.
[0076] Optionally, between the trusted network connections, initialization operations of the two terminals need to be completed, and the initialization operations may include: a registration phase and a basic transaction upload phase.
[0077] For the registration phase of the initialization operation, before receiving the session request of the session request terminal, this embodiment calls the trusted platform control module through the trusted protection software pre-installed on the current terminal, and calls the preset function interface through the trusted platform control module to measure the integrity of the terminal platform and obtain the platform measurement value; based on the terminal identification, platform measurement value and signature information of the current terminal, terminal registration information is generated; the terminal registration information is sent to the trusted third-party object, and the trusted third-party object verifies the redundant characteristics of the terminal identification, the complete characteristics of the platform measurement value and the correctness of the signature information to obtain the verification result, and when the verification result indicates that the verification is passed, the trusted third-party object signs the terminal registration information, and generates response registration information based on the signed terminal registration information; and receives the response registration information transmitted by the trusted third-party object.
[0078] Optionally, the step of calling a preset function interface through the trusted platform control module to measure the integrity of the terminal platform and obtain a platform measurement value includes: calling a preset function interface through the trusted platform control module, and performing an initial measurement on the platform integrity of the terminal platform by the preset function interface to obtain an initial measurement value; calling a pre-configured trusted trust chain based on the initial measurement value, starting from the trust root of the terminal platform, performing hierarchical progressive verification, and obtaining a platform measurement value.
[0079] When the device system is started, the terminal needs to perform a power-on self-test and measure the platform integrity of its own device with the help of the TPCM chip. The platform integrity is measured by the value stored in the platform configuration register (PCR). Then, the terminal uses the trust chain technology to start from the trust root, layer by layer, and perform hierarchical verification to finally obtain the integrity measurement value of its platform.
[0080] In order to complete the initial registration process of identity and platform, the terminal will establish a secure connection with a trusted third party. Then, the trusted third party will verify the identity of the terminal, that is, check its identity for duplication by checking the historical logs, in order to effectively resist replay attacks. If it is found that the terminal repeatedly registers its own platform information, the trusted third party will terminate the secure connection with the terminal and add its identity to the threat list.
[0081] Optionally, the trusted third-party object signs the terminal registration information, and generates response registration information based on the signed terminal registration information, including: after signing the terminal registration information, the trusted third-party object integrates the signature value with the terminal registration information of the current terminal to generate a plain text verification information; the trusted third-party object encrypts the plain text verification information based on the public key of the current terminal to obtain a ciphertext verification information; the trusted third-party object injects the ciphertext verification information into the response registration information, and sends the response registration information to the current terminal.
[0082] When the trusted third party receives the registration request information from the terminal, the trusted third party first uses its own private key to perform a decryption operation on the final registration information ciphertext to obtain the final registration information plaintext of the terminal.
[0083] After completing the signing operation on the final registration information of the terminal, the trusted third party reintegrates the signature value with the final registration information of the terminal into the verification information plaintext. The trusted third party then obtains the public key of the terminal from the certificate and encrypts the verification information plaintext to generate the verification information ciphertext. Finally, the trusted third party injects the ciphertext information into the response registration information and sends it to the terminal.
[0084] For the basic transaction upload phase of the initialization operation. Optionally, after receiving the response registration information transmitted by the trusted third-party object, it also includes: using the terminal private key to decrypt the verification information ciphertext in the response registration information, and verifying the signature value of the verification information ciphertext; if the signature value verification passes, the decrypted verification information plaintext is reintegrated into the basic transaction, and the basic transaction is broadcast to the distributed network environment, and the transaction record of the basic transaction is uploaded to the blockchain to complete the terminal network initialization operation of the current terminal, wherein the transaction record of the basic transaction includes: transaction identification, terminal identification, register value, platform measurement value, terminal private key signature value and signature value of the trusted third-party object.
[0085] After receiving the signed registration information from a trusted third party, the terminal integrates the information into a basic transaction and broadcasts it to the entire network environment, and then uploads the basic transaction to the blockchain according to the relevant consensus mechanism. Finally, the basic transaction of the terminal is added to the blockchain.
[0086] When the terminal receives the registration response from a trusted third party, it first uses its own private key to decrypt the verification information ciphertext, and then further verifies the correctness of the signature, in order to effectively prevent man-in-the-middle attacks. When the signature value is verified, the terminal will re-integrate the verification information plaintext into its own basic transaction and broadcast it to the entire network environment, and then upload the transaction record to the blockchain according to the consensus mechanism. At this time, the initialization phase of the terminal is over.
[0087] Optionally, the basic transaction of the terminal mentioned in this embodiment includes but is not limited to: transaction ID, device ID, register value, measurement value, counter value, private key signature and trusted third party signature.
[0088] Through the above embodiments, a distributed trusted network architecture based on blockchain is provided, which utilizes the decentralized, secure and reliable characteristics of blockchain to provide a distributed storage mechanism for verification between terminals. At the same time, the session key sub-product is bound to the trusted report to effectively resist platform replacement attacks and ensure the security of the distributed network environment.
[0089] Another optional specific implementation is described in detail below.
[0090] According to another aspect of an embodiment of the present invention, there is provided a distributed communication system, including:
[0091] The session request terminal is used to initiate a session request and return the transaction public key to the session response terminal, wherein the session request includes at least one of the following: an identity identifier of the session request terminal, a terminal identifier, and any pre-selected random number.
[0092] The session response terminal is used to send the generated session response information to the session request terminal, receive the authentication response information transmitted by the session request terminal, obtain the platform integrity report and platform measurement value of the session request terminal after decrypting the authentication response information, and transmit the platform integrity report and platform measurement value to the blockchain network, wherein the session response information includes: the identity of the current terminal, the terminal identity and any pre-selected random number, the platform integrity report is an integrity report generated based on the key sub-product, the trusted report and the identity of the session request terminal, and the platform measurement value is the measurement value obtained by the session request terminal through the trusted platform control module to measure the integrity of the terminal platform.
[0093] Optionally, the session response terminal mentioned in this embodiment includes: a registration module, calling a trusted platform control module through pre-installed trusted protection software, calling a preset function interface through the trusted platform control module, performing integrity measurement on the terminal platform, and obtaining a platform measurement value; generating terminal registration information based on the terminal identifier, platform measurement value, and signature information of the session response terminal; sending the terminal registration information to a trusted third-party object, and the trusted third-party object verifies the redundant features of the terminal identifier, the complete features of the platform measurement value, and the correctness of the signature information to obtain a verification result, and when the verification result indicates that the verification is passed, the trusted third-party object verifies the terminal registration information. The basic transaction upload module uses the terminal private key to decrypt the verification information ciphertext in the response registration information, and performs signature value verification on the verification information ciphertext; when the signature value verification passes, the decrypted verification information plaintext is reintegrated into the basic transaction, and the basic transaction is broadcast to the distributed network environment, and the transaction record of the basic transaction is uploaded to the blockchain, wherein the transaction record of the basic transaction includes: transaction identifier, terminal identifier, register value, platform measurement value, terminal private key signature value and signature value of the trusted third-party object.
[0094] Blockchain,detects whether the platform integrity report and platform measurement value of the,session request terminal meet the network access policy, and receives the transaction,records transmitted by the session response terminal, and timestamps the transaction,records.
[0095] Among them, when the platform integrity report and platform measurement values meet the network access policy, the session response terminal signs the verification information transmitted by the session request terminal, integrates the platform integrity report of the session request terminal and the signed verification information into an update transaction, and uploads the transaction record of the update transaction to the blockchain according to the transaction consensus mechanism.
[0096] It should be noted that the distributed communication system in this embodiment also includes: a trusted third-party object, after signing the terminal registration information, integrates the signature value with the terminal registration information of the session response terminal to generate a plain text verification information; based on the public key of the session response terminal, encrypts the plain text verification information to obtain a cipher text verification information; injects the cipher text verification information into the response registration information, and sends the response registration information to the session response terminal.
[0097] Figure 2 is a schematic diagram of an optional distributed communication system according to an embodiment of the present invention, such as Figure 2 As shown in the figure, the system model includes three entities: terminal A, terminal B and blockchain. In the initialization phase, terminal A and terminal B measure the integrity information of their respective platforms and broadcast the information to the blockchain to achieve the purpose of trusted initialization; in the trusted network connection phase, terminal A and terminal B perform two-way user authentication and platform authentication with the help of blockchain, identify and judge the credibility of each other's users and platforms, thereby ensuring the security of the entire distributed network environment. The specific roles are described as follows:
[0098] Terminal A (i.e. the session request terminal mentioned above): includes user A and platform A. As a requester, terminal A can initiate a session request and establish a trusted network connection with terminal B, and then obtain the current platform integrity measurement value of terminal B through message passing. Terminal A can then identify and authenticate the user and platform of terminal B and broadcast its updated verification results to the blockchain. Here, user A and platform A are responsible for performing two-way user identification and platform authentication processes with user B and platform B respectively.
[0099] Terminal B (i.e. the above-mentioned session response terminal / current terminal): includes user B and platform B. As a responder, terminal B can respond to terminal A's session request and establish a trusted connection. Then, the current platform integrity measurement value of terminal A is obtained through message passing. Terminal B can then identify and authenticate the user and platform of terminal A and broadcast its updated verification results to the blockchain. Here, user B and platform B are responsible for performing two-way user identification and platform authentication processes with user A and platform A respectively.
[0100] Blockchain: The blockchain is responsible for maintaining and updating the transaction information it receives throughout the process.
[0101] Figure 3 is a schematic diagram of an optional blockchain-based trusted network connection framework according to an embodiment of the present invention, such as Figure 3 As shown in the figure, the trusted network connection based on blockchain includes two stages: initialization stage and trusted network connection stage. The initialization stage includes two sub-processes: registration and basic transaction upload; the trusted network connection stage includes three sub-processes: user authentication, platform authentication and update transaction upload.
[0102] With the help of the TPCM module, by calling the function interface, the terminal can obtain the measurement information of its own platform and provide the basis of platform integrity to the external verifier in a trusted connection. In addition, the basic and updated transactions generated by the terminal will eventually be embedded in the additional data area under the heavy transaction record of the blockchain system. Therefore, in the actual blockchain development and application, any participant in the system can obtain the basic and updated transaction information of each terminal in the distributed environment by querying the additional data area in the transaction record.
[0103] The following is an overview of the two stages of the blockchain-based trusted network connection framework.
[0104] Initialization phase:
[0105] (1) Registration: The terminal in the distributed environment measures its own platform integrity and generates corresponding registration information, including its own device ID number, platform measurement value and signature information, etc. The terminal then sends this registration information to a trusted third party (i.e. the trusted third party object mentioned above), which verifies the redundancy of the device ID number, the integrity of the platform measurement value and the correctness of the signature information, etc. When the terminal's registration information is verified, the trusted third party will sign the registration information and send it to the terminal; when the terminal's registration information verification fails, the trusted third party will record the terminal's device ID in the threat list and actively disconnect the session connection with the terminal.
[0106] 1) Perform a self-check on the system and measure the integrity of the platform.
[0107] First, when the device system is started, terminal A needs to perform a power-on self-test, that is, to measure the platform integrity of its own device with the help of the TPCM chip. The platform integrity is measured by the value stored in the platform configuration register (PCR). Then, terminal A starts from the root of trust and proceeds layer by layer through the "extension" operation and trust chain technology, and finally obtains its platform integrity measurement value.
[0108] 2) Request basic registration information.
[0109] In order to complete the initial registration process of identity and platform, terminal A will establish a secure connection with a trusted third party. Then, the trusted third party will verify the ID number of terminal A, that is, check its ID number for duplication by checking the historical logs, in order to effectively resist replay attacks. If it is found that terminal A repeatedly registers its platform information, the trusted third party will terminate the secure connection with terminal A and add its ID number to the threat list.
[0110] 3) Verify the final registration information.
[0111] When the trusted third party receives the registration information request from terminal A, the trusted third party first uses its own private key to perform a decryption operation on the final registration information ciphertext to obtain the final registration information plaintext of terminal A.
[0112] 4) Respond to the request for registration information.
[0113] After completing the signing operation on the final registration information of terminal A, the trusted third party reintegrates the signature value and the final registration information of terminal A into the verification information plaintext. The trusted third party then obtains the public key of terminal A from the certificate and encrypts the verification information plaintext to generate the verification information ciphertext. Finally, the trusted third party injects the ciphertext information into the response registration information and sends it to terminal A.
[0114] (2) Basic transaction upload: After receiving the signed registration information from a trusted third party, the terminal integrates the signed registration information into a basic transaction and broadcasts the basic transaction to the entire network environment. The terminal then uploads the basic transaction to the blockchain according to the relevant consensus mechanism. Finally, the basic transaction of the terminal is added to the blockchain.
[0115] When terminal A receives the response registration information from the trusted third party, terminal A first uses its own private key to decrypt the verification information ciphertext, and then further verifies the correctness of the signature, in order to effectively prevent man-in-the-middle attacks. When the signature value is verified, terminal A reintegrates the verification information plaintext into its own basic transaction and broadcasts it to the entire network environment. The terminal then uploads the transaction record to the blockchain according to the consensus mechanism, and the initialization phase of terminal A ends at this point. Among them, terminal A's basic transaction includes transaction ID, device ID, register value, measurement value, counter value, private key signature, and trusted third-party signature.
[0116] The trusted network connection phase includes:
[0117] (1) User authentication: Any two terminals in a distributed environment establish a connection with each other and conduct a two-way user authentication process. That is, through blockchain-based key exchange and key negotiation, both parties in the conversation can authenticate the authorization of the other party's terminal user. If the mutual authentication is successful, the two parties will continue to establish a session connection and further determine the integrity of the other party's platform; if the unilateral authentication fails, the two parties will disconnect the session connection with the other party.
[0118] 1) Establish a session request.
[0119] In order to start the identification and authentication of the terminal identity and the platform, terminal A sends a session request to terminal B. The request information includes: the identity of the sender terminal A, the ID number of terminal A, the identity of the receiver terminal B, and any random number selected by terminal A.
[0120] 2) Send session response.
[0121] When terminal B receives the session request information from terminal A, in order to ensure the progress of the session, terminal B will generate corresponding session response information and send it to terminal A. The response information includes: the identity of the sender terminal B, the ID number of terminal B, the identity of the receiver terminal A, and any random number selected by terminal B.
[0122] 3) Generate transaction private key.
[0123] When terminal B completes sending the session response information, in order to complete the two-way user authentication process in the trusted network connection phase, both parties in the session must generate their own private keys before conducting the key negotiation process. Therefore, terminal B will generate its own specific transaction private key.
[0124] 4) Obtain the transaction public key.
[0125] When terminal B derives its own specific transaction private key, it can query the blockchain and obtain the signature information in the most recent transaction record (basic transaction or update transaction) of terminal A, and then generate a specific transaction public key for terminal A. Similarly, terminal A will obtain and generate a specific transaction public key for terminal B.
[0126] 5) Generate session keys.
[0127] Terminal B can calculate the public parameters of this session, and can generate the session key for this trusted network connection. Similarly, terminal A can also derive the session key for this trusted network connection based on its own specific transaction private key and terminal B's specific transaction public key.
[0128] (2) Platform authentication: Both parties who have passed the user authentication process will continue the blockchain-based platform authentication process, that is, to detect whether the platform integrity report and platform measurement values sent by the other party meet the network access policy. If they meet, they will sign the verification information sent by the other party; if not, they will terminate the session connection.
[0129] 1) Terminal B requests platform authentication.
[0130] After terminal B generates the session key, in order to further perform the platform authentication process in the trusted network connection stage, in this embodiment, two key sub-products are used as verification keys for subsequent message transmission.
[0131] 2) Terminal A responds to platform authentication.
[0132] After receiving the authentication request information from terminal B, terminal A first calculates two key sub-products. Secondly, terminal A decrypts the authentication request information of terminal B. Subsequently, terminal A binds the key sub-products, the trust report and the identity to generate an integrity report. The integrity report binds the system status with the session status, which not only effectively guarantees the authentication process of the subsequent platform, but also can resist man-in-the-middle attacks. Finally, terminal A sends the authentication response information to terminal B and recalculates to verify the messages received by the subsequent session process.
[0133] 3) Terminal B authentication platform status.
[0134] After receiving the authentication response information from terminal A, terminal B first decrypts the authentication response information of terminal A. Then, terminal B will query the blockchain for a trusted report on the most recent transaction record of terminal A. Finally, terminal B will recalculate to verify the messages received in the subsequent session process.
[0135] 4) Terminal A requests platform authentication.
[0136] Terminal A sends an authentication request message to terminal B to indicate that it wishes to verify the platform integrity of terminal B.
[0137] 5) Terminal B responds to platform authentication.
[0138] After receiving the authentication request information from terminal A, terminal B first decrypts the authentication request information of terminal A. Then, terminal B measures its own platform status and generates a corresponding trustworthy report.
[0139] 6) Terminal A authentication platform status.
[0140] After receiving the authentication response information from terminal B, terminal A verifies the correctness of the key sub-product and other values of terminal B in turn. If the authentication is successful, terminal A signs the authentication response information of terminal B with its own private key and generates a corresponding signature value; otherwise, the session connection with terminal B is terminated, and terminal B is considered to be an illegal platform.
[0141] (3) Update transaction upload: Both parties in the conversation integrate their signed verification information into an update transaction and broadcast it to the entire network environment. The terminal then uploads the update transaction to the blockchain based on the relevant consensus mechanism. Finally, the update transactions of both parties in the conversation are added to the blockchain.
[0142] After terminal B generates the signature value, it reintegrates terminal A's integrity report and signature information into an updated transaction about terminal A and broadcasts it to the entire network. Terminal B uploads the transaction record to the blockchain based on the consensus mechanism. At this time, terminal B successfully ends its trusted network connection stage.
[0143] After terminal A generates the signature value, it reintegrates terminal B's integrity report and signature information into an updated transaction about terminal B and broadcasts it to the entire network. Terminal A uploads the transaction record to the blockchain based on the consensus mechanism. At this time, terminal A successfully ends its trusted network connection stage.
[0144] In the embodiment of the present invention, combined with the actual application scenarios of trusted network connections, through the research on the verification and access control of terminal devices in a distributed environment, a system model and threat model of a distributed trusted network connection protocol based on blockchain are constructed.
[0145] The present invention provides a distributed trusted network architecture based on blockchain, which uses the decentralized, secure and reliable characteristics of blockchain to provide a distributed storage mechanism for verification between terminals. The session key sub-product is bound to the trusted report to effectively resist platform replacement attacks and ensure the security of the distributed network environment.
[0146] The following is a detailed description in conjunction with another embodiment.
[0147] Embodiment 2
[0148] A terminal trusted connection device based on blockchain provided in this embodiment includes multiple implementation units, each implementation unit corresponds to each implementation step in the above-mentioned embodiment one.
[0149] An embodiment of the present invention provides a terminal trusted connection device based on blockchain, which is applied to a current terminal with trusted protection software pre-installed.
[0150] Figure 4 is a schematic diagram of an optional blockchain-based terminal trusted connection device according to an embodiment of the present invention, such as Figure 4 As shown, the blockchain-based terminal trusted connection device may include: a session request receiving unit 41, a public key receiving unit 42, a response information receiving unit 43, a platform measurement unit 44, and a transaction record uploading unit 45.
[0151] The session request receiving unit 41 is used to receive a session request from a session requesting terminal and send the generated session response information to the session requesting terminal, wherein the session request includes at least one of the following: an identity identifier of the session requesting terminal, a terminal identifier, and any pre-selected random number, and the session response information includes: an identity identifier of the current terminal, a terminal identifier, and any pre-selected random number.
[0152] The public key receiving unit 42 is used to receive the transaction public key returned by the session request terminal, combine the transaction public key and the transaction private key of the current terminal into a key pair, generate a session key for this trusted network connection based on the key pair, send the session key to the session request terminal, and establish a trusted network connection with the session request terminal through the session key.
[0153] The response information receiving unit 43 is used to receive the authentication response information transmitted by the session request terminal, and obtain the platform integrity report and platform measurement value of the session request terminal after decrypting the authentication response information, wherein the platform integrity report is an integrity report generated based on the key sub-product, trusted report and identity identification of the session request terminal, and the platform measurement value is a measurement value obtained by the session request terminal through the trusted platform control module to measure the integrity of the terminal platform.
[0154] The platform measurement unit 44 is used to transmit the platform integrity report and the platform measurement value to the blockchain network, and the blockchain network detects whether the platform integrity report and the platform measurement value of the session request terminal meet the network access policy.
[0155] The transaction record uploading unit 45 is used to sign the verification information transmitted by the session request terminal when the network access policy is met, integrate the platform integrity report of the session request terminal and the signed verification information into an update transaction, and upload the transaction record of the update transaction to the blockchain according to the transaction consensus mechanism.
[0156] The terminal trusted connection device based on blockchain can be configured to receive a session request from a session request terminal through a session request receiving unit, and send the generated session response information to the session request terminal, wherein the session request includes at least one of the following: an identity identifier of the session request terminal, a terminal identifier, and any pre-selected random number, and the session response information includes: an identity identifier of the current terminal, a terminal identifier, and any pre-selected random number; a public key receiving unit, configured to receive a transaction public key returned by the session request terminal, form a key pair with the transaction public key and a transaction private key of the current terminal, generate a session key for this trusted network connection based on the key pair, send the session key to the session request terminal, and establish a trusted network connection with the session request terminal through the session key; a response information receiving unit, configured to receive authentication response information transmitted by the session request terminal, and after verifying the authentication response information, generate a session key for this trusted network connection based on the key pair, and send the session key to the session request terminal, and establish a trusted network connection with the session request terminal through the session key; and a response information receiving unit, configured to receive authentication response information transmitted by the session request terminal, and after verifying the authentication response information, generate a session key for this trusted network connection based on the key pair, and send the session key to the session request terminal, and establish a trusted network connection with the session request terminal through the session key. After the information is decrypted, a platform integrity report and a platform measurement value of the session request terminal are obtained, wherein the platform integrity report is an integrity report generated based on the key sub-product, the trusted report and the identity of the session request terminal, and the platform measurement value is a measurement value obtained by the session request terminal through a trusted platform control module to measure the integrity of the terminal platform; a platform measurement unit is used to transmit the platform integrity report and the platform measurement value to the blockchain network, and the blockchain network detects whether the platform integrity report and the platform measurement value of the session request terminal meet the network access policy; a transaction record uploading unit is used to sign the verification information transmitted by the session request terminal when the network access policy is met, integrate the platform integrity report of the session request terminal and the signed verification information into an update transaction, and upload the transaction record of the update transaction to the blockchain according to the transaction consensus mechanism. In this embodiment, the security of the two terminal sessions can be guaranteed by the session key. While ensuring that the authorized and trusted users can successfully access the network, unauthorized users can be identified and prevented from further accessing the network or establishing a trusted network connection with other trusted terminals, thereby ensuring the security of the entire network environment. At the same time, in this embodiment, during the trusted network connection session, the trusted terminal can detect and identify the false measurement values transmitted by the attacker's illegal platform while proving the integrity of its own legitimate platform, interrupt the session connection with the attacker and further prevent the illegal platform device from intruding into the secure and trusted network environment, thereby solving the technical problem in the related technology that the terminal devices in the network environment are vulnerable to network threats.
[0157] Optionally, the blockchain-based terminal trusted connection device also includes: a control module calling unit, which is used to call the trusted platform control module through the trusted protection software pre-installed on the current terminal before receiving the session request of the session request terminal, and call the preset function interface through the trusted platform control module to measure the integrity of the terminal platform to obtain the platform measurement value; a terminal registration information generating unit, which is used to generate terminal registration information based on the terminal identification, platform measurement value and signature information of the current terminal; a platform measurement information verification unit, which is used to send the terminal registration information to a trusted third-party object, and the trusted third-party object verifies the redundant characteristics of the terminal identification, the complete characteristics of the platform measurement value and the correctness of the signature information to obtain a verification result, and when the verification result indicates that the verification is passed, the trusted third-party object signs the terminal registration information, and generates response registration information based on the signed terminal registration information; a response registration information receiving unit, which is used to receive the response registration information transmitted by the trusted third-party object.
[0158] Optionally, the control module calling unit includes: a function interface calling module, which is used to call a preset function interface through a trusted platform control module, and the preset function interface performs an initial measurement on the platform integrity of the terminal platform to obtain an initial measurement value; a platform measurement module, which is used to call a pre-configured trusted trust chain based on the initial measurement value, and perform hierarchical progressive verification starting from the trust root of the terminal platform to obtain a platform measurement value.
[0159] Optionally, the platform measurement information verification unit includes: an information integration module, which is used for the trusted third-party object to integrate the signature value with the terminal registration information of the current terminal after signing the terminal registration information, so as to generate a plain text of verification information; an information plain text encryption module, which is used for the trusted third-party object to encrypt the plain text of verification information based on the public key of the current terminal to obtain a ciphertext of verification information; and a ciphertext injection module, which is used for the trusted third-party object to inject the ciphertext of verification information into the response registration information, and send the response registration information to the current terminal.
[0160] Optionally, the terminal trusted connection device based on blockchain also includes: an information ciphertext decryption unit, which is used to use the terminal private key to decrypt the verification information ciphertext in the response registration information after receiving the response registration information transmitted by the trusted third-party object, and perform signature value verification on the verification information ciphertext; a plaintext integration unit, which is used to reintegrate the decrypted verification information plaintext into a basic transaction when the signature value verification passes, broadcast the basic transaction to the distributed network environment, upload the transaction record of the basic transaction to the blockchain, and complete the terminal network initialization operation of the current terminal, wherein the transaction record of the basic transaction includes: transaction identifier, terminal identifier, register value, platform measurement value, terminal private key signature value and signature value of the trusted third-party object.
[0161] Optionally, the terminal trusted connection device based on blockchain also includes: a transaction private key generation unit, which is used to generate a transaction private key based on the session timestamp of the current terminal after sending the generated session response information to the session request terminal; a blockchain query unit, which is used to query the blockchain using the transaction private key, obtain the transaction record of the most recent transaction of the current terminal, and extract the signature information in the transaction record, wherein the transaction type of the most recent transaction is one of the following: a basic transaction or an update transaction; a transaction public key generation unit, which is used to generate a transaction public key of the session request terminal based on the signature information.
[0162] Optionally, the blockchain-based terminal trusted connection device also includes: an authentication request sending unit, used to send an authentication request to the session request terminal after sending the session key to the session request terminal, wherein after receiving the authentication request, the session request terminal calculates two key sub-products according to the current timestamp, uses the key sub-products as verification keys for network information transmission with the current terminal, and uses trusted protection software to perform trust measurement on the terminal operation status, generates a trusted report, binds the key sub-products, the trusted report and the identity of the session request terminal, and generates a platform integrity report.
[0163] The above-mentioned blockchain-based terminal trusted connection device may also include a processor and a memory. The above-mentioned session request receiving unit 41, public key receiving unit 42, response information receiving unit 43, platform measurement unit 44, transaction record uploading unit 45, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.
[0164] The above processor includes a kernel, which retrieves the corresponding program unit from the memory. The kernel can be set to one or more, and by adjusting the kernel parameters, the verification information transmitted by the session request terminal is signed when the network access policy is met, and the platform integrity report of the session request terminal and the signed verification information are integrated into an update transaction, and the transaction record of the update transaction is uploaded to the blockchain according to the transaction consensus mechanism.
[0165] The above-mentioned memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one storage chip.
[0166] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the blockchain-based terminal trusted connection methods in the above-mentioned embodiment 1.
[0167] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement the blockchain-based terminal trusted connection method of any one of the above-mentioned embodiments one.
[0168] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the blockchain-based terminal trusted connection method described in each embodiment of the present application.
[0169] The present application also provides a computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the blockchain-based terminal trusted connection method described in each embodiment of the present application are implemented.
[0170] Figure 5 1 is a hardware structure block diagram of an electronic device (or mobile device) according to a terminal trusted connection method based on blockchain according to an embodiment of the present invention. Figure 5 As shown, the electronic device may include one or more ( Figure 5 502a, 502b, ..., 502n are used to illustrate) processor 502 (processor 502 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), memory 504 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a keyboard, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 5 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 5 More or fewer components as shown, or with Figure 5 Different configurations shown.
[0171] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0172] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0173] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0174] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0175] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0176] 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, in essence, 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, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a 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, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0177] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A terminal trusted connection method based on blockchain, characterized in that: Applicable to current endpoints with pre-installed trusted protection software, including: receiving a session request from a session requesting terminal, and sending generated session response information to the session requesting terminal, wherein the session request includes at least one of the following: an identity identifier of the session requesting terminal, a terminal identifier, and any pre-selected random number, and the session response information includes: an identity identifier of the current terminal, a terminal identifier, and any pre-selected random number; Receive the transaction public key returned by the session request terminal, combine the transaction public key and the transaction private key of the current terminal into a key pair, generate a session key for this trusted network connection based on the key pair, send the session key to the session request terminal, and establish a trusted network connection with the session request terminal through the session key; receiving authentication response information transmitted by the session request terminal, and obtaining a platform integrity report and a platform measurement value of the session request terminal after decrypting the authentication response information, wherein the platform integrity report is an integrity report generated based on the key subproduct, the trusted report and the identity of the session request terminal, and the platform measurement value is a measurement value obtained by the session request terminal performing integrity measurement on the terminal platform through a trusted platform control module; The platform integrity report and the platform measurement value are transmitted to the blockchain network, and the blockchain network detects whether the platform integrity report and the platform measurement value of the session request terminal meet the network access policy; Under the condition that the network access policy is met, the verification information transmitted by the session request terminal is signed, the platform integrity report of the session request terminal and the signed verification information are integrated into an update transaction, and the transaction record of the update transaction is uploaded to the blockchain according to the transaction consensus mechanism.
2. The terminal trusted connection method according to claim 1, characterized in that: Before receiving the session request from the session request terminal, the method further includes: Calling a trusted platform control module through the trusted protection software pre-installed on the current terminal, calling a preset function interface through the trusted platform control module, measuring the integrity of the terminal platform, and obtaining a platform measurement value; Generate terminal registration information based on the terminal identification of the current terminal, the platform measurement value and the signature information; Sending the terminal registration information to a trusted third-party object, which verifies the redundant features of the terminal identifier, the complete features of the platform measurement value, and the correctness of the signature information to obtain a verification result. If the verification result indicates that the verification is passed, the trusted third-party object signs the terminal registration information and generates response registration information based on the signed terminal registration information; Receive response registration information transmitted by the trusted third party object.
3. The terminal trusted connection method according to claim 2, characterized in that: The step of calling a preset function interface by the trusted platform control module to measure the integrity of the terminal platform and obtain a platform measurement value includes: Calling a preset function interface through the trusted platform control module, and using the preset function interface to perform an initial measurement on the platform integrity of the terminal platform to obtain an initial measurement value; Based on the initial measurement value, a pre-configured trusted trust chain is called, and starting from the trust root of the terminal platform, a hierarchical progressive verification is performed to obtain the platform measurement value.
4. The terminal trusted connection method according to claim 2, characterized in that: The step of the trusted third-party object signing the terminal registration information and generating response registration information based on the signed terminal registration information includes: After signing the terminal registration information, the trusted third-party object integrates the signature value with the terminal registration information of the current terminal to generate a plain text of the verification information; The trusted third party object encrypts the verification information plaintext based on the public key of the current terminal to obtain the verification information ciphertext; The trusted third-party object injects the verification information ciphertext into the response registration information, and sends the response registration information to the current terminal.
5. The terminal trusted connection method according to claim 2, characterized in that: After receiving the response registration information transmitted by the trusted third party object, the method further includes: Decrypting the verification information ciphertext in the response registration information using the terminal private key, and performing signature value verification on the verification information ciphertext; When the signature value verification passes, the verification information plaintext obtained by decryption is reintegrated into the basic transaction, and the basic transaction is broadcast to the distributed network environment, and the transaction record of the basic transaction is uploaded to the blockchain to complete the terminal network initialization operation of the current terminal, wherein the transaction record of the basic transaction includes: transaction identifier, terminal identifier, register value, platform measurement value, terminal private key signature value and signature value of a trusted third-party object.
6. The terminal trusted connection method according to claim 1, characterized in that: After sending the generated session response information to the session request terminal, the method further includes: Generate the transaction private key based on the session timestamp of the current terminal; The transaction private key is used to query the blockchain, obtain the transaction record of the most recent transaction of the current terminal, and extract the signature information in the transaction record, wherein the transaction type of the most recent transaction is one of the following: basic transaction or update transaction; Based on the signature information, a transaction public key of the session requesting terminal is generated.
7. The terminal trusted connection method according to claim 1, characterized in that: After sending the session key to the session request terminal, the method further includes: An authentication request is sent to the session request terminal, wherein after receiving the authentication request, the session request terminal calculates two key sub-products according to a current timestamp, uses the key sub-products as verification keys for network information transmission with the current terminal, uses trusted protection software to perform trust measurement on the terminal operation status, generates a trusted report, binds the key sub-products, the trusted report, and the identity of the session request terminal, and generates the platform integrity report.
8. A distributed communication system, characterized in that: include: A session request terminal initiates a session request and returns a transaction public key to a session response terminal, wherein the session request includes at least one of the following: an identity identifier of the session request terminal, a terminal identifier, and any pre-selected random number; The session response terminal sends the generated session response information to the session request terminal, receives the authentication response information transmitted by the session request terminal, obtains the platform integrity report and platform measurement value of the session request terminal after decrypting the authentication response information, and transmits the platform integrity report and the platform measurement value to the blockchain network, wherein the session response information includes: the identity of the current terminal, the terminal identity, and any pre-selected random number, the platform integrity report is an integrity report generated based on the key sub-product, the trusted report, and the identity of the session request terminal, and the platform measurement value is a measurement value obtained by the session request terminal through a trusted platform control module to measure the integrity of the terminal platform; The blockchain detects whether the platform integrity report and platform measurement value of the session request terminal meet the network access policy, receives the transaction record transmitted by the session response terminal, and timestamps the transaction record; Among them, when the platform integrity report and the platform measurement value meet the network access policy, the session response terminal signs the verification information transmitted by the session request terminal, integrates the platform integrity report of the session request terminal and the signed verification information into an update transaction, and uploads the transaction record of the update transaction to the blockchain according to the transaction consensus mechanism.
9. The distributed communication system according to claim 8, characterized in that: The session response terminal includes: A registration module, which calls a trusted platform control module through pre-installed trusted protection software, and calls a preset function interface through the trusted platform control module to measure the integrity of the terminal platform and obtain a platform measurement value; generates terminal registration information based on the terminal identifier of the session response terminal, the platform measurement value and the signature information; sends the terminal registration information to a trusted third-party object, and the trusted third-party object verifies the redundant features of the terminal identifier, the complete features of the platform measurement value and the correctness of the signature information to obtain a verification result, and when the verification result indicates that the verification is passed, the trusted third-party object signs the terminal registration information, and generates response registration information based on the signed terminal registration information; and receives the response registration information transmitted by the trusted third-party object; The basic transaction upload module uses the terminal private key to decrypt the verification information ciphertext in the response registration information, and performs signature value verification on the verification information ciphertext; when the signature value verification passes, the decrypted verification information plaintext is reintegrated into the basic transaction, and the basic transaction is broadcast to the distributed network environment, and the transaction record of the basic transaction is uploaded to the blockchain, wherein the transaction record of the basic transaction includes: transaction identification, terminal identification, register value, platform measurement value, terminal private key signature value and signature value of the trusted third-party object.
10. The distributed communication system according to claim 9, characterized in that: Also includes: The trusted third party object, after signing the terminal registration information, integrates the signature value with the terminal registration information of the session response terminal to generate a plain text verification information; The verification information plain text is encrypted based on the public key of the session response terminal to obtain the verification information ciphertext; the verification information ciphertext is injected into the response registration information, and the response registration information is sent to the session response terminal.
11. A terminal trusted connection device based on blockchain, characterized in that: Applicable to current endpoints with pre-installed trusted protection software, including: a session request receiving unit, configured to receive a session request from a session requesting terminal, and send the generated session response information to the session requesting terminal, wherein the session request includes at least one of the following: an identity identifier of the session requesting terminal, a terminal identifier, and any pre-selected random number, and the session response information includes: an identity identifier of the current terminal, a terminal identifier, and any pre-selected random number; a public key receiving unit, configured to receive the transaction public key returned by the session request terminal, form a key pair with the transaction public key and the transaction private key of the current terminal, generate a session key for this trusted network connection based on the key pair, send the session key to the session request terminal, and establish a trusted network connection with the session request terminal through the session key; a response information receiving unit, configured to receive the authentication response information transmitted by the session request terminal, and obtain a platform integrity report and a platform measurement value of the session request terminal after decrypting the authentication response information, wherein the platform integrity report is an integrity report generated based on the key subproduct, the trusted report and the identity of the session request terminal, and the platform measurement value is a measurement value obtained by the session request terminal performing integrity measurement on the terminal platform through a trusted platform control module; A platform measurement unit, configured to transmit the platform integrity report and the platform measurement value to a blockchain network, and the blockchain network detects whether the platform integrity report and the platform measurement value of the session request terminal meet a network access policy; A transaction record uploading unit is used to sign the verification information transmitted by the session request terminal when the network access policy is met, integrate the platform integrity report of the session request terminal and the signed verification information into an update transaction, and upload the transaction record of the update transaction to the blockchain according to the transaction consensus mechanism.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the blockchain-based terminal trusted connection method described in any one of claims 1 to 7.
13. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the blockchain-based terminal trusted connection method as described in any one of claims 1 to 7.
Citation Information
Cited By
Trusted system based on block chain enhancement
CN122048361A
A blockchain-enhanced trusted system
CN122048361B
