Mitigating risks of AI in cyber warfare