Hierarchical Agentic Incident Response with Digital-Twin-Validated Attack Inference
This paper presents a hierarchical agentic framework that integrates fine-tuned LLMs for attack inference, digital-twin validation for calibration, and rollout planning to automate multi-stage incident response, achieving a significantly higher recovery success rate than frontier LLM baselines on an enterprise network testbed.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
When a network is breached, the clock starts ticking against a silent, invisible enemy. The defenders face a chaotic puzzle: they see scattered alarms and strange data spikes, but they cannot see the full story of how the intruder moved, what they touched, or where they might strike next. Making the right move in this fog requires two difficult things: first, to correctly guess the attacker's path from incomplete clues, and second, to choose a sequence of repairs that stops the damage without causing new problems. For decades, security teams have relied on human experts to piece this together, a slow and exhausting process that often fails when the attack is complex or the team is small. The field of autonomous defense seeks to replace this human labor with intelligent systems that can think, plan, and act on their own, but building a machine that can reason about a cyberattack without making dangerous mistakes has remained a stubborn challenge.
A new study by researchers at City University of Hong Kong and Fordham University offers a fresh approach to this problem by combining three distinct tools into a single, layered system. They built a framework where artificial intelligence does not just guess the answer, but tests its own guesses before acting. The system begins with a specialized language model that acts as a detective, reading security logs and system data to reconstruct the likely sequence of an attack. Instead of accepting this reconstruction immediately, the system runs the suspected attack sequence inside a "digital twin"—a virtual replica of the real network that mimics its behavior perfectly. If the virtual attack produces the same results as the real alarms, the system knows its guess is correct. If the virtual results differ, the system sends the discrepancy back to the detective model to revise its story. This cycle of guessing, testing, and correcting ensures that the plan is built on a solid understanding of reality, not a hallucination.
Once the system is confident about what happened, it moves to the planning phase, which is split into two levels of decision-making. The first level, the tactical layer, looks at the entire network to decide which broken parts to fix first. It uses a method that simulates many possible futures to find the order of repairs that will cause the least amount of total downtime. The second level, the operational layer, takes the specific component chosen by the tactical planner and figures out exactly how to fix it. Here, another artificial intelligence agent proposes high-level recovery steps, such as isolating a server or resetting a password. Before these steps are ever applied to the real network, a third agent translates them into specific computer commands and runs them through the digital twin again. This final check verifies that the commands will actually work and will not accidentally crash the system. Only after passing this rigorous simulation does the system execute the recovery on the actual network.
The researchers tested this framework on a realistic, containerized network testbed containing thirty-three interconnected components, simulating three different types of multi-stage attacks ranging from simple to highly sophisticated. They compared their system against other advanced artificial intelligence models that rely on standard prompting without this layered verification. The results showed a clear advantage for the new approach. In the simplest attack scenario, their framework succeeded in fully recovering the network 90 percent of the time, while the best competing models succeeded only 72 percent of the time. As the attacks became more complex, the gap widened, with the new system maintaining success rates between 86 and 88 percent, compared to 60 to 67 percent for the others. This represents an improvement of eighteen to thirty-one percentage points in recovery success. Furthermore, the system was more efficient, typically committing to a concise sequence of six high-level actions per component, whereas the competing models often generated seven to fifteen actions, leading to longer and more variable execution times.
The study demonstrates that grounding artificial intelligence in a simulated reality can significantly reduce the risk of error in high-stakes environments. By forcing the system to replay its own theories and verify its commands in a safe, virtual space before touching the real world, the researchers created a loop of accountability that pure language models lack. The work does not claim to have solved every problem in cyber defense, but it provides a concrete method for making automated responses more reliable. The findings suggest that the future of autonomous security may not lie in making the artificial intelligence smarter in isolation, but in giving it a sandbox to practice its moves, ensuring that when it finally acts, it does so with precision and confidence.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.