Next Article in Journal
Space–Time–Frequency Multi-Sensor Analysis for Motor Cortex Localization Using Magnetoencephalography
Previous Article in Journal
Gaussian Mixture Models for Control of Quasi-Passive Spinal Exoskeletons
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

S6AE: Securing 6LoWPAN Using Authenticated Encryption Scheme

1
Telecommunications and Networking (TeleCoN) Research Lab, GIK Institute of Engineering Sciences and Technology, Topi 23640, Pakistan
2
Faculty of Computer Science and Engineering, GIK Institute of Engineering Sciences and Technology, Topi 23640, Pakistan
3
Faculty of Electrical Engineering, GIK Institute of Engineering Sciences and Technology, Topi 23640, Pakistan
4
Faculty of Information Technology, Beijing University of Technology, Beijing 100124, China
5
Department of Electrical Engineering, City University of Science and Information Technology, Peshawar 25000, Pakistan
6
School of Electrical Engineering, University of Ulsan, Ulsan 44610, Korea
*
Author to whom correspondence should be addressed.
Sensors 2020, 20(9), 2707; https://doi.org/10.3390/s20092707
Submission received: 29 March 2020 / Revised: 1 May 2020 / Accepted: 7 May 2020 / Published: 9 May 2020
(This article belongs to the Section Sensor Networks)

Abstract

:
IPv6 over Low Power Wireless Personal Area Networks (6LoWPAN) has an ample share in the Internet of Things. Sensor nodes in 6LoWPAN collect vital information from the environment and transmit to a central server through the public Internet. Therefore, it is inevitable to secure communications and allow legitimate sensor nodes to access network resources. This paper presents a lightweight Authentication and Key Exchange (AKE) scheme for 6LoWPAN using an authenticated encryption algorithm and hash function. Upon successful authentication, sensor nodes and the central server can establish the secret key for secure communications. The proposed scheme ensures header verification during the AKE process without using IP security protocol and, thus, has low communication and computational overheads. The logical correctness of the proposed scheme is validated through Burrows–Abadi–Needham logic. Furthermore, automatic security analyses by using AVISPA illustrate that the proposed scheme is resistant to various malicious attacks in 6LoWPANs.

1. Introduction

Low Power Wireless Personal Area Networks (LoWPANs) are an essential part of the Internet of Things (IoT) and are composed of resource-constrained devices tractable with the IEEE 802.15.4 standard. LoWPAN is a promising technology [1,2] having potential applications in smart grids, home automation, e-health-care, battlefield, and security surveillance. Such networks are constricted in storage capacity, transmission range, computational capabilities, power resources, and data rate. To provide Internet connectivity to LoWPAN devices, IPv6 is considered to be the most accordant solution [3,4]. However, IPv6 is a resource-intensive protocol originally designed for desktop and server environments and has a maximum frame size of 1280 bytes, whereas the maximum physical layer frame size for IEEE 802.15.4 is 127 bytes [5,6].
To make IPv6 frame size tractable with the IEEE 802.15.4 physical layer, the Internet engineering task force has standardized an IPv6 over LoWPAN (6LoWPAN) adaption layer [7]. This layer provides IPv6 packet fragmentation, encapsulation, reassembly, and header compression mechanisms [5,8]. In addition, 6LoWPAN renders the functionality for seamless transmission of IPv6 packets across networks and provides a mechanism for stateless addressing.
Sensor nodes deployed in a 6LoWPAN network are used to accumulate vital information from surrounding environments and transmit the collected information to a central location. Thus, for a streamlined operation of 6LoWPANs, confidentiality and integrity of the transmitted information must be ensured [9,10]. However, the original 6LoWPAN design does not include security and privacy features. The following subsection reviews eminent proposals for securing 6LoWPANs.

1.1. Related Work

Cryptographic encryption techniques and message validation mechanisms are applied for securing communications in 6LoWPANs. For this purpose, an Authentication and Key Exchange (AKE) scheme is essential before applying the cryptographic algorithms. An AKE scheme ensures the legitimacy of sensor nodes deployed in 6LoWPANs and also establishes a secret session key to protect communications between sensor nodes and the server from an attacker [11].
The authors in [12] propose a lightweight IP Security (IPsec) based scheme for 6LoWPANs to achieve secure end-to-end communication. The scheme introduces a pre-shared key concept for AKE, but it does not provide any information about the session initialization and secure mobility. In [13], the authors present a scheme, called scalable security with symmetric keys, to achieve secure communication among end-devices in IoT. However, the scheme is not feasible for large 6LoWPANs because of its higher computational overhead and complex key management process. The authors in [14] propose a Secure Password Authentication Mechanism (SPAM), which supports a secure handover process in the proxy mobile IPv6 networks. However, the main drawback of the SPAM mechanism is the higher transmission delay incurred as a result of the re-authentication process. In [15], the authors propose a mechanism that renders security for wireless sensor networks by deriving the key from a pre-distributed master key. However, the scheme is computationally expensive for resource-constrained devices. The authors in [16] propose a Secure Authentication and Key Establishment Scheme (SAKES), which is based on public-key cryptography, but it is computationally expensive for resource constricted devices. Additionally, SAKES does not provide secure mobility and is vulnerable to the node compromised attack. To reduce the computational burden on sensor nodes, SAKES performs most of the computation at gateway nodes and sends the computed key to sensor nodes in the 6LoWPAN environment. Therefore, to perform the handover, it is necessary for sensor nodes to start the new key establishment process. Furthermore, SAKES assumes all sensor nodes in the 6LoWPAN environment to be static. The authors in [17] propose an Efficient Authentication Key Exchange for 6LoWPAN (EAKES6Lo) based on the Elliptic Curve Cryptography (ECC) and Advance Encryption Standard Counter Mode (AES-CTR-128). EAKES6Lo ensures secure session key establishment and provides mutual authentication between sensor nodes and the server. However, EAKES6Lo is computationally expensive and does not provide privacy. In [18], the authors propose a Lightweight Authentication Protocol (LAUP), which is based on the symmetric key cryptosystem while using the pre-shared key mechanism. LAUP is time efficient and consumes low power during the AKE process. However, the scheme does not provide effective measures for secure mobility.
The authors in [19] propose a communication security and privacy support based on the public key cryptography and pre-shared key mechanism to achieve secure communication in 6LoWPANs. The authors in [20] propose a 6LowPSec security protocol that provides end-to-end security among 6LoWPAN nodes using the existing hardware security mechanism specified by IEEE 802.15.4 Media Access Control (MAC) sub-layer. However, their proposed security protocol does not provide mobility support and header verification.

1.2. Contribution and Paper Organization

This paper proposes a lightweight AKE scheme, called Securing 6LoWPAN using Authenticated Encryption Scheme (S6AE), which provides mutual authentication between the server and sensor nodes and also ensures header verification during the authentication process without employing the IPSec protocol. S6AE employs the well-known ASCON algorithm for authenticated encryption in 6LoWPANs. To the best of our knowledge, ASCON has never been employed in the literature for securing 6LoWPANs. Additionally, S6AE employs SHA-256 hash function and bit-wise XOR operations to achieve AKE in 6LoWPANs. SHA-256 is used to generate unique output strings by using the S6AE secret parameters. To decrease the communication overhead by means of reducing the message size, the length of the SHA-256 output string must be reduced to 64-bits with minimum computational cost and without compromising performance. For this purpose, we use bit-wise XOR operations. The key contributions of this paper are listed below.
  • The proposed scheme provides end-to-end security, mobility support, and header integrity.
  • Informal security analysis and formal validations using Burrows–Abadi–Needham (BAN) logic and Automated Validation of Internet Security Protocols and Applications (AVISPA) illustrate that S6AE secures 6LoWPANs against various malicious attacks.
  • Comparative analysis with eminent existing schemes demonstrates that S6AE is more efficient and provides better security features with less computational and communication overheads, memory utilization, and energy consumption.
The remainder of the paper is organized as follows. System models and preliminaries are discussed in Section 2. Section 3 details the proposed S6AE scheme, and Section 4 provides security analysis of S6AE scheme. Performance evaluation is presented in Section 5. Finally, the paper is concluded in Section 6.

2. System Models

This section presents the models and preliminaries used in the proposed scheme.

2.1. Network Model and Security Assumptions

This paper considers the network model shown in Figure 1 for the authentication process. The 6LoWPAN network model consists of sensor nodes ( S N s), domain router 6LDR, the access router (6LAR), and the central server ( C S ). S N s are used to accumulate information from the surrounding environment and transfer the collected data to C S for further processing. Moreover, 6LDR provides Internet connectivity by S N s in a domain. 6LAR provides inter-connectivity with C S in IPv6 cloud. It is assumed that the communications among 6LAR, 6LDR, and C S are secure. Besides, it is assumed that C S is reachable by S N s, 6LDR, and 6LAR. 6LDR registers itself with C S through a secure channel. Additionally, S N s and 6LDR exchange their pseudo-identities (SIDs) through neighbor discovery (ND) protocol. Furthermore, each 6LDR registers itself with 6LAR. All the devices in 6LoWPAN learn about the global routing prefix of C S through 6LAR. Moreover, each S N generates an IPv6 address using an IEEE extended unique identifier mechanism or by using the personal area network identity [21].

2.2. Threat Model

The Dolev-Yao (DY) model [22] is the threat model used in S6AE. According to the DY model, an intruder can intercept and record the messages exchanged between two communicating entities in 6LoWPAN. Communications among the entities in 6LoWPAN are public in nature. If an adversary has the knowledge about the private key, it can encrypt and decrypt messages and perform unlawful activities, such as modifying or forging the captured messages. The communicating entities, such as S N s and 6LDRs, are considered to be untrusted under the DY model. An adversary can capture an S N due to its hostile environment and can extract the sensitive information stored its memory by employing the power analysis attack. However, C S is a central and vital component in the 6LoWPAN environment, and it cannot be compromised by an adversary.

2.3. Preliminaries

2.3.1. Hash Function

A hash function can take a variable size input string, and return the output with a fixed size string. Each hash function must obey the following properties.
  • The output of the hash function with two different inputs, n and m, can never be the same, i.e., H ( n ) H ( m ) .
  • It is not possible to compute the input, z, from the output of a hash function, H ( z ) , i.e., ( H ( z ) ) 1 z .

2.3.2. ASCON

ASCON is an authenticated encryption with associated data scheme [23] that works on the design principle of duplex sponge architecture. Moreover, ASCON is a symmetric, inverse free, single pass, and online block cipher. Broadly speaking, there are two versions of ASCON: (i) ASCON-128 that takes 64 bits data block and generates 64 bits ciphertext along with 128 bits of authentication t a g , and (ii) ASCON-128a that takes 128 bits data block and generates 128 bits of ciphertext along with 128 bits of authentication t a g . The architecture of ASCON is given in Figure 2, which works under the following four stages [23]. Initialization: In this stage, ASCON computes the initial input to ASCON state by combining the Initialization Vector (IV), nonce, and key. The size of ASCON state is 320 bits. Associated Data (AD) Processing: This stage processes AD that represents the data block to be transmitted in an un-encrypted form, while at the same time ensuring the integrity of the transmitted data block. Plaintext Processing: In this stage, ASCON takes plaintext as an input and generates the ciphertext as output. Finalization: In the final stage, ASCON generates the authentication t a g , which ensures the integrity and authenticity of the ciphertext and AD. Furthermore, the substitution and permutation network of ASCON comprises 5-bit S-Box, bit-wise XOR, and rotation operations. Thus, ASCON is suitable for resource-constrained devices, such as embedded systems and radio frequency identifier tags, because of its lightweight property and minimal overheads [24,25,26]. For securing 6LoWPANs, the proposed S6AE scheme in this paper borrows the standard ASCON encryption design, which provides confidentiality and authenticity of data simultaneously. Additionally, S6AE employs SHA-256 hash function, and bit-wise XOR operations to achieve AKE in 6LoWPANs.

3. The Proposed S6AE Scheme

S6AE verifies the legitimacy of S N s at the C S , and validates the integrity and authenticity of messages exchanged between S N s and the C S in 6LoWPANs. In S6AE, after verifying the authenticity of S N s, C S and S N s establish secret keys using ASCON as the encryption scheme. SHA-256 is used to generate unique output strings by using the S6AE secret parameters, and bit-wise XOR operations are used to reduce the computational and storage costs. S6AE consists of the registration phase, the AKE phase, and the handover phase. It is necessary for a static or mobile S N to execute the first two phases, whereas only a mobile S N requires to execute the handover phase. The notations used in this paper are listed in Table 1.

3.1. Sensor Registration Phase

This phase deals with the registration of S N before its deployment in 6LoWPAN. C S performs the following operations to register S N s. It
  • calculates the master key K m by computing K m = H ( I D c s r c s ) , where I D c s is the real identity of C S and r c s is a random number. C S divides K m into four equal chunks of 64 bits, namely K m 1 , K m 2 , K m 3 , and K m 4 , and computes K c s = K m 1 K m 2 K m 3 K m 4 , where K c s is a temporary key for C S .
  • assigns a unique I D s n of 64 bits for S N .
  • picks a key K s n of 64 bits for S N and computes the pseudo-identity S I D s n = I D s n K s n K c s .
  • computes H r = H ( K m K s n I D s n ) and derives security parameter S P 1 by computing S P 1 = H r 1 H r 2 H r 3 H r 4 , where H r 1 , H r 2 , H r 3 , and H r 4 are four equal chunks of 64 bit H r .
Finally, C S stores S N related secret information, i.e., { I D s n , S P 1 , K s n , K c s , M A C s n } into its database and { I D s n , S P 1 , S I D s n , K s n , M A C c s } in the memory of S N while making use of a secure channel. C S also stores S I D s n into 6LDR memory through a secure channel.

3.2. Sponge State Generation

The initialization phase S k of ASCON consists of 320 bits, known as initialization states S k . In the proposed scheme, S k can be derived as follows. S N
  • generates a random number R 1 of 64 bits and time stamp T s n of 32 bits,
  • computes I V s n = R 1 S I D s n , where I V s n is an initialization vector for S N ,
  • computes H s = H ( I D s n S I D s n S I D l d r T s n ) and derives S k = I V s n H s 24 , where H s 24 is the first 24 bytes of H s . The size of S k is 320 bits ( H s 24 = 24 bytes + I V s n = 16 bytes), which is served as input to the encryption algorithm during the initialization phase.

3.3. Associative Data Generation

The proposed S6AE scheme generates AD while incorporating the compressed IPv6 and User Datagram Protocol (UDP) headers [8,21]. The header size is 10 bytes after compression. The subsequent Immutable Fields (IF) are used to generate AD. This includes parameters such as dispatch, internet protocol header compression, context identifier, next header compression, destination interface identifier, UDP Ports, UDP Checksum, Global routing prefix of 6LoWPAN (G6), and Global routing prefix of C S (GC). C S stores the MAC of S N and S N stores the MAC of C S . Moreover, the hop limit parameter is mutable, which is not incorporated in AD generation. The following operations are performed to generate AD.
  • S N computes H a d = H ( I F s n G 6 G C M A C s n ) . It then divides H a d into two equal parts, i.e., H a d 1 and H a d 2 each of 128 bits.
  • S N computes A D = H a d 1 H a d 2 and divides A D into two equal parts, i.e., A D 1 and A D 2 , each of 64 bits.
  • The encryption algorithm takes A D 1 and A D 2 as the inputs at the associative data processing phase to preserve their integrity.
Remark 1.
During the registration process of S N , C S stores the credential information in S N ’s memory. Based on this secret, S6AE computes S k , which is the initialization phase of the encryption algorithm as discussed in Section 3.2. The unencrypted information, such as IPv6/UDP information, is used for the associative data processing phase of the encryption algorithm, which is described in Section 3.3. The same process is repeated at the receiver side for decryption.

3.4. Authentication and Key Exchange

In this phase, S N achieves the anonymous authentication and key agreement with C S via the intermediate nodes, 6LDR and 6LAR. After establishing a secret key, S N and C S can exchange data securely. S6AE exchanges four messages to accomplish the authentication process. The detail of the messages exchanged in the proposed scheme is given below.

3.4.1. Step AKE-1

S N generates a random number R s 1 of 64 bits and timestamp T s n of 32 bits for computing X = I D s n R s 1 S P 1 , and Y = I D s n R s 1 , where the sizes of X and Y are 64 bits. The encryption algorithm takes S k as shared secret inputs during the initialization phase, A D 1 , A D 2 at the associative data processing phase, which is computed in Section 3.3, X Y at the plaintext processing phase, and produces ciphertext C 1 = E S k { A D 1 , A D 2 , X Y } and T a g s n that is generated automatically by ASCON. C 1 ensures the confidentiality of the plaintext X Y . The generated T a g s n guarantees the authenticity and integrity of the ciphertext C 1 at the receiving end. T a g s n provides the same functionality as Message Authentication Code (MAC). S N also computes Z = S I D s n S I D l d r , where S I D l d r is the temporary identity of 6LDR. After performing the above operations, S N constructs a message M1: T s n Z C 1 T a g s n R 1 and forwards it to 6LDR to be processed further.
Remark 2.
There are various encryption algorithms, such as the Advanced Encryption Standard (AES), which provides confidentiality features. However, AES does not provide authentication of data. To achieve the required authentication, another algorithm is required, such as the MAC algorithm. Thus, all authenticated encryption schemes can be used to achieve confidentiality and authenticity of the communicated message because these schemes generate ciphertext as well as authentication t a g . The authentication t a g renders the same functionality as that of the MAC algorithm. This implies that an authenticated encryption scheme provides the same functionality as that of the cumulative AES and MAC functionality. An AKE scheme, which is based on AES, requires another cryptographic algorithm to achieve the authenticity of messages.
The main idea here is to use ASCON to achieve the cumulative functionality of AES + MAC by using a single algorithm (i.e., ASCON), which generates its own MAC to be validated at the destination. To check the integrity of transmitted messages, we do not to employ any other MAC. In this way, we are able to reduce the computational cost, as shall be demonstrated in the performance evaluation section.

3.4.2. Step AKE-2

After receiving M1 from S N , 6LDR picks out Z from the received message and computes S I D r = Z S I D s n . 6LDR compares S I D r with the stored S I D l d r in its memory. If the contents of both the S I D r and S I D l d r are the same, 6LDR appends its S I D l d r with the received M1 for generating and forwarding the new message M2: S I D l d r M 1 to 6LAR. Contrarily, 6LDR aborts the AKE process and sends an error message back to S N .

3.4.3. Step AKE-3

6LAR receives the newly generated M2 from 6LDR and checks S I D l d r in the current list of the registered devices. If 6LAR does not find S I D l d r in the list, it will abort the AKE process and add unverified S I D l d r in the blacklist. On the contrary, upon successful verification of the S I D l d r for M2, 6LAR picks a timestamp T l a r and computes H l a r = H ( M 2 S I D l a r T l a r K l a r ) , where K l a r is the pre-shared key between 6LAR and C S , and S I D l a r is the temporary identity of 6LAR. 6LAR then generates and forwards message M3: S I D l a r T l a r M 2 H l a r to C S for further processing.

3.4.4. Step AKE-4

Upon receiving M3 from 6LAR, C S retrieves secret information related to 6LAR, such as a K l a r using S I D l a r . C S also checks the validity of T l a r by verifying if M3 is received within the maximum transmission delay ( T d ) limit by computing T d T r T l a r , where T r is the received timestamp of M3. To verify the integrity of M3, C S computes H l a r = H ( M 2 S I D l a r T l a r K l a r ) . If the computed H l a r and the received H l a r are not identical, C S aborts the AKE process and adds 6LAR to the current list of fake devices. After checking the integrity of M3, C S retrieves M2 from M3, and checks if the condition T d T r T s n holds. If the condition does not hold, then C S rejects M2. Moreover, C S also checks whether a valid S I D l d r exists in the current list of 6LDR devices. On successful verification of S I D l d r , C S picks Z from M2, derives S I D s n by computing S I D l d r Z , and checks if S I D s n exits in its database. After the verification of the S I D s n , C S retrieves the information stored in its database, such as I D s n , K c s , K s n , and S P 1 .

3.4.5. Step AKE-5

C S generates I V c s by concatenating R 1 with S I D s n , which are attached with the received M2. C S also computes H s = H ( I D s n S I D s n S I D l d r T s n ) to derive S k . It is important to mention here that 320 bits of S k is the concatenation of I V c s and H s 24 , i.e., S k = I V c s H s 24 , where H s 24 are the first 24 bytes of the H s (which is of 32 byte. The size of S k is 40 bytes. Moreover, C S determines AD by using the received header information and the stored M A C s n in C S ’s database by computing H a d = H ( I F s n G 6 G C M A C s n ) , A D x = H a d 1 H a d 2 and divides A D x into two parts, i.e., A D 1 and A D 2 . AD is the input to the encryption algorithm and its purpose is to ensure the integrity of header information. The detailed process of computing AD is given in the Section 3.3. In addition, C S performs the decryption operation D s k { A D 1 , A D 2 , C 1 } , where S s k is the input at the initialization phase, A D 1 and A D 2 are the inputs at associative data processing phase, and C 1 is the input at the ciphertext processing phase, as shown in Figure 2. Moreover, the decryption algorithm generates T a g g before extracting the plaintext information. ASCON generates the authentication tag automatically after processing AD and ciphertext. Then C S checks the condition T a g s n = T a g g , where T a g s n is received with M 1 . An inverse free authenticated encryption scheme generates the same authentication t a g during the encryption and decryption process, if there is no modification in AD and ciphertext. However, if there is any modification in the communicated message, the generated authentication t a g will be different, which causes the failure of authentication process in the proposed AKE. If the condition holds, decryption process will reveal the plaintext information. Otherwise, C S will abort the AKE process. The revealed plaintext, after the decryption of C 1 , includes X and Y. C S picks the retrieved I D s n and performs I D s n Y operation to determine R s 1 for computing S P 1 = I D s n R s 1 X . Furthermore, in order to check the legitimacy of S N , C S checks the condition S P 1 = S P 1 . If the condition holds, C S registers S N as a legitimate device, otherwise, C S will abort the AKE process.

3.4.6. Step AKE-6

After verifying the legitimacy of S N , C S picks timestamps T s of 32 bits. C S picks three random numbers R s 2 , R 2 , and R n each of 64 bits. C S then computes H r = H ( K c s R n I D s n ) and calculates a new security parameter S P 1 n by computing S P 1 n = H r 1 H r 2 H r 3 H r 4 , where H r 1 H r 2 H r 3 H r 4 are four equal chunks of H r each of 64 bits. C S calculates Y 1 = R n K c s , X 1 = Y 1 R s 1 , and I V c s = R 2 X 1 , where I V c s is the initialization vector at C S and R 2 is the random number of 64 bits. To generate S k , C S computes H s = H ( I D s n R s 1 T s T e x p Y 1 ) , where the size of H s is 256 bits and calculates S k = H s 24 I V c s , where H s 24 are the first 24 bytes of H s . Next, C S calculates AD by computing H a d = H ( I F c s G 6 G C M A C c s ) , A D x 1 = H a d 1 H a d 2 and divides A D x 1 into two parts, i.e., A D 1 and A D 2 . For secure communication in future, C S computes a session key K s e by calculating K s e = H ( I D s n Y 1 S P 1 n R s 1 R s 2 ) . Moreover, for secure handover from one domain to another domain as shown in Figure 1, C S calculates a unique ticket T i c s n for S N by computing T i c s n = I D s n R s 2 R s 1 Y 1 S P 1 n ) . S N will make use of the generated T i c s n during the handover process. C S also picks T i c s n ’s expiry time T e x p (32 bits). In addition, the encryption algorithm takes into account S k during the initialization phase, A D 1 and A D 2 during the associative data processing phase, and S P 1 n R s 2 during the plaintext information processing phase, in order to generate C 2 = E S k { A D 1 , A D 2 , S P 1 n R s 2 } and T a g c s . Moreover, C S constructs the message M4: T c s T e x p X 1 C 2 T a g c s R 2 , and forwards it to 6LAR. 6LAR and 6LDR simply relay M4 to S N . Furthermore, C S stores the parameters { I D s n , S P 1 , S P 1 n , K c s , T i c s n , T e x p } in its memory.

3.4.7. Step AKE-7

After receiving M4, S N checks the validity of timestamp T s by checking the condition T d T r T s n , where T d is the maximum allowed time TD and T r is the period in which M4 is received. Significantly, S N will reject M4 if T s exceeds the maximum allowed delay. S N picks R 2 , X 1 from the received M4 and calculates I V s n = R 2 X 1 . S N also computes Y 1 = R s 1 X 1 , H s = H ( I D s n R s 1 T s Y 1 ) and S k = H s 24 I V s n , where H s 24 is the first 24 bytes of H s . Next, S N calculates AD by computing H a d = H ( I F c s G 6 G C M A C c s ) , A D x 2 = H a d 1 H a d 2 and divides A D x 2 into two parts, i.e., A D 1 and A D 2 . The decryption algorithm takes S k as the input during the initialization phase, A D 1 and A D 2 during the associative data processing phase, C 2 during the ciphertext processing phase, and performs the decryption operation D S k { A D 1 , A D 2 , C 2 } , to generate T a g s n . In the final step, S N checks the condition T a g c s = T a g s n . If the condition holds then decryption algorithm will reveal the plaintext information, i.e., S P 1 n R s 2 〉. Additionally, S N computes the session key K s e by computing K s e = H ( I D s n Y 1 S P 1 n R s 1 R s 2 ) to secure future communications with C S . In addition, S N calculates a unique ticket T i c s n = I D s n R s 2 R s 1 Y 1 S P 1 n ) , which will be used during the handover process. Finally, S N stores the parameters { I D s n , S P 1 n , S I D s n , K s n , T i c s n , T e x p } in its memory. The AKE phase of the proposed scheme is summarized in Figure 3.

3.5. Handover Phase

In the proposed scheme, a sensor node can move from network Domain-1 to another Domain-2, as shown in Figure 1. Hence, it is essential to verify the authenticity of a roaming S N with minimal overhead complexity. Importantly, S N utilizes the ticket T i c s n , generated during the AKE phase, to accomplish fast authentication. More specifically, S N performs the following operations during the handover process.

3.5.1. Step HP-1

When an S N moves from the communication range of 6LDR1 in Domain-1 to the communication range of 6LDR2 in Domain-2, S N sends a handover request to 6LDR2. S N checks T e x p of T i c s n , which is stored in S N s memory. If T i c s n is not expired then S N picks the timestamp T h and computes H h = H ( T i c s n T h S I D s n ) . S N then constructs a message M h 1 : S I D s n T h T i c s n H h and forwards M h 1 to 6LDR2. 6LDR2 checks if T h is fresh or not. To check integrity of M h 1 , 6LDR2 computes H h 2 = H ( T i c s n T h S I D s n ) and checks the condition H h 2 = H h . If the condition holds, 6LDR2 stores S I D s n in its memory and forwards M h 1 to C S . Contrarily, C S aborts the handover process and adds S I D s n into blacklist in its database. After receiving M h 1 , C S computes H h 3 = H ( T i c s n T h S I D s n ) and checks the condition H h 3 = H h . If the condition holds, C S checks if S I D s n exists in its database and verifies the condition T i c s n = T i c s n . If the condition holds, C S continues the handover process, otherwise C S marks I D s n as a compromised node and broadcasts I D s n in the network. C S also sends a message to 6LDR1 to delete S I D s n from its memory. 6LDR1 sends an acknowledgment to C S . T i c s n is the stored ticket at S N and C S .

3.5.2. Step HP-2

C S picks two random numbers R n , R 1 each of 64 bits, and timestamps T e x p n and T h 1 each of 32 bits. It also computes S k h = ( K e s R h I D s n ) and P = R n S P 1 n , where the size S P 1 n is 64 bits. C S calculates C h = E S k h ( P T e x p n T h 1 ) and T a g c s by using the encryption algorithm. The T a g c s ensures the authenticity of the transmitted information. It also computes the new session key as K s e n = H ( I D s n R n K s e ) . C S constructs a message M h 2 : S I D s n C h T a g c s and forwards M h 2 to 6LDR2. Upon receiving M h 2 , 6LDR2 looks up S I D s n in 6LDR2’s memory. If S I D s n exists in the memory of 6LDR2, 6LDR2 forwards M h 2 to S N .

3.5.3. Step HP-3

After receiving the message M h 1 from C S , S N performs the decryption using D S k h { C h } , where S k h = ( K e s R h I D s n ) . The decryption process reveals the plaintext, which is ( P T e x p n T h 1 ) and also it generates the T a g s n . S N checks the condition T d T r T h . If the condition holds then S N considers M h 1 valid, otherwise it rejects M h 1 . T e x p n indicates new expiry time of the T i c s n . S N checks the condition T a g s n = T a g c s . If the condition holds, then S N computes R n = S P 1 n P and S P 1 n = P R n . Authentication will be successful if the stored S P 1 n and the computed S P 1 n are the same. S N generates a symmetric key between S N and C S by computing K s e n = H ( I D s n R n K s e ) . Finally, S N replaces the stored session key K s e with the new session key K s e n in the memory and updates the expiry time T e x p n in the tuple { I D s n , S P 1 n , S I D s n , K s e n , T i c s n , T e x p n }. Figure 4 shows the message exchange during the handover phase.

4. Security Analysis

This section analyzes the security properties of our proposed S6AE scheme in three different phases. In the first phase, the characteristics and capabilities of the S6AE scheme against malicious attacks are described. In the second phase, BAN logic is incorporated to show the logical correctness of the S6AE scheme. In the final phase, AVISPA tool is used for automatically verifying the security properties of the proposed strategy.

4.1. Informal Security Analysis

4.1.1. Header Verification

Header Verification (HV) is an effective mechanism to mitigate the replay and Denial-of-Service (DoS) attacks. In the proposed scheme, to provide IPv6/UDP header verification, S N computes H a d = H ( I F G 6 G C M A C s n ) , A D = H a d 1 H a d 2 , where H a d 1 and H a d 2 are the two equal chunks each of 128 bits of H a d . S N divides A D into two equal parts, i.e., A D 1 and A D 2 each of 64 bits, which are the inputs at the associative data processing phase of the encryption algorithm. After receiving the message M1, C S computes A D 1 , A D 2 and the decryption algorithm takes A D 1 , A D 2 at the associative data processing phase. If there is no modification in the IPv6/UDP header, then the condition T a g s n = T a g g will hold. This condition will not hold if an adversary modifies the IPv6/UDP header during the AKE process. The same procedure holds for the message transmitted from C S to S N . In this way, the proposed scheme ensures IPv6/UDP header integrity (origin verification).
Remark 3.
In this paper, HV means verification of the IPv6 header at the receiving end. We achieve HV by generating AD through the Hash function SHA-256, as discussed in Section 3.3. If A tries to modify the the IPv6 header, the generated authentication t a g will not match the authentication t a g attached with the received message.

4.1.2. DoS Attack

By a DoS attack, an attacker can perform malicious activities and prevent a legal user from accessing the network resources [11]. A DoS attack can degrade the performance of the network. An IP spoofing attack is used to launch the DoS attack in the network by generating a large amount of data packet with fake IP addresses. S6AE can provide protection against the IP spoofing attack by ensuring the integrity of the IPv6 header. To perform a DoS attack, an adversary needs to calculate H s A = H ( I D s n A S I D s n A S I D l d r A T s n A ) , I V c s = R 1 S I D s n , S k A = I V c s A H s 24 A , 〈 A D 1 , A D 2 〉, D S k { A D 1 , A D 2 A , C 1 A } , and T a g g A . Then A checks the condition T a g g A = T a g s n . The condition T a g g A = T a g s n will not hold after capturing the IPv6/UDP header information because A requires the parameters, such as I D s n , S P , and K s n , which are secrets to S N and C S . Thus, S6AE can protect against DoS attacks.

4.1.3. Replay Attack

A sort of network attack in which attacker wiretaps or captures the valid transmitted data and retransmits the seized data in the network for harmful intention [27]. During the authentication process (Section 3.4), all the transmitted messages M1: T s n Z C 1 T a g s n R 1 , M2: S I D l d r M 1 , M3: I D l a r T l a r M 2 H l a r , and M4: T c s T e x p X 1 C 2 T a g c s R 2 include timestamps, and random numbers. The verification of the timestamps, such as T s n , T c s , and T l a r , ensure the freshness of the received message. Usually, T d is very small. Therefore, within T d , the probability of replaying M1, M2, M3, and M4 for adversary A is negligible. A similar situation holds for the handover phase messages. S6AE also prevents the replay attack by ensuring the IPv6/UDP header integrity. Any modification in the IPv6/UDP header during the transmission of a message through the public Internet makes the decryption and authentication unsuccessful at the respective communicating entities, such as C S and S N . Hence, S6AE is secure against the replay attacks.

4.1.4. Man-in-the-Middle (MITM) Attack

MITM is an action of an intruder in which the intruder somehow conjoins the communication between the two communicating network nodes while both the nodes believe that they are communicating directly [28]. Let an adversary A captures all the transmitted messages M1, M2, M3, and M4 during the communication between S N and C S . Suppose A attempts to forge M1 to generate a valid message to force C S to believe that the forged message is from an authentic source. For this purpose, A needs to guess the real identity I D s n of S N , which is an infeasible task for A . Therefore, it not possible for A to generate a bogus message M1. A similar condition holds for all other transmitted messages. This clearly indicates that S6AE is protected against MITM attack.

4.1.5. Sensor Impersonation Attack

By using an impersonation attack, the attacker can impersonate as an authentic S N to perform malicious activities in the network [11]. To execute this attacks, an adversary A picks the current timestamp T s n , I D s n and random number R s 1 and then attempts to transmit the message M1 to C S on behalf of S N . However, to construct a legitimate M 1 , A must know the real identity I D s n of S N , R s 1 and S P 1 . Without knowing these parameters, it is hard for A to generate valid S k = I V s n H s 24 and C 1 . For A , it is computationally hard to generate I D s n , S P 1 and R s 1 . Therefore, A cannot generate a legitimate M1 and, thus, the proposed scheme provides protection against the impersonation attack.

4.1.6. Server Impersonation Attack

In this attack, adversary A can send M4 to S N on behalf of C S . To compute a valid S k = H s 24 I V c s and C 2 , it is necessary for A to know the secret parameters I D s n , K c s , R n , and R s 1 . However, for A , it is computationally hard to generate these parameters, which are known only to C S . Therefore, S6AE can mitigate C S impersonation attacks.

4.1.7. Identity Privacy Preservation

Normally, S N utilizes the pseudo-identity S I D s n during the transmission of the authentication messages, which is computed as S I D s n = I D s n K s n K c s , where all the parameters are secret to C S and S N . Therefore, it is hard for A to generate S I D s n without knowing these parameters. This demonstrates that the proposed scheme ensures the identity privacy of S N .

4.1.8. Unlinkability/Anonymity

S6AE renders the unlinkable and anonymous session during the AKE process. Each time when a new session starts, S N picks a fresh random number R 1 and generates an I V s n = R 1 S I D s n . The newly generated I V s n is the input to the initialization phase of the encryption algorithm. The encryption algorithm produces different ciphertext each time even with the same secret parameters S P 1 , R s 1 , and I D s n . The ciphertext also includes another fresh random number R s 1 , which in turn enhances the randomness of the ciphertext. Therefore, it is hard for an adversary to correlate the two sessions form the same node. S6AE is untraceable, and it is not possible for an attacker to create a link between two different AKE processes. Since each AKE session utilizes a new S I D s n , this makes the AKE session anonymous. Hence, S6AE ensures unlinkability and anonymity during the AKE process.

4.1.9. Sybil Attack

In a Sybil attack, the adversary can generate multiple counterfeit identities of real nodes. S6AE can prevent the Sybil attack because each S N in the network authenticates itself with C S [11]. If C S discover any duplicate I D s n of an S N during the AKE process in the database, then C S considers that particular ID as a compromised node. C S adds these IDs to the blacklist and forwards the list to 6LDR1 and 6LDR2, which in turn broadcast these IDs in the network. Thus, S6AE protects against the Sybil attack.

4.1.10. Forward/Backward Secrecy

Forward/backward secrecy means that if an adversary reveals the current session key, it does not enable an intruder to compromise the privacy of the past and future session keys [11]. S6AE determines session key by computing K s e = H ( I D s n Y 1 S P 1 n R s 1 R s 2 ) for each AKE session. A new AKE process establishes a session key by incorporating fresh parameters, such as Y 1 , S P 1 n , R s 1 , and R s 2 . If an adversary A breaches the security of the current session key K s e , it does not allow A to compromise the future session key. Therefore, it is hard for an adversary to construct the past or future session keys.

4.1.11. Ephemeral Secret Leakage (ESL) Attack

Pre-computed Ephemeral Secrets (ES), which are stored in insecure memory, can be compromised by A . By using these compromised ES (short term) and long term parameters, A can breach the session key security. Such types of attacks are known as ESL [29]. In S6AE, S N and C S establish a secret session key K s e during the AKE process for the future secure communication. The established session key K s e = H ( I D s n Y 1 S P 1 n R s 1 R s 2 ) incorporates ephemeral terms, such as R s 1 , R s 2 , and long terms, such as I D s n . If A compromises the ephemeral terms R s 1 and R s 2 , A still requires the long term S I D s n to breach the the security of the session key K s e . To compromise the security of K s e , A must know the valid long and ephemeral terms, which are hard for A to know. Therefore, the proposed S6AE is resilient to the ESL attack.

4.2. Crypt-Analysis Using BAN Logic

The BAN logic [30] is a logic of belief and action. It is a well defined formal method to test the logic correctness of a security protocol and determines the trustfulness of agreement among the participants in the AKE process of S6AE. The BAN logic is employed here to validate the mutual authentication properties of the proposed S6AE scheme as a whole. The notations used in the BAN logic are listed in the Table 2, which are used to describe different inference rules. A list of BAN logic inference rules are listed in Table 3, which are used to determine the goal of the proposed scheme.

4.2.1. Assumptions

S6AE makes the following assumptions at the outset to investigate the AKE properties of our scheme.
  • AS-1: S N # ( T s n ) , # ( T c s )
  • AS-2: C S # ( T s n ) , # ( T c s )
  • AS-3: C S I D s n
  • AS-4: C S S P 1
  • AS-5: S N I D s n
  • AS-6: S N S P 1
  • AS-7: C S ( C S I D s n S N )
  • AS-8: S N ( C S I D s n S N )
  • AS-9: S N # ( R s 1 )
  • AS-10: C S # ( R s 1 )
  • AS-11: S N C S ( S N I D s n C S )
  • AS-12: S N C S ( S N K s e C S )
  • AS-13: C S S N ( S N S P 1 C S )
  • AS-14: C S ( C S S P 1 S N )
  • AS-15: S N ( S N S P 1 C S )

4.2.2. Goals

To verify the AKE process of S6AE, it must achieve the following goals.
  • G1: C S S N ( S N S P 1 C S )
  • G2: C S ( C S S P 1 S N )
  • G3: S N C S ( C S K s e S N )
  • G4: S N ( C S K s e S N )

4.2.3. Protocol Idealized Form

The idealized form of the proposed scheme can be expressed as follow.
  • IF1: S N C S : ( T s n , { S P 1 , R s 1 } I D s n )
  • IF2: C S S N : ( T c s , Y 1 , { S P 1 n , R s 2 , ( C S K s e S N ) } I D s n )

4.2.4. Formal Verification

In this phase of the BAN logic, the inference rules, listed in Table 3, are used to determine if S6AE has achieved its security goals.
  • VF-1: From IF1, AS-7, AS-8, and by applying Message-Meaning-Rules, it is possible to achieve
    C S ( S N I D s n C S ) , C S ( T s n , { S P 1 , R s 1 } I D s n ) C S S N ( T s n , { S P 1 , R s 1 } I D s n ) .
  • VF-2: From IF1, AS-2 and by applying Freshness-Rule concludes
    C S # ( T s n ) C S # ( T s n , { S P 1 , R s 1 } ) .
  • VF-3: Using VF-1, VF-2 and by applying the Nonce-Verification-Rule, it is possible to obtain
    C S # ( T s n , { S P 1 , R s 1 } ) , C S S N ( T s n , { S P 1 , R s 1 } ) C S S N ( T s n , { S P 1 , R s 1 } ) .
  • VF-4: From VF-3 and by applying the Belief-Rule, the goal G1 can be achieved as
    C S S N ( T s n , { S P 1 , R s 1 } ) C S S N ( S N S P 1 C S ) .
  • VF-5: The goal G2 can be accomplished by utilizing VF-4, AS-13, and by employing the Jurisdiction-Rule from
    C S S N ( S N S P 1 C S ) , C S S N ( S N S P 1 C S ) C S ( S N S P 1 C S ) .
  • VF-6: From IF2, AS-11, and by applying Message-Meaning-Rules, it is possible to derive
    S N ( S N I D s n C S ) , C S ( T c s , Y 1 , { S P 1 n , R s 2 , ( C S K s e S N ) } I D s n ) S N C S ( T c s , , Y 1 , { S P 1 n , R s 2 , ( C S K s e S N ) } I D s n ) .
  • VF-7: By using IF2, AS-1, and utilizing the Freshness-Rule, we get
    S N # ( T c s ) S N # ( Y 1 , { S P 1 n , R s 2 , ( C S K s e S N ) } ) .
  • VF-8: Using VF-6, VF-7 and by applying the Nonce-Verification-Rule, it is possible to obtain
    S N # ( T c s , Y 1 , { S P 1 n , R s 2 , ( C S K s e S N ) , ( C S I D s n S N ) } ) , A S N C S ( Y 1 , { S P 1 n , R s 2 , ( C S K s e S N ) } ) ,
    A = S N C S ( T c s , Y 1 , { S P 1 n , R s 2 , ( S N K s e C S ) } ) .
  • VF-9: G3 can be achieved by using VF-8 and by employing the Belief-Rule from
    S N C S ( T c s , Y 1 , { S P 1 n , R s 2 , ( C S K s e S N ) } ) S N C S ( S N K s e C S ) .
  • VF-10: From (11) G4 can be derived by utilizing AS-12 and by employing Jurisdiction-Rule
    C S S N ( S N K s e C S ) , S N C S ( T c s , Y 1 , { S P 1 n , R s 2 , ( C S K s e S N ) } ) S N ( S N K s e C S ) .

4.3. Crypt-Analysis Using AVISPA

Crypt-analysis of S6AE is conducted using the AVISPA tool [31], which obeys the DY attack model and is commonly used by the research community to examine the capabilities of the security algorithms. AVISPA comprises four back-end models, known as CL-AtSe, TA4SP, OFMC, and SATMC. These back-ends perform various automatic analyses to detect vulnerabilities in the security scheme. It uses perfect cryptography, which means that the adversary cannot derive the messages or plaintext from ciphertext without perceiving the secret key. It uses formal language High-Level Protocol Specification Language (HLPSL) to code a specified security algorithm. A translator known as HLPSL2IF is used to convert the HLPSL code into the Intermediate Form (IF). AVISPA uses four back-end techniques defined in [32] for the automatic analysis and the capabilities of a security algorithm against various attacks. The XOR operation is not supported by SATMC and TA4SP back-end. Therefore, the simulation of S6AE using these two back-ends is not possible.
Figure 5 shows the Output Format (OF) generated by AVISPA’s OFMC and CL-AtSe back-ends. A generated OF has different sections, including SUMMARY, DETAILS, PROTOCOL, GOAL, BACKEND and STATISTICS, as shown in Figure 5. SUMMARY shows whether a security scheme being tested is safe or unsafe. PROTOCOL describes the HLPSL specification of the scheme in IF. GOALS is the analysis of the goals conducted by AVISPA as specified in HLPSL. BACKEND is used for the backend analysis of the scheme. In S6AE implementation, there are 4 basic roles, i.e., S N , C S , 6LDR, and 6LAR, and two compulsory roles, i.e., environment & goals and session defined in HLPSL. Figure 5 illustrates that the proposed S6AE scheme is secure and protects against MITM and replay attacks.

5. Performance Evaluation

This section presents the performance evaluation of S6AE in comparison with eminent 6LoWPAN security schemes, namely, SAKES [16] and EAKES6Lo [17].
S6AE server-side has been implemented in Python 2.7 and each S N is consigned with a unique I D , S I D , and S P by C S utilizing a random number generator. Simulations are conducted on a computer with Intel(R) Core(TM) i7-6700 CPU @ 3.40 GHz, Ubuntu (64-bit) and 8-GB RAM. A list of configuration parameters is given in the Table 4.

5.1. Security Comparison

The security functionalities of the proposed scheme, compared with the existing security schemes, are given in Table 5. EAKES6Lo and SAKES do not provide any header verification mechanism to mitigates various malicious attacks, such as DoS and replay attacks. EAKES6Lo does not offer identity privacy preservation of the sensor node. However, S6AE is more reliable than other security schemes for 6LoWPAN, as can be seen in Table 5.

5.2. Computational Overhead

The proposed S6AE scheme renders protection against well-known and various covert attacks. However, during the AKE process, many unforeseen attacks, such as a jamming attack, may interfere with the execution of S6AE and may introduce delay during the progress of the AKE process. To estimate the computational overhead, the total execution time delay T d of S6AE can be calculated as
T d = T t N a s p ,
where T t = i = 1 5000 T e x i is the total time for 5000 runs, where T e x is the time required for the execution of S6AE and N a s p = 5000 × ( 1 a t t a c k s u c c e s s p r o b a b i l i t y ) . SAKES is a hybrid security scheme and applies the Diffie-Hellman (DH) key exchange mechanism. Four DH groups provide different levels of security. To achieve the security level of 128-bits, we use the DH group 15 [33]. AES-CTR-128 bits, SHA-256, and ECDSA-160, are the cryptographic operations used by EAKES6Lo during the AKE process. S6AE utilized SHA-256 and ASCON cryptographic operations. The average time consumed by S6AE, SAKES, and EAKES6Lo are 0.417 ms, 1.375 ms, and 0.868 ms, respectively, as shown in Figure 6. Thus, S6AE has the lowest overall computational time.
Furthermore, Table 6 presents the comparison of the computational overheads of SAKES, EAKES6Lo, and S6AE. To compute the computational overheads, this paper considers the average time required for SHA-256, i.e., T s h a = 0.0311 ms, and for the AES-128 is T a e s = 0.125 ms. The time needed for the signature generation/verification is T s g = 5.20 ms and the time required for ECC public/private key generation is T g = 5.50 ms. The average time required for ASCON is T a s c o n = 0.065 ms (10 MHz) [23,24] and 19.16 ms is the time required for the modular exponentiation (DH). The computational costs of SAKES, EAKES6Lo, and S6AE are 3 T e x p + 8 T a e s + 4 T s h a 58.6044 ms, 5 T a e s + 4 T s h a + 2 T s v + T s g 17.2494 ms, and 4 T a s c o n + 13 T s h a + 24 T x o r 0.6643 ms, respectively. Thus, SAKES and EAKES6Lo are computationally more expensive as compared to the S6AE.

5.3. Communication Overhead and Energy Consumption

Optimization of energy consumption is a critical parameter of interest for 6LoWPAN. It is imperative to minimize the transmitted message size to reduce the energy consumption of sensor nodes. 6LAR, C S , and 6LDR are powerful devices with ample energy resources. Therefore, S6AE considers the energy consumption in the wirelessly connected constrained devices, and the energy consumption outside 6LoWPAN is not evaluated. To evaluate the transmission overhead in the proposed scheme, we consider 10 bytes overhead of the compressed form of IPv6/UDP header defined in [21]. The energy consumption during sending and receiving of a single bit is 0.72 μ J and 0.81 μ J, respectively [34]. The transmission overhead of S6AE is given in Table 7 and energy consumption in Table 8. S6AE has been compared with EAKES6Lo and SAKES. It is observed that S6AE utilizes fewer energy resources.
The average energy cost for AES encryption/decryption is 9 μ J, SHA-256 needs 5.9 μ J/byte, ECDSA-160 consumes 6.26 mJ in signature generation, and ASCON requires 0.0207 μ J [24]. Total energy cost overhead of the EAKESLo, SAKES, and S6AE are 6.52 mJ, 2.51 mJ, and 1.48 mJ, respectively. If an adversary interrupts the execution of the protocol, it may increase energy consumption. Figure 7 shows the total energy utilization in the presence of jamming attacks.

5.4. Storage Overhead Comparison

In the proposed scheme, S N is required to store the tuple { I D s n , S I D s n , S P 1 n , T i c s n , M A C c s , T e x p }, which requires (64 + 64 + 64 + 128 + 48 + 32) = 400 bits. C S needs to store the parameters { S I D s n , I D s n , S P 1 , S P 1 n , T i c s n , M A C s n , T e x p }, which requires (64 + 64 + 64 + 64 + 128 + 48 + 32) = 464 bits. Table 9 shows the comparison of storage cost of SAKES, EAKES6Lo, and S6AE. It is observed that the proposed scheme requires more storage at the server and less storage at S N as compared to the EAKESLo and needs less storage at S N and C S as compared to SAKES.

5.5. Handover Phase Comparison

This section presents the computational and communication overhead during the handover phase. The computational overhead of EAKES6Lo and S6AE are 6 T a e s + T s g + T s v + 6 T s h a 11.9366 ms, and 2 T a s c o n + 4 T s h a 0.2544 ms, respectively, during handover phase. Table 10 shows the communication and computational overheads during the handover phase. The results manifest that the proposed scheme is efficient as compared to the existing schemes.

5.6. Discussion

6LoWPANs are at the core of IoT. However, the original 6LoWPAN design does not offer security services, including data confidentiality, integrity and authentication. To address this issue, we have presented an AKE scheme, called S6AE, for 6LoWPANs. For this purpose, we have employed ASCON, which is a lightweight general-purpose encryption algorithm, in conjunction with SHA-256 hash function, to enable the required confidentiality, integrity and authenticity in 6LoWPANs. To the best of our knowledge, ASCON has never been employed in the literature for securing 6LoWPANs.
In S6AE, after verifying the authenticity of S N s, C S and S N s establish secret keys using ASCON as the encryption scheme. ASCON has been employed to achieve data confidentiality and authenticity simultaneously without using a separate MAC. Using AES renders confidentiality, and to achieve the authenticity of the encrypted information it is imperative to use MAC. The main idea in this paper is to use ASCON to achieve the cumulative functionality of AES + MAC by using a single encryption algorithm, i.e., ASCON, which generates its own MAC. To check the integrity of transmitted messages, we do not need to employ any other MAC. In this way, we reduce the computational cost, as compared with the benchmarks.
We use SHA-256 to generate unique output strings by using the S6AE secret parameters. To decrease the communication overhead by means of reducing the message size, the length of the SHA-256 output string must be reduced to 64-bits with minimum computational cost and without compromising performance. For this purpose, we use bit-wise XOR operations. Through BAN logic and AVISPA, we have validated S6AE to be logically complete and offering the required security services in 6LowPANs. We have demonstrated that S6AE reduces the computational and communicational overheads, energy consumption and storage costs, in comparison with the benchmarks.
Results demonstrate that the proposed scheme provides better features in comparison with the benchmarks, namely, EAKES6Lo and SAKES. EAKES6Lo is a hybrid scheme, which uses ECC and AES-CTR and is computationally expensive as compared to S6AE because ECC is resource intensive for the resource constrained 6LoWPANs. Table 6 and Figure 6 show that S6AE requires less resources as compare to EAKES6Lo. Table 5 shows that EAKES6Lo does not provide the identity privacy and header verification. Moreover, SAKES is insecure against the 6LAR gateway compromised attack and does not ensure the header integrity in 6LoWPANs, as shown in Table 5. SAKES employs DH key exchange mechanism and also uses AES as a encryption and decryption scheme, which is computationally expensive in comparison to S6AE, as shown in Table 6 and Figure 6. Table 9 shows that S6AE requires less memory as compared SAKES and EAKES6Lo. Moreover, Table 7 indicates that S6AE is less expensive. Furthermore, S6AE requires less energy resources as compared to the EAKES6Lo and SAKES because S6AE uses lightweight and authenticated encryption that requires less energy and computational resources. In a nutshell, we have found that the implementation of ASCON, in conjunction with SHA-256, in 6LoWPANs is promising to secure communications.

6. Conclusions

6LoWPAN is a providential technology having a vital share in IoT and is commonly deployed in a variety of applications. Originally, 6LoWPAN does not provide any security and privacy mechanism. To address this issue, this paper has presented an authentication and key exchange scheme. The proposed scheme establishes a session key after the mutual authentication, which ensures secure communication and prevents an attacker from accessing the transmitted information. The proposed scheme also renders the header verification or origin verification of the message simultaneously without using the IPSec protocol. The employed BAN logic analysis indicates that S6AE is logically complete. Moreover, the security verification using AVISPA illustrates that the proposed scheme is secure against various malicious attacks. Finally, the performance evaluation reveals that, as compared to eminent schemes, S6AE has less communication, computational handover, energy, and storage overheads. As a future work, S6AE can be extended to varying security levels using secure cryptographic algorithms.

Author Contributions

Conceptualization, M.T.; Data curation, M.T. and G.A.; Formal analysis, M.T. and G.A.; Funding acquisition, S.K.; Methodology, M.T., G.A., Z.H.A. and F.M.; Project administration, F.M.; Resources, S.K.; Software, Z.H.A. and M.W.; Supervision, G.A. and M.W.; Validation, S.K.; Writing—review & editing, S.K. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Research Program through the National Research Foundation of Korea (NRF-2019R1A2C1005920).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Miguel, M.; Jamhour, E.; Pellenz, M.; Penna, M. SDN architecture for 6LoWPAN wireless sensor networks. Sensors 2018, 18, 3738. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  2. Nait Hamoud, O.; Kenaza, T.; Challal, Y. Security in device-to-device communications: A survey. IET Netw. 2018, 7, 14–22. [Google Scholar] [CrossRef]
  3. Gomes, T.; Salgado, F.; Pinto, S.; Cabral, J.; Tavares, A. A 6LoWPAN accelerator for Internet of Things endpoint devices. IEEE Internet Things J. 2017, 5, 371–377. [Google Scholar] [CrossRef]
  4. Gomez, C.; Paradells, J.; Bormann, C.; Crowcroft, J. From 6LoWPAN to 6Lo: Expanding the universe of IPv6-supported technologies for the Internet of Things. IEEE Commun. Mag. 2017, 55, 148–155. [Google Scholar] [CrossRef] [Green Version]
  5. Hennebert, C.; Santos, J.D. Security protocols and privacy issues into 6LoWPAN stack: A synthesis. IEEE Internet Things J. 2014, 1, 384–398. [Google Scholar] [CrossRef]
  6. Li, Y.; Wang, X. Green content communications in 6LoWPAN. IET Netw. 2020, 9, 38–42. [Google Scholar] [CrossRef]
  7. Kushalnagar, N.; Montenegro, G. Transmission of IPv6 packets over IEEE 802.15. 4 networks. IEEE Commun. Mag. 2007, 4944, 130. [Google Scholar]
  8. Ishaq, I.; Carels, D.; Teklemariam, G.K.; Hoebeke, J.; Abeele, F.V.D.; Poorter, E.D.; Moerman, I.; Demeester, P. IETF standardization in the field of the Internet of Things (IoT): A survey. J. Sens. Actuator Netw. 2013, 2, 235–287. [Google Scholar] [CrossRef] [Green Version]
  9. Yeole, A.; Kalbande, D.; Sharma, A. Security of 6LoWPAN IoT Networks in hospitals for medical data exchange. Procedia Comput. Sci. 2019, 152, 212–221. [Google Scholar] [CrossRef]
  10. Sha, K.; Wei, W.; Yang, T.A.; Wang, Z.; Shi, W. On security challenges and open issues in Internet of Things. Future Gener. Comput. Syst. 2018, 83, 326–337. [Google Scholar] [CrossRef]
  11. Butun, I.; Österberg, P.; Song, H. Security of the Internet of Things: Vulnerabilities, attacks and countermeasures. IEEE Commun. Surv. Tutor. 2019, 22, 616–644. [Google Scholar] [CrossRef] [Green Version]
  12. Raza, S.; Duquennoy, S.; Chung, T.; Yazar, D.; Voigt, T.; Roedig, U. Securing communication in 6LoWPAN with compressed IPsec. In Proceedings of the 2011 International Conference on Distributed Computing in Sensor Systems and Workshops (DCOSS), Barcelona, Spain, 27–29 June 2011; pp. 1–8. [Google Scholar]
  13. Raza, S.; Seitz, L.; Sitenkov, D.; Selander, G. S3K: Scalable security with symmetric keys-DTLS key establishment for the Internet of Things. IEEE Trans. Autom. Sci. Eng. 2016, 13, 1270–1280. [Google Scholar] [CrossRef] [Green Version]
  14. Chuang, M.C.; Lee, J.F.; Chen, M.C. SPAM: A secure password authentication mechanism for seamless handover in proxy mobile IPv6 networks. IEEE Syst. J. 2012, 7, 102–113. [Google Scholar] [CrossRef]
  15. Perrig, A.; Szewczyk, R.; Tygar, J.D.; Wen, V.; Culler, D.E. SPINS: Security protocols for sensor networks. Wirel. Netw. 2002, 8, 521–534. [Google Scholar] [CrossRef]
  16. Hussen, H.R.; Tizazu, G.A.; Ting, M.; Lee, T.; Choi, Y.; Kim, K.H. SAKES: Secure authentication and key establishment scheme for M2M communication in the IP-based wireless sensor network (6LoWPAN). In Proceedings of the 2013 Fifth International Conference on Ubiquitous and Future Networks (ICUFN), Da Nang, Vietnam, 2–5 July 2013; pp. 246–251. [Google Scholar]
  17. Qiu, Y.; Ma, M. A mutual authentication and key establishment scheme for M2M communication in 6LoWPAN networks. IEEE Trans. Ind. Inform. 2016, 12, 2074–2085. [Google Scholar] [CrossRef]
  18. Roselin, A.G.; Nanda, P.; Nepal, S. Lightweight authentication protocol (LAUP) for 6LoWPAN Wireless Sensor Networks. In Proceedings of the 2017 IEEE Trustcom/BigDataSE/ICESS, Sydney, NSW, Australia, 1–4 Auguest 2017; pp. 371–378. [Google Scholar]
  19. Wang, X.; Mu, Y. Communication security and privacy support in 6LoWPAN. J. Inf. Secur. Appl. 2017, 34, 108–119. [Google Scholar] [CrossRef]
  20. Glissa, G.; Meddeb, A. 6LowPSec: An end-to-end security protocol for 6LoWPAN. Ad Hoc Netw. 2019, 82, 100–112. [Google Scholar] [CrossRef]
  21. Hui, J.; Thubert, P. Compression Format for IPv6 Datagrams over IEEE 802.15.4-Based Networks. Available online: https://www.hjp.at/doc/rfc/rfc6282.html (accessed on 18 March 2020).
  22. Dolev, D.; Yao, A. On the security of public key protocols. Trans. Inform. Theory 1983, 29, 198–208. [Google Scholar] [CrossRef]
  23. Dobraunig, C.; Eichlseder, M.; Mendel, F.; Schläffer, M. ASCON v1. 2. Available online: https://competitions.cr.yp.to/round3/asconv12.pdf (accessed on 18 March 2020).
  24. Fivez, M. Energy Efficient Hardware Implementations of CAESAR Submissions. Master’s Thesis, KU Leuven, Leuven, Belgium, 2016. [Google Scholar]
  25. Diehl, W.; Abdulgadir, A.; Farahmand, F.; Kaps, J.P.; Gaj, K. Comparison of cost of protection against differential power analysis of selected authenticated ciphers. Cryptography 2018, 2, 26. [Google Scholar] [CrossRef] [Green Version]
  26. Adomnicai, A.; Fournier, J.J.; Masson, L. Masking the lightweight authenticated ciphers ACORN and ASCON in software. IACR 2018, 2018, 708. [Google Scholar]
  27. Pundir, S.; Wazid, M.; Singh, D.P.; Das, A.K.; Rodrigues, J.J.P.C.; Park, Y. Intrusion Detection Protocols in Wireless Sensor Networks Integrated to Internet of Things Deployment: Survey and Future Challenges. IEEE Access 2020, 8, 3343–3363. [Google Scholar] [CrossRef]
  28. Yang, Y.; Wu, L.; Yin, G.; Li, L.; Zhao, H. A Survey on Security and Privacy Issues in Internet-of-Things. IEEE Internet Things J. 2017, 4, 1250–1258. [Google Scholar] [CrossRef]
  29. Khan, R.; Kumar, P.; Jayakody, D.N.K.; Liyanage, M. A survey on security and privacy of 5G technologies: Potential solutions, recent advancements and future directions. IEEE Commun. Surv. Tutor. 2019, 22, 196–248. [Google Scholar] [CrossRef] [Green Version]
  30. Burrows, M.; Abadi, M.; Needham, R.M. A logic of authentication. R. Soc. Open Sci. 1989, 426, 233–271. [Google Scholar]
  31. Armando, A.; Basin, D.; Boichut, Y.; Chevalier, Y.; Compagna, L.; Cuéllar, J.; Drielsma, P.H.; Héam, P.C.; Kouchnarenko, O.; Mantovani, J. The AVISPA Tool for the Automated Validation of Internet Security Protocols and Applications; Springer: Berlin/Heidelberg, Germany, 2005; pp. 281–285. [Google Scholar]
  32. Automated Validation of Internet Security Protocols and Applications AVISPA. Available online: http://www.avispa-project.org/ (accessed on 20 March 2020).
  33. Kivinen, T.; Kojo, M. More Modular Exponential (MODP) Diffie-Hellman Groups for Internet Key Exchange. Available online: https://www.hjp.at/doc/rfc/rfc3526.html (accessed on 20 March 2020).
  34. De Meulenaer, G.; Gosset, F.; Standaert, F.X.; Pereira, O. On the energy cost of communication and cryptography in wireless sensor networks. In Proceedings of the 2008 IEEE International Conference on Wireless and Mobile Computing, Networking and Communications, Avignon, France, 12–14 October 2008; pp. 580–585. [Google Scholar]
Figure 1. 6LoWPAN network architecture.
Figure 1. 6LoWPAN network architecture.
Sensors 20 02707 g001
Figure 2. ASCON architecture.
Figure 2. ASCON architecture.
Sensors 20 02707 g002
Figure 3. S6AE authentication and key establishment phase.
Figure 3. S6AE authentication and key establishment phase.
Sensors 20 02707 g003
Figure 4. The S6AE handover process.
Figure 4. The S6AE handover process.
Sensors 20 02707 g004
Figure 5. AVISPA OFMC and CL-AtSe back-end simulation results.
Figure 5. AVISPA OFMC and CL-AtSe back-end simulation results.
Sensors 20 02707 g005
Figure 6. Computational overhead.
Figure 6. Computational overhead.
Sensors 20 02707 g006
Figure 7. Energy consumption overhead.
Figure 7. Energy consumption overhead.
Sensors 20 02707 g007
Table 1. List of notations.
Table 1. List of notations.
NotationDescription
C S , S N Central server and 6LoWPAN sensor node
S I D s n , S I D l d r ,Pseudo-identities of sensor node and 6LDR, respectively
I D s n , S P 1 , S P 1 n Secret real-identities of 6LoWPAN sensor nodes and secret parameter used in authentication process
E k ( x ) , D k ( x ) Encryption and decryption of message x using the secret-key k
T a g s n , T a g s n , T a g g , T a g c s Authentication parameter generated by encryption and decryption algorithm at S N and C S , respectively
T s n , T c s , T l a r Timestamps at S N , C S and 6LAR, respectively.
I V s n , I V s n , I V c s , I V c s Initialization vectors at S N and C S , respectively
S k , S k , S k , S k ASCON initialization states at S N and C S , respectively
S k h , S k h Initialization states at C S and S N in the handover phase, respectively.
K s n , R n and R s 1 , R s 2 Keys for S N and random number used in authentication process
M A C s n , M A C c s MAC addresses of S N and C S , respectively
T h , R h Timestamp and random number used in handover phase, respectively
H ( . ) , ⊕, ‖Cryptographic hash-function, bit-wise XOR, and concatenation, respectively
Table 2. Ban Logic notations.
Table 2. Ban Logic notations.
FeatureDescription
S X S believes if the formula X is true
S X S once said X
S X S sees X
S k H k is a shared-secret between S and H
S K H K is a secret parameter known only S and H
# ( X ) X is fresh.
{ X } k X is encrypted with the secret key k
X Y X is combine with secret Y
S X S has jurisdiction over X
S H If S is true then H is also true
Table 3. Ban Logic inference rules.
Table 3. Ban Logic inference rules.
Notation Description
Message-Meaning-Rule S S k H , S { X } k S H X
Jurisdiction-Rule S H X , S H X S X
Belief-Rule S ( X , Y ) S X
Nonce-Verification-Rule S # ( X ) , S H X S H X
Freshness-Rule S # ( X ) S # ( X , Y )
Table 4. Simulation parameters.
Table 4. Simulation parameters.
Parameter Size (Bits)
Encryption Algorithm ASCON-128a
I D s n 64
S P 64
I D c s 64
S I D s n 64
S I D l d r 64
timestamp 32
HASH Function SHA-256
Random numbers 64
Table 5. Comparison of security properties.
Table 5. Comparison of security properties.
SAKESEAKES6LoS6AE
Header Verification××
Replay attack
Compromised attack×
IP-Spoofing attack××
Unlinkability×
Forward secrecy×
Sybil attack
Impersonation attack
DOS attack
MITM attack
Identity Privacy Preservation××
Mutual authentication
Mobility×
Table 6. Computational overheads.
Table 6. Computational overheads.
Scheme SN 6LDR6LAR CS Total Time
SAKES 3 T a e s + T s h a 2 T e x p + 2 T a e s + T s h a - T e x p + 3 T a e s + 2 T s h a 3 T e x p + 8 T a e s + 4 T s h a 58.6044 ms
EAKES6Lo 2 T a e s + T s h a + T s g T s v T s h a + T a e s 3 T a e s + 2 T s h a + T s v 5 T a e s + 4 T s h a + 2 T s v + T s g 17.2494 ms
S6AE 2 T a s c o n + 5 T s h a + 7 T x o r T x o r T s h a 2 T a s c o n + 7 T s h a + 14 T x o r 4 T a s c o n + 13 T s h a + 22 T x o r 0.6643 ms
Table 7. Communication overhead.
Table 7. Communication overhead.
Security Schemes
Exchanged MessagesEAKES6LoSAKESS6AE
S N 6 L D R 672 bits688 bits496 bits
6 L D R S N 784 bits2176 bits528 bits
Table 8. Transmission energy consumption.
Table 8. Transmission energy consumption.
Proposed Scheme Energy Consumption
S6AE 0.785 mJ
EAKES6Lo 1.11888 mJ
SAKES 2.25792 mJ
Table 9. Storage cost comparison.
Table 9. Storage cost comparison.
Storage CostSAKESEAKES6LoS6AE
Sensor ( S N )272 bytes88 bytes46 bytes
Server ( C S )272 bytes80 bytes54 bytes
Table 10. Handover overhead.
Table 10. Handover overhead.
Computational OverheadCommunication Overhead
SchemeComputational TimeTime Cost (ms) SN 6 LDR 2 6 LDR 2 SN No. of MessagesEnergy Cost (mJ)
EAKES6Lo 6 T a e s + 4 T m + T s g + T s v + 2 T s h a 11.9366704 bits672 bits61.05
S6AE 2 T a s c o n + 4 T s h a 0.2544480 bits418 bits60.68
SAKESn/a-n/an/an/an/a

Share and Cite

MDPI and ACS Style

Tanveer, M.; Abbas, G.; Abbas, Z.H.; Waqas, M.; Muhammad, F.; Kim, S. S6AE: Securing 6LoWPAN Using Authenticated Encryption Scheme. Sensors 2020, 20, 2707. https://doi.org/10.3390/s20092707

AMA Style

Tanveer M, Abbas G, Abbas ZH, Waqas M, Muhammad F, Kim S. S6AE: Securing 6LoWPAN Using Authenticated Encryption Scheme. Sensors. 2020; 20(9):2707. https://doi.org/10.3390/s20092707

Chicago/Turabian Style

Tanveer, Muhammad, Ghulam Abbas, Ziaul Haq Abbas, Muhammad Waqas, Fazal Muhammad, and Sunghwan Kim. 2020. "S6AE: Securing 6LoWPAN Using Authenticated Encryption Scheme" Sensors 20, no. 9: 2707. https://doi.org/10.3390/s20092707

APA Style

Tanveer, M., Abbas, G., Abbas, Z. H., Waqas, M., Muhammad, F., & Kim, S. (2020). S6AE: Securing 6LoWPAN Using Authenticated Encryption Scheme. Sensors, 20(9), 2707. https://doi.org/10.3390/s20092707

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