Leveraging AI for Robust Cybersecurity Measures