TL;DR
DEFENGRAPH is an LLM-driven assistant designed to support human cyber defenders by integrating a dual-layer Static-Dynamic Knowledge Graph (KG). By capturing both long-term system architecture and real-time, time-sensitive security events, it filters out massive log noise to provide context-aware, explainable mitigation strategies. Evaluated on realistic cyber range data, it sets a new state-of-the-art by significantly boosting defense action recall while keeping false positive rates remarkably low.
What Problem Does This Paper Address?
When cyber incidents strike, human defenders ("Blue Teams") must make rapid, high-consequence decisions based on a flood of security alerts. While Large Language Models (LLMs) show promise in automating incident response, they struggle in cybersecurity environments due to hallucinations, poor temporal reasoning, and a lack of deep grounding in specific system contexts.
A major hurdle is the incredibly low signal-to-noise ratio of cyber defense data. Security logs are filled with "noisy neighbors"—meaningless events like a user mistyping a password—that obscure actual attacks. Traditional Retrieval-Augmented Generation (RAG) systems rely on surface-level text similarity, which often retrieves completely irrelevant context (for instance, fetching a Windows authentication ticket to address a Linux server alert). Even standard Graph RAG methods get overwhelmed by the sheer complexity and density of loosely related log data.
Methods
The authors introduce DEFENGRAPH, a framework that structures security data into a dual-layer knowledge graph and uses a multi-stage pipeline to guide LLM reasoning:
- Dual-Layer Knowledge Graph:
- Static Knowledge Graph (SKG): Encodes long-term infrastructure topology (hosts, services, firewalls), typical attacker behaviors, and defensive playbooks.
- Dynamic Knowledge Graph (DKG): Continuously grows in real-time, capturing time-evolving security events, active attacker traces, and defender ticket actions, with timestamps attached to every node.
- Graph-Based Retrieval Process (GRP): Uses semantic triple matching and path propagation to extract relevant subgraphs tied to an incoming alert.
- LLM Contextual Filter (CF): Employs an LLM as a global semantic filter to prune away the noisy, irrelevant paths captured during initial graph retrieval.
- Temporal Weight Assignment: Applies a time-decay factor to DKG entities, ensuring that recent events (e.g., an IP flagged 5 minutes ago) are prioritized over older ones.
- LLM Reasoning Reranker & Generation: Reranks the filtered paths based on historical context and synthesizes them into actionable, step-by-step defense strategies (e.g., specific
iptablescommands).
Datasets
The framework was evaluated using the newly introduced ACDC Cyber Range Dataset, built from a live, 5-day Red vs. Blue team exercise simulating attacks on critical infrastructure (a maritime port scenario). The dataset reflects real-world defender friction and includes:
- Over 8.2 million firewall log lines
- 6.1+ million Wazuh SIEM alerts
- 326 incident response tickets (via Cydarm)
- 4,700+ Red Team terminal command lines
- 2,000+ lines of Slack communications
From this noisy data, experts validated 55 confirmed attack-alert-ticket triples, using 32 to populate the historical SKG and 24 as a held-out evaluation set.
Key Insights and Ideas
- LLMs as Graph Pruners: Instead of relying solely on vector embeddings or graph topology for retrieval, DEFENGRAPH uses the LLM's semantic strengths during the retrieval phase to filter out graph noise. This dramatically improves the quality of the context fed into the final prompt.
- Time is a First-Class Citizen: In cyber defense, the sequence and recency of events are critical. Incorporating a temporal decay function directly into the dynamic graph structure prevents the LLM from getting confused by stale historical data.
- Bridging the IT/OT Gap: By linking abstract threat intelligence (tactics and playbooks) with physical system architecture (PLCs, SCADA links, and servers), the framework provides recommendations that are physically and operationally viable.
Key Results
The authors benchmarked DEFENGRAPH across four prominent LLMs (GPT-4o, LLaMA-3.1 253B, DeepSeek-R1 671B, and QWen-3 235B) against Hybrid RAG and standard GraphRAG baselines.
- Recall Boost: On GPT-4o, DEFENGRAPH-Full boosted reasoning analysis recall (RAR) from 61.45% to 73.49% and ticket-action recall (TAR) from 52.17% to 72.46% compared to the baseline.
- Action Generation: It surfaced up to 50 correct defense actions matching human ground truth, compared to only 36 for the next-best baseline.
- Safety and Precision: Despite generating more comprehensive investigative steps, the framework maintained a low fault action rate (mistakenly impacting benign services) of under 4% on GPT-4o.
Limitations and Future Work
- Graph Tractability: As a dynamic graph accumulates data over long periods, it can become computationally heavy. The authors note that practical deployments will require smart graph-pruning strategies to maintain long-term tractability.
- Inference Latency: The multi-stage LLM calls (contextual filtering, reranking, and generation) result in an end-to-end latency of 26 to 44 seconds per alert on GPT-4o. While acceptable for complex incident response, this needs to be optimized via local deployment or parallel processing for high-throughput alert handling.
- Cold-Start Dependency: Performance drops noticeably if the dynamic graph memory is wiped, indicating the system relies heavily on accumulated real-time context to generate precise recommendations.
Summary updated