Combating Cybersecurity Threats Using Artificial Intelligence