A reliable command transmission system

By introducing the global clock data packet and public key and private key signature mechanism into the command transmission system, combined with SHA256 and blockchain technology, the problem of SSL encrypted communication being unable to prevent man-in-the-middle attacks and information retransmission is solved, and the reliability of command transmission is achieved. reliability, non-tamperability and traceability to ensure high reliability of communication.

CN118413392BActive Publication Date: 2024-09-06WEAPON EQUIP RES INST OF CHINA NAT WEAPON EQUIP GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410850521.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-06
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

The existing SSL encrypted communication protocol cannot effectively prevent man-in-the-middle attacks and information retransmission attacks, and relies on certificates issued by third-party CAs that are at risk of being leaked or cracked, and cannot ensure the non-tampering and traceability of instructions.

Method used

Adopting a trusted command transmission system, broadcasting the global clock data packet through the host, using the public key and private key of the middle machine and the terminal to encrypt and sign the data packet, combined with SHA256 operation and blockchain technology to ensure the integrity of the data packet tamper-proof and non-tamperable, and retransmits unreceived data packets when offline to achieve high system reliability.

Benefits of technology

It achieves the reliability, non-tamperability and traceability of instruction transmission, prevents man-in-the-middle attacks and information retransmission, ensures the confidentiality and integrity of communication, and can promptly detect attacks on the encryption system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118413392B
    Figure CN118413392B
Patent Text Reader

Abstract

The invention discloses a credible instruction transmission system, and relates to the technical field of data transmission. The system comprises: a host, which broadcasts a global clock data packet in the whole system at every preset time period; encrypts the instruction data packet, and signs a summary of the instruction data packet with a host private key; sends the encrypted instruction data packet to a terminal; at least one layer of intermediate machines, which signs a summary of the received instruction data packet with its private key; at least one terminal, after receiving the instruction data packet, verifies the signature summary of the host and the intermediate machine; decrypts the data packet to obtain plain text; and performs SHA256 operation on the data in the CONTENT field of the instruction data packet.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data transmission, and in particular to the transmission of trusted instructions. Background Art

[0002] In some application scenarios, reliable and trustworthy encrypted transmission of instructions is required to prevent man-in-the-middle attacks and instruction resending attacks. The transmitted instructions cannot be tampered with, cannot be forged, and are traceable. Once the encryption system is compromised, it can be discovered in time.

[0003] At present, all encrypted communications are based on the SSL protocol. It is built on top of the TCP protocol and ensures the confidentiality and integrity of communications through encryption and identity authentication. In SSL communication, an encrypted channel is established between the server and the client through public key encryption technology, the transmitted data is encrypted, and the data is signed to prevent data tampering.

[0004] Currently, encrypted communications based on SSL rely on the issuance of SSL certificates by third-party CAs, which poses a risk of being leaked or cracked. SSL also cannot prevent attacks such as information retransmission. If the certificate is cracked, the sender and the terminal will not be able to identify it. Summary of the invention

[0005] To this end, the present invention proposes a trusted instruction transmission system, comprising: a host, at least one layer of intermediate machines and at least one terminal; wherein:

[0006] The host broadcasts a global clock data packet in the entire system every preset time period; the host sends the instruction data packet to the terminal via the intermediate machine, the host encrypts the instruction data packet with the public key of the terminal, and signs the encrypted instruction data packet with the private key of the host; the encrypted and signed instruction data packet is sent to the terminal via the intermediate machine;

[0007] The middle machine uses its private key to sign the received instruction data packet;

[0008] The terminal has the public keys of the host and the intermediate machine built in; after receiving the instruction data packet, the signature digest of the host is verified by the public key of the host, and the signature digest corresponding to the intermediate machine is verified by the public key of the intermediate machine; the encrypted data packet is decrypted by the private key of the terminal to obtain the plain text; the data of the CONTENT field of the obtained plain text instruction data packet is subjected to SHA256 operation, and when the result of the SHA256 operation is the same as the data of the CMD_SHA256 field of the instruction data packet, the data of the SN field of the instruction data packet is taken out, and the global clock data packet with the serial number SN is searched; when the data of the CMD_SHA256 field of the global clock data packet obtained by searching is the same as the data of the CMD_SHA256 field of the instruction data packet, the instruction data packet has not been tampered with or retransmitted.

[0009] Furthermore, when the intermediate machine reconnects to the host after being offline, the host resends the global clock data packet that the intermediate machine did not receive when it was offline to the intermediate machine; when the terminal connects to the intermediate machine, the intermediate machine resends the global clock data packet that it did not receive when it was offline to the terminal.

[0010] Furthermore, the intermediate machine and the terminal permanently store the received global clock data packet.

[0011] Furthermore, the global clock data packet includes the following fields in sequence: SHA256, PRE_SHA256, SN, CMD_SHA256, RANDOM and SIG; wherein,

[0012] SHA256 is the result of performing SHA256 operation on all data from the PRE_SHA256 field to the end of this global clock data packet;

[0013] PRE_SHA256 is the SHA256 value in the most recent global clock data packet;

[0014] SN is the sequence number of this global clock data packet;

[0015] CMD_SHA256 is the result of SHA256 operation on the encrypted command data packet;

[0016] RANDOM is a random number used to control the difficulty of generating global clock data packets;

[0017] SIG is the signature digest of the host using its private key from PRE_SHA256 to the RANDOM field.

[0018] Furthermore, the host searches for a random number and fills the RANDOM field of the global clock data packet, and then performs a SHA256 operation on all data of the global clock data packet from the PRE_SHA256 field to the end. The result of the SHA256 operation must begin with a predetermined number of ASCII codes with all characters being 0.

[0019] Furthermore, the host saves the public key of the terminal and places the signature summary in the header of the command data packet.

[0020] Furthermore, the plain text of the command data packet sent by the host includes the following fields in sequence: SN, CMD_SHA256 and CONTENT; among which,

[0021] SN is the serial number of the global clock data packet where the encrypted data SHA256 of this instruction data packet is located;

[0022] CMD_SHA256 is the result of SHA256 operation on the encrypted command data packet;

[0023] CONTENT is the specific instruction content.

[0024] Furthermore, the system also includes: one or more backup hosts, cooperating with the host to perform SHA256 operations; the backup hosts record all instructions of the host; when the host fails to work normally, a backup host replaces the host to work.

[0025] Furthermore, the communication between the host and the middle machine, and the communication between the middle machine and the terminal are carried out via Bluetooth, WIFI, or Ethernet.

[0026] The trusted instruction transmission system of the present invention realizes highly reliable communication through an autonomous operating system combined with blockchain technology, ensuring reliable, trustworthy and tamper-proof transmission of instructions. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 It is a schematic diagram of the structure of the trusted instruction transmission system of the present invention;

[0028] Figure 2 It is a schematic diagram of the composition of the instruction data packet of the present invention. DETAILED DESCRIPTION

[0029] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present invention and its application or use.

[0030] like Figure 1 As shown, the trusted instruction transmission system of the present invention can be composed of a host, at least one layer of intermediate machines and at least one terminal. After the instruction is input into the host, it is transmitted to the terminal through at least one layer of intermediate machines and finally received by the terminal.

[0031] The communication between the host and the intermediate machine, and the communication between the intermediate machine and the terminal can be carried out through Bluetooth, WIFI, Ethernet, etc. The message sent by the host is transmitted to the terminal device through one or more layers of intermediate machines.

[0032] The trusted instruction transmission system of the present invention can also have one or more backup hosts, which cooperate with the host to perform SHA256 (a secure hash algorithm standard) operations, etc. The host is used to send a global clock data packet or an instruction data packet, and the backup host records all the instructions of the host. In this way, when the host fails to work normally, a backup host can replace the host to work.

[0033] The host sends a data packet to all devices in the system as a global clock every preset time period. The preset time period can be 10 minutes, which is determined by the host computing power and the difficulty of generating a global clock data packet. The fields and bytes of the global clock data packet can be designed according to actual needs. For example, the number of bytes of the global clock data packet is 141 bytes, of which:

[0034] SHA256, located from byte 1 to byte 32, is the result of performing SHA256 operation on all data from byte 33 to the end of this global clock data packet;

[0035] PRE_SHA256, located at bytes 33 to 64, is the value of bytes 1 to 32 in the most recent global clock data packet, that is, the SHA256 value in the most recent global clock data packet;

[0036] SN, located from byte 65 to byte 78, is the sequence number of this global clock data packet;

[0037] CMD_SHA256, located at bytes 79 to 110, is the result of SHA256 operation on the encrypted command data packet;

[0038] RANDOM, located at bytes 111 to 118, is a random number; the random number is used to control the difficulty of generating the global clock data packet.

[0039] SIG, located at bytes 119 to 141, is the signature digest of bytes 33 to 118 using the host's private key.

[0040] The host searches for an 8-bit random number RANDOM, fills the 111th to 118th bytes of the global clock data packet, and then performs a SHA256 operation on all the data in this data packet from the 33rd byte to the end. The result of the SHA256 operation must begin with a predetermined number of characters, all of which are ASCII code 0. All global clock data packets form a data chain through SHA256 and PRE_SHA256. It is almost impossible for an attacker to forge this data chain, because this requires the attacker not only to have the host's private key, but also to obtain at least the data of the most recent global clock data packet, and to have a SHA256 computing power that exceeds the host's.

[0041] The global clock data packet is broadcast by the host in the entire system. The host is always online, and the intermediate machine is usually online. When the intermediate machine is occasionally offline, after the intermediate machine reconnects to the host, the host will send the global clock data packet that the intermediate machine did not receive when it was offline; after the terminal connects to the intermediate machine, the intermediate machine will send the global clock data packet that the terminal did not receive when it was offline. After receiving the global clock data packet, the intermediate machine and the terminal will permanently save the received global clock data packet.

[0042] The public key corresponding to the host private key is built into the operating system of the middle machine and the terminal. The encryption and decryption algorithms run in the kernel space of the operating system, making it difficult to be tampered with. The public key of the terminal is stored in the host, and only the system administrator has the authority to change it.

[0043] The plain text format of the command data packet sent by the host to the terminal is:

[0044] SN, located from 1st to 14th bytes, is the serial number of the global clock data packet where the encrypted data SHA256 of this instruction data packet is located.

[0045] CMD_SHA256, located at bytes 15 to 46, is the result of the SHA256 operation on the encrypted command data packet.

[0046] CONTENT, located from the beginning to the end of Section 47, is the specific content of the instruction.

[0047] The host will encrypt the command data packet with the terminal's public key to ensure that no other device except the terminal can crack the command.

[0048] The host uses its private key to sign the instruction data packet and put it in the header of the instruction data packet. Every time it passes through an intermediate machine, the intermediate machine uses its private key to sign the entire data packet it receives. The final data packet looks like Figure 2 shown.

[0049] After receiving the command data packet, the terminal verifies the signature digest of the host with the host's public key, and then verifies the signature digest of each intermediate machine with the intermediate machine's public key in turn. When all signature digests are verified correctly, it can be proved that the command data packet sent from the host has been confirmed by the intermediate machine, and the transmission path is credible.

[0050] The terminal then decrypts the encrypted data packet with its own private key. After obtaining the plain text, the CONTENT data of the instruction data packet is subjected to a SHA256 operation. The result of the SHA256 operation is then compared with the data in the CMD_SHA256 field of the instruction data packet. If they are different, it can be determined that the data packet was damaged or tampered with during transmission. The data packet will be discarded or required to be resent. If they are the same, the data in the SN field of the instruction data packet is taken out, and the global clock data packet with the serial number SN is found. Check whether the data in the CMD_SHA256 field of the global clock data packet is the same as the data in the CMD_SHA256 field of the instruction data packet. If they are the same, it can be fully confirmed that the data packet has not been tampered with or resent. The reception and decryption of terminal data are both run in the kernel space of the operating system, and after confirming the integrity and reliability of the data, it is passed to the trusted application for display to prevent the instruction data from being obtained by untrusted applications.

[0051] If an attacker forges an instruction, he needs to forge a global clock data packet and spread it to the entire network. It is very difficult to forge and tamper with the global clock data packet because it requires obtaining historical data, host signatures, and having a hash computing capability that exceeds that of the host. If the attacker has this capability, the host will immediately discover that someone is trying to attack because only the host can send a global clock data packet at the same time.

[0052] The attacker occasionally sends a global clock packet successfully, and it needs to compete with the host in the network, because once it stops sending packets, the host can use the latest clock packet to seize control of the network. Continuous and uninterrupted attacks will quickly expose the attacker.

[0053] If the attacker cannot gain control of the clock data packet, any tampering and forgery of the instruction data packet will not be accepted by the terminal because it is not registered in the global clock data chain.

[0054] Even if an attacker gains control of the global clock package, to attack a specific terminal, the attacker needs to know the private key of the intermediate machine through which the command is passed before it can be accepted by a certain terminal. This will further increase the difficulty for the attacker.

[0055] The trusted instruction transmission system of the present invention can ensure the integrity, trustworthiness, confidentiality, non-tampering and traceability of instruction transmission, and can be immediately discovered if an attacker attacks. It can be used in fields such as national defense and commerce that require highly reliable communications.

[0056] The above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the specific implementation methods of the present invention can still be modified or some technical features can be replaced by equivalents without departing from the spirit of the technical solution of the present invention, which should be included in the scope of the technical solution for protection of the present invention.

Claims

1. A trusted instruction transmission system, characterized in that: The system comprises: a host, at least one intermediate machine and at least one terminal; wherein, The host broadcasts a global clock data packet in the entire system every preset time period; the host sends the instruction data packet to the terminal via the intermediate machine, the host encrypts the instruction data packet with the public key of the terminal, and signs the encrypted instruction data packet with the private key of the host; the encrypted and signed instruction data packet is sent to the terminal via the intermediate machine; The middle machine uses its private key to sign the received instruction data packet; The terminal has the public keys of the host and the intermediate machine built in; after receiving the instruction data packet, the signature digest of the host is verified by the public key of the host, and the signature digest corresponding to the intermediate machine is verified by the public key of the intermediate machine; the encrypted data packet is decrypted by the private key of the terminal to obtain the plain text; the data of the CONTENT field of the obtained plain text instruction data packet is subjected to SHA256 operation, and when the result of the SHA256 operation is the same as the data of the CMD_SHA256 field of the instruction data packet, the data of the SN field of the instruction data packet is taken out, and the global clock data packet with the serial number SN is searched; when the data of the CMD_SHA256 field of the global clock data packet obtained by searching is the same as the data of the CMD_SHA256 field of the instruction data packet, the instruction data packet has not been tampered with or retransmitted.

2. The trusted instruction transmission system as claimed in claim 1, characterized in that: When the intermediate machine reconnects to the host after being offline, the host resends the global clock data packet that the intermediate machine did not receive when it was offline to the intermediate machine; when the terminal connects to the intermediate machine, the intermediate machine resends the global clock data packet that it did not receive when it was offline to the terminal.

3. The trusted instruction transmission system as claimed in claim 2, characterized in that: The intermediate machine and the terminal permanently save the received global clock data packet.

4. The trusted instruction transmission system according to claim 1, characterized in that: The global clock data packet includes the following fields in sequence: SHA256, PRE_SHA256, SN, CMD_SHA256, RANDOM and SIG; among them, SHA256 is the result of performing SHA256 operation on all data from the PRE_SHA256 field to the end of this global clock data packet; PRE_SHA256 is the SHA256 value in the most recent global clock data packet; SN is the sequence number of the global clock data packet; CMD_SHA256 is the result of SHA256 operation on the encrypted command data packet; RANDOM is a random number used to control the difficulty of generating global clock data packets; SIG is the signature digest of the host using its private key from PRE_SHA256 to the RANDOM field.

5. The trusted instruction transmission system as claimed in claim 3, characterized in that: The host searches for a random number and fills the RANDOM field of the global clock data packet. Then, the host performs a SHA256 operation on all data in the global clock data packet from the PRE_SHA256 field to the end. The result of the SHA256 operation must begin with a predetermined number of ASCII codes with all characters being 0.

6. The trusted instruction transmission system according to claim 1, characterized in that: The host saves the public key of the terminal and puts the signature summary in the header of the command data packet.

7. The trusted instruction transmission system according to claim 1, characterized in that: The plain text of the command data packet sent by the host includes the following fields in sequence: SN, CMD_SHA256 and CONTENT; among them, SN is the serial number of the global clock data packet where the encrypted data SHA256 of this instruction data packet is located; CMD_SHA256 is the result of SHA256 operation on the encrypted command data packet; CONTENT is the specific instruction content.

8. The trusted instruction transmission system according to claim 1, characterized in that: The system also includes: one or more backup hosts, cooperating with the host to perform SHA256 operations; the backup hosts record all instructions of the host; when the host fails to work normally, a backup host replaces the host to work.

9. The trusted instruction transmission system according to claim 1, characterized in that: The communication between the host and the middle machine, and the communication between the middle machine and the terminal is carried out through Bluetooth, WIFI, or Ethernet.