The Rise of AI in Cybersecurity: Challenges and Opportunities