AI contributes to cyber security by assisting in threat detection, analyzing network traffic for abnormalities, identifying and responding to security breaches, and improving incident response times through automated processes.