Cybersecurity in swarms