Predict and prevent cyberattacks with AI