I. Introduction
The modern power systems are highly dependent on Information and Communication Technologies (ICT), making it a form of Cyber-Physical System (CPS). This deep integration of physical and cyber systems leads to some loopholes between these two sections, makes the power grid vulnerable to the cyber attack. Consequently, it results in the national economy and public safety issues as well as security and stability problems [1], [2]. As a case in point, disruptions to Ukraine's power system in 2015 and 2016 were attributed to a cyberattack and led to power outages affecting hundreds of thousands of people [3], [4]. Also, there have been media reports of attempted attacks on the electricity grids in some European countries and reports of companies that manage energy facilities in the U.S. being compromised by hackers [5], [6]. There are different types of attacks such as code manipulation (changing the software/firmware), command manipulation, false data injection attack (manipulating the data without affecting the code), network-based attack (physical communication link), communication-based attacks, database manipulation, password cracking, etc. (Fig. 1) [7].