← Latest papers
🤖 AI

Retrieval-Augmented LLMs for Security Incident Analysis

This paper presents a Retrieval-Augmented Generation (RAG) system that enhances security incident analysis by combining targeted query-based filtering with LLM semantic reasoning to accurately reconstruct attack sequences and identify indicators from diverse log sources, demonstrating that this approach achieves high recall and precision while significantly reducing costs compared to non-RAG baselines.

Original authors: Xavier Cadet, Aditya Vikram Singh, Harsh Mamania, Edward Koh, Alex Fitts, Dirk Van Bruggen, Simona Boboila, Peter Chin, Alina Oprea

Published 2026-03-20
📖 5 min read🧠 Deep dive

Original authors: Xavier Cadet, Aditya Vikram Singh, Harsh Mamania, Edward Koh, Alex Fitts, Dirk Van Bruggen, Simona Boboila, Peter Chin, Alina Oprea

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 detective trying to solve a massive crime that happened inside a giant, bustling city (your computer network). Every day, millions of people walk through the streets, buy coffee, and talk to neighbors. Most of this is normal life. But somewhere in that sea of millions of transactions, a thief sneaks in, steals a wallet, and runs away.

Your job is to find the thief.

The Problem: Too Much Noise, Too Little Time

In the old days, security analysts were like detectives who had to read every single receipt, security camera tape, and phone call log from the entire city to find the thief.

  • The Reality: A cyberattack leaves behind millions of digital "receipts" (logs).
  • The Problem: There are too many receipts. A human can't read them all. They get tired, miss clues, and the thief gets away. Also, the thief is smart; they don't leave a sign that says "I am the thief." They hide their tracks among normal activities.

The Solution: A Smart Detective Assistant (RAG + LLM)

The paper introduces a new system that acts like a super-smart detective assistant. It combines two powerful tools:

  1. The Filter (RAG): A tool that quickly scans the millions of receipts and only keeps the ones that look suspicious.
  2. The Brain (LLM): A highly intelligent AI that reads those few suspicious receipts and tells you the full story of what happened.

Here is how it works, step-by-step, using our city analogy:

1. The "Smart Filter" (Targeted Query-Based Filtering)

Instead of giving the AI the whole library of books (all the logs), the system first asks specific questions to a librarian.

  • Old Way: "Read every book in the library." (Too slow, too much noise).
  • New Way: "Show me only the books about 'stolen wallets' and 'strange car movements'."
  • How it works: The system uses a pre-made list of "suspicious patterns" (like looking for a specific type of fake ID or a car driving in circles). It filters out the millions of normal coffee purchases and keeps only the 100 receipts that look weird.

2. The "Context Builder" (Retrieval-Augmented Generation)

Now the AI has a small pile of suspicious receipts. But a receipt from 9:00 AM might not make sense without the one from 9:05 AM.

  • The system takes those 100 suspicious receipts and arranges them into a coherent story. It links them together like puzzle pieces.
  • It uses a technique called RAG (Retrieval-Augmented Generation). Think of this as the AI having a "cheat sheet" or a "search engine" right next to it. When the AI tries to solve the mystery, it doesn't just guess; it looks up the specific evidence it needs from its cheat sheet to back up its answer.

3. The "Detective AI" (The LLM)

Finally, the AI (the Large Language Model) reads this curated, organized story. Because it's not overwhelmed by millions of normal receipts, it can focus on the clues.

  • It answers questions like: "Who was the thief?" "Where did they go?" "What tools did they use?"
  • It doesn't just say "A theft happened." It says, "The thief was a user named 'John' on computer 'Desk-5'. They downloaded a fake update, then called a secret server in another country to steal data."

The Results: Speed, Accuracy, and Cost

The researchers tested this system against real cyberattacks (like malware and complex network hacks) and compared different AI "brains" (like Claude, DeepSeek, and GPT).

  • Accuracy: The best AI models got 100% of the clues right. They found the infected computers and the bad guys' secret servers.
  • The "No-Filter" Failure: When they tried to feed the AI all the raw logs without the filter, the AI got confused. It could find the victim but missed the bad guys entirely because the "noise" drowned out the signal. It's like trying to hear a whisper in a hurricane.
  • Cost Savings: They found one AI model (DeepSeek) that was just as smart as the most expensive one (Claude) but cost 15 times less. It's like getting a Ferrari engine for the price of a Honda Civic.
  • Specialized vs. General: Interestingly, an AI specifically trained on "security" didn't do better than a general smart AI. It turns out, being a good reasoner (connecting the dots) is more important than just knowing security jargon.

Why This Matters

This system changes the game for security teams.

  • Before: Analysts were drowning in data, missing attacks, and burning out.
  • Now: The system acts as a force multiplier. It filters the noise, organizes the clues, and tells the human analyst exactly what happened, why it happened, and how to stop it.

In short: This paper describes a system that turns a chaotic mountain of digital noise into a clear, readable story, allowing human experts to catch cybercriminals faster, cheaper, and more accurately than ever before.

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 →