Revolutionizing Cybersecurity: The Pivotal Role of AI in Enhancing System Security