1. Introduction
As COP28 concluded in the UAE to accelerate climate action and gradually transition to a decarbonized energy system, the evolution and modernization of existing grids with new technologies are positioned as key enablers to this increasingly urgent transition [
1]. Aging power infrastructures are being modernized to meet growing demand for electricity and efficiently distribute both traditional and renewable energy while also meeting the environmental imperative to reduce greenhouse gas emissions and ensure sustainable growth. In this context, along with other low-less carbon technologies (e.g., nuclear power, thermal and hydro-energy, solar photovoltaic power, and wind energy), utilities are responding to this challenge by investing in smart grids (SG) to ensure a safe and reliable supply of electricity.
Smart grids are electricity networks that use digital technologies, sensors, and software to better match the supply and demand of electricity in real time while minimizing costs and maintaining the stability and reliability of the grid [
2]. This network integrates advanced metering devices, information and communication technologies (ICT), demand response mechanisms, and real-time control systems. This shift towards smart grids is part of a broader trend observed in the electricity sector, integrating with remote sensing, cloud computing, and the Internet of Things (IoT). Within this context, IoT technologies are instrumental in transforming the sector from a centralized to a distributed, smart, and integrated energy system [
3]. Indeed, in the age of digital transformation, IoT-enabled smart grids empower utilities to sense, analyze, control, and optimize their grids and explore new revenue streams by building innovative business models.
Among the components shaping this transformation in the electricity sector, grid sensors such as smart meters (SMs) not only monitor and transmit electricity consumption data to utility offices but also eliminate the need for manual meter readings. Indeed, SMs, as connected devices, automatically communicate with gateways such as neighborhood area networks (NANs) or other base stations using various communication technologies, such as LoraWAN, cellular, or satellite. SMs capture the date and time of electricity consumption, allowing the implementation of effective energy management systems. For instance, dynamic pricing strategies, where utilities charge higher rates during peak demand periods, enable consumers and businesses to manage their energy consumption remotely, shifting it to off-peak hours when costs are lower. Additionally, smart meters enhance utility services by detecting tampering and theft, offering faster responses to meter failures and power outages. The interest in efficient and accurate metering solutions is reflected by the smart meters market size (gas, water, and electricity), which surpassed USD 22 billion in 2021 and is expected to grow at a CAGR of 13 percent between 2022 and 2028. [
4]. Electricity metering has the largest share of this market, with over 60 percent of the global market value [
5].
While SMs play a vital role in efficient energy management, their intricate design introduces new security challenges. The ability of smart meters to communicate with nearby IoT devices raises concerns about grid resilience in the face of potential disruptions leading to increased operational costs loss of productivity and loss of sales as well as [
6] user security and privacy. Hackers could potentially access personal data and exploit the system for financial gains. Consequently, ensuring privacy has become a top priority in the realm of smart metering.
From a professional perspective, one recent benchmark study from IANS and Artico cited in VentureBeat found that utilities spent an average of 8% of their IT budgets on cybersecurity in 2022, highlighting the importance of this critical domain [
7].
From an academic perspective, in recent years, extensive research has been conducted to secure the infrastructure of smart grids. In a review of cyber attacks and defense mechanisms for improving security in smart grid energy systems, Ghiasi et al. point out the expanding use of multiple sensors, controllers, meters, and wireless networks to control and transmit data, suggesting that the issues caused by cyber attacks on these heterogeneous types of infrastructures should receive more attention. They also call for researchers to keep pace with different methods of detecting cyber attacks and develop up-to-date countermeasures—among which they suggest updating or creating new protocols to prevent the access of attackers to the grid [
8]. Similarly, Kamrul Hasan et al. conducted a review on cyber-physical and cyber-security systems in smart grid. The authors focus on the increased complexity of managing the security aspects of the grids due to the challenging combination of communication technology, standards, protocols, and applications. To reduce security threats and increase the system’s reliability, they also propose to look at security requirements from a defense life cycle (pre-attack, under attack, and post-attack) where, at each phase, different techniques can be used [
9].
To address these concerns, the community of researchers proposes various cyber-security protocols. However, many existing designs suffer from security vulnerabilities. In this paper, we propose a new protocol for smart metering systems to address issues found in existing protocols and enhance the efficiency of smart grids.
1.1. Our Contributions
This paper has two main contributions, as follows:
- 1.
We contribute to the literature on smart meter security by proposing a new protocol based on PUFs and ECC for smart grids named PPSG.
- 2.
We provide an in-depth security analysis (with a real-or-random model) for the proposed protocol and also the communication and communication overheads analysis (with an Arduino UNO R3 board) to show that it is among the lightest protocols, compared to the recent related proposals.
1.2. Paper Organization
In the rest of the paper, first, we analyze the existing protocols in
Section 2; in
Section 3, the required preliminaries are provided. Next, we propose PPSG as a secure protocol in
Section 4. The security evaluation of PPSG is detailed in
Section 5, and the comprehensive cost analysis is provided in
Section 6. The concluding remarks and summary of the paper can be found in
Section 7.
2. Related Work
In this section, some recent protocols are described. In
Table 1, every protocol is evaluated considering communication overhead, time-consuming processes, encryption techniques, and vulnerability. The assessment is represented by triangles (▾ for low and ▴ for high). A check mark (✓) indicates a documented successful attack, whereas a multiplication symbol (×) signifies an attack not yet published. Interest in the subject is reflected in the number of publications, which have increased exponentially over the last decade, particularly in the field of cyber security, which remains a major concern [
10]. Recently substantial efforts have been directed towards establishing a reliable and secure communication infrastructure for smart metering. For example, Kumar et al. introduced the LAKA system, a lightweight authentication and key agreement scheme, aimed at ensuring an acceptable level of security and integrity in smart energy networks [
11]. To ensure the confidentiality of messages, LAKA incorporates both hash functions and an ECC module. Moreover, it employs a message authentication code (MAC) function to maintain message integrity. This integration of multiple functions contributes to the heightened complexity of the smart meter (SM). Furthermore, as observed by Baghestani et al. [
12], this protocol exhibits susceptibility to traceability attacks.
Kumar et al. introduced ECCAuth, a recent authentication protocol for smart grid applications that relies on ECC cryptography [
13]. According to the authors, ECCAuth’s primary objective is to establish a secure connection between a smart grid (SG) device and a utility center (UC), ensuring user privacy and the confidentiality of data. Nevertheless, ECCAuth, while maintaining acceptable communication costs, exhibits time-consuming authentication procedures and computational operations. Furthermore, ECCAuth’s vulnerability has been exposed by Yu et al., who identified security weaknesses, including session key disclosure, stolen devices, and masquerade, attacks [
14]. In response, they proposed a new lightweight protocol that incorporates XOR and hash functions to rectify these shortcomings. Wu et al. also suggested an ECC-based authentication protocol [
15]. Although it secures message confidentiality through an ECC module and data encryption, the protocol’s functionality falls short of an acceptable level. Notably, it exhibits high communication and computation overhead, leading to extended authentication processing times. Garg et al. recently introduced another authentication protocol for SMs based on the ECC method [
16]. Despite their claim of robustness against diverse attacks and reasonable computational expenses, our assessment highlights susceptibility to traceability and impersonation attacks. Additionally, the authors inaccurately calculated and underestimated computational costs.
By utilizing the ECC technique, He et al. [
17], Abbasinezhad-Mood [
18], and PALK [
19] also proposed some protocols, aiming to establish a secure infrastructure. However, they face efficiency challenges, which will be discussed in detail in
Section 6.
Tanveer et al. introduced an innovative access control protocol for smart grids, known as RACP-SG [
20]. This protocol utilizes lightweight-cryptography-based authenticated encryption with associative data (AEAD) techniques, hash functions, and elliptic curve cryptography (ECC) to successfully execute the authentication process. Moreover, RACP-SG enables mutual authentication between a service provider and an SM, allowing them to establish a session key during communication over the public channel.
Chaudhry et al. recently introduced a new ECC-based protocol called LAS-SG, emphasizing its lightweight nature to ensure satisfactory security and privacy levels [
21]. Their approach involves optimizing communication by utilizing only two transferred messages, containing 192 bytes. Although the computation cost of LAS-SG is deemed acceptable, it remains higher than the protocol proposed in this paper.
PUF-based techniques present an intriguing approach utilized in smart metering and grid applications [
22]. Numerous PUF-based protocols have been developed for SG/SM, such as the Gope and Sikdar scheme—a key agreement method with privacy-aware authentication protocol to improve security in these kinds of applications [
23]. Recognizing the potential impact of cyber attacks on electrical networks, such as real-time decision-making in demand and supply management as well as data manipulation, they created a method to boost the confidentiality of communication channels between UCs and SMs, guaranteeing physical security. Nevertheless, Baeken et al. discovered weaknesses in this approach, suggesting that it does not fulfill all the necessary security criteria [
24]. Moreover, the Gope–Sikdar protocol relies on a hash function as its main security measure, rendering it susceptible to key compromise impersonation attacks due to its symmetric nature. Additionally, their protocol includes XORing a temporal value with the secret key before transmitting it on the public channel (i.e.,
), where K becomes the main source of authentication afterward This vulnerability exposes the protocol to known session-specific temporary information attacks, allowing various malicious actions, including impersonation and de-synchronization. Rostampour et al. introduced an authentication protocol, EPSG, for the smart grid in the IoT infrastructure [
25]. This protocol, combining PUF functions and ECC encryption, establishes a secure environment, ensuring message confidentiality and integrity simultaneously. The authors conducted simulations of EPSG on an Arduino, assessing communication cost and energy consumption in a practical setting. Although EPSG’s performance is acceptable, its ability to resist machine learning attacks is limited.
Mustapa et al. introduced a security scheme based on a ring oscillator physically unclonable function [
26] to enhance information security in advanced metering infrastructures. Their primary goal was to create a robust and secure authentication approach for smart grid infrastructure. In the architecture named ROPUF, they created a secure connection between the utility center and the smart meter (SM) to transfer data. However, they did not provide details about the workings of this channel and how the SM utilizes it for communication. This channel imposes an additional burden on the SM, generating ciphertext, which was not factored into the protocol’s computational cost. Moreover, the proposed protocol exhibited vulnerabilities to impersonation and tracing attacks when data exchanges occurred over a public channel. Furthermore, due to the absence of cryptographic primitives, the protocol was susceptible to advanced attacks, including insider attacks.
In a recent development, Harishma et al. presented a scheme to secure key exchange mutually [
27]. Their scheme utilized advanced encryption techniques, such as identity-based encryption (IBE), SHA-2, and the advanced encryption standard (AES), with the possibility of employing ECC encryption and physically unclonable function (PUF) functions. The authors implemented and tested this scheme in a practical environment to provide experimental results. However, the scheme’s use of identity-based encryption (IBE) for credential management raised concerns. Currently, the most efficient IBE schemes rely on bilinear pairings on elliptic curves, such as Weil or Tate pairings, while previously published non-pairing-based schemes tend to be inefficient in encryption, decryption, key generation, ciphertext size, or key size [
28,
29].
Considering that the scheme is designed for resource-constrained devices and involves various encryption methods in each authentication process, it exhibits high complexity and is time-consuming. As an illustration, the authenticated key-exchange protocol on the smart meter setup takes 525 ms for the meter and 360 ms for the server. Additionally, as highlighted in a study by Lounis [
30], the protocol is vulnerable to spoofing attacks, where an attacker can impersonate the server and deceive the meter, compromising both the authentication and key-establishment claims of the protocol. Furthermore, the meter does not contribute to the protocol’s freshness during the authentication phase, potentially allowing impersonation of the server using the GUMAP attack [
31].
LAKE-BSG, a lightweight key exchange scheme empowered by blockchain, was devised by Badshah et al. specifically for smart grids [
32]. Leveraging the inherent security of a blockchain system, the authors aimed to establish a secure authentication method for smart meters (
) while safeguarding user privacy. The proposed technique boasts comparable transmission and computation costs to existing authentication protocols. Furthermore, the integration of blockchain technology is asserted to enhance security by ensuring data storage in a secure, decentralized, and immutable ledger.
Table 1.
Comparison of related work.
Table 1.
Comparison of related work.
Reference | Communication Cost | Time-Consuming | Method | Approved Attack |
---|
[11] |
▴
|
▴
| ECC | ✓ |
[13] |
▾
|
▴
| ECC + MAC | ✓ |
[15] |
▴
|
▴
| ECC | ✓ |
[16] |
▾
|
▴
| ECC | ✓ |
[17] |
▴
|
▾
| ECC | ✓ |
[18] |
▾
|
▾
| ECC | ✓ |
[19] |
▴
|
▴
| ECC | ✓ |
[20] |
▾
|
▾
| ECC + AEAD | ✓ |
[21] |
▴
|
▾
| ECC | × |
[23] |
▾
|
▾
| PUF | ✓ |
[25] |
▾
|
▾
| PUF | × |
[26] |
▴
|
▾
| PUF | × |
[27] |
▾
|
▴
| AES + IBE(ECC) + PUF | ✓ |
[32] |
▴
|
▾
| Blockchain | × |
3. System Model
The infrastructure of a smart metering system is illustrated in
Figure 1. As shown, an
, a
, and a certificate authority (CA) server are the key components, and the communication between the CA and other parties is established via a secure channel. On the other hand, the
and the
are connected over a public channel, which can be the weak point of this structure. Through this paper, we use the list of notations listed in
Table 2.
The proposed protocol adopts Canetti and Krawczyk’s adversary model (CK-adversary model) [
33], which is more robust than the commonly used Dolev–Yao (DY) adversary model [
34] in many designs. In the DY-adversary model, the adversary possesses complete control over message transmission through a public channel. It can eavesdrop, delete, insert, or modify fake messages in different instances. Under the CK-adversary model, the adversary possesses all the powers of the DY model and more, enabling them to infiltrate session states and secret information, encompassing secret keys. Consequently, if these session states and secret details are exposed during a particular session, this revelation must not jeopardize the confidentiality of other involved parties, as emphasized in [
35]. The CK-adversary model proves advantageous over the DY model, especially in contexts where forward secrecy is a vital protocol requirement.
To thwart potential attacks stemming from the exposure of secret information, we presume that every smart meter (
) is equipped with a robust Physical unclonable function (
). This measure is essential considering the attacker’s capability to compromise a
and extract its confidential data. Given challenges
,
and
are expected to be completely different. On the other hand, given the same challenge
to
, it is expected to have the same response. However, different PUFs should return completely different responses for the same challenge with a high probability. It should be noted attempting to design such a PUF function is an active research area but out of the scope of this paper, although many proposed schemes are vulnerable to modeling attacks or machine learning attacks [
36]. An example of such attempts is the proposed scheme by [
37] Zalivaka et al., which is claimed to be reliable and secure against modeling attacks.
We assume that the public information is stored in the smart metering infrastructure (SMI), which is accessible by all protocol parties (including the adversary), but its integrity is guaranteed and the adversary cannot modify its content.
4. Proposed Protocol (PPSG)
To overcome the security pitfalls of existing protocols, following our system model, we propose a secure protocol that is named PUF-based protocol for the smart grid—in the shortened form, PPSG. In the initialization phase, the CA selects and discloses the protocol’s parameters publicly in the smart metering infrastructure (SMI). We take into consideration that each smart meter is outfitted with a . As a result, during this stage, the certificate authority (CA) discloses the system parameters, i.e., , and they are stored in the SMI.
The registration phase of the protocol is used for the and the gateways enrollment to the CA over a secure channel. In this phase, to register a , it generates an identity for itself and transmits it to the CA. It will be accepted by the CA if it is unique, i.e., has not been used by another already. When chooses a unique identity , the CA assigns it to the and generates a pair (, ) as the ’s private and public keys, respectively. The CA then sends the token , to the through a secure channel and deletes from its database. Once the message is received, the stores in its memory. To register a gateway, the same process will be run, and it chooses its unique identifier and the CA computes , as its private and public keys, respectively, and shares with the . The set is also stored in the smart metering infrastructure (SMI), similarly .
Assume that the
ith
, which is denoted by
, wants to communicate with a nearby
jth
gateway, which is denoted by
. The mutual authentication and key agreement phase of the protocol process is as follows, as also depicted in
Figure 2:
- 1.
The obtains and from SMI, generates a random number and the timestamp , computes , , and and sends the message to the .
- 2.
Once the received , it validates , calculates , and extracts and . Next, it verifies whether to accept the login request. Assuming the request has been accepted, using , obtains from SMI, generates a random number and its timestamp and computes , and , and sends the message to the .
- 3.
Once the receives , it validates , calculates , and verifies whether to authenticate the . Next, it extracts its current timestamp and computes the shared key and and sends to the .
- 4.
Once the receives , it verifies , calculates , and verifies whether to authenticate the .
- 5.
Once the legitimacy of both and has been verified and they have been successfully authenticated, the mutual authentication and key agreement process concludes, and the shared key will be .
5. Security Analysis of PPSG
In this section, we embark on a comprehensive security evaluation of the proposed authentication and key agreement protocol for smart grid PPSG. The primary objective of this evaluation is to thoroughly assess the security aspects of PPSG from multiple perspectives.
To begin with, we employ a heuristic evaluation approach to scrutinize the security of PPSG. This method involves a systematic examination of the protocol’s components, algorithms, and implementation details to identify any potential vulnerabilities or weaknesses. Through this heuristic analysis, we leverage our expertise and knowledge in the field to identify possible security risks and provide valuable insights into the overall security posture of PPSG.
Furthermore, we conduct a formal security evaluation of PPSG within the real-or-random model. By adopting this formal model, we can rigorously assess the security guarantees provided by the protocol.
In order to further validate and reinforce the security claims of PPSG, we employ an automated security protocol verification tool named Scyther [
38]. This tool plays a crucial role in validating the security properties of the protocol by subjecting it to rigorous analysis. By utilizing Scyther’s advanced algorithms and formal methods, we can exhaustively examine PPSG for any potential security flaws, design vulnerabilities, or weaknesses. The utilization of Scyther ensures a comprehensive assessment of the security of PPSG and offers additional confidence in its effectiveness.
By combining these three evaluation approaches—heuristic evaluation, formal analysis in the real-or-random model, and security validation using Scyther—we aim to provide a robust and multi-dimensional assessment of the security of the proposed PUF-based authentication and key agreement protocol for smart grid PPSG. This comprehensive evaluation approach enhances the reliability of our findings and strengthens the confidence in the security claims made for PPSG.
5.1. Heuristic Security Evaluation
In the PPSG protocol, the secret key of the smart meter, denoted as , is protected through the process of masking with the function. As a result, if an adversary manages to compromise the smart meter, they are unable to directly extract the original secret key . Instead, the adversary can only obtain a modified version of the secret key, denoted as , which is computed as the XOR operation between and the output of the function applied to a unique identifier associated with the smart meter. Mathematically, this can be expressed as . Assuming that the employed function is secure enough, the adversary faces significant difficulties in extracting the actual secret key or conducting related attacks, such as impersonation. The security of the PPSG protocol relies on the assumption that the function effectively masks the secret key and prevents its direct extraction. By leveraging the security properties of the function, the protocol ensures that even if the adversary compromises the smart meter, they cannot obtain the original secret key and are limited to accessing the modified version .
Additionally, the session key used in the PPSG protocol is randomized using a combination of parameters:
,
,
,
, and
P. The adversary, however, only has access to
and
, where
and
are the public keys corresponding to
and
, respectively. This means that even if the adversary possesses knowledge of
and
, they are unable to extract the session key without solving the elliptic curve discrete logarithm problem (ECDLP) or the elliptic curve computational Diffie–Hellman problem (EC-CDHP). Therefore, the proposed PPSG protocol provides forward secrecy, ensuring that even with compromised long-term secret keys, the adversary cannot retroactively derive the session key. In the proposed protocol, the integrity of the messages is guaranteed by the following equations:
where
. Given that the timestamp has been used in all messages, the adversary cannot use these messages in a later session to apply a replay attack, thus demonstrating the security of PPSA against this attack.
In conclusion, the PPSG protocol strengthens the security of the smart grid system by masking the secret key using the function, preventing direct extraction. Furthermore, the randomized session key construction and the computational hardness of the ECDLP or EC-CDHP problems ensure forward secrecy, protecting the confidentiality of past sessions even in the presence of compromised long-term secret keys.
5.2. Formal Security Evaluation—RoR
Throughout the remaining part of this section, we conduct a comprehensive security evaluation of PPSG within the framework of the real-or-random (RoR) model. In this model, an initial random selection is made where a bit
b is uniformly chosen; when
, it represents the random world (
), and when
, it signifies the real world (target protocol). The adversary’s objective is to accurately distinguish the value of
b in this scenario. To do this, the adversary
can run the following query types [
39]:
: it models a passive adversary , which eavesdrops transferred messages over public channel;
: it models an active adversary on the public channel;
(): its output is the session key that is held by the instance ;
(): it returns the session key for instance if or a random value of the same size if .
Consider protocol
, in which
is given access to the
,
,
(
) and
(
) oracles, and outputs a guess bit
. The adversary wins the semantic security game in the RoR sense if
and its advantage to win this game,
, is defined as follows:
offers RoR semantic security if:
with
being some negligible function.
In this section, as outlined in [
39], we conduct a formal assessment of PPSG’s security within the RoR model. This evaluation involves gauging the adversary’s advantage in differentiating PPSG from the random world (
).
Theorem 1. Let , , , and , respectively, represent the number of queries to , , , and oracles on PPSG/, then: In the given context, represents the utmost advantage an adversary can gain in solving ECDLP or EC-CDHP with each query. Additionally, signifies the maximum advantage in challenging the collision resistance property of , while denotes the maximum advantage in distinguishing the output of from a random sequence. Here, q is calculated as the sum of , , , and .
Proof. Consider the scenario where and engage in communication to establish a session key . Let denote an adversary aiming to challenge the semantic security of PPSG within the real-or-random (RoR) model.
To establish the theorem, a game-based methodology is employed. This approach involves defining a sequence of games denoted as , initiating from the random world , and concluding in the real-world PPSG. Each game, represented as , introduces an event . This event signifies the adversary’s advantage in accurately determining the hidden bit b involved in the queries. It should be noted the structure of the transferred messages is identical in and PPSG, including plain values such as timestamps; otherwise distinguishing them is trivial.
Game It is corresponding to and .
Game In this game, any instance follows the structure of the generated and transferred messages in PPSG, e.g., . However, all computed messages, excluding timestamps, are selected completely randomly. It is clear
Game
In this game,
,
, and
. Given that
,
, and
are session-dependent random values, this modification has no impact on the adversary’s advantage as long as
is not distinguishable from a random function. Hence:
where
.
Game
In this game,
and
are calculated using ECC point multiplication. Given that
and
are fresh random numbers, the adversary’s advantage to distinguish
from
is as follows:
Game
In this game, as a part of the transferred messages, the values of
,
is used in
, where
. It is clear this modification does not affect the adversary’s advantage as long as it cannot solve ECDLP or EC-CDHP. Hence,
Game In this game, , , , and are, respectively, replaced by their real values and are taken from SMI. However, all these parameters are already masked by ECC or and we have considered the adversary’s advantages of those masking in the previous games. Hence, this modification does not give a new advantage to , and .
Game
This game is identical to
, excluding that
is computed as
. Hence,
Game
In this game, the session key is computed using the hash function as
. Given that the input value for
is randomized by nonce and the timestamps therefore,
It is clear that
represents the implementation of PPSG. Hence,
which completes the proof. □
5.3. Formal Security Validation—Scyther
In this section, we validate the security of the proposed protocol using the Scyther tool. Scyther is a powerful tool that is widely used for security analysis and verification of cryptographic protocols. One of the main advantages of Scyther is its ability to detect vulnerabilities in protocols that are not easily detected by other tools. It uses a formal language called SPDL (Scyther protocol description language) to specify the protocol being analyzed. SPDL allows Scyther to model the protocol’s behavior and identify potential weaknesses or flaws in its design. Scyther makes several security claims, including the ability to detect all possible attacks on a protocol, provide a complete analysis of its security properties, and offer automated proof of security properties. Some of the specific security claims made by Scyther include:
Alive: Scyther claims to be able to detect liveness violations, which occur when a protocol becomes stuck or deadlocked;
Secret: Scyther claims to be able to detect confidentiality violations, which occur when an attacker gains unauthorized access to sensitive information;
Weakagree: Scyther claims to be able to detect weaknesses in agreement protocols, which are used to establish shared secrets between parties;
Niagree: Scyther claims to be able to detect non-injective agreement protocols, which can allow an attacker to impersonate one of the parties involved;
Nisynch: Scyther claims to be able to detect non-injective synchronization protocols, which can allow an attacker to manipulate the order of messages between parties.
The security analysis results of the proposed protocol, i.e., PPSG, are depicted in
Figure 3.
6. Cost Analysis
To set up our experiments and obtain practical results, we designed a simulation of a smart home network, as shown in
Figure 4. This simulation included crucial components like a microcontroller, photoresistor sensor, humidity sensor, temperature sensor, and a relay for controlling AC power. To perform cryptographic operations on each smart meter client, we employed an Arduino UNO board. This board is equipped with an ATmega328P microcontroller boasting 32-kB flash memory, 2-kB SRAM, and operates at a clock speed of 16 MHz. It is worth mentioning that we verified the reliability of physical unclonable functions (PUF) in a similar microcontroller, as stated in [
40].
In our evaluation, we examined the power-up values of SRAM in 20 microcontrollers, collected 100 times at room temperature. This assessment aimed to determine the quality of these values for implementing an SRAM PUF. The results were promising: the mean bias across all devices (indicating uniformity) stood at 48.38%, a figure remarkably close to the ideal 50%. Moreover, the intra-distance between different acquisitions (which measures reliability) was 97.58%, indicating strong consistency. Additionally, the inter-distance between distinct devices (indicative of uniqueness) was 38.62%, aligning well with findings in similar microcontroller studies documented in the existing literature. These results affirm the robustness of our experimental setup and validate the viability of our approach.
Using this setup, we achieved timings of approximately 21 ms for elliptic curve cryptography (
), 26 ms for double elliptic curve cryptography (
), 6 ms for symmetric encryption (
), 3 ms for SHA-256 hashing (
), and
ms for error syndrome calculation (
). It is worth mentioning that SHA-256 might be replaced by SHA-3 based on system performance requirements or if SHA-256 is deemed insecure. We also considered the time of a PUF invocation (
) as equal to
. This equivalence was established under the assumption of utilizing a key management module capable of generating multiple keys from a single root key. To ensure cryptographic separation between these derived keys, a secure key derivation function (KDF) utilizing cryptographic primitives like SHA-256 is employed. In a comparable research effort, functions
and
utilize fuzzy extractors and helper data, among other algorithms. According to the information outlined in [
23], the times for
and
can be estimated as
and
, respectively.
Garg et al. estimated the computational complexity of their protocol ([
16] Section 5.2.1, Table 4) and claimed the computational complexity of the
and the
are same and equal to
. Based on this claim, they have shown that their protocol outperforms related protocols, e.g., [
11,
41]. However, after comparing Garg et al.’s protocol computational cost with PPSG, we understood that they underestimated the protocol’s complexity.
By summing up all the ECC point-multiplication in the
side, we come up with
which is 150% more than the reported value by Garg et al. ([
16], Section 5.2.1, Table 4), which was
. The same argument can be expressed for the
gateway’s computations. On the other hand, in PPSG, the
’s computations costs
and the
gateway’s computations costs
.
Table 3 displays a cost comparison between PPSG and other protocols discussed in
Section 2. To compare communication overhead, we examined the bit lengths of various components: a timestamp, an identifier, a random number, a hash value, and an ECC point, which were set at 32, 64, 128, 160, and 320 bits, respectively. It is important to note that we used SHA-256 but truncated its output to 160 bits to address recent security vulnerabilities in SHA-1 [
42]. Following these parameters, the communication overhead of PPSG includes
at 512 bits,
at 512 bits,
at 192 bits, and
at 160 bits, totaling 1376 bits.
In contrast, the study by [
19] documented a communication cost of 1184 bits for identical parameters. However, our analysis uncovered a possible typographical error in their report, leading to an underestimation of the communication cost. This discrepancy might have originated from the mismatched bit lengths used for values calculated via symmetric encryption, a critical factor in accurate cost estimation. Examining the findings in
Figure 5 (time and byte), our comprehensive evaluation clearly showcases PPSG’s superiority, as it imposes significantly lower communication overhead compared to its counterparts. This discrepancy underscores the importance of precise calculations when assessing the efficiency of communication protocols.
Regarding computational complexity, involves four hash function calls (), three ECC scalar multiplications (), and one PUF invocation () during its operation. On the other hand, performs four hash function calls and three ECC scalar multiplications (). Consequently, the total computational cost for the login and key agreement phase in PPSG amounts to . As per our analysis, the key agreement session within PPSG demonstrates remarkable efficiency, completing in a mere 153 ms, establishing its position as the fastest protocol among those under comparison.
Energy consumption can be limited by the formula
, where
represents energy consumption,
stands for maximum consumed current,
represents the upper limit of working voltage, and
signifies the cumulative computational time essential for session key sharing. Based on the specifications outlined in the ATmega328P datasheet [
43], the maximum operational power, denoted as
, for the ATmega328P stands at 14 mA × 5.5 V = 77 mW under active mode with a clock speed of 16 MHz. The energy measurement of PPSG on the Arduino board is depicted in
Figure 6. In addition, the energy efficiency of PPSG was compared with other schemes, as illustrated in
Figure 7. These findings reveal that the energy consumption for a PPSG session is notably lower compared to other schemes.
LAS-SG [
21], operating as a lightweight protocol, involves the transmission of only two messages totaling 205 bits. The authentication process, taking 205 ms and consuming 18.034 mJ, indicates a resource-intensive nature compared to PPSG. Lake-BGS [
32], designed for constrained smart meters (
), prioritizes lightweight functionality. However, being a blockchain-based protocol, it exhibits higher computation costs, with an authentication process requiring 180 ms—still more than PPSG. Consequently, with higher power consumption and overall, PPSG demonstrates superior performance.
In the comparison with [
25], while both the proposed PPSG protocol and the one proposed by [
25] incorporate PUF functions, PPSG outperforms it when considering computation and communication costs, resulting in lower energy consumption. This makes PPSG a more appropriate choice for smart meter security. In addressing the vulnerability of PUF functions to machine learning attacks, a novel aspect of PPSG remains in its combination of ECC and PUF. This integration safeguards transferred messages, offering an enhanced and more reliable technique compared to existing PUF-based solutions.
7. Conclusions and Future Work
When considering the phases of grid modernization, key requirements such as data security, reliability, and accuracy are crucial for realizing the grid’s full potential [
44]. A breach in any of these aspects can jeopardize the entire system. This concern is even more critical in emerging new grids, such as water and gas grids, often fully working on battery, therefore operating in resource-limited environments with constraints on processing power, memory, and energy consumption.
Initially, we examined the security of various research protocols using different models, highlighting their vulnerabilities and potential solutions. Subsequently, to address these issues, we introduced a PUF-based protocol for smart grids (SG) named PPSG, utilizing PUF and ECC methods. Our formal security analysis of PPSG within the RoR model demonstrated that it offers robust security against adversaries constrained by polynomial time. Furthermore, our cost analysis revealed that PPSG stands out as one of the most lightweight protocols compared to recent related work.
To validate PPSG’s performance in a real-world scenario, we simulated a smart meter and connected it to various electrical components representing smart home devices. The results showcased PPSG’s superiority in terms of computation and communication costs, as well as energy consumption, making it a promising choice for smart grid applications.
Finally, although PUF-based protocols offer an interesting approach to SMs security they have certain limitations, such as vulnerability to machine learning attacks, environmental variability, and aging. In this paper, we aimed to tackle the issue of machine learning attacks by developing an efficient protocol in terms of energy use and computation speed. This area of research is a call for researchers to explore further options to overcome additional challenges. For instance, they could introduce features like temperature compensation to lessen the effect of environmental changes on PUF responses. Another approach could involve continuous monitoring to spot any alterations in PUF behavior over time. These strategies offer potential ways to enhance the overall performance of PUFs and contribute to enhancing the reliability, security, and longevity of PUF functions in smart meters.