In this paper, the problem of distributed event-based control of large scale power systems in presence of denial-of-service (DoS) cyber attacks is addressed. Towards this end, a direct current (DC) microgrid composed of multiple interconnected distributed generation units (DGUs) is considered. Voltage stability is guaranteed by utilizing decentralized local controllers for each DGU. A distributed discrete-time event-triggered (ET) consensus-based control strategy is then designed for current sharing in the DGUs. Through this mechanism, transmissions occur while a specified event is triggered to prevent unessential utilization of communication resources. The asymptotic stability of the ET-based controller is shown formally by using Lyapunov stability via linear matrix inequality (LMI) conditions. The behavior of the DGUs subject to DoS cyber attacks are also investigated and sufficient conditions for secure current sharing are obtained. Towards this end, a switching framework is considered between the communication and attack intervals in order to derive sufficient conditions on frequency and duration of DoS cyber attacks to reach the secure current sharing. The validity and capabilities of the presented approach is confirmed through a simulation case study.INDEX TERMS Distributed event-based control, denial-of-service (DoS) cyber attack, DC microgrid, current sharing, asymptotic stability, consensus-based control, linear matrix inequality (LMI).