Multi-agent systems are widely used in practice. The existing results on the consensus of multi-agent systems mainly focus on the complete consensus, which can not deal with the situation of the system in the face of multiple tasks. In this paper, the multi-group consensus problem of multi-agent systems with semi-Markov jump topologies against hybrid cyber-attacks is studied. The purpose is to ensure that the multi-agent systems can achieve different consensus goals when they encounter hybrid cyber-attacks, and to solve the problem of time-varying communication topology between agents modeled by the semi-Markov process. Additionally, two types of cyber-attacks are taken into account in a single framework through two independent sets of Bernoulli sequences. Subsequently, a necessary condition is established to guide the system toward achieving the multi-group consensus objective. Lastly, a series of illustrative examples are presented to underscore the validity of the designed controller.