A comprehensive model is developed for coordinated control of voltage-frequency-inertia and identifying multiple cyberattacks simultaneously in two microgrids (MGs). The MGs are integrated with solar units, Wind turbine (WT), hybrid supercapacitor-battery, and fuelcell. The MGs are modelled and controlled for operation under both an island and connected states. In the proposed method, a data centre is designed in which all the electrical and control signals related to the solar, wind, hybrid supercapacitor-battery, and Fuel cell (FC) are collected, evaluated, and matched. The data centre comprises the following blocks: voltage-frequency control, inertia control of WT, and identification of false data injection (FDI) cyberattacks on frequency, power, power/frequency, and voltage. The technique used in this article to identify FDI attacks is based on the real-time method coupled with logical comparisons conducted in the time domain. This methodology provides prompt and precise detection, allowing for timely preventive measures and strategic responses. After FDI attacks occur, the implemented control system effectively manages and regulates the voltage and frequency at the desired levels, efficiently differentiating between ordinary functioning, faulty states, and potential cyber-attacks. The unhealthy MG can transfer its load to the healthy MG for safety reasons. The healthy MG is then connected to the external grid and the synchronisation conditions are checked by the proposed control system. The results of the non-linear simulation performed in MATLAB-Simulink software confirm that the proposed model successfully operates and controls all resources (i.e. solar/wind/battery/FC), regulates the voltage/frequency under various loading conditions, and identifies FDI cyberattacks.