Artificial intelligence has moved beyond assisting cyber attackers and is now operating within the attack chain itself.