I. Introduction
One of the pillars of smart grids (SGs) is the two-way flow of power and information. To this end, SGs are operated as a cyber-physical system (CPS), where the existing infrastructure of the system is merged with the computational and communication capabilities of the power system through cyberspace. A CPS plays by these rules to improve the operation of the system and enhance its reliability by giving operators access to control and monitor various parts of the system. However, as a result of the deep integration between the physical and cyber layers, the adversary is drawn to conduct cyber-attacks since a breach in the cyber layer's security might lead to the physical layer's instability. Hence, gaining knowledge on how to defend against these attacks has attracted the researchers' attention.