← Latest papers
💻 computer science

DiagChain: A Diagnostic Benchmark for Evaluating LLM Agents on Evidence-Grounded Attack Chain Reconstruction

The paper introduces DiagChain, a diagnostic benchmark featuring 69 diverse scenarios and the ECRAG framework to evaluate LLM agents on evidence-grounded attack chain reconstruction, revealing that while larger models struggle with ordering evidence, smaller models fail at basic evidence incorporation, thereby highlighting the need for stage-wise evaluation over aggregate accuracy.

Original authors: Xuyang Liu, Yibin Han, Zhenwei Zhang, Kai Chang, Zhiwei Xu, Tian Qiu, Weixian Deng, Jiabao Gao, Xiaolin Peng, Hai Wan, Xibin Zhao

Published 2026-08-05
📖 5 min read🧠 Deep dive

Original authors: Xuyang Liu, Yibin Han, Zhenwei Zhang, Kai Chang, Zhiwei Xu, Tian Qiu, Weixian Deng, Jiabao Gao, Xiaolin Peng, Hai Wan, Xibin Zhao

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

Imagine you are a detective trying to solve a mystery, but instead of a crime scene, you are looking at a digital crime scene. The "clues" are scattered everywhere: millions of lines of computer logs, security alerts, and system records. In the world of cybersecurity, experts use Large Language Models (LLMs)—super-smart AI chatbots trained on vast amounts of text—to act as digital detectives. These AI agents are supposed to read the messy clues, figure out what happened, and write down the story of the attack in the correct order. This process is called attack chain reconstruction. It's like trying to watch a movie that has been cut into thousands of random frames and then asking someone to put the frames back in the right order to tell the story.

But here's the problem: most tests for these AI detectives only look at the final story they write. If the story is wrong, the test says "fail," but it doesn't tell you why. Did the detective miss a clue? Did they find the clues but forget to write them down? Or did they find the right clues but put them in the wrong order? We need a way to peek inside the detective's brain while they are working to see exactly where they get stuck. This is where the new paper, DiagChain, comes in. It introduces a special testing ground designed not just to grade the final answer, but to diagnose the specific steps where the AI detective loses the trail.

The authors of this paper, researchers from Tsinghua University and CRRC Corporation, built a new benchmark called DiagChain to fix this blind spot. They created a dataset named MAIN-69, which consists of 69 different "crime scenes" (scenarios) ranging from simple to very complex. These scenes come from real-world data like Linux logs, Windows events, and cloud alerts. To make the test realistic, they added different levels of "noise"—like adding harmless background chatter to the clues to see if the AI gets distracted. They also varied the length of the attack chains, from short bursts of activity to long, drawn-out intrusions.

To test the AI, they used a special workflow called ECRAG (Evidence-Centric Retrieval-Augmented Generation). Think of this as giving the AI detective a magnifying glass and a notebook that updates itself. The AI has to search for clues, group them together, figure out the timeline, and then write the story, all while constantly checking its work. The researchers then measured the AI's performance using five specific "health checks" instead of just one final grade:

  1. Retrieval: Did the AI find the clues?
  2. Grouping: Did it put related clues into the right buckets?
  3. Ordering: Did it arrange the events in the correct time sequence?
  4. Grounding: Did it actually use the clues it found to support its story?
  5. Attribution Gap: Did it find a clue, look at it, and then forget to mention it in the final report?

The results were eye-opening. Even the smartest AI configurations only got 39.6% of the 849 reference steps in the MAIN-69 dataset completely right without making an earlier mistake. The paper suggests that the type of AI model matters a lot for where it fails. Smaller models often struggle with the basics: they find a clue but fail to incorporate it into their final story, essentially dropping the evidence. Larger, more powerful models are better at finding and keeping the clues, but they often stumble when trying to put them in the correct order. It's like a small detective who finds the gun but forgets to write it down, versus a giant detective who finds the gun, the fingerprints, and the map, but gets the timeline of the robbery completely mixed up.

The researchers also tested what happens if you give the AI more time or more "search budget" (allowing it to look at more clues). They found that simply giving the AI more resources doesn't automatically fix the problem. While looking at more clues helps the AI find more evidence, it doesn't guarantee that the AI will organize that evidence correctly or stop making mistakes in the final assembly. In fact, for some models, looking at too many clues without a better strategy just made the task harder.

Ultimately, the paper argues that we need to stop just looking at the final score and start diagnosing the process. The findings suggest that making AI models bigger doesn't solve the problem of "chain assembly"; it just shifts the bottleneck from "finding clues" to "organizing clues." To build truly reliable cybersecurity agents, we need to design systems that are specifically good at taking the evidence they find and weaving it into a coherent, ordered, and grounded story, rather than just hoping that bigger models will figure it out on their own. The authors provide their code and data so others can continue to test and improve these digital detectives.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →