Skip to Content
SensorsSensors
  • Article
  • Open Access

6 April 2024

27 Pages

A Blockchain-Assisted Security Protocol for Group Handover of MTC Devices in 5G Wireless Networks

,
and
1
School of Computer and Software Engineering, Xihua University, Chengdu 610039, China
2
KINDI Center for Computing Research, College of Engineering, Qatar University, Doha P.O. Box 2713, Qatar
*
Author to whom correspondence should be addressed.
This article belongs to the Special Issue Feature Papers in Communications Section 2023

Abstract

In the realm of the fifth-generation (5G) wireless cellular networks, renowned for their dense connectivity, there lies a substantial facilitation of a myriad of Internet of Things (IoT) applications, which can be supported by the massive machine-type communication (MTC) technique, a fundamental communication framework. In some scenarios, a large number of machine-type communication devices (MTCD) may simultaneously enter the communication coverage of a target base station. However, the current handover mechanism specified by the 3rd Generation Partnership Project (3GPP) Release 16 incurs high signaling overhead within the access and core networks, which may have negative impacts on network efficiency. Additionally, other existing solutions are vulnerable to malicious attacks such as Denial of Service (DoS), Distributed Denial of Service (DDoS) attacks, and the failure of Key Forward Secrecy (KFS). To address this challenge, this paper proposes an efficient and secure handover authentication protocol for a group of MTCDs supported by blockchain technology. This protocol leverages the decentralized nature of blockchain technology and combines it with certificateless aggregate signatures to mutually authenticate the identity of a base station and a group of MTCDs. This approach can reduce signaling overhead and avoid key escrow while significantly lowering the risk associated with single points of failure. Additionally, the protocol protects device anonymity by encrypting device identities with temporary anonymous identity markers with the Elliptic Curve Diffie–Hellman (ECDH) to abandon serial numbers to prevent linkage attacks. The resilience of the proposed protocol against predominant malicious attacks has been rigorously validated through the application of the BAN logic and Scyther tool, underscoring its robust security attributes. Furthermore, compared to the existing solutions, the proposed protocol significantly reduces the authentication cost for a group of MTCDs during handover, while ensuring security, demonstrating commendable efficiency.

1. Introduction

Machine-type communication (MTC), also known as machine-to-machine (M2M) communication, has been obtaining increasing attention for the widespread adoption of the fifth generation (5G) wireless cellular networks. With potential to revolutionize a broad spectrum of sectors like healthcare, logistics, manufacturing, process automation, energy, and utilities, MTC stands at the forefront of technological advancement. In certain communication scenarios, such as high-speed trains, convoys, and buses, multiple MTC devices (MTCDs) may move from the coverage area of one base station to another. This occurrence is labeled as a “group handover”, necessitating each MTCD to authenticate during the transition [1].
The 5G wireless network employs a multitude of miniature millimeter-wave cellular base stations, aiming at serving a large number of users. This approach allows for the efficient reuse of limited spectrum resources and supports the access of large-scale MTC devices. Furthermore, adding more base stations can effectively alleviate traffic congestion in wireless channels. Therefore, the 5G wireless network is expected to significantly enhance the performance of wireless connectivity with higher transmission rates, lower communication latency, and greater network capacity. Considering the impending 5G wireless network evolution, a prominent challenge emerges concerning access authentication and data transmission for a vast array of IoT terminals [2]. If each IoT device persists in employing the Extensible Authentication Protocol-Authentication and Key Agreement (EAP-AKA) or the 5G Authentication and Key Agreement (5G-AKA) for its authentication, it would inevitably lead to a surge in signaling and communication overheads [3]. The 5G-AKA protocol is a new authentication and key agreement protocol standardized by the 3rd Generation Partnership Project (3GPP) to be used in the 5G wireless networks. The 5G-AKA protocol plays a pivotal role in enhancing 5G wireless network security by enabling mutual authentication between base stations, core networks, and user devices, thus overcoming the vulnerabilities identified in the 4G wireless networks. It introduces the Subscription Concealed Identifier (SUCI), leveraging encryption to safeguard the sensitive information of users like International Mobile Subscriber Identification (IMSI), against unauthorized interception and malicious base station attacks. This approach significantly bolsters personal privacy and network security, ensuring wireless communications are secure and confidential. Notably, the existing 5G standard, as outlined in the 3GPP standard, exhibits challenges when dealing with concurrent handovers of a cluster of MTCDs. Recent studies [4] have highlighted security loopholes within the handover authentication procedure. These encompass the absence of reciprocal authentication, deficiencies in Key Forwarding Security (KFS), and a heightened vulnerability to Denial of Service (DoS) attacks. Moreover, due to the ultra-dense nature of 5G networks with a larger number of cells, the handover events occur more frequently, leading to increased signaling when a group of MTCDs simultaneously handover from a service base station to a target base station.
Current research has not delivered an efficient and secure solution for MTCD group authentication in 5G wireless networks. Blockchain technology offers decentralization to enhance data security and privacy while shifting authentication from centralized servers to base stations, effectively countering both DoS and Distributed Denial of Service (DDoS) attacks. To address the abovementioned shortcomings, we designed a blockchain-assisted security protocol for group handover (BSPGH) for MTCDs in 5G wireless networks. By uniquely combining blockchain technology with group authentication in 5G wireless networks, the protocol ensures secure handover authentication while remaining simple to deploy with high efficiency. The specific contributions made in this paper can be summarized as follows:
  • We have devised the BSPGH protocol, leveraging the capabilities of blockchain technology. This protocol guarantees the preservation of all security attributes while remaining in alignment with the architecture of the 5G wireless network specified by the 3GPP standard and ensuring its suitability for the MTCD handover scenarios.
  • The proposed BSPGH protocol harnesses the blockchain to establish a decentralized public key management system. It directly culminates in the realization of mutual authentication between base stations and MTCDs. It adeptly streamlines the handover authentication procedure, curtails the volume of interaction messages, safeguards against single points of failure, and fortifies resistance against both DoS and DDoS attacks.
  • The BSPGH solution is built upon the Reliable Malicious KGC-Resistant Certificateless Aggregate Signature (RelCLAS) algorithm and undergoes a formal assessment using the Burrows-Abadi-Needham (BAN) logic and Scyther Tool. It can achieve mutual authentication with key negotiation, anonymity, traceability, perfect forward and backward secrecy, resilience against DoS attacks, and defense against impersonation attacks, etc.
The structure of the remaining paper is as follows. Section 2 provides an overview of the existing handover authentication schemes. Section 3 explains the background knowledge. Section 4 explains the system model and attack model. Section 5 describes the details of the proposed protocol. Section 6 presents the security analysis of the protocol. Section 7 evaluates the performance of the solution. Finally, Section 8 concludes the paper with a summary.

3. Preliminaries

In this section, we introduce some of the technical concepts and cryptographic techniques that will be used in this paper.

3.1. RelCLAS

Aggregated signatures are a digital signature technique that efficiently combines n independent signatures from n users into a single compact signature. This approach allows verifiers to ensure that these n users have indeed signed their respective n messages, effectively reducing the computational and communication burden during the verification process. In this way, aggregated signatures not only improve data processing efficiency but also optimize resource consumption during storage and transmission. The RelCLAS scheme proposed in [18] is employed in this paper. The RelCLAS scheme typically consists of the following steps:
Setup: The AMF and AUSF receive security parameters to generate the system master keys P pub and T pub , and the system parameters list params is published by the AMF.
Secret Value Generation: Users randomly select m s k i ∈ Z q ∗ as the secret value and compute the user’s partial public key m p k i .
Pseudonym Generation: After receiving the user’s identity identifier I D , AUSF performs an XOR operation on the I D to obtain the anonymous identity T I D .
Partial Secret Key Generation: AMF randomly selects r i ∈ Z q ∗ as the secret value and generates the user’s partial public key R i and partial private key p s k i .
User Key Generation: After receiving the partial key from AMF, the user generates the key pairs { m p k i , R i } and { m s k i , p s k i } .
Signature Generation: Each user selects n i ∈ Z q ∗ to generate the secret value N i . Using the parameter list p a r a m , some state information, message M i ∈ M (where M is the message space), their anonymous identity T I D i , and their private key pair { m s k i , p s k i } , they compute the signature σ i .
Aggregate: The aggregate signature generator is the first user entering a new coverage area. It receives signatures from other users and aggregates these signatures to produce the aggregate signature σ .
Aggregate Verify: The aggregate signature verifier, i.e., t-gNB, uses the anonymous identities T I D i of n users, their corresponding public keys p k i , secret values N i , the system master key P p u b , and the aggregate signature σ on messages M i , … , M n as input. If the aggregate signature is valid, it outputs true, otherwise, it outputs false.

3.2. Blockchain

Blockchain is a collaborative distributed ledger that utilizes multiple computer hosts/nodes in a network to store and manage transaction data. Each host maintains a complete copy of the ledger, eliminating the necessity for a single central authority. Transaction data are organized in chronological order into blocks, with each block containing a certain number of transaction records, typically linked to the previous block utilizing a hash value, forming a chain. It ensures the immutability of transaction data. To ensure the ledger remains consistent across all hosts, the blockchain network uses a consensus algorithm to determine which hosts have the authority to add new blocks. This prevents malicious hosts from tampering with ledger data. Blockchain employs encryption technology to safeguard the confidentiality and integrity of transaction data. Each transaction undergoes a digital signature.
Blockchains are categorized into three types [19]. Public blockchains are open allowing any user to join the blockchain network, view the ledger, and participate in the consensus process. Private blockchains are usually controlled by specific entities or organizations, and only invited participants can join the blockchain network. Consortium blockchains are managed collaboratively by multiple entities or organizations, allowing these participants to share data and jointly manage the blockchain network.
In the system under the study, in normal circumstances, around a small cell controlled by a base station, there are six adjacent cells designated as neighbors. The base station of this cell and those of the adjacent cells are used as nodes in a blockchain network. Each 5G base station in the network serves as a private blockchain node, responsible for storing the public key information of MTCDs. Each base station maintains a complete copy of the blockchain. After an MTCD completes initial registration at a nearby base station, the source base station adds the MTCD’s public key information to the blockchain by creating a new transaction. To reduce storage overhead, each block contains multiple transaction records. These transactions are verified by nodes in the blockchain network and consensus can be achieved with other nodes using the Practical Byzantine Fault Tolerance (PBFT) consensus algorithm. Once a new block is accepted by the other blockchain nodes and added to the blockchain, it is distributed to all nodes, including the target base station, thereby updating their blockchain copies. When an MTCD moves from a location controlled by the source base station to the location controlled by the target base station, during the handover preparation phase, the target base station will search for the MTCD’s public key information on the entire blockchain.
This blockchain consists of numerous blocks, each with a size of 1MB. Each block is stored as a file containing multiple transaction records, each of which includes the public key information of an MTCD. Given that we use public keys based on the elliptic curve secp256k1 with public keys of 256 bits in length according to [20]. Together with other transaction information including transaction inputs, outputs, version, and other fields, and transaction fees, the total comes to approximately 180 Bytes per transaction. Therefore, using Equation (1), we can calculate how many transactions can be stored in a block. Since the size of a block is primarily composed of transaction data, for simplicity, we omit other block information in this calculation.
N = M P
where N represents the number of users that the base station can serve, M is the block size, and P is the size of the transaction data; the number of transactions that can be stored reaches into the thousands. Considering that the number of MTCDs under a single base station’s coverage is only in the dozens, the capacity of the blockchain to store MTCD public key information far exceeds the needs of a group of MTCDs.

4. System Background

4.1. System Model

The system under study follows the structure of the 5G wireless cellular network specified in the 3GPP TS 23.501 R16 [21]. As depicted in Figure 1, the 5G wireless network consists of a core network (CN) and radio access networks (RANs). The devices involved in the CN mainly include the Access and Mobility Management Function (AMF), Authentication Server Function (AUSF), and Unified Data Management (UDM), while Next Generation Node B (gNB) and user equipment or MTCDs exist in the RANs. The entities primarily involved in the handover process are MTCDs, gNB, AMF, AUSF, and UDM.
Figure 1. System model.
AMF: AMF is responsible for managing access and mobility-related tasks of user devices, ensuring network efficiency, security, and reliability. In the system, in our group handover authentication phase, the AMF does not need to forward authentication information anymore.
AUSF: AUSF is responsible for handling authentication and security-related tasks for MTCDs. It verifies the identity of MTCDs and the security credentials they provide. In our system, the AUSF primarily generates anonymous identities for both MTCDs and gNBs.
UDM: UDM is responsible for managing and accessing user data. In our system, the UDM stores the permanent identity identifiers of MTCDs and gNBs.
MTCD: In our system, an MTCD, which is a user in the 5G network, initially needs to send a request for registering its identity to the AMF. The MTCD undergoes identity authentication with the gNB upon accessing the network.
gNB: gNB is the base station in the 5G wireless network. It is responsible for MTCD’s access and connection, as well as reasonably allocating wireless communication resources.
Blockchain: Blockchain is a distributed database that ensures secure storage and sharing of data by creating a continuously growing and tamper-resistant chain of data records. In our system, a private blockchain is utilized as the secure data structure consisting of registered MTCDs. Each gNB maintains a backup copy of the blockchain.
In the 5G wireless networks specified by the 3GPP standards, when an MTCD enters the signal range of a gNB, it sends an authentication request to the gNB. This request is then forwarded by the gNB to the AMF, which is in turn forwarded to the AUSF. After the AUSF retrieves the necessary key information from the UDM, it executes the authentication process and returns the authentication response to the MTCD through the AMF and the gNB, completing further authentication procedures. In a typical 5G core network, one AUSF typically serves multiple AMFs, and each AMF manages connections with multiple gNBs. By the proposed scheme, decentralization of the authentication entities is achieved by integrating blockchain technology with the 5G system model specified by the 3GPP standard. In this system, each gNB is part of a private blockchain network and holds a copy of the entire blockchain. Once an MTCD completes the initial registration, there is no need to forward the authentication requests to the AUSF and UDM again. When an MTCD needs to undergo a handover authentication, the AMF only needs to forward the information of the service-gNB (s-gNB) to the target-gNB (t-gNB). At this point, the gNB can directly verify the identity of the MTCD using the information stored on the blockchain, without further forwarding to the AMF, AUSF, or UDM. To simplify the design, the proposed scheme focuses on the most common scenario, where all MTCDs connect to the gNB in their home network via 3GPP standard access technologies. Moreover, the connection between the gNB and the 5G core network is provided by a wired connection that is safeguarded by an Internet Protocol Security (IPSec) tunnel. If the MTCD and the gNB successfully achieve mutual authentication, the MTCD can be considered to have secure access to the legitimate 5G network.
In a cellular network architecture, to effectively reuse frequency resources, the entire service area is divided into numerous cells shaped as regular polygons, such as hexagons. Consequently, around a cell controlled by a gNB, typically six adjacent cells are designated as neighbors. During a handover, an MTCD can only hand over to one of these six neighboring cells, which is the cell controlled by the t-gNB associated with the current cell controlled by the s-gNB [22].

4.2. Attack Model

The attack model for the network under study is the Dolev–Yao model [23], by which attackers are assumed to be rational, powerful, and fully controlled entities capable of intercepting, tampering with, and sending messages. They can also attempt to break the security function of the protocol by analyzing communication content. In the RAN domain of the 5G network, there are security vulnerabilities in the wireless communication between MTCDs and gNBs, making them prone to malicious attacks such as information interception and tampering. According to the specification [21], the N2 interface employs IPsec and IKEv2 certificates to protect communications, ensuring their integrity and confidentiality, and preventing replay attacks. Therefore, the connection between the 5G core network and the gNB is considered secure. However, the connection between MTCDs and gNBs is weaker and potentially insecure. It is assumed that the interior of the 5G core network and its network functions are secure, ensuring the safety of connections between network functions. In contrast, other entities in the RAN are not completely trusted.
Given these considerations, an ideal 5G identity handover authentication protocol should support security features including device anonymity, bidirectional identity verification, secure data transmission, and perfect forward secrecy. Additionally, it should be capable of defending against active attacks, including impersonation, linkability attacks, replay attacks, man-in-the-middle attacks, and DoS attacks, as well as passive attacks like eavesdropping and location tracking.

5. The Proposed BSPGH

The details of the BSPGH protocol are presented in this section. By combining group authentication with blockchain technology, the BSPGH scheme demonstrates various security attributes. The BSPGH scheme operates in five distinct phases including system initialization and registration, handover preparation, first MTCD handover authentication, group handover authentication, and connection establishment. The notations used are shown in Table 1.
Table 1. Notations and definition of the proposed protocol.

5.1. System Initialization and Registration

(1)
System initialization: Given security parameter 1 K , AMF selects a large prime number q and E ( F q ) as the elliptic curve over a finite field F q . Let G be a cyclic additive group generated by generator P with order q . H 0 = Z q × 0,1 ∗ → Z q , H 1 : G × 0 , 1 ∗ → Z q , H 2 : 0 , 1 ∗ × G × 0 , 1 ∗ × G × G → Z q , H 3 : 0 , 1 ∗ × 0 , 1 ∗ × 0 , 1 ∗ × 0 , 1 ∗ × G × G → Z q and H 4 : 0 , 1 ∗ × 0 , 1 ∗ × G → Z q are hash functions. AUSF chooses a random element α ∈ Z q and calculates the corresponding public key P p u b = α · P . AMF chooses a random element β ∈ Z q and calculates the corresponding public key T p u b = β · P . Finally, the AMF publishes the system parameter p a r a m s = P , q , G , P p u b , T p u b , H 0 , H 1 , H 2 , H 3 , H 4 .
(2)
Initial registration: To protect identity privacy, each MTCD and gNB should first register with the AUSF to obtain their own pseudonyms. Below, we use the MTCD with the real identity I D i as an example to explain the specific registration process, which is shown in Figure 2.
S t e p - 1 : M T C D → A M F : { m p k i , { I D i , m p k i } δ }
Figure 2. Initial registration.
The MTCD generates a secret value and a corresponding partial public key. It randomly selects a random number m s k i ∈ Z q as its secret value and calculates the partial public key m p k i = m s k i · P . Then, it computes δ = H 0 m s k i · T p u b as the symmetric encryption key and sends its identity I D i in a message to AMF.
S t e p - 2 : A M F → A U S F / U D M : { I D i , m p k i }
AMF checks the identity of M T C D and forwards that identity and the public key to AUSF. The anonymous identity I D is generated by the AUSF, while the UDM stores the permanent identity I D .
S t e p - 3 : A U S F / U D M → A M F : { T I D i }
Upon receiving I D i , AUSF calculates the temporary anonymous identity T I D = I D ⊕ H 1 α · m p k i . AUSF then forwards T I D i to AMF. Simultaneously, AUSF also forwards the identity I D i to UDM, which is responsible for storing I D i .
S t e p - 4 : A M F → M T C D : { T I D i , m p k i , p s k i , R i } δ  
AMF generates the secret value and a corresponding partial public key for MTCD. It randomly selects a random number r i ∈ Z q , calculates R i = r i · P , h i 1 = H 2 T I D i , m p k i , R i , T p u b , and p s k i = r i + β · h i 1 , then computes δ = H 0 β · m p k i . After forwarding the message to M T C D i , M T C D i stores T I D i , calculates h i 1 , and verifies that p s k i · p = R i + h i 1 · T p u b . It then sets P K i = { m p k i , R i } and S K i = { m s k i , p s k i } as the public–private key pair. The AMF sends the public key to the gNB, and the gNB uploads the public key pair to the blockchain.
(3)
Initial authentication: All MTCDs, the AUSF, and the UDM perform the initial authentication following the 5G-AKA scheme. The gNB and AMF monitor the movement trajectory of each MTCD to determine if some MTCDs could form a group based on the grouping algorithm described in [24] that supports the mathematical correlation required to form an MTCD group. If such a correlation is found, these MTCDs will be considered as a group.

5.2. Handover Preparation

This phase occurs before the handover, preparing the necessary key materials for the first MTCD handover authentication and group handover authentication. This phase is shown in Figure 3.
S t e p - 1 : s - g N B → A M F : { T I D s }
Figure 3. Handover preparation.
The s-gNB sends a handover request to the AMF containing the neighboring gNB list and the temporary identity identifiers T I D s of all group members.
S t e p - 2 : A M F → s - g N B / t - g N B : { { T I D 1 | | … | | T I D i } , { G I D , T S f } δ , M A C }
After receiving all TIDs from the group members, the AMF computes the group key G I D = H ∑ i = 1 n T I D . The AMF encrypts the timestamp T S f and generates the MAC as M A C = H G I D | T S f . This message is then broadcasted to the base stations. Upon receiving the message, the t-gNB queries the public key information of MTCDs stored in the blockchain within the group and stores the queried information locally.
S t e p - 3 : s - g N B → M T C D : { G I D , T S f } δ , M A C }
s-gNB broadcasts the message to all MTCDs within the group. Each MTCD decrypts the message to obtain the G I D and verifies the received message’s timestamps and M A C to determine its authenticity.

5.3. First MTCD Handover Authentication

This phase involves one handover authentication that occurs when the first MTCD enters the range of the t-gNB. After the handover authentication of the first MTCD is successful, subsequent group handover authentication processes will be carried out. This phase is shown in Figure 4.
S t e p - 1 : M T C D → s - g N B : { T I D 1 , T S 1 , n 1 · P , S i g 1 }
Figure 4. First MTCD handover authentication.
When the first MTCD enters the coverage range of t-gNB within the group, M T C D 1 selects a random number n 1 ∈ Z q and computes its signature as S i g 1 = h 13 m s k 1 + n 1 + h 12 p s k 1 . Where h 12 = H 3 T I D 1 , T S 1 , P K 1 , n 1 · P and h 13 = H 4 T I D 1 , n 1 · P . Afterwards, M T C D 1 sends its T I D 1 , timestamp T S 1 and n 1 · P , and S i g 1 to s-gNB.
S t e p - 2 : s - g N B → s - A M F : { T I D 1 , T S 1 , n 1 · p , S i g 1 }
s-gNB checks the timestamp in the received message and forwards the message to s-AMF.
S t e p - 3 : s - A M F → t - g N B : { G I D , T S 1 , ( T I D 1 | | … | | T I D i , n 1 · P , S i g 1 }
When the handover authentication occurs within the same AMF, after receiving the handover request, s-AMF responds by sending the temporary identity identifiers T I D 1 … T I D i of all group members, along with the G I D as the group key material, and forwards n 1 · P and S i g 1 to t-gNB. And after receiving the handover response from s-AMF, t-gNB queries the public key of M T C D 1 on the blockchain and calculates h 11 = H 2 T I D 1 , m p k 1 , R 1 , T p u b , h 12 = H 3 T I D 1 , T S 1 , P K 1 , n 1 · P , and h 13 = H 4 T I D 1 , n 1 · P . It verifies the signature S i g 1 · P = h 13 · m p k 1 + n 1 · P + h 12 · R 1 + h 11 · h 12 · T p u b , and if the equation holds, M T C D 1 ’s signature is successfully verified. t-gNB then selects a random number n t ∈ Z q and generates the session key K 1 t = n 1 · n t · P . It also creates the signature S i g t = H 0 G I D , T I D t , T S t , n t · P and computes G I D 1 = ∑ i = 2 n H T I D i as the group key material to authenticate M T C D 1 . It then sends a message to M T C D 1 .
S t e p - 4 : s - A M F → t - A M F : { G I D , T S 1 , T S f , ( T I D 1 | | … | | T I D i , n 1 · P , S i g 1 }
When the handover authentication occurs between different AMFs, the s-AMF forwards the message to the t-AMF.
S t e p - 5 : t - A M F → t - g N B : { G I D , T S 1 , ( T I D 1 | | … | | T I D i , n 1 · P , S i g 1 }
Similarly, upon receiving the forwarded handover request, the t-AMF sends the temporary identity identifiers T I D 1 … T I D i of all group members, along with the G I D as group key material, in response. It then forwards n 1 · P and S i g 1 to t-gNB. Upon receiving the message, the t-gNB proceeds with the verification.
S t e p - 6 : t - g N B → M T C D : { T I D t , G I D 1 , T S t , n t · P , S i g t }
After receiving the message from t-gNB, M T C D 1 generates the signature S i g t ′ = H 0 G I D , T I D t , T S t , n t · P . If S i g t ′ = S i g t , the identity verification of t-gNB is successful. Then, M T C D 1 generates the session key K 1 t = n 1 · n t · P . At this point, the mutual authentication and key negotiation between M T C D 1 and t-gNB are complete.

5.4. Group Handover Authentication

M T C D 1 initiates an aggregated signature request to other group members in the group, broadcasting the temporary identity T I D t of the t-gNB. M T C D 1 also sends its temporary identity T I D 1 and the group key material G I D 1 . Other members within the group verify the identity of M T C D 1 by validating G I D = G I D 1 + H T I D 1 .
S t e p - 1 : M T C D 1 → M T C D i : { G I D 1 , T I D t , T I D 1 , T S 1 }
S t e p - 2 : M T C D i → M T C D 1 : { T I D i , T S i , n i · P , S i g i }
The group member M T C D i receives the aggregated signature request, verifies the identity of M T C D 1 , selects a random number n i ∈ Z q , generates its respective signatures, and sends its signature S i g i = h i 3 m s k i + n i + h i 2 p s k i .
S t e p - 3 : M T C D 1 → t - g N B : { ( T I D 2 | | … | | T I D i ) , ( n 2 · P | | … | | n i · P ) , S i g , T S i }
After receiving the signatures from all group members, M T C D 1 calculates the aggregated signature S i g = ∑ i = 2 n S i g i for the group and sends the aggregated signature to the t-gNB for performing group signature verification using the equation ∑ i = 2 n S i g i · P = ∑ i = 2 n h i 3 · m p k i + ∑ i = 2 n n i   · P + ∑ i = 2 n h i 2 · R i + ∑ i = 2 n h i 1 · h i 2 · T p u b to pre-authenticate all group members. If the equation holds, the t-gNB verifies all MTCDs. Subsequently, t-gNB generates the session key K i t = n i · n t · P between M T C D i and the t-gNB.
S t e p - 4 : t - g N B → M T C D 1 : { T I D t , T S t , n t · P , S i g t }
The t-gNB verifies the signatures of the group members to authenticate their identities. If the identity authentication is successful, the t-gNB sends the timestamp T S t , random number n t · P , and its own signature S i g t = H 0 G I D , T I D t , T S t , n t · P to the M T C D 1 , because it has passed the first MTCD handover authentication already.
S t e p - 5 : M T C D 1 → M T C D i : { T I D t , T S 1 , T S t , n t · P , S i g t }
After receiving the message from M T C D 1 , M T C D i generates the signature S i g t ′ = H 0 G I D , T I D t , T S t , n t · P . If S i g t ′ = S i g t , the identity verification of t-gNB is successful. If the verification is successful, M T C D i generates the session key K i t = n i · n t · P between M T C D i and the t-gNB. At this point, mutual authentication and key negotiation between M T C D i and t-gNB are complete. This phase is shown in Figure 5.
Figure 5. Group handover authentication.

6. Security Evaluation

In this section, we first prove the logic correctness of the proposed BSPGH scheme by using BAN logic and perform a formal verification of the security functionality of the BSPGH protocol by using the Scyther. Furthermore, a security analysis is conducted to identify security properties held by the BSPGH protocol and its robustness against various malicious attacks is described. The results can provide insights into the protocol’s effectiveness and capacity to resist various threats.

6.1. Formal Proof by BAN Logic

BAN logic is an important method for the formal analysis of security protocols [25], aiming to verify their security and correctness. The fundamental principle of BAN logic is to establish a set of rigorous logical rules to describe the semantics of entities, message exchange, and information states involved in the protocol. To apply BAN logic to prove the BSPGH protocol, we formalize the protocol into an idealized form. We then propose assumptions and objectives and use BAN logic symbols and rules for derivation, such as message meaning rules, temporary value validation rules, arbitration rules, belief rules, and reception rules. By manually applying the derivation rules, we aim to achieve the objectives and verify the security properties of the protocol.
The rules of BAN logic for derivation can be described as follows:
(R1) The Message Meaning Rule: P | ≡ Q ⟷ K P , P ◃ X K P ≡ Q ∼ X , P | ≡ → K Q , P ◃ X K − 1 P | ≡ Q ∼ X , P | ≡ P ⇌ Y Q , P ◃ X Y P | ≡ Q ∼ X . The first means that if party P trusts that K is a shared key between P and Q, and if P has received a message X encrypted with K before, then P believes that Q has sent the message X. The second means that if P believes that user Q’s public key is K, and P sees that the message X, which is signed with Q’s private key, is K − 1 , then P believes that the message X was sent by Q. The third means describes the shared secret.
(R2) The Freshness Rule: P | ≡ # ( X ) P | ≡ # ( X , Y ) . This rule means that if one part of the message is fresh, then the entire message is fresh.
(R3) The Nonce Verification Rule: P | ≡ # ( X ) , P | ≡ Q | ∼ X P ≡ Q ≡ X . This rule means that if P believes that message X is fresh and believes that Q has sent X before, then P believes that Q believes X.
(R4) The Belief Conjunction Rule: P ≡ Q ≡ X , Y P ≡ Q ≡ X , P ≡ X , P ≡ Y P | ≡ ( X , Y ) , P | ≡ ( X , Y ) P | ≡ X . This rule means that if P believes that party Q believes messages X and Y, then P believes that Q believes X.
(R5) The Jurisdiction Rule: P ≡ Q ⇒ X , P ≡ Q ≡ X P | ≡ X . This rule means that if P believes Q has jurisdiction on message X, and P believes Q believes X, then P believes X.

6.1.1. Formalized Protocol

To idealize the protocol, we describe the messages in the proposed protocol as follows:
Messages-1: The s-gNB sends T I D s to AMF.
(M1) A M F ◃ T I D s
Messages-2: The AMF sends { ( T I D 1 | | … | | T I D i ) , { G I D , T S f } δ , M A C } to s-gNB.
(M2) s - g N B ◃ { { T I D 1 | | … | | T I D i } , { G I D , T S f } δ , M A C }
Messages-3: The s-gNB sends { G I D , T S f } δ , M A C to MTCD.
(M3) M T C D ◃ { { G I D , T S f } δ , M A C }
Messages-4: The M T C D 1 sends { T I D 1 , T S 1 , n 1 · p , S i g 1 } to s-gNB.
(M4) s - g N B ◃ { T I D 1 , T S 1 , n 1 · p , S i g 1 } P K − 1
Messages-5: The s-gNB sends { T I D 1 , n 1 · p , S i g 1 } to AMF.
(M5) A M F ◃ { T I D 1 , n 1 · p , S i g 1 } P K − 1
Messages-6: The AMF sends { G I D , T S 1 , ( T I D 1 | | … | | T I D i ) , n 1 · p , S i g 1 } to t-gNB.
(M6) t - g N B ◃ { G I D , T S 1 , ( T I D 1 | | … | | T I D i ) , n 1 · p , S i g 1 } P K − 1
Messages-7: The t-gNB sends { T I D t , G I D 1 , T S t , n t · p , S i g t } to M T C D 1 .
(M7) M T C D 1 ◃ { T I D t , G I D 1 , T S t , n t · p , S i g t } G I D
Messages-8: The M T C D 1 sends { G I D 1 , T I D t , T I D 1 , T S 1 } to M T C D i .
(M8) M T C D i ◃ { G I D 1 , T I D t , T I D 1 , T S 1 } G I D
Messages-9: The M T C D i sends { T I D i , T S i , n i · p , S i g i } to M T C D 1 .
(M9) M T C D 1 ◃ { T I D i , T S i , n i · p , S i g i } P K − 1
Messages-10: The M T C D 1 sends { ( T I D 2 | | … | | T I D i ) , n 2 · p | | … | | n i p , S i g , T S i } to t-gNB.
(M10) t - g N B ◃ { ( T I D 2 | | … | | T I D i ) , n 2 · p | | … | | n i · p , S i g , T S i } P K − 1
Messages-11: The t-gNB sends { T I D t , T S t , n t · p , S i g t } to M T C D 1 .
(M11) M T C D 1 ◃ { T I D t , T S t , n t · p , S i g t } G I D
Messages-12: The M T C D 1 sends { T I D t , T S 1 , T S t , n t · p , S i g t } to M T C D i .
(M12) M T C D i ◃ { T I D t , T S 1 , T S t , n t · p , S i g t } G I D
We refer to all MTC devices, including MTCD and M T C D i , as MTCD.

6.1.2. Logical Assumptions

The initial assumptions for protocol analysis are as follows: MTCDs and t-gNB trust locally generated random numbers, as well as the key pairs generated from these random numbers. The random number n includes both n 1 and n i , and the MTCDs include both M T C D 1 and M T C D i .
(A1) M T C D 1 ≡ n 1 , M T C D i | ≡ n i
(A2) M T C D 1 | ≡ n 1 · p , M T C D i | ≡ n i · p
(A3) t - g N B | ≡ n t
(A4) t - g N B | ≡ n t · p
Both MTCDs and t-gNB, upon receiving messages, verify the timestamps. Therefore, they trust the freshness of the timestamps.
(A5) M T C D | ≡ # ( T S t )
(A6) t - g N B | ≡ # ( T S 1 ) , t - g N B | ≡ # ( T S i )
MTCDs should trust that the keys generated by t-gNB are under its control and trustworthy. Similarly, t-gNB should trust that the keys generated by M T C D i are under its control and trustworthy. This mutual trust is established because M T C D i undergoes the initial handover authentication process. And upon successful authentication, it gains complete trust from t-gNB. Consequently, M T C D i should also trust that the keys from t-gNB received by M T C D i are under control and trustworthy.
(A7) M T C D | ≡ t - g N B ⇒ n t · p
(A8) t - g N B | ≡ M T C D 1 ⇒ n 1 · p , t - g N B | ≡ M T C D i ⇒ n i · p
(A9) M T C D ≡ t - g N B ≡ n t
(A10) t - g N B ≡ M T C D 1 ≡ n 1 , t - g N B ≡ M T C D i ≡ n i
Both t-gNB and MTCDs possess the same group key. The group key is generated by MTCDs in the handover process and then sent to t-gNB. Both parties trust this key.
(A11) M T C D | ≡ M T C D ⟷ G I D t - g N B
(A12) t - g N B | ≡ → P K M T C D
The group key G I D is the shared key among the group of MTCDs.

6.1.3. Protocol Goal

The purpose of the handover authentication is to accomplish mutual authentication and key agreement between each MTCD and the t-gNB. Since the first M T C D 1 and subsequent M T C D i have different authentication processes, we will prove them separately. In the model, all MTCDs, including M T C D 1 and M T C D i , are represented as MTCD, and the timestamp is denoted as T S . The specific objectives are described as follows:
G1–G8 are objectives. If all 8 objectives are achieved, then the session key, which is known only to MTCD and t-gNB, will be shared between them.
(G1) M T C D 1 | ≡ M T C D 1 ⟷ K 1 t t - g N B
(G2) t - g N B | ≡ t - g N B ⟷ K 1 t M T C D 1
(G3) M T C D 1 ≡ t - g N B ≡ t - g N B ⟷ K 1 t M T C D 1
(G4) t - g N B ≡ M T C D 1 ≡ M T C D 1 ⟷ K 1 t t - g N B
(G5) M T C D i | ≡ M T C D i ⟷ K i t t - g N B
(G6) t - g N B | ≡ t - g N B ⟷ K i t M T C D i
(G7) M T C D i ≡ t - g N B ≡ t - g N B ⟷ K i t M T C D i
(G8) t - g N B ≡ M T C D i ≡ M T C D i ⟷ K i t t - g N B

6.1.4. Protocol Verification

Using the rules, assumptions, and messages, the detailed proof is as follows:
According to R1 and considering A12 and M6, we can deduce
t - g N B | ≡ M T C D 1 ∼ { G I D , T S 1 , ( T I D 1 | | … | | T I D i ) , n 1 · p , S i g 1 }
According to R2 and considering A6, we can deduce
t - g N B | ≡ # { G I D , T S 1 , ( T I D 1 | | … | | T I D i ) , n 1 · p , S i g 1 }
According to R3 and considering (2) and (3), we can deduce
t - g N B | ≡ M T C D 1 | ≡ { G I D , T S 1 , ( T I D 1 | | … | | T I D i ) , n 1 · p , S i g 1 }
According to R4 and considering (4), we can deduce
t - g N B | ≡ M T C D 1 | ≡ { n 1 · p }
According to R5, along with A8 and (5), we can deduce
t - g N B | ≡ { n 1 · p }
According to the R1 and considering A11 and M7, we can deduce
M T C D 1 | ≡ t - g N B ∼ { G I D 1 , T S t , n t · p , S i g t }
According to R2 and considering A5, we can deduce
M T C D 1 | ≡ # { G I D 1 , T S t , n t · p , S i g t }
According to R3 and considering (7) and (8), we can deduce
M T C D 1 | ≡ t - g N B | ≡ { G I D 1 , T S t , n t · p , S i g t }
According to R4 and considering (9), we can deduce
M T C D 1 | ≡ t - g N B | ≡ { n t · p }
According to R5 and considering (10) and A7, we can deduce
M T C D 1 | ≡ { n t · p }
According to R4 and considering (6) and A3, we can deduce
t - g N B | ≡ { n 1 · n t · p }
Since n 1 · n t · p is the shared key K 1 t , between M T C D 1 and t-gNB; therefore, according to Equation (12), we can deduce:
t - g N B | ≡ t - g N B ⟷ K 1 t M T C D 1
According to R4 and considering (11) and A1, we can deduce
M T C D 1 | ≡ { n 1 · n t · p }
As mentioned above, according to (14), we can deduce
M T C D 1 | ≡ M T C D 1 ⟷ K 1 t t - g N B
Furthermore, to complete the process, t-gNB receives M6 and verifies it. It must trust M6 to proceed with the protocol and send M7. Therefore, if M T C D 1 has already received M7, M T C D 1 can infer that t-gNB already trusts M6. n 1 · p is included in M6. Therefore, we can deduce
M T C D 1 | ≡ t - g N B | ≡ { n 1 · p }
According to R4 and considering (16) and A9, we can deduce
M T C D 1 | ≡ t - g N B | ≡ M T C D 1 ⟷ K 1 t t - g N B
As mentioned above, according to M7 and M8, we can deduce
t - g N B | ≡ M T C D 1 | ≡ { n t · p }
According to R4 and considering (18) and A10, we can deduce
t - g N B | ≡ M T C D 1 | ≡ t - g N B ⟷ K 1 t M T C D 1
According to R1 and considering M10 and A12, we can deduce
t - g N B | ≡ M T C D i ∼ { ( T I D 2 | | … | | T I D i ) , n 2 · p | | … | | n i · p , S i g , T S i }
According to R2 and considering A6, we can deduce
t - g N B | ≡ # { ( T I D 2 | | … | | T I D i ) , n 2 · p | | … | | n i · p , S i g , T S i }
According to R3 and considering (20) and (21), we can deduce
t - g N B | ≡ M T C D i | ≡ { ( T I D 2 | | … | | T I D i ) , n 2 · p | | … | | n i · p , S i g , T S i }
According to R4 and considering (22), we can deduce
t - g N B | ≡ M T C D i | ≡ { n i · p }
According to R5 and considering (23) and A8, we can deduce
t - g N B | ≡ { n i · p }
According to R1 and considering M12 and A11, we can deduce
M T C D i | ≡ t - g N B ∼ { T S 1 , T S t , n t · p , S i g t }
According to R2 and considering A5, we can deduce
M T C D i | ≡ # { n t · p , T S 1 , S i g t }
According to R3 and considering (25) and (26), we can deduce
M T C D i | ≡ t - g N B | ≡ { n t · p , T S 1 , S i g t }
According to R4 and considering (27), we can deduce
M T C D i ≡ t - g N B | ≡ { n t · p }
According to R5 and considering (28) and A7, we can deduce
M T C D i | ≡ { n t · p }
According to R4 and considering (29) and A1, we can deduce
M T C D i | ≡ { n i · n t · p }
As mentioned above, according to (30), we can deduce
M T C D i | ≡ M T C D i ⟷ K i t t - g N B
According to R4 and considering (31) and A3, we can deduce
t - g N B | ≡ { n i · n t · p }
As mentioned above, according to (32), we can deduce
t - g N B | ≡ t - g N B ⟷ K i t M T C D i
Similar to M T C D 1 , t-gNB also receives M10 first, and it must trust M10 in order to proceed with the protocol and send M12. If M T C D i has already received M12, then M T C D i can conclude that t-gNB now trusts M10. According to M10 and M12, we can deduce
M T C D i | ≡ t - g N B | ≡ { n i · p }
According to R4 and considering (34) and A9, we can deduce
M T C D i | ≡ t - g N B | ≡ M T C D i ⟷ K i t t - g N B
Likewise, based on M12, after M T C D i verifies the identity of t-gNB without errors, it generates a session key for subsequent communication. From this, we can deduce
t - g N B | ≡ M T C D i | ≡ { n t · p }
According to R4 and considering (36) and A10, we can deduce
t - g N B | ≡ M T C D i | ≡ t - g N B ⟷ K i t M T C D i
In summary, we have achieved all the security objectives, ensuring key negotiation and mutual authentication in the protocol. Our protocol has been logically validated.

6.2. Formal Verification

Scyther Tool is a formal verification tool commonly used for validating security protocols [26]. Scyther offers four security statements to ensure protocol consistency and detect various attacks like message forgery, replay, and man-in-the-middle (MITM). These include “Aliveness” for completing protocol steps with active responders, “Niagree” for the correct variable receipt without one-to-one communication, “Nisynch” for the expected protocol operation without one-to-one synchronization, and “Weakagree” for one-to-one communication within the same group of initiators or responders.
The verification results are shown in Figure 6, where Figure 6a demonstrates the first MTCD handover authentication phase, and Figure 6b demonstrates the group handover authentication phase. Specifically, the model is created with three roles: t-gNB, M T C D i , and M T C D 1 . Initially, the BSPGH scheme achieves mutual key agreement using the Elliptic Curve Diffie–Hellman (ECDH). To simulate the ECDH key exchange between two parties, two functions are defined as g 1 and g 2 . Then, n 1 · P is set to g 1 ( n 1 ) , n i · P is set to g 1 ( n i ) , and n t · P is set to g 1 ( n t ) . The confidentiality of the ECDH private keys is first verified using the declarations of Secret n 1 , Secret n i , and Secret n t . Next, the derivation of ECDH public keys is performed using K 1 t (i.e., g 2 ( n t ,   g 1 ( n 1 ) ) ) and K i t (i.e., g 2 ( n t ,   g 1 ( n i ) ) ). The confidentiality of the ECDH private keys is ensured by declaring Secret n i , Secret n t , and Secret n 1 . Additionally, the confidentiality of the ECDH public key is validated by the SKR declaration. Our protocol assumes that M T C D i needs to use the group key G I D to verify the identity of M T C D 1 . To ensure that adversaries cannot obtain the group key G I D in any way, its secrecy is checked using the Secret G I D declaration. Finally, the verification results reveal that all participants in the system satisfy the properties of synchronous (Nisynch), consistent (Niagree), active (Alive), and weak consistency (Weakagree). All the keys meet the security requirements. Therefore, our protocol is deemed secure by the verification using Scyther.
Figure 6. Results of formal verification.

6.3. Security Analysis

  • Mutual Authentication: By the BSPGH scheme, a gNB verifies the authenticity of the MTCD’s signature S i g by retrieving the public key stored on the blockchain, thereby confirming the identity of the MTCD. Since digital signatures are generated by encrypting messages with a private key and it is computationally infeasible to deduce the private key from the public key, this way allows the MTCD to effectively prove the legitimacy of its authentication request to the gNB. Furthermore, the gNB employs hash-based message authentication code (HMAC) scheme and uses the group key G I D as the key for the HMAC to generate a signature S i g t . The MTCD, possessing a legitimate G I D , verifies   S i g t to prove the legitimacy of the response. In this way, the MTCD and the gNB are able to achieve mutual authentication, ensuring the security of the communication between them.
  • Privacy protection: The temporary identity identifier T I D i is transmitted to each participant over the wireless channel, ensuring that the real identity is only disclosed to legitimate gNBs and the core network. It satisfies anonymity requirements.
  • Perfect forward secrecy and backward secrecy: By the proposed protocol, the generation of the session key K i t relies on randomly generated ECDH parameters. Without the session key, attackers cannot recover the contents of a specific session. Moreover, since a session key is generated for each session and the ECDH parameters for each session key are independent of those from previous or future sessions, the leakage of a session key would only affect the current session. The confidentiality of previous or future sessions would remain unaffected.
  • Replay and impersonation attacks resistance: By the proposed protocol, authentication requests and responses are both marked with a timestamp T S . The T S constraint ensures that messages are received within a specified time window, allowing easy identification. The replayed messages will be discarded, thus, countering replay attacks. The use of a key system based on discrete logarithms makes deriving private keys from the public keys challenging, preventing attackers from forging signatures and thus impersonating legitimate identities. It can effectively strengthen the ability of the protocol to resist impersonation attacks.
  • DoS/DDoS attacks resistance: The receiving gNB first verifies the timestamp’s validity and then compares the signature with records in the blockchain for authentication. If they do not match, the session is immediately terminated, preventing attackers from consuming gNB’s computational resources through replay attacks. The failure of one gNB or one AMF will not affect the entire 5G wireless network. Therefore, it can prevent DDoS attacks in 5G authentication.
  • Session key leakage: Attackers may attempt to compute the session key to steal messages transmitted over the wireless channel. However, the session key is formed based on ECDH by the proposed scheme, which relies on the difficulty of the elliptic curve discrete logarithm problem. Attackers cannot obtain n i and n t from n i · p and n t · p , and thus cannot compute the session key n i · n t · p . It effectively prevents session key leakage.
  • Sybil attack: By the proposed protocol, a private blockchain is utilized. Within a private blockchain, access and participation in the network are restricted, allowing only MTCDs that have been registered by core network entities to join and interact. Furthermore, the identities of MTCDs must be verified subsequently, which limits the ability of attackers to forge numerous identities to conduct attacks. Therefore, this approach is capable of resisting Sybil attacks, where an attacker creates a large number of pseudonymous identities to compromise the network.
  • Man-in-the-middle attack: By the BSPGH scheme, an adversary cannot impersonate a legitimate t-gNB to deceive an MTCD because a temporary session key K it is established between them using the ECDH. The adversary cannot obtain or modify the temporary session key; thus, it is unable to establish communication with the MTCD.
  • Linkability attack prevention: In the BSPGH authentication process, the PK and TID are periodically updated, while the elements in other messages are random numbers. BSPGH employs ECDH for session key generation instead of using serial numbers, which prevents the common MAC failures or synchronization issues found in symmetric key-based AKA protocols. This approach makes it difficult for attackers to analyze the correlation between different messages or to exploit erroneous messages as vulnerabilities to track a specific device. Consequently, BSPGH effectively safeguards against linkability attacks, enhancing privacy and security in the communication process.

7. Performance Evaluation

In this section, we evaluated the performance of the BSPGH scheme in terms of computational cost and communication cost during the first handover authentication and group handover authentication phases and compare its performance with those of three other protocols, namely, 5G standard specified by 3GPP TS 23.501 R16 [21], a privacy-preserving handover authentication protocol for a group of MTC devices in 5G networks (PPHAP) [1], and a novel authentication scheme supporting multiple user access for 5G and beyond (NASS) [7]. In the analysis, it is assumed that all symmetric encryption keys are 256 bits, M A C s are 160 bits, and elements in the Hash functions, T I D , G I D , S i g , n · P , and Z q ∗ are 128 bits. The timestamp is represented by 32 bits, and elements in group G have sizes of 320 bits.

7.1. Blockchain Operation Cost

To evaluate the data access latency in the blockchain, we followed the evaluation methodology outlined in [27]. Initially, a blockchain prototype was created. This blockchain comprised numerous blocks, each being 1 MB in size. Every block, stored as a file, contained multiple transaction records, with each transaction being a subscription record of a device. To reduce the storage overhead of the blockchain, this size should be adjusted according to the preferences of the network operators. By default, we followed the Bitcoin model with a block size of 1 MB. All transactions in the blockchain were indexed using Python dictionaries. To compare the performance differences between the blockchain and traditional databases, another centralized database was also constructed using MariaDB v10.4.14 [28]. The read operation T B C . r e a d is 0.2914 ms and the write operation T B C . w r i t e is 0.0434 ms, while for the centralized database, both of the read and write operations T D B are 0.4956 ms.
By the proposed scheme, since the writing and querying operations of the blockchain information occur prior to the two phases of handover authentication, specifically during the registration phase and the handover preparation phase, the time taken for blockchain operations has not been included in the computational costs of the first handover authentication and group handover authentication phases.

7.2. Computational Cost

We utilize a device equipped with an Intel(R) Core (TM) i7-12700H processor running at 3.50 GHz and 16 GB of RAMs for the evaluation of the computational cost of the two phases of handover authentication. The cryptographic library employed to perform the required cryptographic operations of the proposed scheme was C/C++ OPENSSL. For the selected protocols, each protocol uses different encryption functions with unique key size requirements. To assess their performance comprehensively and fairly at the same security level, we follow the recommendation of NIST in [28] and use a 256-bit equivalent key strength throughout the entire simulation process. Therefore, for all operations based on ECC, secp256k1 is selected as the default elliptic curve. We run each encryption function 10,000 times to measure its average execution time. The measurement results obtained follow. The point multiplication T PM is 0.201 ms. The point addition T PA is 0.001 ms. The modular exponentiation T E is 0.665 ms. The Rivest–Shamir–Adleman (RSA) signature and verification T RV is 1.445 ms. The hash operation T H is 0.021 ms. The symmetric encryption/decryption operation T A is 0.02 ms. XOR, multiplication, and arithmetic operations have been neglected. The results are presented in Table 2, where T MTCD and T gNB represent the computation time for the MTCD and the gNB, respectively. We have only accounted for the operations during the first MTCD handover authentication and the group handover authentication of the BSPGH scheme.
Table 2. Computational costs of different protocols.
In Table 2, “n” represents the number of MTCD to substitute specific numerical values. For the 5G-AKA scheme, the computation costs are 0.126 n ms. For the PPHAP scheme, the computation costs are 0.205 n - 0.063 ms. For the NASS scheme, the computation costs are 1.466 n + 2.775 ms. For the BSPGH scheme, the computation costs are 1.155 n + 1.068 ms. The NASS scheme involves complete RSA verification for handover authentication, which increases the overhead. The PPHAP scheme primarily uses symmetric encryption and hash operations for authentication, resulting in lower computational overhead but posing a risk of DDoS attacks. The 5G-AKA scheme has the lowest computational overhead but has serious security vulnerabilities. In contrast, the proposed BSPGH scheme is the most secure in terms of security functionality and has lower overhead compared to the NASS scheme. Overall, the BSPGH scheme has been proven to be the most effective.

7.3. Communication Cost

The communication costs for n MTCDs to perform handover authentication by the BSPGH scheme are evaluated and compared with the other three protocols. The communication costs include propagation time and transmission time. The propagation time is determined by the distance between the transmitter and the receiver and the propagation speed over the wireless communication channel, which is approximately 3 × 10 8 m/s. It is assumed that the radius of a cell is 200 m, and the data packets sent by an MTCD would take 200 m to propagate to the gNB at a speed of 3 × 10 8 m/s. According to the 3GPP standard on 5G communication, the downlink data rate for the urban general area scenario is 50 Mbps, and the uplink data rate is 25 Mbps [29]. In Table 3, “Amount of Information” refers to the total amount of data transmitted during the communication process. T t and T p represent transmission delay and propagation delay, respectively. “Up” and “Down” denote uplink and downlink data transmission. Therefore, we compare them separately. When calculating communication costs, we consider only the authentication phases during the handover, including the first MTCD handover authentication, group handover authentication.
Table 3. Communication costs of different protocols.
Figure 7 demonstrates that when there is a large number of group MTCDs, the proposed BSPGH scheme exhibits superior performance in terms of communication overhead compared to the PPHAP and the NASS scheme. This advantage is attributed to the reduced information exchanged between MTCDs and gNBs in our protocol, leading to enhanced efficiency. In contrast, the communication overhead of the 5G-AKA scheme is lower, but it suffers from a lot of security vulnerabilities. Overall, the results indicate the better performance achieved by the BSPGH scheme.
Figure 7. Comparison of communication cost.

7.4. Authentication Cost

Figure 8 shows the total time cost of the handover authentications for n MTCDs within a group. The comparison of four handover authentication schemes is as follows. The NASS scheme needs a far higher handover authentication cost compared to the BSPGH scheme, due to the involvement of complete RSA signature verification and modular exponentiation for computation and a higher communication cost during the authentication process; thus, it increases the overall latency. The PPHAP scheme has a lower handover authentication time cost, while the BSPGH scheme provides enhanced security features in mitigating DDoS attacks. The 5G-AKA scheme has a lower latency but suffers from serious security vulnerabilities. Therefore, although the BSPGH protocol inevitably introduces a minor computational overhead, it remains the most effective protocol in balancing the security functionality and system performance.
Figure 8. Comparison of the authentication cost.
We assess the robustness of the protocol for estimating the robustness of handover authentication. In the system, handover authentication may be forced to stop and restart when facing unknown attacks. We assume that unknown attacks can occur at each step of the handover authentication, and the probability of unknown attacks is uniform [1]. The average time of successful handover authentication is calculated as follows:
T = T s u c c e s s + T f a i l e d N s u c c e s s = ∑ i = 1 n 1 n × t f a i l × p + t s u c c e s s × ( 1 − p ) 1 − p
where T , T s u c c e s s , and T f a i l e d are the average time taken for a successful handover authentication, the total time of successful handover authentications, and the total time for failed handover authentications, respectively, N s u c c e s s is the number of successful handover authentications, p is the percentage of unknown attacks, n is the number of steps in the protocol, t fail represents the total time cost before the attack happens in the i-th step, and t success represents the time elapsed for one successful handover authentication before an attack occurs.
The simulation results of comparison with a group size of 30 MTCDs are shown as in Figure 9, when the percentage of unknown attacks increases. It is evident that the BSPGH protocol has a lower total time cost compared to NASS, indicating a better performance. However, it has a higher time cost compared to the solutions of the 5G standard and the PPHAP scheme. This is because that the 5G standard and the PPHAP scheme use a symmetric cryptographic system and have suffered security vulnerabilities. As shown in Figure 6, our proposed protocol can resist most major malicious attacks, albeit with a slightly higher total time cost. Overall, the proposed BSPGH scheme demonstrates a better performance in terms of security functionality and system efficiency.
Figure 9. Comparison of the authentication cost for 30 MTCDs with unknown attacks.

7.5. Energy Consumption

The security protocols that offer the highest level of security functionality while consuming the least amount of energy are always the preferred choice due to the limited battery life of mobile devices like MTCDs. To evaluate the energy consumption of MTCDs, two factors should be considered including the energy required for data transmission and the energy consumed for the execution of the cryptographic functions. For the energy used for data transmission, the evaluation of energy consumption follows the data transmission power model described in [28]. The calculation of the transmission energy cost for the uplink and downlink is as follows:
E u l = ( α u t u d r + β ) · t u l
E d l = ( α d t d d r + β ) · t d l
where α u = 438.39   mW / Mbps , α d = 51.97   mW / Mbps , β = 1288.04   mW , t u d r = 25   Mbps , and t d d r = 50   Mbps . t u d r represents the uplink throughput, t d d r represents the downlink throughput, t u l is the transmission time for uplink, and t d l is the transmission time for downlink.
For the energy used for performing cryptographic functions, the way of approximation of energy cost in [30] is adopted. All experiments were conducted using a battery-powered Compaq iPAQ H3670 PDA, which is equipped with an Intel SA-1110 StrongARM processor running at 206 MHz, 64 MB RAM, and 16 MB FlashROM for evaluation. The energy cost of a single AES encryption or decryption operation is 7.87 + 1.21 b μJ, where b is the number of bytes in the plaintext. The energy cost per byte for a SHA-1 hash operation E H is 0.76 μJ. Considering that the energy cost for generating an ECDH public key is 276.7 mJ and for deriving an ECDH public key is 163.5 mJ, the energy consumption for a single scalar multiplication operation E P M is approximately estimated to be 220.1 mJ, and the energy cost for a single RSA operation E R V is 832.6 mJ. The energy consumption of using cryptographic primitives is derived based on the cryptographic operations used in the protocol, leading to a theoretical energy cost.
Figure 10 illustrates the relationship between the energy consumption during handover authentication and the number of MTCDs in a group. It is clearly visible from the figure that, compared to the NASS protocol, the energy consumption of BSPGH is lower and more efficient as the number of MTCDs increases. Additionally, the energy consumption of the 5G and PPHAP protocols is lower than our protocol. However, the 5G standard protocol has security issues and is susceptible to different malicious attacks, while the PPHAP protocol is also vulnerable to security threats like DDoS attacks. On the other hand, the BSPGH protocol can significantly enhance network security, albeit at a slightly higher cost compared to other protocols. It can also facilitate group handover authentication for a large number of users simultaneously. Therefore, the BSPGH protocol exhibits a better performance in terms of both security and efficiency.
Figure 10. Comparison of the energy consumption.

7.6. Discussion of the Simulation Results

We have Table 4 to discuss the security features of the BSPGH, NASS, PPHAP, and 5G-AKA schemes in detail. The 5G-AKA scheme faces security problems in handover authentication including lack of forward secrecy for keys, vulnerability to DoS and DDoS attacks, session key leakage, susceptibility to linkability attacks, and the absence of mutual authentication between an MTC device and its target gNB. The NASS scheme is vulnerable to DoS and DdoS attacks. The PPHAP scheme struggles to resist DdoS attacks. On the other hand, the BSPGH scheme can overcome all of the abovementioned security vulnerabilities, ensuring the highest level of security during the handover authentication process.
Table 4. Security analysis of protocols.
We have conducted experiments for performance comparison among the four handover authentication schemes in terms of handover authentication time for a group of 30 MTC devices. Our proposed protocol, the BSPGH scheme, is faster than the NASS scheme. This time improvement comes from the fact that the NASS scheme performs a full RSA signature verification and modular exponentiation calculations, which result in significant computational overhead, while the BSPGH approach works based on certificateless aggregate signatures and ECDH for session key generation, which need only point multiplication, point addition, and hashing operations so that relatively lower computational costs are incurred. The reduction in computational functions leads to a shorter authentication time, making the BSPGH scheme faster than the NASS scheme for handover authentication.
However, the BSPGH scheme takes a longer time for handover authentication compared to the 5G-AKA and the PPHAP schemes. This is because the BSPGH scheme employs asymmetric ECDH to replace the less secure symmetric key-based key derivation function (KDF) used in the 5G-AKA and the PPHAP scheme. The computational overhead of the ECDH is much higher than that of the KDF, but the KDF is weak to resistant exhaustive attacks, side-channel attacks, and replay attacks. By incorporating the ECDH, the BSPGH scheme cannot only address the security issues associated with key derivation functions but also ensure perfect forward secrecy/backward secrecy and the prevention of linkability attacks for session keys.
Considering the exponential growth in the number of 5G mobile devices in the future, the risks associated with DoS and DDoS attacks in large-scale MTCD scenarios will become more pronounced. Our solution effectively leverages the decentralized nature of blockchain, ensuring the authenticity and security of critical information, and more efficiently defending against DoS and DDoS attacks during the multi-user authentication process. Moreover, our protocol exhibits outstanding performance in the environments susceptible to these security attacks. Therefore, we believe that these overheads are tolerable to protect future 5G wireless networks.

8. Conclusions

In this paper, we have proposed the blockchain-assisted group handover authentication protocol for MTC communication in 5G wireless networks. The BSPGH protocol aims to reduce the authentication time when multiple MTCDs undergo frequent handovers between gNBs by adopting group handover authentication. The proposed BSPGH scheme requires no modification to the existing 5G network architecture specified by the 3GPP standard, making it easy to deploy. By formal verification using Scyther Tool and BAN-logic, we have analyzed the protocol’s security properties, demonstrating that it can provide perfect forward secrecy and resist impersonation attacks, DoS/DDoS attacks, and some other attacks. It also ensures the anonymity of the MTCDs. Moreover, the performance analysis has shown that the BSPGH scheme can meet the requirements of various application scenarios to confirm its efficiency.

Author Contributions

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

Funding

The work of this paper was funded by the National Natural Science Foundation of China (No. 62171387), and the China Postdoctoral Science Foundation (No. 2019M663475).

Institutional Review Board Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Yan, X.; Ma, M. A privacy-preserving handover authentication protocol for a group of MTC devices in 5G networks. Comput. Secur. 2022, 116, 102601. [Google Scholar] [CrossRef] [Scilit]
  2. Shariatmadari, H.; Ratasuk, R.; Iraji, S.; Laya, A.; Taleb, T.; Jäntti, R.; Ghosh, A. Machine-type communications: Current status and future perspectives toward 5G systems. IEEE Commun. Mag. 2015, 53, 10–17. [Google Scholar] [CrossRef] [Scilit]
  3. Ahmad, I.; Shahabuddin, S.; Kumar, T.; Okwuibe, J.; Gurtov, A.; Ylianttila, M. Security for 5G and beyond. IEEE Commun. Surv. Tutor. 2019, 21, 3682–3722. [Google Scholar] [CrossRef] [Scilit]
  4. Sharma, A.; Jain, A.; Sharma, I. Exposing the security weaknesses of fifth generation handover communication. In Proceedings of the 2019 10th International Conference on Computing, Communication and Networking Technologies (ICCCNT), Kanpur, India, 6–8 July 2019; pp. 1–6. [Google Scholar]
  5. Gupta, S.; Parne, B.L.; Chaudhari, N.S. SRGH: A secure and robust group-based handover AKA protocol for MTC in LTE-A networks. Int. J. Commun. Syst. 2019, 32, e3934. [Google Scholar] [CrossRef] [Scilit]
  6. Basudan, S. LEGA: A lightweight and efficient group authentication protocol for massive machine type communication in 5G networks. J. Commun. Inf. Netw. 2020, 5, 457–466. [Google Scholar] [CrossRef] [Scilit]
  7. Lai, C.; Ma, Y.; Lu, R.; Zhang, Y.; Zheng, D. A novel authentication scheme supporting multiple user access for 5G and beyond. IEEE Trans. Dependable Secur. Comput. 2022, 20, 2970–2987. [Google Scholar] [CrossRef] [Scilit]
  8. Aydin, Y.; Kurt, G.K.; Ozdemir, E.; Yanikomeroglu, H. A flexible and lightweight group authentication scheme. IEEE Internet Things J. 2020, 7, 10277–10287. [Google Scholar] [CrossRef] [Scilit]
  9. Dwivedi, S.K.; Amin, R.; Vollala, S.; Khan, M.K. B-HAS: Blockchain-Assisted Efficient Handover Authentication and Secure Communication Protocol in VANETs. IEEE Trans. Netw. Sci. Eng. 2023, 10, 3491–3504. [Google Scholar] [CrossRef] [Scilit]
  10. Soni, M.; Singh, D.K. Blockchain-based group authentication scheme for 6G communication network. Phys. Commun. 2023, 57, 102005. [Google Scholar] [CrossRef] [Scilit]
  11. Cai, J.; Tao, X.; Wang, C. Cooperative Authentication Scheme for Heterogeneous Networks Based on Identity Group Signature and Blockchain. IEEE Trans. Veh. Technol. 2023, 73, 1394–1399. [Google Scholar] [CrossRef] [Scilit]
  12. Son, S.; Lee, J.; Park, Y.; Park, Y.; Das, A.K. Design of blockchain-based lightweight V2I handover authentication protocol for VANET. IEEE Trans. Netw. Sci. Eng. 2022, 9, 1346–1358. [Google Scholar] [CrossRef] [Scilit]
  13. Shawky, M.A.; Jabbar, A.; Usman, M.; Imran, M.; Abbasi, Q.H.; Ansari, S.; Taha, A. Efficient blockchain-based group key distribution for secure authentication in VANETs. IEEE Netw. Lett. 2023, 5, 64–68. [Google Scholar] [CrossRef] [Scilit]
  14. Ma, R.; Cao, J.; Feng, D.; Li, H.; He, S. FTGPHA: Fixed-trajectory group pre-handover authentication mechanism for mobile relays in 5G high-speed rail networks. IEEE Trans. Veh. Technol. 2019, 69, 2126–2140. [Google Scholar] [CrossRef] [Scilit]
  15. Yang, Y.; Cao, J.; Ma, R.; Cheng, L.; Chen, L.; Niu, B.; Li, H. FHAP: Fast Handover Authentication Protocol for High-Speed Mobile Terminals in 5G Satellite-Terrestrial Integrated Networks. IEEE Internet Things J. 2023, 10, 13956–13973. [Google Scholar] [CrossRef] [Scilit]
  16. Aydin, Y.; Kurt, G.K.; Ozdemir, E.; Yanikomeroglu, H. Group handover for drone base stations. IEEE Internet Things J. 2021, 8, 13876–13887. [Google Scholar] [CrossRef] [Scilit]
  17. Alnashwan, R.; Gope, P.; Dowling, B. Privacy-aware secure region-based handover for small cell networks in 5G-enabled mobile communication. IEEE Trans. Inf. Forensics Secur. 2023, 18, 1898–1913. [Google Scholar] [CrossRef] [Scilit]
  18. Li, X.; Yin, X.; Ning, J. RelCLAS: A Reliable Malicious KGC-Resistant Certificateless Aggregate Signature Protocol for Vehicular Ad Hoc Networks. IEEE Internet Things J. 2023, 10, 21100–21114. [Google Scholar] [CrossRef] [Scilit]
  19. Chaer, A.; Salah, K.; Lima, C.; Ray, P.P.; Sheltami, T. Blockchain for 5G: Opportunities and challenges. In Proceedings of the 2019 IEEE Globecom Workshops (GC Wkshps), Waikoloa, HI, USA, 9–13 December 2019; pp. 1–6. [Google Scholar]
  20. Secp256k1: A Key Algorithm in Cryptocurrencies. August 2023. Available online: https://www.nervos.org/knowledge-base/secp256k1_a_key%20algorithm_(explainCKBot) (accessed on 30 March 2024).
  21. 3GPP TS 23.501 Release 16. 2020. Available online: https://www.3gpp.org/specifications-technologies/releases/release-16 (accessed on 30 March 2024).
  22. Ge, X.; Tu, S.; Mao, G.; Wang, C.-X.; Han, T. 5G ultra-dense cellular networks. IEEE Wirel. Commun. 2016, 23, 72–79. [Google Scholar] [CrossRef] [Scilit]
  23. Dolev, D.; Yao, A. On the security of public key protocols. IEEE Trans. Inf. Theory 1983, 29, 198–208. [Google Scholar] [CrossRef] [Scilit]
  24. Lee, H.; Kim, D.; Chung, B.; Yoon, H. Adaptive hysteresis using mobility correlation for fast handover. IEEE Commun. Lett. 2008, 12, 152–154. [Google Scholar]
  25. Burrows, M.; Abadi, M.; Needham, R. A logic of authentication. ACM Trans. Comput. Syst. (TOCS) 1990, 8, 18–36. [Google Scholar] [CrossRef] [Scilit]
  26. Cremers, C.J.F. Scyther: Semantics and Verification of Security Protocols. 2006. Available online: https://www.semanticscholar.org/paper/Scyther-%3A-semantics-and-verification-of-security-Cremers/4abeecda63a90f2c39554843c8189a6cd8c4eea5 (accessed on 30 March 2024).
  27. Chow, M.C.; Ma, M. A secure blockchain-based authentication and key agreement scheme for 3GPP 5G networks. Sensors 2022, 22, 4525. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  28. Barker, E. Recommendation for Key Management Part 1: General; NIST Special Publication 800-57 Part 1 Revision 4; National Institute of Standards and Technology (NIST): Gaithersburg, MD, USA, 2016; Volume 57, pp. 1–142. [Google Scholar]
  29. 3GPP TS 22.261 Release 16. April 2021. Available online: https://www.etsi.org/deliver/etsi_ts/122200_122299/122261/16.14.00_60/ts_122261v161400p.pdf (accessed on 30 March 2024).
  30. Potlapally, N.R.; Ravi, S.; Raghunathan, A.; Jha, N.K. A study of the energy consumption characteristics of cryptographic algorithms and security protocols. IEEE Trans. Mob. Comput. 2005, 5, 128–143. [Google Scholar] [CrossRef] [Scilit]
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.