arXiv:2610.25420cs.CROct 2026

Manuscript Offprint

arXiv:2610.25420

Adaptive Cyber-Defense for Evolving Attacker Capabilities using Reinforcement Learning and Behavior Trees

Nicholas Potteiger, Ankita Samaddar, Xenofon Koutsoukos

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Nicholas Potteiger D◯\textcircled{D} X◯\textcircled{X}, Ankita Samaddar D◯\textcircled{D}, and Xenofon Koutsoukos D◯\textcircled{D}

Vanderbilt University, Nashville, TN, USA

nicholas.potteiger@vanderbilt.edu, ankita.samaddar@vanderbilt.edu, xenofon.koutsoukos@vanderbilt.edu

Abstract. Autonomous cyber-defense agents trained using reinforcement learning (RL) are increasingly adopted for defending enterprise computer networks. However, existing approaches may become brittle as attacker capabilities evolve and enable new attack strategies. In this work, we study the problem of adapting defender policies learned in CAGE Challenge Scenario 2 (CC2), a benchmark enterprise network defense scenario, to an extended network scenario with new attacker capabilities represented by new attacker actions. Effective attack strategies that leverage new actions are initially unknown, and therefore attacker policies must be learned before defender adaptation can occur. To address this challenge, we develop adversarial RL (ARL) with behavior trees (ARLBT), which uses reward behavior trees (RBTs) to define progression-based reward functions and condition attacker policies on RBT execution. The proposed RBT incorporates the new attacker actions into structured attack strategies while leveraging parallel execution to generate rewards across multiple network nodes simultaneously. We evaluate ARLBT for learning attacker policies against two baseline defender policies across network scenarios with different sets of new attacker actions and compare against multiple attacker baselines. The results demonstrate that ARLBT improves attacker success compared to ARL using the original CC2 reward function and that conditioning policies on RBT execution can improve sample efficiency. We further show that defender policies can be adapted against the learned attackers, improving robustness to attacks that leverage new attacker actions.

Keywords: cyber-security · neurosymbolic AI · reinforcement learning · behavior trees

1 Introduction

Autonomous cyber-defense agents for computer networks trained using reinforcement learning (RL) reduce the manual effort of cyber operators by continuously monitoring networks and responding to attacks in real time. Recent work has demonstrated that RL agents can learn effective defender policies for complex

Potteiger et al.

enterprise-scale network environments [8, 15]. However, cyber environments are inherently non-stationary. Changes in network topology, attacker strategies, or attacker capabilities can introduce a mismatch between the conditions under which a defender was trained and the threats it must defend against during deployment [12]. As attacker capabilities evolve and enable new strategies for disruption, evasion, and lateral movement, the effectiveness of defender policies trained against fixed attacker capabilities may degrade.

Prior work has explored adapting defender policies to changing attacker behavior and network structure. Existing approaches have considered switching between defender policies in response to changing fixed attacker policies [16,18], generalization across varying network topologies [8,15], and jointly training attackers and defenders through adversarial RL (ARL), where attacker and defender policies are trained against one another to improve their respective policies [9,11]. However, these particular methods assume that attacker capabilities remain fixed. In practice, attacker capabilities may evolve and enable new attack strategies that were not represented during defender training. Existing methods therefore do not address how to learn attackers capable of leveraging new capabilities or how to subsequently adapt defender policies against the resulting attacker behaviors.

In this work, we consider the problem of adapting defender policies from an original network scenario to an extended network scenario with new attacker capabilities represented by new attacker actions. Specifically, we study CAGE Challenge Scenario 2 [7] (CC2), where a defender policy is initially trained against fixed attackers operating under the original set of attacker actions in an enterprise network environment. The objective of the attacker is to compromise and persistently impact an operational server, while the objective of the defender is to mitigate the attacker's progress and minimize quality of service disruption. We extend the scenario with new attacker actions that enable additional disruption and evasion capabilities, such as denial-of-service attacks and stealthy exploitation. Consequently, effective attacker policies that leverage the new actions must first be learned before defender policy adaptation can occur.

Learning attacker policies for new attacker actions presents several challenges. As the set of attacker actions expands, effective attack strategies may require progression through multiple coordinated stages over long time horizons. For example, denial-of-service may be used to create diversions before progressing toward the objective of the attacker. These long-horizon dependencies produce delayed and sparse reward signals that reduce sample efficiency, highlighting the importance of reward shaping for attacker training [1, 10, 21]. However, the reward function for CC2 provides limited feedback regarding attacker progression. Prior work has explored finite-state machines as progression-based reward functions (reward machines) and conditioned attacker policies on attacker progression [10], while more recent work has introduced reward behavior trees as progression-based reward functions for compositional robotic tasks [17].

To address these challenges, we develop adversarial reinforcement learning with behavior trees (ARLBT) to learn attacker policies for new attacker actions and subsequently adapt defender policies. We use reward behavior trees (RBTs) to define a progression-based reward function and condition attacker policies on attack progression. The RBT integrates new attacker actions into structured attack progression, while parallel execution enables simultaneous reward generation across multiple network nodes. The learned attacker policies are trained against defender policies and are subsequently used to adapt defender policies in the extended network scenario.

The technical contributions of this work are:

  1. A method for conditioning RL policies on RBT execution by conditioning policies on disjoint sets of RBT behaviors.

  2. A reward behavior tree (RBT) for attacker training in the extended network scenario that incorporates new attacker actions and uses parallel execution.

  3. Adversarial reinforcement learning with behavior trees (ARLBT), an adversarial RL algorithm that uses RBT-conditioned policies and the RBT to learn attacker policies for new attacker actions and subsequently adapt defender policies in the extended network scenario.

  4. An evaluation with code 1^{1} across network scenarios with different sets of new attacker actions, where ARLBT attacker policies are trained and evaluated against two baseline defender policies and compared against multiple attacker baselines. The results demonstrate that ARLBT improves attacker success compared to ARL using the original CC2 reward function and that conditioning policies on the RBT can improve sample efficiency. We additionally show that defender policies can be adapted against the learned attackers, significantly improving defender reward and reducing attacker success while maintaining robustness against the original fixed attackers.