User-Centric Phishing Detection: A RAG and LLM-Based Approach
This paper proposes a user-centric phishing detection framework that integrates retrieval-augmented generation (RAG) with large language models to leverage personalized historical email contexts and real-time threat intelligence, effectively reducing false positives and achieving high precision across multiple open-source models.
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 very smart, highly educated security guard at a large office building. This guard has read millions of books about crime and knows exactly what a "bad guy" looks like in a textbook. However, this guard has a problem: they are too strict. They often mistake a regular employee carrying a weird-looking package for a criminal, causing a lot of unnecessary alarms and frustration.
This paper introduces a new way to train this security guard so they make fewer mistakes. Here is the simple breakdown of how it works:
The Problem: The "One-Size-Fits-All" Guard
Traditional email filters are like that strict guard. They look at an email and ask, "Does this look like a scam?" If the answer is even slightly "maybe," they block it.
- The Issue: Sometimes, a legitimate email from your boss might look a little strange (maybe they are using a new slang word or a weird link). The old guard blocks it because it doesn't match the "standard" pattern of a normal email. This is called a False Positive. It's like the guard stopping a real employee because they were wearing a hat that looked suspicious.
The Solution: The "Personalized Detective"
The authors created a system that gives the security guard a personal memory book and a live news feed before they make a decision. They call this a RAG (Retrieval-Augmented Generation) system.
Here is how the new system works in three steps:
1. The Memory Book (User Context)
Before the guard looks at a new email, the system quickly flips through the user's past legitimate emails.
- The Analogy: Imagine the guard asks, "Hey, does this person usually send emails like this?" If the email looks weird but matches the style of emails the user actually receives from their boss, the guard says, "Ah, this is normal for this person," and lets it through.
- How it works: The system uses AI to find the top 5 most similar emails from the user's history to show the guard as a reference.
2. The Live News Feed (Threat Intelligence)
The system also checks a live database (like a digital police blotter) to see if the links or websites in the email are known to be dangerous.
- The Analogy: Even if the email looks like it's from a friend, if the link inside leads to a known "bad neighborhood" (a malicious website), the guard gets an alert from the live feed.
3. The Smart Decision (The LLM)
The guard is actually a Large Language Model (LLM)—a super-smart AI that understands language very well. Instead of just looking at the email in isolation, the AI looks at:
- The new email.
- The "Memory Book" (similar past emails).
- The "Live News Feed" (threat data).
It then makes a final decision: "Is this a scam, or is it just a weird but real email?"
The Results: Fewer Mistakes
The researchers tested this new system using four different types of AI "guards" (called Llama4, DeepSeek, Mistral, and Gemma). They compared how well the guards worked without the memory book versus with it.
- The Big Win: When the guards used the memory book (RAG), they made significantly fewer mistakes.
- The Star Performer: The Llama4-Scout model was the best.
- Without the memory book, it blocked 12% of good emails by mistake (False Positives).
- With the memory book, it only blocked 4% of good emails.
- It also got better at catching the actual scammers (a score of 0.97 out of 1.0).
The Bottom Line
This paper proves that you don't just need a smart AI to stop phishing; you need an AI that knows the user. By giving the AI a quick look at what the user usually receives, the system stops flagging normal, weird-looking emails as scams. This makes the security system much more accurate and less annoying for the people using it.
In short: It turns a generic, over-zealous security guard into a personalized detective who knows your habits, resulting in fewer false alarms and better protection.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.