How AI is helping enterprises turn the tables on malicious attacks