This article investigates the leader-following synchronization problem of multiagent systems (MASs) under hybrid cyber attacks, which refers to deception attacks and multichannel independent denial-of-service (DoS) attacks in communication channels. In order to achieve the secure control of MASs under hybrid cyber attacks, a novel impulsive control method based on topology switching is proposed, and a new algorithm for determining impulsive instants is designed. In addition, the cooperative-competitive relationship between agents is also considered, which is more in line with reality. Sufficient conditions for ensuring secure control of MASs and a parametric upper bound on the error vector norm between the agents and the leader are obtained. Finally, the numerical simulation verified the effectiveness of the proposed algorithm.