Equipment reliability authentication method based on block chain

By adopting blockchain-based device reliability certification methods in IoT and blockchain product traceability, and using smart contracts and real-time device identification code verification, the problem of unknown sources of terminal device data and operator identity forgery is solved, achieving Decentralized equipment certification ensures the trustworthy uploading of data and the reliability of equipment.

CN118784309APending Publication Date: 2024-10-15ZHUHAI FUDAN INNOVATION INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410907880.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In the traceability process of IoT and blockchain products, there are a large number of terminal devices, complex operations, and unstable data transmission. It is difficult to ensure reliable data sources. In addition, traditional centralized authorization has the risk of single point failure and data leakage, and it is difficult for the central server to support a large number of For device authentication requests, the terminal device has limited computing resources and cannot run complex authentication access control policies.

Method used

Using a blockchain-based device reliability certification method, the terminal device collects identity information and uploads it to the smart contract to generate a device number and registration timestamp. The terminal device generates a real-time device identification code based on the device number and current timestamp to conduct behavioral data and business data verification, establish a decentralized trusted device authentication system, and conduct device label verification and behavior verification.

Benefits of technology

It realizes the trusted authentication of terminal equipment, ensures the trustworthy uploading of data, avoids the risk of single point failure and data leakage, and improves the reliability and security of equipment authentication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784309A_ABST
    Figure CN118784309A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment reliability authentication method based on a block chain. The method comprises the following steps: collecting identity information of terminal equipment and uploading the identity information to an intelligent contract of the block chain; the smart contract records the identity information of the terminal device and generates a device number and a registration timestamp; the terminal device obtains and records a local device number and a registration timestamp; the terminal equipment generates a real-time equipment identification code based on the local equipment number, the current timestamp and the registration timestamp, confirms behavior data and business data, and uploads the real-time equipment identification code, the behavior data and the business data to the block chain smart contract; and verifying the real-time equipment identification code based on terminal equipment identity information stored in the block chain, and when verification is passed, performing behavior verification judgment on the behavior data to obtain a final judgment result, thereby completing business data chaining. Two rounds of verification including equipment label verification and equipment behavior verification are carried out, so that the credibility of the terminal equipment is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of blockchain, and in particular relates to a device reliability authentication method based on blockchain. Background Art

[0002] In the product traceability process based on the Internet of Things and blockchain, data is usually collected with the help of terminal devices. Due to the large number of terminal devices, complex operators, and unstable data transmission frequency, it is difficult to ensure the reliability of the data source before uploading to the chain.

[0003] In order to solve the problems of unknown terminal device sources and operator identity forgery, it is necessary to establish a trusted device authentication mechanism. However, traditional centralized authorization may have risks such as single point failure and data leakage. The central server is difficult to support a large number of device authentication requests, and terminal devices with limited storage and computing resources cannot run complex authentication access control strategies. It is difficult to distinguish abnormal data after it is stored in the database. Summary of the invention

[0004] In order to solve the above technical problems, the present invention proposes a device reliability authentication method based on blockchain to solve the problems existing in the above-mentioned prior art.

[0005] To achieve the above object, the present invention provides a device reliability authentication method based on blockchain, comprising the following steps:

[0006] Smart contracts that collect terminal device identity information and upload it to the blockchain;

[0007] The smart contract records the terminal device identity information and generates a device number and a registration timestamp;

[0008] The terminal device obtains the local device number and registration timestamp and records them;

[0009] The terminal device generates a real-time device identification code based on the local device number, current timestamp and registration timestamp, confirms the behavior data and business data, and uploads the real-time device identification code, behavior data and business data to the blockchain smart contract;

[0010] The real-time device identification code is verified based on the terminal device identity information stored in the blockchain. When the verification passes, the behavior data is subjected to behavior verification and judgment to obtain the final judgment result, thus completing the uploading of the business data to the chain.

[0011] Preferably, the terminal device identity information includes: International Mobile Equipment Identity serial number, International Mobile Subscriber Identity code, mobile hotspot physical address, application programming interface level, Bluetooth physical address, mobile phone model, manufacturer, system version, kernel version, user identity card serial number and asset number.

[0012] Preferably, the terminal device identity information, device number, and registration timestamp are transmitted in encrypted form.

[0013] Preferably, the method for generating a real-time device identification code comprises:

[0014] Generate a local information string based on device identity information and registration timestamp;

[0015] Generate a key string based on the local device number and the current timestamp;

[0016] The local information string and the key string are bitwise XORed to generate a string of the same length as the local information string, and the string of the same length as the local information string is input into a cryptographic hash algorithm to obtain a real-time device identification code.

[0017] Preferably, the method for verifying the real-time device identification code includes:

[0018] The real-time device identification code is calculated through the smart contract. The device identification code calculated by the smart contract based on the device identity information, device number and registration timestamp in the record is compared with the device identification code contained in the block header. If they are consistent, the device is credible and the device behavior analysis continues.

[0019] Preferably, the method for performing behavior verification and determination on behavior data includes:

[0020] Collect sample data, analyze and establish a decision tree model based on the sample data;

[0021] Deploy the decision tree model into a smart contract;

[0022] The behavior data is judged by the decision tree model to obtain a final judgment result.

[0023] Preferably, the sample data includes: device number, personnel number, timestamp, target type, operation performed on the target, target number, target address, current device address and current IP.

[0024] Preferably, the method for performing analysis includes: defining abnormal device behavior, marking corresponding error numbers and error descriptions, and performing data association with data in sample data.

[0025] Compared with the prior art, the present invention has the following advantages and technical effects:

[0026] The present invention discloses a device reliability authentication method based on blockchain, comprising the following steps: collecting terminal device identity information and uploading it to a smart contract of blockchain; the smart contract records the terminal device identity information and generates a device number and a registration timestamp; the terminal device sends a request to the smart contract, obtains the local device number and the registration timestamp and records them; the terminal device generates a real-time device identification code based on the local device number, current timestamp and registration timestamp, confirms the behavior data and business data, and uploads the real-time device identification code, behavior data and business data to the blockchain smart contract; the real-time device identification code is verified based on the terminal device identity information stored in the blockchain, and when the verification is passed, the behavior data is verified and determined, and the final determination result is obtained, and the business data is uploaded to the chain. The present invention establishes a decentralized trusted device authentication system based on blockchain smart contracts, performs two rounds of verification of device label verification and device behavior verification, thereby ensuring that the terminal device is credible, and can further ensure that the data on the terminal device side is credible and uploaded to the chain. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0028] Figure 1 This is a device registration flow chart of an embodiment of the present invention;

[0029] Figure 2 A flow chart for generating a real-time identification of a device according to an embodiment of the present invention;

[0030] Figure 3 This is a flow chart of real-time device identification code verification according to an embodiment of the present invention. DETAILED DESCRIPTION

[0031] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0032] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0033] Embodiment 1

[0034] This embodiment provides a device reliability authentication method based on blockchain, including the following steps:

[0035] Smart contracts that collect terminal device identity information and upload it to the blockchain;

[0036] The smart contract records the terminal device identity information and generates a device number and a registration timestamp;

[0037] The terminal device sends a request to the smart contract to obtain the local device number and registration timestamp and record them;

[0038] The terminal device generates a real-time device identification code based on the local device number, current timestamp and registration timestamp, confirms the behavior data and business data, and uploads the real-time device identification code, behavior data and business data to the blockchain smart contract;

[0039] The real-time device identification code is verified based on the terminal device identity information stored in the blockchain. When the verification passes, the behavior data is subjected to behavior verification and judgment to obtain the final judgment result, thus completing the uploading of the business data to the chain.

[0040] Furthermore, if Figure 1 As shown, the terminal device identity information is collected as follows:

[0041] The trusted firmware collects the device's characteristic information and encrypts it and sends it to the smart contract. The characteristic information mainly includes: International Mobile Equipment Identity (IMEI), International Mobile Subscriber Identity (IMSI), Bluetooth physical address, mobile phone model, manufacturer, SIM card serial number, etc.

[0042] Furthermore, the smart contract registration method is as follows:

[0043] The smart contract receives and decrypts the characteristic information sent by the node, verifies the device is valid, generates a 32-bit device number and obtains the registration timestamp, stores the device's characteristic information in the blockchain database for archiving, and feeds back the device number and registration time to the node. This embodiment provides the following registration time and device number examples:

[0044] registerTimestamp:θ180F8ECE89θ

[0045] deviceID: 30303739.

[0046] Furthermore, if Figure 2 As shown, the real-time device identification code contains the following information:

[0047] (1) Local information string

[0048] The local information string is a variable-length string consisting of a series of characteristic information of the device. The order of the information is preset by the program, and the registration timestamp fed back by the smart contract is placed at the end of the string.

[0049] (2) Key string

[0050] The key string is an 80-bit binary number, consisting of the current timestamp with the last 48 bits reserved and the device number with 32 bits. This embodiment provides a key string sample as follows:

[0051] Password:0180f8ff5c0830303739.

[0052] (3) Real-time device identification

[0053] The real-time device identification is a binary number with a length of 256 bits. The local information string and the key string are bitwise XORed to generate a string of the same length as the local information string. The string is used as the input of the SM3 cryptographic hash algorithm, and the output hash value is the real-time device identification code. This embodiment provides a real-time device identification sample as follows:

[0054] Tag:748cb6922cd330ec23524a37b43383abf6965b

[0055] 932025baef3efe98715d369a04.

[0056] The real-time device identification generated by the SM3 algorithm is difficult to infer from the output result to the input data. If the device characteristic information changes, it will be intuitively displayed for easy verification. The current timestamp is included in the encryption process, and a timeout mechanism is added on the verification end to greatly increase the difficulty of transaction hijacking. At the same time, in the process of verifying the transaction, only the real-time device identification code is transmitted instead of the device's characteristic information, which can effectively ensure the security of the device characteristic information.

[0057] Furthermore, the verification method of the real-time device identification code is as follows: Figure 3 As shown. The method of generating the device identification code is generally the same as the method of generating the local real-time device identification code. The main difference lies in the data source: the characteristic information of the device is obtained by querying the device number contained in the header, and the timestamp is also given by the block header. The device identification code calculated by the smart contract is compared with the device identification code contained in the block header. If they are consistent, it is considered that the verification is successful and the device is credible, and the device behavior analysis continues; if they are inconsistent, it is considered that the verification failed, the device is not registered / the device information has changed / the device is untrustworthy, and the device is required to re-register.

[0058] Furthermore, the behavior verification and determination method for the behavior data is as follows:

[0059] In the business scenario of IoT product traceability, the device number, personnel number, timestamp, target type, operation performed on the target, target number, target address, current device address, current IP and other information are collected, and the above information is associated with modeling to develop a corresponding error judgment mechanism. After the corresponding device behavior analysis model is established, it is deployed in the smart contract. Specific methods for behavior verification and judgment of behavior data include:

[0060] Collect sample data, analyze and establish a decision tree model based on the sample data;

[0061] Deploy the decision tree model into a smart contract;

[0062] Determine the behavior data by using the decision tree model to obtain a final determination result;

[0063] And update and iterate the model based on historical behavior data.

[0064] The information collection tags are shown in Table 1.

[0065] Table 1

[0066]

[0067] By analyzing the information collection tags and data, the abnormal behavior of the device is defined and associated with the data items. The association results are shown in Table 2, and the device behavior state machine is shown in Table 3.

[0068] Table 2

[0069]

[0070]

[0071] Table 3

[0072]

[0073] In this embodiment, after the real-time device identification code is verified, the device behavior is checked to ensure that the operator and the operation behavior are credible.

[0074] The above are only preferred specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A device reliability authentication method based on blockchain, characterized in that: The following steps are involved: Smart contracts that collect terminal device identity information and upload it to the blockchain; The smart contract records the terminal device identity information and generates a device number and a registration timestamp; The terminal device obtains the local device number and registration timestamp and records them; The terminal device generates a real-time device identification code based on the local device number, current timestamp and registration timestamp, confirms the behavior data and business data, and uploads the real-time device identification code, behavior data and business data to the blockchain smart contract; The real-time device identification code is verified based on the terminal device identity information stored in the blockchain. When the verification passes, the behavior data is subjected to behavior verification and judgment to obtain the final judgment result, thus completing the uploading of the business data to the chain.

2. The device reliability authentication method based on blockchain according to claim 1 is characterized in that: The terminal device identity information includes: International Mobile Equipment Identity serial number, International Mobile Subscriber Identity code, mobile hotspot physical address, application programming interface level, Bluetooth physical address, mobile phone model, manufacturer, system version, kernel version, user identity card serial number and asset number.

3. The device reliability authentication method based on blockchain according to claim 1 is characterized in that: The terminal device identity information, device number, and registration timestamp are transmitted in encrypted form.

4. The device reliability authentication method based on blockchain according to claim 1 is characterized in that: The method for generating a real-time device identification code comprises: Generate a local information string based on device identity information and registration timestamp; Generate a key string based on the local device number and the current timestamp; The local information string and the key string are bitwise XORed to generate a string of the same length as the local information string, and the string of the same length as the local information string is input into a cryptographic hash algorithm to obtain a real-time device identification code.

5. The device reliability authentication method based on blockchain according to claim 1 is characterized in that: The method for verifying the real-time device identification code includes: The real-time device identification code is calculated through the smart contract. The device identification code calculated by the smart contract based on the device identity information, device number and registration timestamp in the record is compared with the device identification code contained in the block header. If they are consistent, the device is credible and the device behavior analysis continues.

6. The device reliability authentication method based on blockchain according to claim 1 is characterized in that: Methods for verifying behavior data include: Collect sample data, analyze and establish a decision tree model based on the sample data; Deploy the decision tree model into a smart contract; The behavior data is judged by the decision tree model to obtain a final judgment result.

7. The device reliability authentication method based on blockchain according to claim 6 is characterized in that: The sample data includes: device number, personnel number, timestamp, target type, operation performed on the target, target number, target address, current device address and current IP.

8. The device reliability authentication method based on blockchain according to claim 6 is characterized in that: The method for performing the analysis includes: defining abnormal behavior of the device, marking the corresponding error number and error description, and performing data association with the data in the sample data.