Artificial Intelligence in Cybersecurity: A Double-Edged Sword