AI can help companies more effectively identify and respond to threats, as well as harden applications.