Motivated by recent wide-scale deployment of Microgrids (MGs), this paper proposes an innovative framework for resilience enhancement of Islanded Microgrids (IMGs) against potential cyberattacks targeting IMG’s critical load curtailment. The proposed framework provides solutions for resilience enhancement in pre-attack (normal situation) and post-detection stages benefiting from three techniques, i.e., (i) ODPS: Optimal Distributed Energy Resources (DER) Placement and Sizing, (ii) OID: Optimal Intelligent Electronic Devices (IED) Diversification, and (iii) OPNR: Optimal Power Network Reconfiguration. The proposed approach improves all the phases of the resilience curve for an IMG, i.e., survive, sustain, and recovery. To improve the survive and sustain resilience phases, ODPS and OID techniques are used to optimally design the power and cyber configurations in pre-attack stage. In the operation phase, an OPNR technique is employed in both pre-attack and post-detection stages to effectively enhance the system resilience in survive and recovery phases. The effectiveness of the proposed approach is evaluated using IEEE 17- and 69-bus test systems operating as IMGs. The obtained results demonstrate significant improvements in the overall resilience of the underlying IMG.