← Latest papers
💻 computer science

DEFENGRAPH: Knowledge Graph-Enhanced LLMs for Blue Team Cyber Defense

DEFENGRAPH is a novel framework that enhances Large Language Models for cyber defense by integrating a dual-layer Static-Dynamic Knowledge Graph with advanced retrieval and re-ranking techniques, significantly improving reasoning accuracy and action recall across multiple LLMs in realistic Red vs. Blue team scenarios.

Original authors: Zhen Wang, Kristen Moore, Qin Wang, Guangsheng Yu, Minjune Kim, Diksha Goel, Gang Li, Ahmed Ibrahim, Ahmad Mohsin, Helge Janicke

Published 2026-06-23
📖 4 min read☕ Coffee break read

Original authors: Zhen Wang, Kristen Moore, Qin Wang, Guangsheng Yu, Minjune Kim, Diksha Goel, Gang Li, Ahmed Ibrahim, Ahmad Mohsin, Helge Janicke

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 security guard at a massive, high-tech port. Every day, thousands of alarms go off: a door opened, a light flickered, a strange noise in the warehouse. Your job is to figure out which alarms are just a cat walking on a sensor and which ones mean a real thief is breaking in.

The problem is that modern security systems (like the ones in this paper) use "Super-Intelligent AI Assistants" (Large Language Models or LLMs) to help you. But these AI assistants have a bad habit: they sometimes hallucinate. They might confidently tell you to lock down the entire port because of a single, harmless glitch, or they might suggest a solution for a Windows computer when the alarm is actually about a Linux server. They are smart, but they lack context. They don't know the history of the port, and they get confused by the sheer volume of noise.

Enter DEFENGRAPH.

Think of DEFENGRAPH not as a new AI, but as a super-powered librarian and detective that works with the AI. It gives the AI a "brain" built from two specific types of memory:

1. The Two Libraries (Static & Dynamic Knowledge Graphs)

DEFENGRAPH builds a massive, interconnected map of the port's security, called a Knowledge Graph. It's like a giant family tree, but instead of people, it connects computers, alarms, hackers, and security guards.

  • The Static Library (The History Book): This part of the map contains everything that always matters. It knows the layout of the port, what the usual attack patterns look like, and how security guards have solved similar problems in the past. It's the "institutional memory."
  • The Dynamic Library (The Live Feed): This part is the "live news ticker." It updates in real-time as new alarms come in. If a hacker is currently trying to break into a specific server, this library knows it right now.

2. The Detective's Process (How it Works)

When a new alarm rings, here is how DEFENGRAPH helps the AI:

  • Step 1: The Search (Graph Retrieval): Instead of just guessing, the system looks at its map. It traces the connections. "This alarm is about Server A. Who talks to Server A? What happened to Server A last week? Did a hacker try this before?" It pulls out a small, relevant chunk of the map (a subgraph) instead of the whole messy library.
  • Step 2: The Filter (LLM Contextual Filter): Sometimes, the map pulls out too much junk—like a record of a user changing their password three years ago, which isn't relevant to today's threat. The AI acts as a sieve, filtering out the "grey noise" and keeping only the "blue" critical information that actually matters to the current situation.
  • Step 3: The Re-Rank (Reasoning Re-ranker): The system then asks the AI: "Of these remaining clues, which ones are the most important right now?" It scores them based on how recent they are and how well they fit the story.
  • Step 4: The Action (Defense Generation): Finally, the AI uses this clean, filtered, and ranked information to write a specific, safe plan for the security guard. Instead of saying "Lock everything down," it might say, "Block this specific IP address because it matches a pattern we saw yesterday."

Why is this a big deal?

The researchers tested this system in a "Cyber Range"—a simulated environment where a team of attackers (Red Team) tried to break into a fake maritime port, and a team of defenders (Blue Team) tried to stop them.

They found that without DEFENGRAPH, the AI was often wrong or suggested crazy actions (like blocking a whole network for a minor glitch). But with DEFENGRAPH:

  • It got smarter: The AI correctly identified the real threats much more often.
  • It got more accurate: The actions it suggested matched what human experts would have done.
  • It stopped hallucinating: It stopped making up facts or suggesting fixes for the wrong operating system.

In short, DEFENGRAPH turns a smart but easily confused AI into a seasoned veteran by giving it a structured map of the past and a live feed of the present, ensuring it only gives advice that is grounded in reality.

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 →