AI employs machine learning algorithms that can adapt to new types of security threats, identifying potential risks before they become actual problems.