cs.CRMar 6, 2026

Evaluating Generalization Mechanisms in Autonomous Cyber Attack Agents

Authors: Ondřej Lukáš, Jihoon Shin, Emilia Rivas, Diego Forni, Maria Rigaki, Carlos Catania, Aritran Piplai, Christopher Kiekintveld, 

Organizations: Czech Technical University in Prague (CTU) · University of Texas at El Paso (UTEP) · Universidad Nacional de Cuyo (UNCUYO)

Abstract

Autonomous offensive agents often fail to transfer beyond the networks on which they are trained. We isolate a minimal but fundamental shift -- unseen host/subnet IP reassignment in an otherwise fixed enterprise scenario -- and evaluate attacker generalization in the NetSecGame environment. Agents are trained on five IP-range variants and tested on a sixth unseen variant; only the meta-learning agent may adapt at test time. We compare three agent families (traditional RL, adaptation agents, and LLM-based agents) and use action-distribution-based behavioral/XAI analyses to localize failure modes. Some adaptation methods show partial transfer but significant degradation under unseen reassignment, indicating that even address-space changes can break long-horizon attack policies. Under our evaluation protocol and agent-specific assumptions, prompt-driven pretrained LLM agents achieve the highest success on the held-out reassignment, but at the cost of increased inference-time compute, reduced transparency, and practical failure modes such as repetition/invalid-action loops.

Figures & tables

Explore similar work

CardsList
  1. CyBiasBench: Benchmarking Bias in LLM Agents for Cyber-Attack Scenarios

    May 8, 2026Taein Lim, Seongyong Ju, Munhyeok Kim +2AI Agent Security BenchmarksLLMs for Cybersecurity

  2. Can RL Improve Generalization of LLM Agents? An Empirical Study

    Mar 12, 2026Zhiheng Xi, Xin Guo, Jiaqi Liu +11LLM AgentsRL for LLM Agents

  3. Autonomous LLM Agents & CTFs: A Second Look

    Apr 29, 2026Youness Bouchari, Matteo Boffa, Marco Mellia +3LLM Agent OrchestrationAI Agent Security Benchmarks