A Secure Charging System for Electric Vehicles Based on Blockchain
Abstract
:1. Introduction
- (1)
- We demonstrate security weaknesses of Huang et al.’s model, and highlight its inefficiencies.
- (2)
- We propose a secure charging system for EV based on blockchain to solve these security weaknesses and improve efficiency.
- (3)
- We perform informal analysis to demonstrate the proposed system is secure against various attacks, and prove that it provides secure mutual authentication using Burrows–Abadi–Needham (BAN) logic. We also perform formal security verification using the AVISPA tool and compare performances with previous schemes.
- (4)
- We analyze the computational and communication costs compared with other related existing schemes.
1.1. Organization
1.2. Related Works
2. System Model
2.1. Hyperledger
- Consensus layer: ensures agreement between transaction order and checks their validation.
- Smart contract layer: processes transaction requests and verifies smart contracts are valid.
- Communication layer: guarantees security for messages transmitted between nodes.
- Data store abstraction: manages data.
- Crypto abstraction: includes cryptographic algorithms or modules.
- Identity service: sets up the blockchain network, manages user and system node registration, and provides authentication and authorization.
- Policy services: provide various policies for blockchain systems.
- APIs: provide various blockchain interfaces.
- Interoperation: allows interoperation among blockchain instances.
2.2. System Model
- EV registers their identity with the operator to access charging services.
- EV and EAG authenticate each other.
- EAG generates transactions.
- EAG verifies the transaction is valid and records transactions on blockchain networks.
3. Review of Huang et al.’s Scheme
3.1. Registration Phase
- Step 1:
- EVs choose a random number and calculate . The EVs request a registration in a blockchain and broadcast ,, and .
- Step 2:
- CPs check whether the received signature is valid, and then compute signature and . Then, CPs send and to the OP in the blockchain.
- Step 3:
- OP verifies the received the signature is valid and reuses , where is shared with each participant to decrypt . Subsequently OP computes and broadcasts it in the blockchain.
- Step 4:
- After receiving key from the OP, each participant decrypts and computes session key . When a request is recorded in the blockchain, it is checked by all CPs.
3.2. Scheduling Phase
3.3. Authentication Phase
- Step 1:
- EV sends identity to the CP, and then the CP checks whether it is valid through the blockchain networks. If it is valid, the CP returns charging request to the EV.
- Step 2:
- After receiving the charging request from the CP, the EV sends to the CP.
- Step 3:
- CP selects a random number , current timestamp , and calculates , , , and . Then, the CP sends , to the EV.
- Step 4:
- EV selects a random number , calculates =, , and , and sends , to the CP via the secure channel.
- Step 5:
- After receiving the message from the EV, the CP computes = and , and checks the received signature. If it is not valid, the CP aborts the authentication phase. Otherwise, the CP selects a random number and computes , , , and . Finally, the CP sends to the EV.
- Step 6:
- After receiving the message from the CP, the EV computes , ,, and . The CP checks the received signature. If valid, the EV and CP achieve mutual authentication. Otherwise, the EV aborts mutual authentication. After mutual authentication, the session key is used to encrypt messages to ensure secure communications.
3.4. Charging Phase
- Step 1:
- EV calculates commitment including EV’s identity, random parameter, and signature.
- Step 2:
- CP verifies whether commitment and current time stamps are valid. If valid, the CP starts charging for EV. Otherwise, this phase is aborted.
4. Problems of Huang et al.’s Scheme
4.1. Deposit Problem
4.2. Inefficient Mechanism for Generating Transaction
4.3. Cost of Transaction Fee
4.4. Security of Key
5. Proposed Charging System for EV Based on Blockchain
5.1. Initialization Phase
- Step 1:
- OP selects a base point G on the elliptic curve with order n, where n is a large prime number.
- Step 2:
- EAG generates public key, private key, and random number .
- Step 3:
- OP defines network configuration including channel members and policies, records it in a blockchain, and shares it with system participants.
5.2. Registration Phase
- Step 1:
- EV selects their identity , password , generates random numbers and , calculates a public key and , and then sends and to OP through a secure channel.
- Step 2:
- OP chooses a random number and calculates public key , , , and . Finally, OP sends , to EV, modifies network configurations, and stores details in the blockchain.
- Step 3:
- EV computes , ; and stores , , , and in memory.
5.3. Authentication Phase
- Step 1:
- EV inputs identity and password ; and calculates , , , , and . Then, EV checks whether . If valid, EV computes , and ; and sends , , to EAG.
- Step 2:
- After receiving , , from EV, EAG calculates using the private key . Then EAG computes and verifies . If valid, EAG authenticates EV and calculates , , and session key . Finally, EAG sends , , to EV.
- Step 3:
- When EV receives , , from EAG, it computes and , and verifies . If valid, mutual authentication between EV and EAG has been accomplished. EV calculates a shared session key, .
5.4. Charging Phase
- Step 1:
- EV generates a transaction including ; ; charging records, prices, charging time , signature of EV and information of payment, and EV computes . After that, EV sends to the EAG.
- Step 2:
- After receiving the message from EV, EAG checks whether . If it is correct, EAG checks whether the transaction information is correct. Then, EAG adds the own signature to the transaction. Finally, the charging is started and EAG records the transaction on the blockchain.
6. Security Analysis
6.1. Informal Security Analysis
6.1.1. Impersonation Attack
6.1.2. Session Key Disclosure Attack
6.1.3. Perfect Forward Secrecy
6.1.4. Replay Attack
6.1.5. Mutual Authentication
6.1.6. Anonymity
6.2. Security Analysis Using BAN Logic
BAN Logic Rules
- 1.
- Message meaning rule:
- 2.
- Nonce verification rule:
- 3.
- Jurisdiction rule:
- 4.
- Freshness rule:
- 5.
- Belief rule:
6.3. Goals
- Goal 1:
- Goal 2:
- Goal 3:
- Goal 4:
6.3.1. Idealized Forms
- :
- :
- :
- :
6.3.2. Assumptions
- :
- :
- :
- :
- :
- :
- :
- :
6.3.3. Proof using BAN Logic
- Step 1:
- From ,
- Step 2:
- From the message meaning rule with and ,
- Step 3:
- Using the freshness rule with ,
- Step 4:
- From the nonce verification rule with and ,
- Step 5:
- Since the session key , from and ,
- Step 6:
- From the jurisdiction rule with and ,
- Step 7:
- From the ,
- Step 8:
- Using the message meaning rule with and ,
- Step 9:
- From the freshness rule with ,
- Step 10:
- From the nonce verification rule with and ,
- Step 11:
- Since the session key , from and ,
- Step 12:
- From the jurisdiction rule with and ,
6.4. Formal Security AVISPA Tool for Formal Security Verification
6.4.1. HLPSL Specification of AVISPA Simulation
6.4.2. AVISPA Verification Results
7. Performance Analysis
7.1. Computation Cost
- Bilinear pairing, ms.
- Scalar multiplication with bilinear pairing, ms.
- Point addition with bilinear pairing, ms.
- Scalar multiplication with elliptic curve cryptography, ms.
- Point addition with elliptic curve cryptography, ms.
- Encryption with elliptic curve cryptography, ms.
- Decryption with elliptic curve cryptography, ms.
- Hash, ms.
- Map-to-point, ms.
7.2. Communication Cost
8. Conclusions
Author Contributions
Funding
Conflicts of Interest
References
- Cheung, V. South Korea Releases Electric Public Transportation System. Available online: http://globalenergyinitiative.org/south-koreareleases-electric-public-transportation-system.html (accessed on 11 May 2019).
- Lo, N.-W.; Tasi, J.-L. An efficient conditional privacy-preserving authentication scheme for vehicular sensor networks without pairings. IEEE Trans. Intell. Transport. Syst. 2016, 17, 1319–1328. [Google Scholar] [CrossRef]
- Kumari, S.; Karuppiah, M.; Li, X.; Wu, F.; Das, A.K. An enhanced and secure trust-extended authentication mechanism for vehicular ad-hoc networks. Secur. Commun. Netw. 2016, 9, 4255–4271. [Google Scholar] [CrossRef]
- Chin, W.-L.; Li, W.; Chen, H.-H. Energy big data security threats in IoT-based smart grid communications. IEEE Commun. Mag. 2017, 55, 70–75. [Google Scholar] [CrossRef]
- Liu, Y.; Wang, Y.; Chang, G. Efficient privacy-preserving dual authentication and key agreement scheme for secure V2V communications in an IoV paradigm. IEEE Trans. Intell. Transport. Syst. 2017, 18, 2740–2749. [Google Scholar] [CrossRef]
- Mohit, P.; Amin, R.; Biswas, G.P. Design of authentication protocol for wireless sensor network-based smart vehicular system. Veh. Commun. 2017, 9, 64–71. [Google Scholar] [CrossRef]
- Guo, L.; Dong, M.; Ota, K.; Li, Q.; Ye, T.; Wu, J.; Li, J. A secure mechanism for big data collection in large scale internet of vehicle. IEEE Internet Things J. 2017, 4, 601–610. [Google Scholar] [CrossRef]
- Zhou, Y.; Zhao, X.; Jiang, Y.; Shang, F.; Deng, S.; Wang, X. An enhanced privacy-preserving authentication scheme for vehicle sensor networks. Sensors 2017, 17, 2854. [Google Scholar] [CrossRef]
- Shen, J.; Zhou, T.; Wei, F.; Sun, X.; Xiang, Y. Privacy-preserving and lightweight key agreement protocol for V2G in the social internet-of-things. IEEE Internet Things J. 2018, 5, 2526–2536. [Google Scholar] [CrossRef]
- Wu, L.; Sun, Q.; Wang, X.; Wang, J.; Yu, S.; Zou, Y.; Liu, B.; Zhu, Z. An efficient privacy-preserving mutual authentication scheme for secure V2V communication in vehicular ad hoc network. IEEE Access 2019, 7, 55050–55063. [Google Scholar] [CrossRef]
- Gan, L.; Topcu, U.; Low, S.H. Optimal decentralized protocol for electric vehicle charging. IEEE Trans. Power Syst. 2013, 28, 940–951. [Google Scholar] [CrossRef]
- Xu, Y.; Pan, F.; Tong, L. Dynamic Scheduling for Charging Electric Vehicles: A Priority Rule. IEEE. Trans. Autom. Control 2016, 61, 4094–4099. [Google Scholar] [CrossRef]
- Lu, J.L.; Yeh, M.Y.; Hsu, Y.C.; Yang, S.N.; Gan, C.H.; Chen, M.S. Operating electric taxi fleets: A new dispatching strategy with charging plans. In Proceedings of the 2012 IEEE International Electric Vehicle Conference, Greenville, SC, USA, 4–8 March 2012; pp. 1–8. [Google Scholar]
- Kim, H.J.; Lee, J.; Park, G.L.; Kang, M.J.; Kang, M. An efficient scheduling scheme on charging stations for smart transportation. In Proceedings of the International Conference on Security-Enriched Urban Computing and Smart Grid, Daejeon, Korea, 15–17 September 2010; pp. 274–278. [Google Scholar]
- Tian, Z.; Jung, T.; Wang, Y.; Zhang, F.; Tu, L.; Xu, C.; Tian, C.; Li, X. Real-time charging station recommendation system for electric-vehicle taxis. IEEE Trans. Intell. Transp. Syst. 2016, 17, 3098–3109. [Google Scholar] [CrossRef]
- Tang, W.; Zhang, Y.J.A. A model predictive control approach for lowcomplexity electric vehicle charging scheduling: Optimality and scalability. IEEE Trans. Power Syst. 2016, 32, 1050–1063. [Google Scholar] [CrossRef]
- Nakamoto, S. Bitcoin: A Peer-to-Peer Electronic Cash System. Available online: https://bitcoin.org/bitcoin.pdf (accessed on 27 May 2019).
- Pub, N.F. Secure Hash Standard. Available online: https://csrc.nist.gov/csrc/media/publications/fips/180/\2/archive/2002-08-01/documents/fips180-2withchangenotice.pdf (accessed on 27 May 2019).
- Available online: https://www.hyperledger.org/resources/publications#white-papers (accessed on 27 May 2019).
- Huang, X.; Xu, C.; Wang, P.; Liu, H. LNSC: A Security Model for Electric Vehicle and Charging Pile Management Based on Blockchain Ecosystem. IEEE Access 2018, 6, 13565–313574. [Google Scholar] [CrossRef]
- Poon, J.; Dryja, T. The Bitcoin Lightning Network: Scalable Off-Chain Instant Payments. Available online: http://www.theblockchain.com/docs/Lightning%20Network (accessed on 27 May 2019).
- Surhone, L.M.; Timpledon, M.T.; Marseken, S.F. Smart Contract; Betascript Publishing: Saarbrücken, Germany, 2010; pp. 1–72. ISBN 978-613-0-48941-0. [Google Scholar]
- Roman, R.; Alcaraz, C.; Lopez, J.; Sklavos, N. Key management systems for sensor networks in the context of the Internet of Things. Comput. Electr. Eng. 2011, 37, 147–159. [Google Scholar] [CrossRef]
- Turkanovic, M.; Brumen, B.; Hölbl, M. A novel user authentication and key agreement scheme for heterogeneous ad hoc wireless sensor networks, based on the Internet of Things notion. Ad Hoc Netw. 2014, 20, 96–112. [Google Scholar] [CrossRef]
- Amin, R.; Biswas, G. A secure light weight scheme for user authentication and key agreement in multi-gateway based wireless sensor networks. Ad Hoc Netw. 2016, 36, 58–80. [Google Scholar] [CrossRef]
- Lu, Y.; Li, L.; Peng, H.; Yang, Y. An energy efficient mutual authentication and key agreement scheme preserving anonymity for wireless sensor networks. Sensors 2016, 16, 837. [Google Scholar] [CrossRef]
- Magazzeni, D.; McBurney, P.; Nash, W. Validation and verification of smart contracts: A research agenda. Computer 2017, 50, 50–57. [Google Scholar] [CrossRef]
- Dubois, A.; Wehenkel, A.; Fonteneau, R.; Olivier, F.; Ernst, D. An app-based algorithmic approach for harvesting local and renewable energy using electric vehicles. In Proceedings of the 9th International Conference on Agents and Artificial Intelligence, Porto, Protugal, 24–26 February 2017; pp. 322–327. [Google Scholar]
- Knirsch, F.; Unterweger, A.; Engel, D. Privacy-preserving blockchain based electric vehicle charging with dynamic tariff decisions. Comput. Sci. Res. Dev. 2017, 33, 71–79. [Google Scholar] [CrossRef]
- Li, Z.; Kang, J.; Yu, R.; Ye, D.; Deng, Q.; Zhang, Y. Consortium Blockchain for Secure Energy Trading in Industrial Internet of Things. IEEE Trans. Ind. Inf. 2017, 14, 3690–3700. [Google Scholar] [CrossRef]
- Wazid, M.; Das, A.K.; Kumar, N.; Odelu, V.; Reddy, A.G.; Park, K.; Park, Y. Design of lightweight authentication and key agreement protocol for vehicular ad hoc networks. IEEE Access 2017, 5, 14966–14980. [Google Scholar] [CrossRef]
- Messerges, T.S.; Dabbish, E.A.; Sloan, R.H. Examining smart-card security under the threat of power analysis attacks. IEEE Trans. Comput. 2002, 51, 541–552. [Google Scholar] [CrossRef]
- Kocher, P.; Jaffe, J.; Jun, B. Differential power analysis. In Proceedings of the Annual International Cryptology Conference (CRYPTO), Santa Barbara, CA, USA, 15–19 August 1999; pp. 388–397. [Google Scholar]
- Burrows, M.; Abadi, M.; Needham, R. A logic of authentication. ACM Trans. Comput. Syst. 1990, 8, 18–36. [Google Scholar]
- AVISPA. Automated Validation of Internet Security Protocols and Applications. Available online: http://www.avispaproject.org/ (accessed on 10 May 2019).
- Park, K.; Park, Y.; Park, Y.; Reddy, A.G.; Das, A.K. Provably secure and efficient authentication protocol for roaming service in global mobility networks. IEEE Access 2017, 5, 25110–25125. [Google Scholar] [CrossRef]
- Park, K.; Park, Y.; Park, Y.; Das, A.K. 2PAKEP: Provably secure and efficient two-party authenticated Key exchange protocol for mobile environment. IEEE Access 2018, 6, 30225–30241. [Google Scholar] [CrossRef]
- Yu, S.; Lee, J.; Lee, K.; Park, K.; Park, Y. Secure authentication protocol for wireless sensor networks in vehicular communications. Sensors 2018, 18, 3191. [Google Scholar] [CrossRef]
- Odelu, V.; Das, A.K.; Choo, K.R.; Kumar, N.; Park, Y. Efficient and secure time-key based single sign-on authentication for mobile devices. IEEE Access 2017, 5, 27707–27721. [Google Scholar] [CrossRef]
- Von Oheimb, D. The high-level protocol specification language HLPSL developed in the EU project avispa. In Proceedings of the APPSEM 2005 Workshop, Tallinn, Finland, 13–15 September 2005; pp. 1–2. [Google Scholar]
- Turuani, M. The CL-Atse protocol analyser. In Proceedings of the 17th International Conference on Rewriting Techniques and Applications (RTA), Seattle, WA, USA, 12–14 August 2006; pp. 277–286. [Google Scholar]
- Basin, D.; Modersheim, S.; Vigano, L. OFMC: A symbolic model checker for security protocols. Int. J. Inf. Secur. 2005, 4, 181–208. [Google Scholar] [CrossRef]
- SPAN: A Security Protocol Animator for AVISPA. Available online: http://www.avispa-project.org/ (accessed on 4 May 2019).
- Lai, C.; Lu, R.; Li, H.; Zheng, D.; Shen, X.S. Secure machine-type communications in LTE networks. Wirel. Commun. Mob. Comput. 2016, 16, 1495–1509. [Google Scholar] [CrossRef]
- Qiu, Y.; Ma, M.; Wang, X. A proxy signature-based handover authentication scheme for LTE wireless networks. J. Netw. Comput. Appl. 2017, 83, 63–71. [Google Scholar] [CrossRef]
- Islam, S.K.H.; Obaidat, M.S.; Vijayakumar, P.; Abdulhay, E.; Li, F.; Reddy, M.K.C. A robust and efficient password-based conditional privacy preserving authentication and group-key agreement protocol for VANETs. Future Gener. Comput. Syst. 2018, 84, 216–227. [Google Scholar] [CrossRef]
- Nkenyereye, L.; Kwon, J.; Choi, Y. Secure and lightweight cloud-assisted video reporting protocol over 5G-enabled vehicular networks. Sensors 2017, 17, 2191. [Google Scholar] [CrossRef] [PubMed]
- Lee, H.; Lee, D.; Moon, J.; Jung, J.; Kang, D.; Kim, H.; Won, D. An improved anonymous authentication scheme for roaming in ubiquitous networks. PLoS ONE 2018, 13, e0193366. [Google Scholar] [CrossRef]
- Yu, Y.; Li, Y.; Du, X.; Chen, R.; Yang, B. Content protection in named data networking: Challenges and potential solutions. IEEE Commun. Mag. 2018, 56, 82–87. [Google Scholar] [CrossRef]
- Ying, B.; Nayak, A. Lightweight remote user authentication protocol for multi-server 5G networks using self-certified public key cryptography. J. Netw. Comput. Appl. 2019, 131, 66–74. [Google Scholar] [CrossRef]
Notations | Meanings |
---|---|
EV | Electric vehicle |
EAG | Energy aggregator |
OP | Operator |
Elliptic curve over a finite field, where p is a large prime number | |
G | Base point in |
/ | Identity/password for entity i |
Private key for entity i | |
Public key for entity i | |
a, b | Random number |
Random number from OP | |
Hash function | |
‖ | Concatenation operation |
⊕ | XOR operation |
Session key |
Notation | Description |
---|---|
Abelieves statement X | |
#X | Statement X is fresh |
Asees statement X | |
A once said X | |
Acontrols statement X | |
Formula X is combined with formula Y | |
X is encrypted under key K | |
A and B may use shared key K to communicate | |
B has K as a public key | |
Session key used in the current session |
© 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Kim, M.; Park, K.; Yu, S.; Lee, J.; Park, Y.; Lee, S.-W.; Chung, B. A Secure Charging System for Electric Vehicles Based on Blockchain. Sensors 2019, 19, 3028. https://doi.org/10.3390/s19133028
Kim M, Park K, Yu S, Lee J, Park Y, Lee S-W, Chung B. A Secure Charging System for Electric Vehicles Based on Blockchain. Sensors. 2019; 19(13):3028. https://doi.org/10.3390/s19133028
Chicago/Turabian StyleKim, MyeongHyun, KiSung Park, SungJin Yu, JoonYoung Lee, YoungHo Park, Sang-Woo Lee, and BoHeung Chung. 2019. "A Secure Charging System for Electric Vehicles Based on Blockchain" Sensors 19, no. 13: 3028. https://doi.org/10.3390/s19133028