Leveraging AI for enhanced cybersecurity measures