AI has made scam artists much more powerful - but the technology also offers solutions to the very problems it's exacerbating.