How to Safeguard Your Network Against AI-Based Cyber Attacks