MCP
arXivarXiv
Preprint
Published: July 28, 2026
cs.CR

(EC)2: Event-Centric Explainability for Cybersecurity Through Multi-Agent LLM Investigations

Abstract
Security operations centers rely on anomaly detection systems to flag suspicious events. Feature-level explanations for anomaly detectors offer limited value for operational investigations. To effectively handle alerts, analysts need to know contextual relationships and need actionable understanding of the entities involved. This paper introduces an event-centric detector-agnostic approach for explaining cybersecurity alerts in small- to medium-sized enterprise networks. We present (EC)2, a multi-agent framework that performs structured, hypothesis-driven investigation to provide explanations grounded in verifiable evidence. Evaluation results show that the proposed framework improves post-detection analysis by generating operationally meaningful explanations, which also enhance event classification accuracy.
0
AI overview
Reviews
Citation graph
References · 51
Structured
This preview uses generator v1; v2 is available

Overview

This paper presents (EC)2, a fully automated, hypothesis-driven multi-agent LLM explainability system for cyber forensics. It is a post-hoc, model-agnostic, local XAI method that explains the anomalousness of the security incident itself rather than the decision logic of the detector.

Scenario Requirements of Cybersecurity Alert Explainability and the Positioning of XAI Methods

(EC)2 is a post-hoc, model-agnostic, local explainability method. As a post-hoc explanation method, its analysis actions take place after an independent detector has flagged an anomalous event, and it never needs access to the detector's internal structure, parameters, or intermediate outputs throughout the process. As a model-agnostic method, it supports investigating anomalous results output by any type of detector, covering security detection components across different technology stacks such as rule-based detection systems and statistical detection models. As a local explanation method, a single run of (EC)2 targets only a single anomalous event, aiming to reconstruct the specific context and behavioral chain that led the event to be judged anomalous.

The Core Explanation Goal of the Event-Centric XAI Method

The event-centric XAI method proposed by this work explains why the incident itself is anomalous, rather than why the detector made a particular alert decision.

Core Contributions of the (EC)2 Event-Centric Explainability Framework

The core design of the framework adopts a hypothesis-driven investigation process: it generates a series of plausible candidate hypotheses, then iteratively collects evidence to verify or falsify each hypothesis one by one, until it finally outputs a set of logically self-consistent, verifiable conclusions.

The entire investigation process is broken down into four coherent analytical stages—hypothesis generation, evidence retrieval, cross-validation, and explanation generation—whose reasoning path fully aligns with the typical workflow of human security analysts.

Operating Mechanism and Evidence-Anchoring Design of the Multi-Agent LLM Investigation Framework

The investigation framework of (EC)2 draws on multiple heterogeneous data sources to obtain information across different dimensions of the network environment. To ensure that all explanations are anchored in factual evidence rather than unfounded assumptions generated by the model, the framework incorporates a retrieval-augmented generation mechanism: all agents do not rely on the LLM's internal knowledge but instead retrieve all information from external data sources and reason based on the returned results. This design ensures that every step of the analysis in the investigation process is supported by verifiable evidence. You can use the figure below to fully trace the end-to-end division of labor and data flow logic of this multi-agent investigation framework, from initiation to output of conclusions.

Fig. 1: Architecture diagram of the (EC)2 system, showing the complete multi-agent workflow from anomaly detection to generating the final anomaly explanation.

(EC)2 is implemented on the AutoGen framework. Each agent is configured with an independent system prompt that clearly defines its role, reasoning scope, and output requirements, and all agents are organized into a directed graph structure that defines the execution order. All agents share a unified conversation context: each agent's input includes the interaction history of all previous agents, allowing it to continue directly from the evidence already collected and the reasoning already completed. Most agents output structured JSON content, which both helps subsequent agents quickly locate relevant information in the conversation and supports AutoGen in parsing the output to execute conditional routing logic in the directed graph.

The framework's investigation results are serialized into JSON files and then imported into a Neo4j graph database, where entities such as devices, IP addresses, MAC addresses, and departments are modeled as typed nodes, with edge relationships capturing device connectivity, address mappings, and organizational affiliation, providing the knowledge graph agent with efficient query capability. Network traffic data is stored in a PostgreSQL database in two complementary representations; the first layer is a packet-level index generated from raw PCAP files using tshark, where each row corresponds to a single packet.

Empirical Evaluation of the Framework and Performance Improvement Results

The main evaluation dataset used in this study is CSE-CIC-IDS2018, jointly constructed by the Communications Security Establishment of Canada and the Canadian Institute for Cybersecurity. The dataset was generated in a controlled network environment hosted on AWS, with 50 attack machines and a victim organization's network comprising 420 hosts and 30 servers across 5 departmental subnets. Realistic benign background traffic was generated by profiling statistical user behavior, covering 7 attack scenarios including brute force, DoS, DDoS, web attacks, and botnets, addressing the common limitations of prior intrusion detection benchmark datasets such as incomplete traffic capture, insufficient attack coverage, and poor realism of benign traffic.

The evaluation set three core research questions, each corresponding to a different validation goal: first, comparing the explanation quality of (EC)2 with the current state-of-the-art LLM explainability framework for network intrusion detection across multiple attack scenarios; second, quantifying the contribution of each independent component of (EC)2 to the final explanation quality; and third, verifying whether (EC)2 can improve the overall performance of the network intrusion detection task. All LLM judges used for scoring in the evaluation pipeline were implemented on GPT-5.1.

The baseline method chosen for the comparative experiments, eX-NIDS, is a hybrid LLM explainability framework for flow-based network intrusion detection systems. Its prompt augmentation module first enriches NetFlow records with three types of contextual information—NetFlow feature descriptions, IP-specific knowledge, and protocol identification mappings—and then submits the augmented prompt to the LLM, generating a natural language explanation of the traffic flagged as malicious through a single inference call. The authors of that study have publicly released all of their generated explanations, allowing the research team to directly compare the explanations generated by (EC)2 for 50 anomalous NetFlow events in the CSE-CIC-IDS2018 dataset against the baseline results.

The ablation results show that the framework variant with database access removed suffered the largest performance drop. Without support from external observational data, the framework cannot anchor its reasoning in actually observed network behavior, and regardless of how well the subsequent hypothesis generation and planning modules perform, the final explanations lose reliability. The variants with the planning module removed and with the initialization module removed also both showed significant performance declines, proving that a dedicated planning process and the upfront context collection step are both necessary components for targeted evidence retrieval. You can use the figure immediately below to directly compare the score distributions and relative performance of the full (EC)2 framework, the baseline method, and each ablation variant across the three evaluation dimensions.

Fig. 2: Comparison of average explanation quality scores of (EC)2 and eX-NIDS across evaluation criteria, with ablation results for the corresponding dimensions.

After reclassifying the original AE-IDS model's classification results using the explanations generated by (EC)2, the model's recall improved to 0.72, precision improved to 0.73, and the false positive rate dropped to 0.26. The research team used the McNemar test to verify the statistical significance of this performance improvement. The test focuses on samples where the two classifiers disagree, and is used to verify whether one classifier systematically corrects more errors; its null hypothesis is that there is no systematic performance advantage between the two classifiers. Among 1,000 sampled records, the original AE-IDS correctly classified 558 and misclassified 442; (EC)2 corrected 207 of the misclassified samples while introducing new errors on only 37 samples that had been correctly classified, yielding a final chi-square statistic of 118.4 with a p-value below 0.001. The null hypothesis can therefore be rejected, confirming that the performance improvement is statistically significant and not due to random factors.

Summary of Core Features and Final Takeaway

To the authors' knowledge, this work is the first fully automated, hypothesis-driven investigation system for cyber forensics scenarios, operating entirely without reliance on feature explanations, user prompts, or predefined investigation templates. The approach can autonomously formulate investigation hypotheses, determine the evidence needed, query relevant data sources, and verify or rule out each line of investigation through an iterative process.

Rating
No ratings yet
Rate
Community rating
—
/ 5
No ratings yet
Rating
—
Soundness
—
Presentation
—
Contribution
—
Confidence
—
Discussion
Top
Newest
Questions
Replication
Author
No comments yet — be the first