CyberAlly: Leveraging LLMs and Knowledge Graphs to Empower Cyber Defenders

Minjune Kim, Jeff Wang, Kristen Moore, Diksha Goel, Derui Wang, Ahmad Mohsin, Ahmed Ibrahim, Robin Doss, Seyit Camtepe, Helge Janicke

TL;DR

CyberAlly is an AI-driven assistant that combines Large Language Models (LLMs) with Knowledge Graphs to help cybersecurity defenders navigate "alert fatigue." By filtering out redundant logs and providing context-aware mitigation strategies through a Knowledge Graph-Enhanced Retrieval-Augmented Generation (KG-RAG) framework, it transforms raw security data into actionable intelligence for human-AI teaming.

What Problem Does This Paper Address?

Modern Security Operation Centers (SOCs) are drowning in data. Defenders face a constant barrage of system logs and alerts, the vast majority of which are either benign or redundant. This leads to alert fatigue, where critical threats might be missed amidst the noise.

While standard Machine Learning (ML) can filter alerts, these models often lack the contextual awareness needed to explain why an alert matters or how to fix it. Furthermore, there is a significant gap in effectively integrating automated AI suggestions with human expertise in high-stakes environments like maritime critical infrastructure.

Methods

The authors developed CyberAlly, a system integrated into a cyber range (a simulated environment for training) that uses a multi-stage pipeline to support "Blue Teams" (defenders):

  1. Alert Filtering & Classification: To handle the volume, the system first uses sentence embeddings and cosine similarity to de-duplicate alerts. It then employs a k-Nearest Neighbors (kNN) model to classify the remaining alerts as either benign or suspicious.
  2. KG-RAG (Knowledge Graph-Enhanced RAG): This is the core innovation. Instead of relying solely on an LLM's internal knowledge, CyberAlly uses LlamaIndex to query two types of knowledge graphs:
  3. Static Graph: Contains historical data from previous training exercises and general cybersecurity frameworks like MITRE ATT&CK.
  4. Dynamic Graph: Captures real-time updates from the current exercise, including network architecture changes and ongoing incident tickets.
  5. Human-AI Interface: The system interacts with defenders via Slack, providing an alert summary, recommended mitigation actions (like specific shell commands), and the reasoning behind those suggestions. It also automates ticket creation in the Cydarm case management system.
Figure 1: CyberAlly Workflow: The system automatically analyses a high volume of incoming alert messages for the Wazuh SIEM1 via Slack2, generating intelligent suggestions for the Blue Team based on static and dynamic graph knowledge, and automates case ticket creation in Cydarm3.

Datasets

The researchers collected a custom dataset during a 2-day "Red vs. Blue Team" exercise simulating a shipping port's IT and Operational Technology (OT) systems.

  • Volume: Over 60,000 alert messages.
  • Diversity: Approximately 2,500 distinct alert types were identified after filtering background noise.
  • Ground Truth: The authors constructed a specific ground truth dataset tailored to their environment, noting that existing benchmarks like CyberMetric or CyberBench don't fully capture the nuances of specific infrastructure-based incident responses.

Key Insights and Ideas

  • Contextual Grounding: By using Knowledge Graphs (Figure 2), the LLM (GPT-4o) moves beyond generic advice. It understands the specific relationships between servers, firewalls, and historical attack patterns within that specific network.
  • Dynamic Adaptation: The inclusion of a dynamic graph allows the AI to stay "in the loop" as the situation evolves, ensuring its suggestions remain relevant as the Blue Team takes defensive actions.
  • Explainability: Rather than being a "black box," CyberAlly provides transparent reasoning. This is crucial for building trust in human-AI teaming, allowing defenders to verify the AI's logic before executing a command.
Figure 2: LLM with KG-RAG - Knowledge Graphs capture the relationships between past and present events and enhance contextual understanding.

Key Results

  • Noise Reduction: The de-duplication process was highly effective. For example, alerts categorized as "Priority 5" were reduced from 1,461 instances to just 78 unique alerts.
  • Classification Accuracy: The kNN classifier performed exceptionally well after malicious samples were upsampled to address class imbalance. At a 10x upsampling scale, the model achieved a Precision of 0.9992 and an F1-score of 0.9994.
  • Operational Impact: The demonstration showed that CyberAlly could successfully generate shell script-based commands for mitigation, significantly lowering the cognitive load on defenders during a simulated attack.

Limitations and Future Work

While the preliminary results are promising, the authors acknowledge that evaluating LLM outputs in the cybersecurity domain remains difficult due to the scarcity of high-quality, domain-specific datasets.

Future work will focus on gathering more qualitative feedback from practitioners during live exercises to further refine the human-AI collaboration aspect. The authors also aim to explore how this system can be adapted to other critical infrastructure sectors beyond maritime.

Figure 3: CyberAlly in Slack. CyberAlly demo follows these steps: 1) monitor Wazuh alerts, 2) generate descriptions and suggest actions, 3) provide reasoning, 4) support decision-making, 5) create tickets in the Cydarm case management system, and 6) collect feedback.

Summary updated

Abstract

The increasing frequency and sophistication of cyberattacks demand innovative approaches to strengthen defense capabilities. Training on live infrastructure poses significant risks to organizations, making secure, isolated cyber ranges an essential tool for conducting Red vs. Blue Team training events. These events enable security teams to refine their skills without impacting operational environments. While such training provides a strong foundation, the ever-evolving nature of cyber threats necessitates additional support for effective defense. To address this challenge, we introduce CyberAlly, a knowledge graph-enhanced AI assistant designed to enhance the efficiency and effectiveness of Blue Teams during incident response. Integrated into our cyber range alongside an open-source SIEM platform, CyberAlly monitors alerts, tracks Blue Team actions, and suggests tailored mitigation recommendations based on insights from prior Red vs. Blue Team exercises. This demonstration highlights the feasibility and impact of CyberAlly in augmenting incident response and equipping defenders to tackle evolving threats with greater precision and confidence.
BibTeX
@inproceedings{kim2025cyberally,
  author = {Minjune Kim and Jeff Wang and Kristen Moore and Diksha Goel and Derui Wang and Ahmad Mohsin and Ahmed Ibrahim and Robin Doss and Seyit Camtepe and Helge Janicke},
  title = {{CyberAlly: Leveraging LLMs and Knowledge Graphs to Empower Cyber Defenders}},
  booktitle = {The Web Conference},
  year = {2025},
}
Figure