AI to defend against AI-based cybersecurity threats