Towards resilient cyber networks against adversarial attacks