The Rise of AI in Cybersecurity Threats and Opportunities