A zero-day exploit is a cyberattack that uses unknown or unaddressed security flaws in computer software, hardware, or firmware. Zero-day vulnerabilities pose very significant threats to cyber security. While traditional methods have been effective, they are lacking in many aspects due to rapidly evolving cyber threats. Hence, this paper examines artificial intelligence techniques, including machine learning and their application in enhancing cyber security against zero-day vulnerabilities. The research delves into supervised and unsupervised models and algorithms like Naive Bayes. The findings suggest that effective solutions such as artificial intelligence-driven approaches are crucial in the face of rapidly evolving cyber threats.