This article addresses the security synchronization issue of complex dynamical networks under asynchronous cyber and physical attacks within the context of cyber-physical systems. An observer is devised to estimate the system's state using the measured outputs of partial nodes. The integration of a buffer for storing historical information enhances the accuracy of state estimation under asynchronous attacks, enabling the observer-based control scheme to generate more precise control signals during attacks. The robustness against external disturbances is reinforced by introducing disturbance compensation for both the observer and the controller. Additionally, an adaptive memory event-triggered mechanism is designed to conserve network resources. Then, a sufficient condition for the synchronization of complex dynamical networks against asynchronous attacks is obtained, and the gains of the observer and controller are computed based on the linear matrix inequality technique. Finally, a simulated example demonstrates the effectiveness of the suggested strategy.