Internet of Things Security Automatic Configuration Method and System

Through deep learning and blockchain technology, access control rules are generated and smart contracts are used to determine permissions, which solves the problem of low security of IoT devices and realizes distributed secure access control, which is suitable for the security needs of IoT devices.

CN113055349BActive Publication Date: 2024-10-25ZHENGJIANG PUBLIC INFORMATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911377532.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-27
Publication Date
2024-10-25
Estimated Expiration
2039-12-27

AI Technical Summary

Technical Problem

Existing IoT access control technology cannot effectively solve the security problems of IoT devices, especially due to low computing power and inability to support complex security solutions. Traditional security solutions are not applicable in the IoT environment, and there are single points of failure and Performance bottleneck.

Method used

Adopting a security framework based on deep learning and blockchain, the deep learning server trains the neural network model to generate access control rules, and uses smart contracts on the blockchain to determine access permissions to achieve distributed security access control and provide lightweight IoT access control system.

Benefits of technology

It realizes secure and distributed IoT access control, reduces the risk of single point of failure, improves performance, reduces management complexity and workload, and is suitable for the end-to-end security requirements of IoT devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113055349B_ABST
    Figure CN113055349B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an Internet of Things security automatic configuration method and system. An Internet of Things access control system includes a first device and a second device connected through the Internet of Things, wherein the first device sends a resource access request to the second device, receives a redirection instruction corresponding to the resource access request from the second device, calls a smart contract on a blockchain according to the redirection instruction to obtain an access token, sends an access request with the access token to the second device, the second device determines whether the first device is allowed to access the resources of the second device according to the access request with the access token received from the first device, the smart contract determines whether the first device can access the second device according to the access control rules input into the blockchain, and outputs the access token if it is determined that the first device can access the second device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to an Internet of Things access control technology, and in particular to an Internet of Things access control system, device and method based on deep learning and blockchain. Background Art

[0002] With the continuous development of the Internet of Things, the privacy protection issue of the Internet of Things has attracted people's attention, and access control technology is one of the important methods to protect privacy.

[0003] However, the current IoT access control technology cannot fully solve the security issues in the development of IoT. Moreover, the computing power of IoT components is low and cannot support complex security solutions. Traditional security solutions are usually not applicable in IoT environments. Therefore, there is a need for IoT access control technology with enhanced security. Summary of the invention

[0004] An object of an embodiment of the present disclosure is to provide a novel Internet of Things access control system, an access request device, an access acceptance device, a deep learning server, and a control method.

[0005] According to one aspect of the present disclosure, an Internet of Things access control system is provided, comprising a first device and a second device connected via the Internet of Things, wherein the first device comprises: a first sending unit, configured to send a resource access request to the second device; a first receiving unit, configured to receive a redirection instruction corresponding to the resource access request from the second device; and a first control unit, configured to call a smart contract on a blockchain according to the redirection instruction to obtain an access token, so that the first sending unit sends an access request with the access token to the second device, and the second device comprises: a second receiving unit, configured to receive a resource access request from the first device; a second sending unit, configured to send a redirection instruction corresponding to the resource access request to the first device; and a second control unit, configured to determine whether the first device is allowed to access resources of the second device according to the access request with the access token received from the first device, and the smart contract determines whether the first device can access the second device according to the access control rule input into the blockchain, and outputs the access token if it is determined that the first device can access the second device.

[0006] According to another aspect of the present disclosure, an access request device in an Internet of Things access control system is provided, which is connected to an access acceptance device via the Internet of Things, and includes: a first sending unit, used to send a resource access request to the access acceptance device; a first receiving unit, used to receive a redirection instruction corresponding to the resource access request from the access acceptance device; and a first control unit, which calls a smart contract on a blockchain according to the redirection instruction to obtain an access token, so that the first sending unit sends an access request with the access token to the access acceptance device, and the smart contract determines whether the access request device can access the access acceptance device according to the access control rules input into the blockchain, and outputs the access token when it is determined that the access request device can access the access acceptance device.

[0007] According to another aspect of the present disclosure, there is provided an access acceptance device in an Internet of Things access control system, which is connected to an access request device through the Internet of Things, and includes: a second receiving unit, used to receive a resource access request from the access request device; a second sending unit, used to send a redirection instruction corresponding to the resource access request to the access request device; and a second control unit, which receives an access request with an access token from the access request device, sends the access token to a smart contract on a blockchain to check the legitimacy of the access token, and sends a response for allowing or denying access to the resources of the access acceptance device to the access request device based on the check result, wherein the access token is generated in the following manner: the smart contract determines whether the access request device can access the access acceptance device based on the access control rules input into the blockchain, and outputs the access token to the access request device when it is determined that the access request device can access the access acceptance device.

[0008] According to another aspect of the present disclosure, a deep learning server in an Internet of Things access control system is provided, wherein the deep learning server trains and updates a neural network model, the neural network model inputs the configuration of the Internet of Things and outputs corresponding access control rules, and when the configuration parameters and access control rules of the Internet of Things are initially configured to the blockchain, the deep learning server trains and updates the neural network model using the configuration parameters and access control rules, and then saves the updated neural network model to subsequent blocks of the blockchain, and when the configuration parameters of the Internet of Things are updated, the mining nodes on the blockchain run the neural network model with the updated configuration parameters as input to generate access control rules, and the smart contract on the blockchain uses the generated access control rules to determine whether the access request device in the Internet of Things access control system can access the access acceptance device.

[0009] According to another aspect of the present disclosure, a control method in an Internet of Things access control system is provided, the Internet of Things access control system comprising a first device and a second device connected via the Internet of Things, the control method comprising the following steps: the first device sends a resource access request to the second device; the second device receives the resource access request from the first device, and sends a redirection instruction corresponding to the resource access request to the first device; the first device receives the redirection instruction from the second device, calls a smart contract on a blockchain according to the redirection instruction to obtain an access token, and sends an access request with the access token to the second device; and the second device determines whether the first device is allowed to access resources of the second device according to the access request with the access token received from the first device, the smart contract determines whether the first device can access the second device according to the access control rule input into the blockchain, and outputs the access token when it is determined that the first device can access the second device.

[0010] According to another aspect of the present disclosure, a control method in an access request device in an Internet of Things access control system is provided, wherein the access request device is connected to an access acceptance device via the Internet of Things, and the control method comprises the following steps: sending a resource access request to the access acceptance device; receiving a redirection instruction corresponding to the resource access request from the access acceptance device; and calling a smart contract on a blockchain according to the redirection instruction to obtain an access token, and sending an access request with the access token to the access acceptance device, wherein the smart contract determines whether the access request device can access the access acceptance device according to the access control rules input into the blockchain, and outputs the access token if it is determined that the access request device can access the access acceptance device.

[0011] According to another aspect of the present disclosure, a control method in an access acceptance device in an Internet of Things access control system is provided, wherein the access acceptance device is connected to an access request device through the Internet of Things, and the control method comprises the following steps: receiving a resource access request from the access request device; sending a redirection instruction corresponding to the resource access request to the access request device; receiving an access request with an access token from the access request device; and sending the access token to a smart contract on a blockchain to check the legitimacy of the access token, and sending a response for allowing or denying access to the resources of the access acceptance device to the access request device based on the check result, wherein the access token is generated in the following manner: the smart contract determines whether the access request device can access the access acceptance device based on the access control rules input into the blockchain, and outputs the access token to the access request device if it is determined that the access request device can access the access acceptance device.

[0012] According to another aspect of the present disclosure, a control method in a deep learning server in an Internet of Things access control system is provided, the control method comprising: when initially configuring the configuration parameters and access control rules of the Internet of Things to a blockchain, the deep learning server uses the configuration parameters and access control rules to train and update a neural network model, and then saves the updated neural network model to a subsequent block of the blockchain, wherein the neural network model inputs the configuration of the Internet of Things and outputs corresponding access control rules, and when updating the configuration parameters of the Internet of Things, the mining nodes on the blockchain run the neural network model with the updated configuration parameters as input to generate access control rules, and the smart contract on the blockchain uses the generated access control rules to determine whether an access request device in the Internet of Things access control system can access an access acceptance device.

[0013] According to another aspect of the present disclosure, a computer-readable medium is provided, on which computer-executable instructions are stored. When the computer-executable instructions are executed by one or more processors, the one or more processors are caused to execute the control method described in the present disclosure.

[0014] Through the embodiments of the present disclosure, a secure lightweight IoT access control system, device, and method based on deep learning and blockchain can be implemented.

[0015] Other features and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0017] The present disclosure may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:

[0018] Figure 1 is a diagram illustrating a conventional access control structure.

[0019] Figure 2 This is a diagram for explaining the access control structure of the first embodiment of the present disclosure.

[0020] Figure 3 This is a diagram illustrating the internal structure of device A or device B.

[0021] Figure 4 1 is a flowchart showing an example of a control method in device A which is an access request device.

[0022] Figure 5This is a flowchart showing an example of a control method in device B as an access acceptance device.

[0023] Figure 6 This is a diagram for explaining the generation of access control rules in Embodiment 2 of the present disclosure.

[0024] Figure 7 is a diagram illustrating the general structure of a blockchain.

[0025] Figure 8 This is a diagram illustrating the blockchain block structure of implementation mode 3 of the present disclosure.

[0026] Fig. 9 is a diagram illustrating an exemplary configuration of a computing device 1000 that can implement an embodiment according to the present disclosure. DETAILED DESCRIPTION

[0027] Hereinafter, preferred embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. Note that, in this specification and the drawings, structural elements that have substantially the same function and structure are denoted with the same reference numerals, and repeated explanation of these structural elements is omitted.

[0028] In the present disclosure, the terms “first”, “second”, etc. are used merely to distinguish between elements or steps, but are not intended to indicate a time sequence, priority, or importance.

[0029] Implementation Method 1

[0030] First, a conventional access control structure is described. Figure 1 is a diagram illustrating a traditional access control structure. Figure 1 In the example, device A and device B are nodes on the Internet of Things, connected through the Internet of Things. Device A is an access requesting device, device B is an access accepting device, and device A requests access to the resources of device B.

[0031] like Figure 1 As shown, in conventional access control, in step S101, device A sends a resource access request including a user name, password, etc. to device B to request access to the resources of device B. Device B determines whether to accept or reject the access request of device A through the access control processing mechanism. For example, device B verifies the access rights of device A through the user name, password, etc., and determines whether to accept or reject the access request of device A accordingly. Then, in step S102, device B sends information indicating acceptance or rejection of the access request to device A. When the access request is accepted, in step S103, device A accesses the resources of device B according to the authorization of device B.

[0032] This traditional access control adopts a centralized architecture and static security access control strategy. The centralized architecture has single point failure and performance bottleneck problems. On the other hand, it is very difficult to apply the current access control solution on the IoT device side because the current solution requires intensive computing power that most IoT devices do not have. At the same time, entrusting authentication and access control to a third-party server will undermine end-to-end security and cause serious security issues. The IoT system requires a security framework that suits its distributed nature, so that users can control their own privacy and security.

[0033] In addition, in the static access control policy mode, administrators write all security or access control rules in a static manner. The main disadvantage of this approach is that such policies will increase as the number of IoT devices increases, and the workload introduced by manually managing such policies is extremely large.

[0034] In order to solve the single point failure and performance bottleneck problems existing in the centralized architecture, the present disclosure proposes the implementation of a security framework based on blockchain.

[0035] Figure 2 1 is a diagram illustrating the access control structure of the first embodiment of the present disclosure. Figure 2 As shown, the Internet of Things access control system of implementation mode 1 includes device A and device B. Device A and device B are nodes on the Internet of Things and are connected through the Internet of Things. Device A is an access request device, device B is an access acceptance device, and device A requests access to the resources of device B. It is also possible that device B is an access request device, device A is an access acceptance device, and device B requests access to the resources of device A. It is also possible that device A or device B has the function of an access request device and the function of an access acceptance device at the same time. The access of device A to device B may be actions such as reading data or changing data. Below, as an example, the case where device A is an access request device and device B is an access acceptance device is described.

[0036] Figure 3 3 is a diagram for explaining the internal structure of device A or device B. Device A includes a transmission unit 31, a reception unit 32, and a control unit 33. The internal structure of device B is the same as that of device A.

[0037] In device A serving as an access request device, the sending unit 31 is used to send a resource access request to device B, the receiving unit 32 is used to receive a redirection instruction corresponding to the resource access request from device B, and the control unit 33 calls the smart contract on the blockchain according to the redirection instruction to obtain an access token, so that the sending unit 31 sends an access request with an access token to device B.

[0038] In device B serving as an access acceptance device, the receiving unit 32 is used to receive a resource access request from device A, the sending unit 31 is used to send a redirection instruction corresponding to the resource access request to device A, and the control unit 33 determines whether device A is allowed to access the resources of device B based on the access request with the access token received from device A.

[0039] The access control process of implementation mode 1 of the present disclosure is described below.

[0040] like Figure 2 As shown, in step S201, device A sends a resource access request to device B.

[0041] In step S202, device B redirects the request to the smart contract of the blockchain, that is, sends a redirection instruction corresponding to the received resource access request.

[0042] In step S203, device A calls the smart contract on the blockchain according to the redirection instruction obtained from device B. For example, device A sends the call request to the authorization management point AMP (i.e., blockchain wallet) on the blockchain, which plays the role of policy enforcement point PEP (Policy Enforcement Point) to protect the object of the request.

[0043] In step S204, the smart contract is executed. For example, the policy enforcement point PEP generates a transaction after receiving the call request of the smart contract. The transaction may be a GetAccess transaction. The transaction contains relevant information such as device A wants to access device B. The policy enforcement point PEP broadcasts this transaction to all mining nodes on the blockchain so that the smart contract can be executed through the mining process.

[0044] In addition, when executing a smart contract, access control rules are input into the smart contract. For example, the smart contract is input with whether device A has the right to access device B.

[0045] The access control rules can be manually configured statically, generated by a neural network, or generated by a neural network first and then manually modified, and the neural network then learns the manually modified access control rules to generate new rules. In the case of using a neural network, as the number of access control rules increases, the neural network becomes more and more intelligent.

[0046] In step S205, a smart contract is executed to determine whether device A has the authority to access the resources of device B. The process may be a distributed policy decision point (PDP) that determines whether to accept or reject the access request through a smart contract on the blockchain. The smart contract may be a GrantAccess smart contract.

[0047] In step S206, when device A does not have the authority to access the resource of device B, a response indicating that the request is rejected is sent to device A.

[0048] In step S207, when device A has the authority to access the resources of device B, the transaction is added to the blockchain.

[0049] In step S208, an access token is sent to device A. The blockchain can send an access token to device A through, for example, the AllowAccess smart contract. Device A saves the token and uses it as a key to access the resources of device B in the future.

[0050] The above steps S201 to S208 are the information registration process, and the following steps S209 to S211 are the information access process. For example, for the Ethereum blockchain, information registration is mainly completed through the mining process (the cycle of Ethereum generating new blocks is about 12 seconds), which may lead to a longer process cycle. However, this time is only for the registration process. Once the information registration is completed, no additional delay is introduced in the subsequent process.

[0051] In step S209, device A sends an access request with an access token to device B.

[0052] In step S210, when device B receives the access request with the access token, it sends the access token to the smart contract to check the legitimacy of the access token.

[0053] In step S211, device B sends a response to device A for allowing or denying access to the resources of device A according to the check result. When device A is allowed to perform resource access, device A performs resource access to device B.

[0054] It should be understood that the technical solution of the present disclosure may not be limited to the above steps, and may include additional steps or delete some steps, and the order of the steps may be different. Moreover, the technical solution of the present disclosure does not need to perform all the above steps, and only a part of the steps may be performed for one or more specific purposes.

[0055] Figure 4 1 is a flowchart showing an example of a control method in device A which is an access request device.

[0056] like Figure 4 As shown, in step S401, a resource access request is sent to device B.

[0057] In step S402, the slave device B receives a redirection instruction corresponding to the resource access request.

[0058] In step S403, the smart contract on the blockchain is called according to the redirection instruction.

[0059] In step S404, the smart contract determines whether device A can access device B based on the access control rules input into the blockchain.

[0060] In step S405, when the smart contract determines that device A can access device B, an access token is obtained from the smart contract.

[0061] In step S406, an access request with an access token is sent to device B.

[0062] Figure 5 This is a flowchart showing an example of a control method in device B as an access acceptance device.

[0063] like Figure 5 As shown, in step S501, a resource access request from device A is received.

[0064] In step S502, a redirection instruction corresponding to the resource access request is sent to device A.

[0065] In step S503, an access request with an access token is received from device A.

[0066] In step S504, the access token is sent to the smart contract on the blockchain to check the legitimacy of the access token.

[0067] In step S505, a response for allowing or denying access to the resources of device B is sent to device A according to the result of the validity check.

[0068] Implementation Method 2

[0069] In this embodiment, as a preferred method for inputting access control rules to a smart contract when executing the smart contract, the intelligent generation of access control rules is described.

[0070] Since the types and number of IoT devices are very large and the relationships between devices are very complex, the traditional access control rule input method is completed through manual configuration, so configuring security rules for IoT systems is very challenging.

[0071] In this embodiment, in order to solve this problem, a deep neural network (DNN) is introduced to manage and configure the security system, and the relationship between sensors is further simplified into several types such as readable, writable, and authorized. DNN is trained through online learning and can adaptively learn model parameters when a new batch of labeled data arrives, without the need to retrain the model from scratch.

[0072] The Internet of Things access control system of embodiment 2 of the present disclosure further includes a deep learning server based on the structure of the Internet of Things access control system of embodiment 1. The deep learning server trains and updates a neural network model, which inputs the configuration of the Internet of Things and outputs corresponding access control rules.

[0073] Figure 6 1 is a diagram illustrating the generation of access control rules according to Embodiment 2 of the present disclosure. Figure 6 As shown, in the Internet of Things access control system of implementation mode 2, when the configuration parameters and access control rules of the Internet of Things are initially configured to the blockchain, the deep learning server uses the configuration parameters and access control rules to train and update the neural network model, and then saves the updated neural network model to subsequent blocks of the blockchain.

[0074] When the configuration parameters of the IoT are updated, the mining nodes on the blockchain run the neural network model with the updated configuration parameters as input to generate access control rules.

[0075] The smart contract on the blockchain uses the generated access control rules to determine whether device A can access device B.

[0076] In addition, as an example, a user is able to modify the access control rules generated by running the neural network model stored in the blockchain. When the user modifies the access control rules, the deep learning server trains and updates the neural network model using the modified access control rules.

[0077] Furthermore, as an example, in the event that a user modifies an access control rule, the deep learning server saves the updated neural network model to a subsequent block of the blockchain.

[0078] Refer to the following Figure 6 The process of generating access control rules in Embodiment 2 of the present disclosure will be described.

[0079] First, in step S601, IoT N (N is a natural number) is deployed. The deployment includes actions such as installing IoT devices and configuring IoT parameters. In step S602, the access control rules of IoT N are configured. The access control rules and IoT parameters are saved to the blockchain.

[0080] In step S603, the blockchain adds the IoT data to a new block and uploads it to the IoT secure deep learning server.

[0081] In step S604, the deep learning server inputs this part of data into the neural network, trains the neural network, and updates the neural network model.

[0082] In step S605, the updated neural network model is saved to a subsequent block of the blockchain.

[0083] In step S606, the Internet of Things N+K (K is a natural number) is deployed. Different from step S601, after the Internet of Things is deployed, there is no need to manually configure the access control rules, which are generated through the neural network model.

[0084] In step S607, when deploying subsequent IoT devices and applications, the deployment node extracts relevant deployment parameters and submits them to the blockchain mining node. The mining node runs the neural network model with the IoT parameters as input parameters, and the model output is the IoT security rules.

[0085] In addition, as shown in step S608, the administrator or user may modify the generated rules.

[0086] In step S609, if the administrator or user modifies the access control configuration, the configuration parameters are further uploaded to the deep learning server for further training of the neural network.

[0087] In addition, after step S609, the neural network model updated by the deep learning server can also be saved to a subsequent block of the blockchain.

[0088] It should be understood that the technical solution of the present disclosure may not be limited to the above steps, and may include additional steps or delete some steps, and the order of the steps may be different. Moreover, the technical solution of the present disclosure does not need to perform all the above steps, and only a part of the steps may be performed for one or more specific purposes.

[0089] The purpose of the deep learning server is to replace people to complete the IoT security configuration work, thereby reducing a large amount of simple repetitive labor. The quality of the neural network improves with the increase of training data. The data of the first K blockchains are used to train the neural network, and then the IoT access control rules are generated while training through online learning. Therefore, according to the embodiment 2 of the present disclosure, the problem of huge workload and low efficiency in the traditional method of completing the input of access control rules through manual configuration can be solved.

[0090] Implementation 3

[0091] In this embodiment, a preferred method for storing access control rules in a blockchain is described.

[0092] Blockchain is essentially a distributed ledger, and users cannot modify the data in the blockchain. In the technical solution of the present disclosure, users are allowed to modify the access control rules generated by the neural network. The following is an explanation of the method for modifying the access control rules of the present disclosure with reference to the accompanying drawings.

[0093] Figure 7 This is a diagram that illustrates the general structure of a blockchain. Tx_Root is the Merkle root hash value of the Merkle tree structure that includes transactions 0 to 3. The blockchain ensures the integrity and immutability of data through the Merkle tree structure.

[0094] Figure 8 1 is a diagram illustrating the blockchain block structure of the present embodiment. The block structure of the present embodiment allows users to modify blockchain data. Figure 8 IoT_Cfg, IoT_Security and IoT_AI in are similar to Figure 7 The Merkle root hash value of Tx_Root in IoT_Cfg corresponds to the IoT configuration information, and IoT_Security corresponds to the security access rules based on the IoT configuration information. IoT_AI corresponds to the neural network model.

[0095] In addition, in this embodiment, the Merkle tree can be a binary tree or a multi-branch tree.

[0096] like Figure 8 As shown, in this embodiment, each block of the blockchain includes a Merkle root hash value IoT_Cfg of the configuration parameters of the Internet of Things forming a Merkle tree structure and a Merkle root hash value IoT_Security of the access control rules forming a Merkle tree structure.

[0097] The current IoT configuration parameters and access control rules are stored in the N-1th block of the blockchain. The IoT_Cfg of the N-1th block is the Merkle root hash value of the current IoT configuration parameters, and the IoT_Security of the N-1th block is the Merkle root hash value of the current access control rules, where N is a natural number greater than 1.

[0098] When the configuration parameters of the Internet of Things are updated, the mining nodes of the blockchain run the neural network model with the updated configuration parameters of the Internet of Things as input, thereby obtaining updated access control rules, and storing the updated configuration parameters and the updated access control rules in the Nth block in the blockchain. The IoT_Cfg of the Nth block is the Merkle root hash value of the updated configuration parameters, and the IoT_Security of the Nth block is the Merkle root hash value of the updated access control rules.

[0099] When the user modifies the access control rules, the modified access control rules are stored in the N+1th block in the blockchain, and the IoT_Security of the N+1th block is the Merkle root hash value of the modified access control rules.

[0100] In addition, as an example, the access control rules form a multi-branch Merkle tree structure, and each node of the Merkle tree corresponds to a security rule. When the user modifies the access control rules, if the user modifies the security rule of a node of the Merkle tree of the access control rules, the modified security rule is stored in the N+1th block, and the hash value of the modified security rule is recalculated, and the hash value of the parent node of the modified security rule is recalculated based on the recalculated hash value. Such recalculation is repeated until the hash value of the root of the Merkle tree is recalculated, and then the recalculated hash value of the root is set as the IoT_Security value of the N+1th block.

[0101] In addition, as an example, each block of the blockchain may also include a Merkle root hash value IoT_AI of a neural network model forming a Merkle tree structure.

[0102] The current neural network model is stored in the N-1th block, and the IoT_AI of the N-1th block is the Merkle root hash value of the current neural network model.

[0103] When the user modifies the access control rules, the deep learning server updates the neural network model and stores the updated neural network model in the N+1th block in the blockchain. The IoT_AI in the N+1th block is the Merkle root hash value of the updated neural network model.

[0104] Below, as an example, refer to Figure 8 The organizational steps of the deep learning blockchain of implementation mode 3 of the present disclosure are described.

[0105] (1) After deploying IoT N-1, the deployment information of IoT is registered to block N-1 of the blockchain through the registration mechanism.

[0106] (2) The blockchain saves this information to the transaction record of IoT_Cfg and calculates the Merkle value of IoT_Cfg.

[0107] (3) The mining node takes the deployment information of the Internet of Things as input, runs the AI ​​model on the mining node, and outputs the Internet of Things access control rules. These access control rules are stored in block N.

[0108] (4) The user or security administrator checks the access control rules. If the rules meet the requirements, the user can further modify the access configuration rules. The modified access control rules are stored in block N+1.

[0109] In addition, as an example, access control rules are organized using a multi-tree Merkle tree data structure. Figure 8As shown, Iot_Security includes three transaction records, namely record 1, record 2, and record 3. Each transaction record corresponds to a specific IoT configuration, namely IoT 1, IoT 2, and IoT 3.

[0110] For example, IoT 3 includes three security rules, namely, security rule 4 and security rule 5. Each security rule can be further divided into sub-rules, for example, rule 5 can be divided into sub-rule 6, sub-rule 7, and sub-rule 8. And so on.

[0111] After the mining node generates the security rules, the user checks the security rules. If the user is not satisfied with the security rules, the user can modify the security rules. For example, if the user is not satisfied with security rule 8, he can modify security rule 8_1, and the modified rules are saved in block N+1.

[0112] In block N+1, the new security rules are rule 6, rule 7, and rule 8_1. The Merkle hash value is recalculated according to the new security rules to obtain the security rule storage root Hash 5_1, and then the Merkle hash value 3_1 and IoT_Security 3 are further recalculated. And so on.

[0113] Fig. 9 An exemplary configuration of a computing device 1000 that can implement embodiments according to the present disclosure is shown. The computing device 1000 is an example of a hardware device to which the above aspects of the present disclosure can be applied. The computing device 1000 can be any machine configured to perform processing and / or calculations. The computing device 1000 can be, but is not limited to, a workstation, a server, a desktop computer, a laptop computer, a tablet computer, a personal data assistant (PDA), a smart phone, a vehicle-mounted computer, or a combination thereof.

[0114] like Fig. 9As shown, computing device 1000 may include one or more elements that may be connected or communicated with bus 1002 via one or more interfaces. Bus 1002 may include, but is not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus, etc. Computing device 1000 may include, for example, one or more processors 1004, one or more input devices 1006, and one or more output devices 1008. One or more processors 1004 may be any kind of processor, and may include, but is not limited to, one or more general-purpose processors or special-purpose processors (such as special-purpose processing chips). Input device 1006 may be any type of input device capable of inputting information to a computing device, and may include, but is not limited to, a mouse, a keyboard, a touch screen, a microphone, and / or a remote controller. Output device 1008 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer.

[0115] The computing device 1000 may also include or be connected to a non-transitory storage device 1014, which may be any non-transitory storage device that can implement data storage, and may include, but is not limited to, a disk drive, an optical storage device, a solid-state memory, a floppy disk, a flexible disk, a hard disk, a tape, or any other magnetic medium, a compressed disk or any other optical medium, a cache memory, and / or any other storage chip or module, and / or any other medium from which a computer can read data, instructions, and / or code. The computing device 1000 may also include a random access memory (RAM) 1010 and a read-only memory (ROM) 1012. The ROM 1012 may store programs, utilities, or processes to be executed in a non-volatile manner. The RAM 1010 may provide volatile data storage and store instructions related to the operation of the computing device 1000. The computing device 1000 may also include a network / bus interface 1016 coupled to a data link 1018. The network / bus interface 1016 can be any type of device or system capable of enabling communication with an external device and / or a network, and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication device and / or a chipset (such as a Bluetooth™ device, a 1302.11 device, a WiFi device, a WiMax device, a cellular communication facility, etc.).

[0116] Various aspects, embodiments, implementations or features of the foregoing embodiments may be used alone or in any combination. Various aspects of the foregoing embodiments may be implemented by software, hardware or a combination of hardware and software.

[0117] For example, the foregoing embodiments may be embodied as computer readable code on a computer readable medium. A computer readable medium is any data storage device that can store data that can thereafter be read by a computer system. Examples of computer readable media include read-only memory, random access memory, CD-ROM, DVD, magnetic tape, hard drive, solid state drive, and optical data storage device. The computer readable medium may also be distributed in a network coupled computer system so that the computer readable code is stored and executed in a distributed manner.

[0118] For example, the aforementioned embodiments may be in the form of hardware circuits. The hardware circuits may include any combination of combinational logic circuits, clock storage devices (such as floppy disks, flip-flops, latches, etc.), finite state machines, memories such as static random access memories or embedded dynamic random access memories, custom designed circuits, programmable logic arrays, etc.

[0119] In one embodiment, a hardware circuit according to the present disclosure may be implemented by coding a circuit description in a hardware description language (HDL) such as Verilog or VHDL. The HDL description may be synthesized from a library of cells designed for a given integrated circuit manufacturing technology and may be modified for timing, power, and other reasons to obtain a final design database that may be transmitted to a factory to produce integrated circuits through a semiconductor manufacturing system. The semiconductor manufacturing system may produce integrated circuits by depositing semiconductor materials (e.g., on a wafer that may include a mask), removing materials, changing the shape of the deposited materials, modifying the materials (e.g., by doping materials or modifying dielectric constants using ultraviolet treatment), and the like. The integrated circuit may include transistors and may also include other circuit elements (e.g., passive elements such as capacitors, resistors, inductors, etc.) and interconnections between transistors and circuit elements. Some embodiments may implement multiple integrated circuits coupled together to implement the hardware circuit, and / or discrete elements may be used in some embodiments.

[0120] Although some specific embodiments of the present invention have been shown in detail by example, it will be appreciated by those skilled in the art that the above examples are intended to be illustrative only and do not limit the scope of the present invention. It will be appreciated by those skilled in the art that the above embodiments can be modified without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.

Claims

1. An Internet of Things access control system, comprising a first device and a second device connected via the Internet of Things, wherein: The first device comprises: A first sending unit, configured to send a resource access request to the second device; A first receiving unit, configured to receive a redirection instruction corresponding to the resource access request from the second device; and The first control unit calls the smart contract on the blockchain according to the redirection instruction to obtain an access token, so that the first sending unit sends an access request with the access token to the second device, The second device comprises: a second receiving unit, configured to receive a resource access request from the first device; a second sending unit, configured to send a redirection instruction corresponding to the resource access request to the first device; and a second control unit, determining, according to an access request with an access token received from the first device, whether to allow the first device to access resources of the second device; The smart contract determines whether the first device can access the second device according to the access control rules input into the blockchain, and outputs the access token if it is determined that the first device can access the second device, including: the smart contract determines whether the first device can access the second device according to the access control rules generated by the neural network model, The IoT access control system further comprises a deep learning server for training and updating the neural network model, wherein the neural network model inputs the configuration of the IoT and outputs corresponding access control rules. In the case where the configuration parameters and access control rules of the Internet of Things are initially configured to the blockchain, the deep learning server trains and updates the neural network model using the configuration parameters and access control rules, and then saves the updated neural network model to a subsequent block of the blockchain, When the configuration parameters of the Internet of Things are updated, the mining nodes on the blockchain run the neural network model with the updated configuration parameters as input to generate access control rules.

2. The Internet of Things access control system according to claim 1, wherein: The second device sends the access token to the smart contract to check the legitimacy of the access token, and sends a response for allowing or denying access to resources of the second device to the first device according to the check result.

3. The Internet of Things access control system according to claim 1, wherein: The blockchain generates a transaction after receiving the call request of the smart contract from the first control unit, and broadcasts the transaction to all nodes on the blockchain so that the smart contract is executed by the nodes on the blockchain, and determines whether the first device has the authority to access the resources of the second device through the execution of the smart contract, When the first device has the authority to access the resources of the second device, the transaction information is added to the blockchain, and the access token is sent to the first device, When the first device does not have the authority to access the resource of the second device, a response indicating a rejection of the resource access request is sent to the first device.

4. The Internet of Things access control system according to claim 1, wherein: The access control rules are generated in one of the following ways: input by a user; generated by a neural network model; first generated by a neural network model and manually modified for learning, and then generated by the learned neural network model.

5. The Internet of Things access control system according to claim 1, wherein: Users are able to modify the access control rules stored in the blockchain that are generated by running the neural network model. When the user modifies the access control rules, the deep learning server trains and updates the neural network model using the modified access control rules.

6. The Internet of Things access control system according to claim 5, wherein: In the event that the user modifies the access control rules, the deep learning server saves the updated neural network model to a subsequent block of the blockchain.

7. The Internet of Things access control system according to claim 5 or 6, wherein: Each block of the blockchain includes a Merkle root hash value IoT_Cfg of a configuration parameter of the Internet of Things forming a Merkle tree structure and a Merkle root hash value IoT_Security of an access control rule forming a Merkle tree structure, The current configuration parameters and access control rules of the Internet of Things are stored in the N-1th block of the blockchain, the IoT_Cfg of the N-1th block is the Merkle root hash value of the current configuration parameters of the Internet of Things, and the IoT_Security of the N-1th block is the Merkle root hash value of the current access control rules, where N is a natural number greater than 1. In the case where the configuration parameters of the Internet of Things are updated, the mining node of the blockchain runs the neural network model with the updated configuration parameters of the Internet of Things as input, thereby obtaining updated access control rules, and storing the updated configuration parameters and the updated access control rules in the Nth block in the blockchain, wherein the IoT_Cfg of the Nth block is the Merkle root hash value of the updated configuration parameters, and the IoT_Security of the Nth block is the Merkle root hash value of the updated access control rules, When the user modifies the access control rules, the modified access control rules are stored in the N+1th block in the blockchain, and the IoT_Security of the N+1th block is the Merkle root hash value of the modified access control rules.

8. The Internet of Things access control system according to claim 7, wherein: The access control rules form a multi-branch Merkle tree structure, where each node of the Merkle tree corresponds to a security rule. When a user modifies an access control rule, if the user modifies the security rule of a node in the Merkle tree of the access control rule, the modified security rule is stored in the N+1th block, and the hash value of the modified security rule is recalculated. The hash value of the parent node of the modified security rule is recalculated based on the recalculated hash value. Such recalculation is repeated until the hash value of the root of the Merkle tree is recalculated, and then the recalculated hash value of the root is set as the IoT_Security value of the N+1th block.

9. The Internet of Things access control system according to claim 7, wherein: Each block of the blockchain includes a Merkle root hash value IoT_AI of a neural network model forming a Merkle tree structure, The current neural network model is stored in the N-1th block, and the IoT_AI of the N-1th block is the Merkle root hash value of the current neural network model. When the user modifies the access control rules, the deep learning server updates the neural network model and stores the updated neural network model in the N+1th block in the blockchain, and the IoT_AI of the N+1th block is the Merkle root hash value of the updated neural network model.

10. An access request device in an Internet of Things access control system, connected to an access receiving device via the Internet of Things, comprising: A first sending unit, configured to send a resource access request to the access acceptance device; A first receiving unit, configured to receive a redirection instruction corresponding to the resource access request from the access acceptance device; as well as The first control unit calls the smart contract on the blockchain according to the redirection instruction to obtain the access token, and causes the first sending unit to send an access request with the access token to the access acceptance device, The smart contract determines whether the access request device can access the access acceptance device according to the access control rules input into the blockchain, and outputs the access token if it is determined that the access request device can access the access acceptance device, including: the smart contract determines whether the access request device can access the access acceptance device according to the access control rules generated by the neural network model, The neural network model is trained and updated by a deep learning server, and the neural network model inputs the configuration of the Internet of Things and outputs corresponding access control rules. In the case where the configuration parameters and access control rules of the Internet of Things are initially configured to the blockchain, the deep learning server trains and updates the neural network model using the configuration parameters and access control rules, and then saves the updated neural network model to a subsequent block of the blockchain, When the configuration parameters of the Internet of Things are updated, the mining nodes on the blockchain run the neural network model with the updated configuration parameters as input to generate access control rules.

11. An access receiving device in an Internet of Things access control system, connected to an access requesting device via the Internet of Things, comprising: A second receiving unit, configured to receive a resource access request from the access request device; A second sending unit, configured to send a redirection instruction corresponding to the resource access request to the access request device; as well as a second control unit, receiving an access request with an access token from the access requesting device, sending the access token to a smart contract on the blockchain to check the legitimacy of the access token, and sending a response to the access requesting device for allowing or denying access to resources of the access accepting device according to the check result, The access token is generated in the following manner: the smart contract determines whether the access request device can access the access acceptance device according to the access control rules input into the blockchain, and outputs the access token to the access request device if it is determined that the access request device can access the access acceptance device, wherein the smart contract determines whether the access request device can access the access acceptance device using the access control rules generated by the neural network model, The neural network model is trained and updated by a deep learning server, and the neural network model inputs the configuration of the Internet of Things and outputs corresponding access control rules. In the case where the configuration parameters and access control rules of the Internet of Things are initially configured to the blockchain, the deep learning server trains and updates the neural network model using the configuration parameters and access control rules, and then saves the updated neural network model to a subsequent block of the blockchain, When the configuration parameters of the Internet of Things are updated, the mining nodes on the blockchain run the neural network model with the updated configuration parameters as input to generate access control rules.

12. A deep learning server in an Internet of Things access control system, wherein: The deep learning server trains and updates a neural network model that inputs the configuration of the Internet of Things and outputs corresponding access control rules. In the case where the configuration parameters and access control rules of the Internet of Things are initially configured to the blockchain, the deep learning server trains and updates the neural network model using the configuration parameters and access control rules, and then saves the updated neural network model to a subsequent block of the blockchain. When the configuration parameters of the Internet of Things are updated, the mining nodes on the blockchain use the updated configuration parameters as input to run a neural network model to generate access control rules. The smart contract on the blockchain uses the generated access control rules to determine whether the access request device in the Internet of Things access control system can access the access acceptance device.

13. The deep learning server according to claim 12, wherein: Users are able to modify the access control rules stored in the blockchain that are generated by running the neural network model. When the user modifies the access control rules, the deep learning server trains and updates the neural network model using the modified access control rules.

14. The deep learning server according to claim 13, wherein: In the event that the user modifies the access control rules, the deep learning server saves the updated neural network model to a subsequent block of the blockchain.

15. A control method in an Internet of Things access control system, the Internet of Things access control system comprising a first device and a second device connected via the Internet of Things, the control method comprising the following steps: The first device sends a resource access request to the second device; The second device receives the resource access request from the first device, and sends a redirection instruction corresponding to the resource access request to the first device; The first device receives a redirection instruction from the second device, calls a smart contract on the blockchain to obtain an access token according to the redirection instruction, and sends an access request with the access token to the second device; and The second device determines whether to allow the first device to access the resources of the second device according to the access request with the access token received from the first device, The smart contract determines whether the first device can access the second device according to the access control rule input into the blockchain, and outputs the access token if it is determined that the first device can access the second device, including: The smart contract uses the access control rules generated by the neural network model to determine whether the first device can access the second device, The IoT access control system further comprises a deep learning server for training and updating the neural network model, wherein the neural network model inputs the configuration of the IoT and outputs corresponding access control rules. In the case where the configuration parameters and access control rules of the Internet of Things are initially configured to the blockchain, the deep learning server trains and updates the neural network model using the configuration parameters and access control rules, and then saves the updated neural network model to a subsequent block of the blockchain, When the configuration parameters of the Internet of Things are updated, the mining nodes on the blockchain run the neural network model with the updated configuration parameters as input to generate access control rules.

16. The control method according to claim 15, wherein: The second device sends the access token to the smart contract to check the legitimacy of the access token, and sends a response for allowing or denying access to resources of the second device to the first device according to the check result.

17. The control method according to claim 15, wherein: The blockchain generates a transaction after receiving the call request of the smart contract from the first device, and broadcasts the transaction to all nodes on the blockchain so that the smart contract is executed by the nodes on the blockchain, and determines whether the first device has the authority to access the resources of the second device through the execution of the smart contract, When the first device has the authority to access the resources of the second device, the transaction information is added to the blockchain, and the access token is sent to the first device, When the first device does not have the authority to access the resource of the second device, a response indicating a rejection of the resource access request is sent to the first device.

18. The control method according to claim 15, wherein: The access control rules are generated in one of the following ways: input by a user; generated by a neural network model; first generated by a neural network model and manually modified for learning, and then generated by the learned neural network model.

19. The control method according to claim 15, wherein: Users are able to modify the access control rules stored in the blockchain that are generated by running the neural network model. When the user modifies the access control rules, the deep learning server trains and updates the neural network model using the modified access control rules.

20. The control method according to claim 19, wherein: In the event that the user modifies the access control rules, the deep learning server saves the updated neural network model to a subsequent block of the blockchain.

21. The control method according to claim 19 or 20, wherein: Each block of the blockchain includes a Merkle root hash value IoT_Cfg of a configuration parameter of the Internet of Things forming a Merkle tree structure and a Merkle root hash value IoT_Security of an access control rule forming a Merkle tree structure, The current configuration parameters and access control rules of the Internet of Things are stored in the N-1th block of the blockchain, the IoT_Cfg of the N-1th block is the Merkle root hash value of the current configuration parameters of the Internet of Things, and the IoT_Security of the N-1th block is the Merkle root hash value of the current access control rules, where N is a natural number greater than 1. In the case where the configuration parameters of the Internet of Things are updated, the mining node of the blockchain runs the neural network model with the updated configuration parameters of the Internet of Things as input, thereby obtaining updated access control rules, and storing the updated configuration parameters and the updated access control rules in the Nth block in the blockchain, wherein the IoT_Cfg of the Nth block is the Merkle root hash value of the updated configuration parameters, and the IoT_Security of the Nth block is the Merkle root hash value of the updated access control rules, When the user modifies the access control rules, the modified access control rules are stored in the N+1th block in the blockchain, and the IoT_Security of the N+1th block is the Merkle root hash value of the modified access control rules.

22. The control method according to claim 21, wherein: The access control rules form a multi-branch Merkle tree structure, where each node of the Merkle tree corresponds to a security rule. When a user modifies an access control rule, if the user modifies the security rule of a node in the Merkle tree of the access control rule, the modified security rule is stored in the N+1th block, and the hash value of the modified security rule is recalculated. The hash value of the parent node of the modified security rule is recalculated based on the recalculated hash value. Such recalculation is repeated until the hash value of the root of the Merkle tree is recalculated, and then the recalculated hash value of the root is set as the IoT_Security value of the N+1th block.

23. The control method according to claim 21, wherein: Each block of the blockchain includes a Merkle root hash value IoT_AI of a neural network model forming a Merkle tree structure, The current neural network model is stored in the N-1th block, and the IoT_AI of the N-1th block is the Merkle root hash value of the current neural network model. When the user modifies the access control rules, the deep learning server updates the neural network model and stores the updated neural network model in the N+1th block in the blockchain, and the IoT_AI of the N+1th block is the Merkle root hash value of the updated neural network model.

24. A control method in an access request device in an Internet of Things access control system, wherein the access request device is connected to an access receiving device via the Internet of Things, the control method comprising the following steps: sending a resource access request to the access acceptance device; receiving a redirection instruction corresponding to the resource access request from the access acceptance device; and Invoke the smart contract on the blockchain according to the redirection instruction to obtain an access token, and send an access request with the access token to the access acceptance device, The smart contract determines whether the access request device can access the access acceptance device according to the access control rules input into the blockchain, and outputs the access token if it is determined that the access request device can access the access acceptance device, including: The smart contract uses the access control rules generated by the neural network model to determine whether the access request device can access the access acceptance device. The neural network model is trained and updated by a deep learning server, and the neural network model inputs the configuration of the Internet of Things and outputs corresponding access control rules. In the case where the configuration parameters and access control rules of the Internet of Things are initially configured to the blockchain, the deep learning server trains and updates the neural network model using the configuration parameters and access control rules, and then saves the updated neural network model to a subsequent block of the blockchain, When the configuration parameters of the Internet of Things are updated, the mining nodes on the blockchain run the neural network model with the updated configuration parameters as input to generate access control rules.

25. A control method in an access acceptance device in an Internet of Things access control system, wherein the access acceptance device is connected to an access request device via the Internet of Things, the control method comprising the following steps: receiving a resource access request from the access request device; Sending a redirection instruction corresponding to the resource access request to the access request device; receiving an access request with an access token from the access requesting device; and Sending the access token to a smart contract on the blockchain to check the legitimacy of the access token, and sending a response to the access requesting device for allowing or denying access to the resources of the access accepting device according to the check result, The access token is generated in the following manner: the smart contract determines whether the access request device can access the access acceptance device according to the access control rules input into the blockchain, and outputs the access token to the access request device if it is determined that the access request device can access the access acceptance device, wherein: The smart contract uses the access control rules generated by the neural network model to determine whether the access request device can access the access acceptance device. The neural network model is trained and updated by a deep learning server, and the neural network model inputs the configuration of the Internet of Things and outputs corresponding access control rules. In the case where the configuration parameters and access control rules of the Internet of Things are initially configured to the blockchain, the deep learning server trains and updates the neural network model using the configuration parameters and access control rules, and then saves the updated neural network model to a subsequent block of the blockchain, When the configuration parameters of the Internet of Things are updated, the mining nodes on the blockchain run the neural network model with the updated configuration parameters as input to generate access control rules.

26. A control method in a deep learning server in an Internet of Things access control system, the control method comprising: In the case where the configuration parameters and access control rules of the Internet of Things are initially configured to the blockchain, the deep learning server trains and updates the neural network model using the configuration parameters and access control rules, and then saves the updated neural network model to a subsequent block of the blockchain, wherein the neural network model inputs the configuration of the Internet of Things and outputs the corresponding access control rules, When the configuration parameters of the Internet of Things are updated, the mining nodes on the blockchain use the updated configuration parameters as input to run a neural network model to generate access control rules. The smart contract on the blockchain uses the generated access control rules to determine whether the access request device in the Internet of Things access control system can access the access acceptance device.

27. The control method according to claim 26, wherein: Users are able to modify the access control rules stored in the blockchain that are generated by running the neural network model. When the user modifies the access control rules, the deep learning server trains and updates the neural network model using the modified access control rules.

28. The control method according to claim 27, wherein: In the event that the user modifies the access control rules, the deep learning server saves the updated neural network model to a subsequent block of the blockchain.

29. A computer readable medium having computer executable instructions stored thereon, which when executed by one or more processors cause the one or more processors to perform the control method according to any one of claims 15 to 28.