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

Neta Kirmayer, David Tayouri, Andrés Murillo, Motoyoshi Sekiya, Asaf Shabtai, Rami PuzisarXiv 2026

TL;DR

The paper introduces (EC)², a multi-agent Large Language Model (LLM) framework that shifts cybersecurity explainability from abstract feature attributions to intuitive, event-centric narratives. By mimicking a human analyst's hypothesis-driven workflow and grounding its reasoning via Retrieval-Augmented Generation (RAG), (EC)² generates verifiable, structured investigation reports. Beyond explaining alerts, it acts as an active reclassification layer that significantly reduces false positives and false negatives for ambiguous, boundary-region security events.

What Problem Does This Paper Address?

Modern Security Operations Centers (SOCs) heavily rely on machine learning-based anomaly detectors to flag potential cyber threats. However, these models are notoriously opaque "black boxes." Traditional Explainable AI (XAI) methods like SHAP or LIME offer feature-level explanations (e.g., flagging an alert because of a "high packet rate" or "uncommon port usage").

For a human security analyst, these low-level features are rarely enough. They don't explain why an event is suspicious, whether it's part of a broader multi-stage attack, or if it's just a benign network anomaly. This interpretability gap leads to severe alert fatigue and forces analysts into time-consuming manual forensic investigations to reconstruct causal relationships and context.

Methods

The authors propose (EC)² (Event-Centric Explainability for Cybersecurity), a post-hoc, model-agnostic framework implemented using the AutoGen framework. Instead of relying on a single central LLM, (EC)² distributes investigative reasoning across a directed graph of specialized, interacting agents powered by GPT-5-mini.

The framework operates in three distinct stages:

  1. Investigation Initiation: When an anomaly detector flags an event, the Contextual Question Generator Agent identifies missing factual context and outputs natural-language questions. The Evidence Gathering Agent resolves these questions by querying external data sources.
  2. Investigation Cycle: This is an iterative, hypothesis-driven loop. The Hypothesis Generator Agent proposes up to three candidate explanations (covering both malicious attacks and benign misconfigurations). For each hypothesis, a Planner Agent creates targeted questions, which the Evidence Gathering Agent routes to specialized retrieval tools:
  3. Knowledge Graph Agent: Queries a Neo4j database containing the network's structural topology.
  4. Traffic Agent: Queries a PostgreSQL database containing packet-level and flow-level network traffic.

A Hypothesis Evaluator Agent assesses whether the gathered evidence supports, refutes, or leaves the hypothesis unresolved, and a Flow Evaluator Agent decides whether to iterate further or conclude.

  1. Investigation Conclusion: The Explanation Agent synthesizes the entire investigative history into a chronological, natural-language narrative report. Finally, an Explanation Reviewer Agent double-checks the report to eliminate speculative claims and ensure strict alignment with the retrieved evidence.
Fig. 1. (EC)2 architecture.

Datasets

The framework was evaluated using the CSE-CIC-IDS2018 dataset, a massive, collaborative benchmark developed by the Communications Security Establishment (CSE) and the Canadian Institute for Cybersecurity (CIC). It features:

  • A realistic AWS-hosted environment with 50 attacking machines and 450 victim systems.
  • 10 days of captured traffic encompassing roughly 1.2 billion packets and 16 million flow records.
  • Seven distinct attack categories, including brute-force, DoS, DDoS, web, botnet, Heartbleed, and infiltration attacks.

Key Insights and Ideas

  • From Model-Centric to Event-Centric XAI: Instead of explaining why a model made a decision, (EC)² focuses on explaining the event itself. This aligns AI explanations directly with the operational needs of human incident responders.
  • Externalizing Reasoning via Dialogue: By structuring the LLM architecture as a transparent conversation between specialized agents, the framework makes the investigative logic fully auditable, reducing the risk of ungrounded LLM hallucinations.
  • Active Reclassification Layer: A fascinating "aha moment" of the paper is that an explanation framework can double as a secondary classifier. By feeding (EC)²'s contextual explanations back to an LLM judge, the system can successfully correct mistakes made by the base anomaly detector near its decision boundary.

Key Results

The authors compared (EC)² against eX-NIDS, a state-of-the-art single-call LLM explainability baseline, using an LLM-based senior security analyst judge (GPT-5.1) to score explanations from 1 to 5:

  • Attack Type Identification: (EC)² significantly outperformed the baseline (3.21 vs. 1.49), as the baseline frequently failed on complex, multi-stage attacks.
  • Explanation Completeness: (EC)² achieved a score of 3.04 vs. 1.29 for eX-NIDS, proving its iterative loop captures far better historical context.

Detection Enhancement Performance

When testing 1,000 highly uncertain, boundary-region alerts from an unsupervised autoencoder detector (AE-IDS), using (EC)²'s explanations for reclassification yielded massive performance leaps:

  • Recall jumped from 0.54 to 0.72.
  • Precision increased from 0.56 to 0.73.
  • False Positive Rate (FPR) plummeted from 0.43 to 0.26.

Limitations and Future Work

The primary bottleneck of (EC)² is its execution time. Generating a complete, thorough investigation report takes approximately 17 minutes per event. This latency is driven by iterative database queries and the handling of large data volumes by the LLM, making the framework currently unsuitable for real-time processing of massive alert streams.

The authors note that (EC)² is best positioned for deep-dive analysis of high-priority alerts. Future work will focus on reducing latency through query caching, exploring smaller fine-tuned models, and developing a lightweight triage layer to selectively trigger full multi-agent investigations.

Summary updated

BibTeX
@misc{kirmayer2026ec,
  author = {Neta Kirmayer and David Tayouri and Andrés Murillo and Motoyoshi Sekiya and Asaf Shabtai and Rami Puzis},
  title = {{(EC)2: Event-Centric Explainability for Cybersecurity Through Multi-Agent LLM Investigations}},
  year = {2026},
  eprint = {2607.26201},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.26201},
}
Figure