Cyber criminals are turning to artificial intelligence tools to write malicious code, proofread scam emails and increase the volume of their attacks.