Next Article in Journal
Study of Parameter Configuration on an Embedded System Used for Acoustic Leak Localization in Metallic Pipelines
Next Article in Special Issue
Visual Multitask Real-Time Model in an Automatic Driving Scene
Previous Article in Journal
Automatic Assessment of Piano Performances Using Timbre and Pitch Features
Previous Article in Special Issue
Bust Portraits Matting Based on Improved U-Net
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Multi-User Collaborative Access Control Scheme Based on New Hash Chain

1
Key Laboratory of Complex Systems Modeling and Simulation, HDU-ITMO Joint Institute, Hangzhou Dianzi University, Hangzhou 310018, China
2
Key Laboratory of Complex Systems Modeling and Simulation, School of Computer Science and Technology, Hangzhou Dianzi University, Hangzhou 310018, China
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Electronics 2023, 12(8), 1792; https://doi.org/10.3390/electronics12081792
Submission received: 15 February 2023 / Revised: 2 April 2023 / Accepted: 6 April 2023 / Published: 10 April 2023
(This article belongs to the Special Issue Computer Vision for Modern Vehicles)

Abstract

:
As the threats to the Internet of Things (IoT) continue to increase, access control is widely used in various IoT information systems. However, due to the shortcomings of IoT devices such as low computing power, it is impossible to use high-performance methods to control user access. Although the emergence of the blockchain provides another way of thinking for access control, the implementation based on the blockchain requires the device to complete the proof of work (PoW) and requires the device to have high computing power. At the same time, most access control schemes existing today are intended for users to use alone, which cannot be applied to the field of multi-user coordinated access. Therefore, this paper proposes a multi-user collaborative access control scheme based on a new hash chain, which uses the identity information of multiple users as the seed value to construct the hash chain, and uses the hash chain as the PoW of the blockchain. An efficiency analysis showed that this method requires only a small amount of hash value calculation and can be applied to IoT systems with low computing power. The security analysis shows that the scheme can resist a variety of attack methods and has high security.

1. Introduction

Nowadays, the IoT is developing rapidly. More and more people have begun to use IoT services in their lives, which means more and more user data exist in IoT devices and networks. However, at the same time, attacks against IoT devices and networks are becoming more and more frequent, and users’ privacy data are often leaded. Therefore, how to solve the security risks existing in IoT services and improve the security of user privacy data has become a hot research issue.
As the entrance of the IoT system, access control can effectively intercept illegal users and authorize legitimate users to access their own data, which is a means of making IoT services more secure. Traditional access technologies mainly include password-based authentication, biometric-based authentication, and certificate-based authentication. Among them, the biometric-based authentication develops particularly rapidly. Especially with the development of recognition technology, the accuracy of authentication has been continuously improved. For example, the new feature pyramid composite neural network structure [1] proposed by Xiao et al. can enhance the context, thereby improving the performance of small target detection, and can be well applied in this field.
However, most of these traditional access methods are based on a centralized architecture, which may cause problems such as a single point of failure. If it is attacked by a network, this will easily lead to the paralysis of the entire system. Additionally, with the development of IoT applications, some data are no longer only for individuals, but belong to multiple users, which requires the access system to realize multi-user coordinated access. However, most of the traditional access solutions are based on single-user management, and cannot access multiple users at the same time.
The emergence of the blockchain provides another way of thinking for IoT identity access. Ma et al. [2] proposed a blockchain-based method, which forms a blockchain network through edge devices, which can provide secure access control in the IoT environment, and the method can also tolerate errors. In blockchain applications, users can use the data without knowing the content of the shared data. Therefore, the blockchain can be used to save the user’s verification data, and it can complete the access control without knowing the specific content of the verification data. Therefore, more and more researchers have begun to study the feasibility of using blockchain for identity access.
However, there are certain limitations to using the blockchain to achieve access. Because the blockchain requires the equipment to complete the PoW, which often requires the equipment to have high computing power, it undoubtedly increases the cost of building an IoT system. At the same time, because IoT devices need to spend a lot of time on calculating and solving, this not only affects the efficiency of access, but may also continue to consume the life of the devices. In addition, the existing blockchain technology also focuses on single-user access, which cannot meet the needs of multi-user coordinated access.
The hash chain continuously hashes the message to generate hash values through specific rules, so the receiving end can verify the message by using the same rules to build a hash chain. At the same time, due to the irreversible nature of the hash chain, it can be well combined with the PoW in the blockchain. In 2020, Kim et al. [3] propose using the reverse hash chain as the PoW. This scheme allows the user holding the key to quickly complete the PoW, thereby completing the authentication. However, their method only supports a single user; because the hash chain is only a continuous iteration of the seed value, it is not suitable for the scene of multi-user coordinated access.
Therefore, in order to achieve multi-user collaborative access control and solve the limitations of blockchain access control, this paper proposes a PoW method based on a new hash chain. This method combines the identity information of multiple users in a special way and hashes iteratively, and finally generates a new type of hash chain for PoW. At the same time, this paper proposes a multi-user cooperative access control method based on the new hash chain. This method uses the new hash chain to complete the PoW, and finally realizes the multi-user cooperative access control.

2. Related Work

2.1. Access Control

A key agreement scheme is firstly used in user access control. However, many flaws are found in the key agreement scheme. Tai et al. [4] found the security flows in the scheme and proposed improvement plans. There are many people also using the blockchain to control access. Practical Byzantine Fault Tolerance (PBFT) is an algorithm that can tolerate the errors of a few nodes and obey the majority of nodes. Based on the PBFT, Gong et al. [5] proposed a gateway for recording access control in the blockchain. Using a public dataset, Gong evaluated the accuracy of the model and the accuracy of Fraud Detection. Huang et al. [6] proposed a useful system for controlling access; the method they proposed is mainly based on the blockchain, and the main purpose is to improve the efficiency and security of the IoT server architecture. Wang et al. [7] proposed an access control protocol, which is mainly used for IoT terminal devices. The protocol is used to protect privacy, and its structure is adaptable. Huang et al. [8] proposed a framework for access control, which can provide protection for embedded devices. Takieldeen et al. [9] proposed an access control pipeline, which combines three schemes, namely the ECC scheme, the OSS signature scheme and the chaotic mapping scheme. Luo et al. [10] proposed a framework to manage identities hierarchically, and they also proposed a combined authentication and session key protocol. Xiang et al. [11] proposed a PBBIMUA scheme, which is based on a blockchain for user authentication and identity management. Jia et al. [12] proposed a key agreement protocol, which is an identity-based anonymous authentication protocol, mainly used in the MEC environment. Cui et al. [13] proposed a blockchain-based multi-WSN authentication scheme for IoT. Tsai et al. [14] proposed an efficient distributed authentication scheme, which uses cloud computing services, and can allow mobile users to use cloud computing services securely and conveniently. Wang et al. [15] proposed a rapid authentication scheme based on identity, which is mainly suitable for smart mobile devices in WBANs. Fan et al. [16] introduced the blockchain and the identity authentication method using the blockchain, and they also analyzed the security of these systems. In order to solve the insecure problem of three-party authentication, Mamun et al. [17] revised the RFID authentication protocol. Relying on ECC, Kumar et al. [18] proposed an identity authentication system, and used this system for IoT and cloud servers in smart cities. In order to realize the identity authentication of the entity, Bae et al. [19] proposed a smart card-based identity verification protocol. The user can log in to the server of the Internet of Things through the smart card. In response to the shortcomings of the previous scheme, Kumari et al. [20] proposed an ECC-based authentication scheme and proved their security under the Internet of Things and cloud servers.

2.2. Hash Chain

The original purpose of the hash chain is to solve the problem that the encrypted message is easy to steal or be tampered with during transmission. After multiple encryption iterations of the message, the hash chain can effectively resist attacks and interference and can complete verification at the receiving end.
With the development of cryptography in recent years, the hash chain has also been continuously developed. Different forms of hash chains have been proposed by scholars, such as a star hash chain, a tree hash chain and a butterfly hash chain [21]. The main purpose of these different forms of hash chains is to solve communication problems, such as tolerance to packet loss, load, etc. Although the proposal of these hash chains has solved some problems existing in the hash chains, they are still only optimized on the basis of the original hash chains without further expansion. Subsequently, hash chains began to be applied to authentication; however, this scheme has difficulty achieving a balance in the number of iterations of the hash function. Once the hash function is used for too many iterations, the efficiency of authentication will be reduced; and once the number of iterations is too small, the security of authentication will be lost. Huang et al. [22] proposed to use different hash functions to iterate messages. However, this new hash chain construction method needs to ensure that the order of hash functions used during iteration is not stolen. Kim et al. [3] used hash chains in the smart home space, and they proposed a reverse hash chain that can replace PoW in the blockchain and thus be used to verify the identity of users in smart homes.

3. Multi-User Collaborative Access Control

This section introduces a multi-user collaborative access control method based on a new hash chain. The method mainly includes four algorithms: (1) Construction algorithm of the new hash chain; (2) PoW algorithm based on the new hash chain; (3) Establishment algorithm of multi-user collaborative access control; (4) Realization Algorithm of Multi-user Collaborative Access Control. The model of the multi-user collaborative access control method is shown in Figure 1 below, and the definitions of abbreviations and symbols are shown in Table 1. This method involves the cloud, blockchain, and edge nodes in total. Through these four algorithms, this method realizes the security authentication of qualified users and the interception of unauthenticated users, and the information transmission between them follows SSL/TLS. In the nodes of the blockchain, each node maintains a hash function library containing the same hash function.

3.1. Access Control Process

This chapter describes the overall process of a multi-user collaborative access control scheme. The process of the scheme is shown in Figure 2. The specific steps for access control are as follows:
  • The edge node E N applies for access from cloud nodes C N and blockchain nodes B N ;
  • After receiving the consent request message from the cloud node, the edge node E N accepts the key sequence S Q P from the user;
  • The edge node E N gets the order O E N in which the hash chain is built from the cloud node C N ;
  • The blockchain node B N accepts user keys S Q P as well as the build order O E N from all edge nodes, and then builds a new hash chain H C N m based on sequence S Q P and order O E N ;
  • The blockchain node B N participates in blockchain consensus based on the hash chain, and builds solution G j based on the new hash chain H C N m ;
  • The blockchain node B N determines whether solution G j satisfies P o W j and, if not, the access fails; if satisfied, the blockchain node B N broadcasts solution G j to other blockchain nodes;
  • Other blockchain nodes verify solution G j , and if solution G j 1 is not equal to h k ( h k ( s ) | | G j ) , the access fails; if they are equal, the consensus is completed and the block is added;
  • The edge node E N returns the access result to the user.
Figure 2. Access control flowchart.
Figure 2. Access control flowchart.
Electronics 12 01792 g002

3.2. Construction Algorithm of New Hash Chain

In this Algorithm, the blockchain node first collects keys according to the order in which the hash chain is constructed, and generates the key sequence S Q P = i = 1 m p s w d i , where m is the total number of keys, and then, the algorithm processes each key according to the corresponding hash function h k to obtain the hash sequence S Q H = i = 1 m h k ( p s w d i ) , where k = i mod n, n is the total number of hash functions. Finally, the algorithm uses the hash sequence S Q H = i = 1 m h k ( p s w d i ) to construct a new type of hash chain. The first hash sequence will be recognized as the seed value of the new hash chain, and then the current hash sequence value and the previous hash chain element is composed to build the next hash chain element. That is, the i-th element of the hash chain is H C N i = h k ( h k ( p s w d i ) | | H C N i 1 ) . The complete set of hash chains constructed is:
H C N i = H C N i = h k ( h k ( p s w d i ) | | H C N i 1 ) 1 < i m h 1 ( p s w d 1 ) i = 1 .
The specific steps are as follows:
Step 1: The blockchain node B N collects keys according to the order in which the hash chain is constructed, and generates key sequences S Q P = i = 1 m p s w d i ;
Step 2: The blockchain node B N selects a hash function h k according to the subscript of each value in the sequence, and then uses the corresponding hash function to calculate each key to obtain a hash sequence S Q H = i = 1 m h k ( p s w d i ) ;
Step 3: The blockchain node B N uses the first value of the hash sequence h 1 ( p s w d 1 ) as the seed value of the hash chain to obtain the first element of the hash chain H C N 1 = h 1 ( p s w d 1 ) ;
Step 4: The blockchain node B N combines the i-th value of the hash sequence with the previous element, and the hash iteration obtains the i-th element of the hash chain H C N i = h k ( h k ( p s w d i ) | | H C N i 1 ) ;
Step 5: The blockchain node B N judges whether all the values in the hash sequence have been calculated. If yes, turn to step 6; if not, let i = i + 1 , and return to step 4;
Step 6: The construction algorithm of the new hash chain ends.
Figure 3 shows the algorithm construction process.

3.3. Pow Algorithm Based on New Hash Chain

In this algorithm, blocks are issued by completing PoW. Assuming that P o W j is the solution of the PoW of the j-th block, as long as the problem of P o W j can be solved correctly, the j-th block can be generated and the consensus can be completed. Therefore, it is necessary to ensure that only users participating in collaborative access can solve the P o W j . At the same time, it is necessary to ensure that other blockchain nodes can verify the solution under the condition that P o W j cannot be solved. Let G ( m , l ) = { G j } ( 1 j l ) be the solution set of PoW, where m is the number of iterations by the key and l is the effective number of iterations by the salt. The value of G j is the value after m key iterations and l j salt value iterations. That is to say, the j-th element of G ( m , l ) is G j = h k ( h k ( s ) | | G j + 1 ) , where k = ( j + m ) mod n, and s is the salt value. The corresponding solution of P o W j is:
P o W j = G j = H C N m j = l h k ( h k ( s ) | | G j + 1 ) l > j 1 .
Due to the single irreversible characteristic of the hash function, for each G j + 1 to be solved, it is difficult for the blockchain node to reversely solve it through the known G j . However, for each solved G j , the blockchain can verify the solution by easily comparing the values of G j and h k ( h k ( s ) | | G j + 1 ) for equality. That is to say, the blockchain nodes cannot guess the P o W j to be solved through the known P o W j + 1 , but can easily verify the solution P o W j with the solution P o W j 1 . Therefore, under the condition that only users participating in collaborative access have the key and the valid number of iterations of the salt value, the algorithm calculates the hash chain through the blockchain nodes, and completes the verification on other nodes to complete the issuance of the block.
The specific steps are as follows:
Step 1: The blockchain node B N obtains the serial number j of the block to be generated, and obtains the effective number of iterations l of the salt value.
Step 2: The blockchain node B N uses the hash chain H C N m constructed by algorithm as the seed value to obtain the first element of the hash chain.
Step 3: After the blockchain node B N combines the hashed salt value h k ( s ) with the seed value and completes l j hash iterations, G j = h k ( h k ( s ) | | G j + 1 ) is obtained.
Step 4: The blockchain node B N verifies whether the value of P o W j 1 is equal to h k 1 ( h k 1 ( s ) | | G j ) ; if they are equal, turn to step 5 and If not, return to step 2.
Step 5: The blockchain node B N generates j-block and adds it to the longest chain, publicly announcing that the block is valid.
Step 6: Other blockchain nodes use the k 1 th hash function and the P o W j of the block to verify that the value of P o W j is equal to h k 1 ( h k 1 ( s ) | | G j ) . If the verification is successful, agree to go to the chain; If not, refuse to go to the chain.
Step 7: The PoW algorithm based on the new hash chain ends.
Figure 4 shows the algorithm construction process.

3.4. Establishment Algorithm of Multi-User Collaborative Access Control

In this algorithm, edge node E N first registers on cloud node C N . Cloud node C N completes the authentication of edge node E N , then saves the edge nodes participating in the visit in database D B C N according to groups. The cloud node C N waits for all edge nodes to complete registration and returns the registration order of all edge nodes, which is the order of the hash chain. Then, the edge node E N will complete the registration with the blockchain node B N . After the blockchain node B N completes the authentication of the edge node E N , it will judge whether the valid times l provided by all the edge nodes are the same. After the blockchain node B N waits for the registration of all edge nodes to complete, it constructs a key sequence S Q P = i = 1 m p s w d i according to the registration order, and then constructs a hash chain H C N m according to the construction algorithm of the new hash chain. Finally, the blockchain node B N solves the algorithm according to the PoW algorithm based on the new hash chain.
The specific steps are as follows:
Step 1: The edge node E N uses the ECC to generate a pair of key pairs ( P U E N , P R E N ) , the former one is the public key, and the latter one is the private key. Then the edge node E N signs the message m s g 1 with the content “apply for registration” to generate signature S I G ( m s g 1 ) P R E N . Then the edge node E N transmits the registration request signature to the cloud node C N .
Step 2: The cloud node C N receives the registration request message from edge node E N , then signs the message m s g 2 with the content “agree to registration” to generate signature S I G ( m s g 2 ) P R E N . The cloud node C N transmits the response signature and public key P U C N to the edge node E N .
Step 3: The edge node E N receives the response message from the cloud node C N , then uses the public key of the cloud node to verify the signature. If the edge node E N successfully verifies the signature, turn to step 4; If not, the edge node E N deletes the response information and return to step 1.
Step 4: The edge node E N encrypts the identification number I D E N and public key P U E N to generate encrypted file E ( I D E N | | P U E N ) P U C N . Then, edge node E N transmits the encrypted information to cloud node C N .
Step 5: The cloud node C N receives the registration request message from edge node E N , uses its own private key P R C N to decrypt the registration information, and obtains the identification number I D E N and public key P U E N of the edge node. Then, cloud node C N verifies the registration signature. If the cloud node C N successfully verifies the signature, turn to step 6; if not, the cloud node C N deletes the request information and return to step 1.
Step 6: The cloud node C N generates timestamp T and then saves the identification number I D E N and timestamp T to the database D B C N .
Step 7: The cloud node C N waits for registration requests from other edge nodes within a limited time T Δ , and saves the registration information in the database D B C N .
Step 8: The cloud node C N judges whether all edge nodes have been registered. If completed, turn to step 9; if not, return to step 1.
Step 9: The cloud node C N generates the serial number O E N of the edge node according to the timestamp, and then encrypts it with its corresponding public key P U E N to generate an encrypted file E ( O E N ) P U E N . Then, the cloud node C N sends the encrypted file to the corresponding edge node E N .
Step 10: The edge node E N receives the registration request message from cloud node C N , decrypts it with its own private key P R E N , and obtains the serial number O E N . Then, edge node A collects the key p s w d and valid times l input by the user.
Step 11: The edge node E N signs the message m s g 1 with the content “apply for registration”, generates the signature S I G ( m s g 1 ) P R E N , and then uses the public key of the blockchain node P U B N to encrypt the user key p s w d , valid times l, serial number O E N , and public key P U E N to generate an encrypted file E ( p s w d | | l | | O E N | | P U E N ) P U B N . The edge node E N transmits registration request signatures and encrypted information to the blockchain node B N .
Step 12: After receiving the registration request message from the edge node E N , the blockchain node B N uses its own private key P R B N to decrypt the registration information, and obtains the user key p s w d , valid times l, serial number O E N , and the public key of the edge node P U E N . The blockchain node B N then verifies the registration signature. If the blockchain node B N successfully verifies the signature, turn to step 13; If not, the blockchain node B N deletes the request information and return to step 9.
Step 13: The blockchain node B N waits for registration requests from other edge nodes within a limited time T Δ , and judges whether their valid times l are equal. If they are equal, turn to step 14; if not, return to step 12.
Step 14: The blockchain node B N judges whether all edge nodes have been registered. If completed, turn to step 15; if not, return to step 11.
Step 15: The blockchain node B N sorts all user keys according to the serial number to generate a key sequence S Q P = i = 1 m p s w d i .
Step 16: The blockchain node B N constructs a hash chain according to the construction algorithm of the new hash chain, and obtains a hash chain H C N m composed of all user keys.
Step 17: The blockchain node B N solves the P o W 1 of the block with serial number 1 and effective times according to the PoW algorithm based on the new hash chain.
Step 18: The blockchain node B N generates an initial block and uploads it to the chain, publicly announcing that the block is valid.
Step 19: The establishment algorithm of multi-user collaborative access control ends.
Figure 5 shows the algorithm construction process.

3.5. Realization Algorithm of Multi-User Collaborative Access Control

In this algorithm, the edge node E N first completes the authentication at the cloud node C N and, after the cloud node C N completes the authentication of the edge node E N , it returns the corresponding serial number O E N . Then, the edge node E N collects the user’s authentication information and applies for access to the blockchain node B N . After the blockchain node B N completes the authentication of the edge node E N , it obtains the user information participating in access control within a limited time, and judges whether all the effective times l are the same. Then, the blockchain node B N builds the key sequence according to the registration order O E N , and then builds the hash chain H C N m according to the construction algorithm of the new hash chain. Finally, the blockchain node B N solves the algorithm according to the block serial number j and PoW algorithm based on the new hash chain.
The specific steps are as follows:
Step 1: The edge node signs E N and the message m s g 3 with the content “apply for access”. The edge node E N uses the public key of the cloud node P U C N to encrypt the identification number and public key of the edge node P U E N to generate an encrypted file E ( P U E N | | I D E N ) P U C N . The edge node transmits access request signatures and encrypted information to the cloud node C N .
Step 2: The cloud node C N receives the access request message from the edge node E N , uses its own private key P R C N to decrypt the authentication information, and obtains the public key P U E N and identification number I D E N of the edge node. The registration signature S I G ( m s g 3 ) P U E N is then verified. If the cloud node C N successfully verifies the signature, turn to step 3; if not, the cloud node C N deletes the request information, and return to step 1.
Step 3: The cloud node C N uses the identification number of the edge node E N to query the database. If the query is successful, it will obtain the serial number O E N corresponding to the identification number, and then turn to step 4; if the query fails, print an error and return to step 1.
Step 4: The cloud node C N encrypts the serial number O E N with the public key P U E N of the edge node, and then transmits the encrypted file E ( O E N ) P U E N to the edge node.
Step 5: After receiving the encrypted file from the cloud node C N , the edge node E N decrypts it to obtain the serial number. Then, the edge node E N collects the key p s w d entered by the user and the number of valid times l.
Step 6: The edge node E N signs the message with the content “apply for access”, generates a signature S I G ( m s g 2 ) P R E N , and then uses the public key of the blockchain node P U B N to encrypt the user key p s w d , valid times l, serial number O E N , and public key P U E N to generate an encrypted file E ( p s w d | | l | | O E N | | P U E N ) P U B N . The edge node E N transmits registration request signatures and encrypted information to the blockchain node B N .
Step 7: After receiving the encrypted information of the edge node E N , the blockchain node B N decrypts the information to obtain the user key p s w d , valid times l, serial number O E N , and the public key provided by the edge node P U E N . The blockchain node then verifies the signature. If the edge node E N successfully verifies the signature, turn to step 8; if not, delete the request information and return to step 6.
Step 8: The blockchain node B N waits for access requests from other edge nodes within a limited time T Δ , and judge whether their valid times l are equal. If they are equal, turn to step 9; if not, return to step 6.
Step 9: The blockchain node B N judges whether all edge nodes have been authenticated. If completed, turn to step 10; if not, return to step 6.
Step 10: The blockchain node B N sorts all user keys according to the serial number to generate a key sequence S Q P = i = 1 m p s w d i .
Step 11: The blockchain node B N constructs a hash chain according to the construction algorithm of the new hash chain, and obtains a hash chain H C N m composed of all user keys.
Step 12: The blockchain node B N obtains the serial number j of the block to be generated, and judges whether the verification is successful according to the number of valid times l and PoW algorithm based on the new hash chain. If successful, turn to step 13; if not, return to step 1.
Step 13: The blockchain node B N signs the message m s g 4 with the content “agree to access”, generates a signature S I G ( m s g 4 ) P R B N , and then transmits it to the edge node E N .
Step 14: After the edge node E N receives the signature from the blockchain node B N , it uses the public key of the blockchain node P U B N to verify it. If the signature verification is successful, it will display “Access Successful”; if not, it will display “Access Failed”.
Step 15: The realization algorithm of multi-user cooperative access control ends.
Figure 6 shows the algorithm construction process.

4. Security Analysis

This article uses a novel hash chain mechanism to securely control data in the field of multi-user collaborative access. Therefore, we mainly focus on the security of authentication with access control. Table 2 below lists the threats related to data authentication that we focus on analyzing.
  • Threat type 1: The fake block is generated. For the consensus mechanism in the field of multi-user collaborative authentication, we adopted the same assumption as the general consensus mechanism, that is, the longest blockchain is used for authentication. Therefore, when an attacker creates forged blocks in the local blockchain, the authentication process cannot be affected. Another attack scenario for the attacker is to forge B C and generate blocks, but this paper proposes to send the creation information to other blockchain nodes for verification, and other blockchain nodes can recognize that the current forged node is fake.
  • Threat type 2: The fake block is inserted. First, the block insertion operation needs to obtain the permission of the blockchain node, and the attacker cannot verify his identity through the certificate, so he cannot obtain the insertion permission. Second, even if a block is inserted illegally, other blockchain nodes can verify the newly inserted block.
  • Threat type 3: The fake transaction is generated. Since the generation of the transaction needs to obtain the key provided by the edge node, and the new transaction cannot be reversed through the existing transaction, the attacker cannot successfully forge the transaction. Assume that the key of the edge node is illegally stolen by the attacker, but in the scenario of multi-user collaborative authentication, it is difficult for the attacker to obtain the keys of all nodes participating in the authentication. In addition, in order to further increase the security of access control, block nodes will avoid using the initial value of the key when generating transactions, but will use different functions to hash and iterate the node key according to certain rules. Therefore, even if an attacker obtains all the original keys, transactions cannot be generated.
  • Threat type 4: The block is deleted. Since the scheme is certified by the longest blockchain, even if an attacker deletes a block in the local blockchain, it cannot affect the authentication process. At the same time, the current transaction can be mutually verified with the previous transaction. Therefore, the deletion of any block in the blockchain will be discovered by the blockchain nodes.
  • Threat type 5: The transaction has been tampered with. Since the transaction information is generated by the same set of keys according to certain rules, the blockchain nodes can calculate and obtain all possible generated transaction information. In this way, blockchain nodes can determine whether the current blockchain has been tampered with.
  • Threat type 6: The blockchain nodes are illegally shut down. If the blockchain nodes in the domain are shut down, the blockchain nodes cannot respond to the access requests of other nodes. However, when the scheme is verified, it can be directly authenticated according to the block, without the authority of the blockchain node. Therefore, when a blockchain node is attacked by Dos, other nodes only need to search for the blocks they need to complete the verification.
  • Threat type 7: The cloud nodes expose internal data storage. If the cloud node data are obtained illegally, the attacker can obtain the sequence of the key combination. However, the verification process in this scheme requires three conditions: key, key combination sequence, and key encryption rules. These three parts are, respectively, stored in different nodes, so the verification cannot be completed when only the key combination rules are known.
Next, we analyzed the system’s ability to withstand attacks. We collected the most common attacks in IoT and analyzed how the system performs in the face of these attacks. Then we compared our method with Ma’s method [2] and Kim’s method [3]. Table 3 below lists the security function.
  • DoS Attack: DoS Attack means that an illegal attacker occupies system resources, making it impossible for users to complete access control normally. Suppose an attacker shuts down a blockchain node in a domain through a DoS attack, making the blockchain node unable to respond to access requests from other nodes. However, in this strategy, the access control of users is realized, and authentication can be carried out directly according to the block without the need for the permission of the blockchain node. Therefore, when a blockchain node is attacked by DoS, other nodes only need to search for the block they need to complete the authentication.
  • Replay Attack: Replay Attack means that an illegal attacker obtains the authentication information and resends it to the recipient in the same way and format. However, in this method, user access control is implemented by using a new type of hash chain; the passwords are completely different during each authentication. After the method completes an access control, the password used in the access control will be used to verify the next access control. Assume that an illegal attacker illegally intercepts the solution G x of the target number x currently used for authentication, and the user successfully completes the access control to the system through the solution G x . At this time, the illegal attacker uses the same method, that is, sends the solution G x of number x to the blockchain node. After receiving the solution, the blockchain node will judge that the solution cannot be verified and discards the information. Therefore, this method can effectively resist replay attacks.
  • Sniffing attack: A sniffing attack is when illegal attackers steal transmission information between devices. However, in this method, the user’s identity information sequence used for access control will be constructed into a hash chain in advance, and it will be encrypted using the elliptic curve encryption algorithm. Therefore, in this policy, the transmission information between smart home devices is encrypted with ciphertext, and the effective time of transmission is set. The encryption level of the elliptic curve encryption algorithm is very high. With the existing computer processing power, it is difficult for an attacker to crack the ciphertext within the limited time of transmission. With this method, the transmission of data will be supplemented with digital signatures to verify some processing information, which can further ensure the security of user identity information.
  • Impersonation attack: An impersonation attack is when illegal attackers forge fake data to make the device misjudge its identity. However, in this method, the edge end nodes, blockchain nodes, and cloud nodes will use digital signatures for two-way authentication to ensure that neither the sender nor the receiver is a fake node. If the signature cannot be verified, the user data package will be deleted. In addition, in the access control implementation algorithm of smart home sensing information, the blockchain node will use the saved solution to verify the target solution, and the attacker cannot complete the verification through the forged solution.
  • Password attack: Password attack means that illegal attackers complete access control by guessing user passwords. However, in this method, access control is through the verification of user identity information, which consists of various types, including biometric information, digital tokens, and so on. It is difficult for attackers to guess user identity information through password attacks. In addition, the process of implementing access control requires three conditions: key, key combination sequence, and key encryption rules, and these three parts are stored in different nodes. Even if an attacker guesses and obtains user identity information, access control cannot be completed without knowing the combination rules of identity information.

5. Cost Analysis

This section analyzes the time overhead required by the access control strategy, mainly analyzing the time consumed by the hash function and the ECC algorithm, and ignoring the time overhead of information transmission so as to avoid the uncertainty of information transmission time caused by network bandwidth influence. Let the iteration time cost of forward hashing be T H , the time cost of encryption in ECC algorithm be T E 1 , the time cost of decryption in the ECC algorithm be T D 1 , the time cost of the digital signature in the ECC algorithm be T E 2 and the time cost of verifying the signature in the ECC algorithm. The overhead is T D 2 , the number of blockchain nodes is n, the amount of user identity information is m, the iteration length is x, the number of blocks is y, and the time overhead for sorting user identity information once is T S . Table 4 shows the time overhead of each algorithm.
The traditional blockchain system uses a large number of nodes to continuously calculate and solve PoW. PoW is generally a hash value composed of hexadecimal numbers, and the node may perform calculations that require hundreds of hash functions to complete the PoW solution. In the worst case, such a calculation would take a conventional computer a trillion hours. However, our proposed strategy does not need to solve the hash value backwards, but only requires multiple forward hash iterations, so the overhead required is multiple forward hashes. We compared our scheme with related work, and the results are shown in the Table 5 below.
From the above table, we can conclude that our scheme has higher security than Kim’s scheme, and our scheme has less time complexity than Ma’s scheme. At the same time, our scheme can be applied to the field of multi-user cooperative access control, and has higher practicability. As the amount of user identity information increases, the security of our scheme is relatively improved. As the number of blocks continues to increase, the number of required hash iterations also decreases, further reducing the time consumption required by our scheme.

6. Conclusions

In order to achieve multi-user collaborative access control and solve the limitations of the blockchain in this field, a multi-user collaborative access control scheme based on a new hash chain was proposed. The method mainly includes four algorithms, namely the construction algorithm of the new hash chain, the proof-of-work algorithm based on the new hash chain, the establishment algorithm of multi-user collaborative access control, and the realization algorithm of multi-user collaborative access control. To analyze the reliability of access control methods, we conducted a series of security analyses. Compared with traditional access control schemes, our scheme has higher security and can resist many kinds of attacks. For example, it can resist the generation of counterfeit blocks, data leakage and other threats. In addition, we compared this scheme to the traditional blockchain scheme and conducted a performance analysis of this scheme; the time overhead required by this scheme is much smaller than that of the traditional blockchain. Therefore, this scheme is suitable for environments with limited IoT resources and low computing power.

Author Contributions

Conceptualization, Z.W. and D.Z.; methodology, Z.W.; software, D.Z.; validation, Z.W., Y.L. and D.Z.; formal analysis, Z.W.; investigation, D.Z. and G.L.; resources, Z.W. and G.L.; data curation, Z.W. and G.L.; writing—original draft preparation, Z.W.; writing—review and editing, Z.W.; visualization, Z.W. and G.L.; supervision, Z.W.; project administration, Z.W.; funding acquisition, Y.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Xiao, J.; Guo, H.; Zhou, J.; Zhao, T.; Yu, Q.; Chen, Y.; Wang, Z. Tiny object detection with context enhancement and feature purification. Expert Syst. Appl. 2023, 211, 118665. [Google Scholar] [CrossRef]
  2. Ma, Z.; Meng, J.; Wang, J.; Shan, Z. Blockchain-based decentralized authentication modeling scheme in edge and IoT environment. IEEE Internet Things J. 2020, 8, 2116–2123. [Google Scholar]
  3. Kim, D.; Lee, J. A reverse hash chain path-based access control scheme for a connected smart home system. IEEE Consum. Electron. Mag. 2020, 10, 93–100. [Google Scholar] [CrossRef]
  4. Tai, W.L.; Chang, Y.F.; Li, W.H. An IoT notion–based authentication and key agreement scheme ensuring user anonymity for heterogeneous ad hoc wireless sensor networks. J. Inf. Secur. Appl. 2017, 34, 133–141. [Google Scholar] [CrossRef]
  5. Gong, L.; Alghazzawi, D.M.; Cheng, L. BCoT sentry: A blockchain-based identity authentication framework for IoT devices. Information 2021, 12, 203. [Google Scholar] [CrossRef]
  6. Huang, J.C.; Shu, M.H.; Hsu, B.M.; Hu, C.M. Service architecture of IoT terminal connection based on blockchain identity authentication system. Comput. Commun. 2020, 160, 411–422. [Google Scholar] [CrossRef]
  7. Wang, Z. A privacy-preserving and accountable authentication protocol for IoT end-devices with weaker identity. Future Gener. Comput. Syst. 2018, 82, 342–348. [Google Scholar] [CrossRef]
  8. Huang, Z.; Wang, Q. A PUF-based unified identity verification framework for secure IoT hardware via device authentication. World Wide Web 2020, 23, 1057–1088. [Google Scholar] [CrossRef]
  9. Takieldeen, A.; Abd Elkhalik, S.H.; Samra, A.S.; Mohamed, M.A.; Khalifa, F. A Robust and Hybrid Cryptosystem for Identity Authentication. Information 2021, 12, 104. [Google Scholar] [CrossRef]
  10. Luo, Y.; Li, H.; Ma, R.; Guo, Z. A composable multifactor identity authentication and authorization scheme for 5G services. Secur. Commun. Networks 2021, 2021, 6697155. [Google Scholar] [CrossRef]
  11. Xiang, X.; Wang, M.; Fan, W. A permissioned blockchain-based identity management and user authentication scheme for e-health systems. IEEE Access 2020, 8, 171771–171783. [Google Scholar] [CrossRef]
  12. Jia, X.; He, D.; Kumar, N.; Choo, K.K.R. A provably secure and efficient identity-based anonymous authentication scheme for mobile edge computing. IEEE Syst. J. 2019, 14, 560–571. [Google Scholar] [CrossRef]
  13. Cui, Z.; Fei, X.; Zhang, S.; Cai, X.; Cao, Y.; Zhang, W.; Chen, J. A hybrid blockchain-based identity authentication scheme for multi-WSN. IEEE Trans. Serv. Comput. 2020, 13, 241–251. [Google Scholar] [CrossRef]
  14. Tsai, J.L.; Lo, N.W. A privacy-aware authentication scheme for distributed mobile cloud computing services. IEEE Syst. J. 2015, 9, 805–815. [Google Scholar] [CrossRef]
  15. Wang, C.; Zheng, W.; Ji, S.; Liu, Q.; Wang, A. Identity-based fast authentication scheme for smart mobile devices in body area networks. Wirel. Commun. Mob. Comput. 2018, 2018, 4028196. [Google Scholar] [CrossRef] [Green Version]
  16. Fan, P.; Liu, Y.; Zhu, J.; Fan, X.; Wen, L. Identity Management Security Authentication Based on Blockchain Technologies. Int. J. Netw. Secur. 2019, 21, 912–917. [Google Scholar]
  17. Mamun, M.; Miyaji, A.; Luv, R.; Su, C. A lightweight multi-party authentication in insecure reader-server channel in RFID-based IoT. Peer-Netw. Appl. 2021, 14, 708–721. [Google Scholar] [CrossRef]
  18. Kumar, A.; Abhishek, K.; Liu, X.; Haldorai, A. An efficient privacy-preserving id centric authentication in iot based cloud servers for sustainable smart cities. Wirel. Pers. Commun. 2021, 117, 3229–3253. [Google Scholar] [CrossRef]
  19. Bae, W.I.; Kwak, J. Smart card-based secure authentication protocol in multi-server IoT environment. Multimed. Tools Appl. 2020, 79, 15793–15811. [Google Scholar] [CrossRef] [Green Version]
  20. Kumari, S.; Karuppiah, M.; Das, A.K.; Li, X.; Wu, F.; Kumar, N. A secure authentication scheme based on elliptic curve cryptography for IoT and cloud servers. J. Supercomput. 2018, 74, 6428–6453. [Google Scholar] [CrossRef]
  21. Zhang, Z.; Sun, Q.; Wong, W.C. A proposal of butterfly-graph based stream authentication over lossy networks. In Proceedings of the 2005 IEEE International Conference on Multimedia and Expo, Amsterdam, The Netherlands, 6 July 2005; p. 4. [Google Scholar]
  22. Huang, Q.; Huang, H.; Wang, W.; Li, Q.; Wu, Y. An Authentication Scheme Based on Novel Construction of Hash Chains for Smart Mobile Devices. Wirel. Commun. Mob. Comput. 2020, 2020, 8888679. [Google Scholar] [CrossRef]
Figure 1. The model of the multi-user collaborative access control method.
Figure 1. The model of the multi-user collaborative access control method.
Electronics 12 01792 g001
Figure 3. The construction diagram of the new hash chain.
Figure 3. The construction diagram of the new hash chain.
Electronics 12 01792 g003
Figure 4. The construction diagram of the new hash chain.
Figure 4. The construction diagram of the new hash chain.
Electronics 12 01792 g004
Figure 5. The construction diagram of the new hash chain.
Figure 5. The construction diagram of the new hash chain.
Electronics 12 01792 g005
Figure 6. The construction diagram of the new hash chain.
Figure 6. The construction diagram of the new hash chain.
Electronics 12 01792 g006
Table 1. Abbreviations and definitions.
Table 1. Abbreviations and definitions.
AbbreviationsDefinitions
E N Edge node
B N Blockchain node
C N Cloud node
U i The i-th identity information of the user
D B X X’s database
S Q X Sequence of X
H C N i The i-th element of the hash chain
P U X The public key generated by X
h i ( X ) The hash value generated using the i-th hash function
P o W j Proof-of-work solution for block j
Q ( X ) Request with content X
X | | Y The parallel operation of X and Y
E ( X ) Y Use Y to generate the ciphertext of X
S I G ( X ) Y Use Y to generate the signature of X
Table 2. Threat List.
Table 2. Threat List.
Type of ThreatDetail of Threat
Type 1The fake block is generated
Type 2The fake block is inserted
Type 3The fake transaction is generated
Type 4The block is deleted
Type 5The block has been tampered with
Type 6The B N is illegally closed
Type 7The internal data store is exposed
Table 3. Security Function.
Table 3. Security Function.
Security FunctionOur MethodMa’s MethodKim’s Method
Resistant to DoS attacksYesYesYes
Resistant to replay attackYesNoYes
Resistant to sniffing attackYesYesYes
Resistant to impersonation attackYesYesYes
Resistant to password attackYesNoYes
Multi-user collaborative access controlYesNoNo
Table 4. Comparison of time consumption.
Table 4. Comparison of time consumption.
AlgorithmTime Overhead
Construction Algorithm of New Hash Chain m l o g m T S + ( 2 m 1 ) T H
PoW Algorithm Based on New Hash Chain 2 ( x y + n ) T H
Establishment Algorithm of Multi-user Collaborative
Access Control 3 T E 1 + 3 T D 1 + 4 T E 2 + 4 T D 2
Realization Algorithm of Multi-user Collaborative
Access Control 4 T E 1 + 4 T D 1 + 4 T E 2 + 4 T D 2
Table 5. Scheme comparison with related work.
Table 5. Scheme comparison with related work.
SchemeDecision ConsensusTime ComplexitySecurity
Kim’s MethodPOW O ( n ) Medium
Ma’s MethodPBFT O ( n 2 ) Strong
Our MethodPOW O ( n ) Strong
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Wang, Z.; Li, Y.; Liu, G.; Zhang, D. A Multi-User Collaborative Access Control Scheme Based on New Hash Chain. Electronics 2023, 12, 1792. https://doi.org/10.3390/electronics12081792

AMA Style

Wang Z, Li Y, Liu G, Zhang D. A Multi-User Collaborative Access Control Scheme Based on New Hash Chain. Electronics. 2023; 12(8):1792. https://doi.org/10.3390/electronics12081792

Chicago/Turabian Style

Wang, Zetian, Yunfa Li, Guanxu Liu, and Di Zhang. 2023. "A Multi-User Collaborative Access Control Scheme Based on New Hash Chain" Electronics 12, no. 8: 1792. https://doi.org/10.3390/electronics12081792

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop