The security technique of the smart grid offers grid reliability Assessment, failure protection, and security and privacy defense services. Even though the additional communication infrastructure of a smart grid gives added protecting and stability mechanisms, In addition, it presents a chance of exterior assault and inside failures. In a very repo