Enhancing Cybersecurity and frequency Control Efficiency in AC islanded Microgrids: A Distributed Approach with a Stochastic Models | Synapse