The networked control systems (NCSs) under cyberattacks have received much attention in both industrial and academic fields, with rare attention on the delayed networked control systems (DNCSs). In order to well address the control problem of DNCSs, in this study, we consider the resilient event‐triggered safety control problem of the NCSs with time‐varying delays based on the switched observer subject to aperiodic denial‐of‐service (DoS) attacks. The observer‐based switched event‐triggered control (ETC) strategy is devised to cope with the DNCSs under aperiodic cyberattacks for the first time so as to decrease the transmission of control input under limited network channel resources. A new piecewise Lyapunov functional is proposed to analyze and synthesize the DNCSs with exponential stability. The quantitative relationship among the attack activated/sleeping period, exponential decay rate, event‐triggered parameters, sampling period, and maximum time‐delay are explored. Finally, we use both a numerical example and a practical example of offshore platform to show the effectiveness of our results.