The brain is a dynamic system that generates a broad repertoire of perceptual, motor, and cognitive states by the integration and segregation of different functional domains represented in large-scale brain networks. However, the fundamental mechanisms underlying brain network integration remain elusive. Here, for the first time to our knowledge, we found that in the resting state the brain visits few synchronization modes defined as clusters of temporally aligned functional hubs. These modes alternate over time and their probability of switching leads to specific temporal loops among them. Notably, although each mode involves a small set of nodes, the brain integration seems highly vulnerable to a simulated attack on this temporal synchronization mechanism. In line with the hypothesis that the resting state represents a prior sculpted by the task activity, the observed synchronization modes might be interpreted as a temporal brain template needed to respond to task/environmental demands.