← Latest papers
💻 computer science

An Explainable Agentic RAG Framework for Zero-Shot Phishing and Web Attack Detection

The paper introduces XAR-Detect, an explainable agentic RAG framework that leverages a DeBERTa encoder, dynamic threat signature retrieval, and autonomous reasoning to achieve high-accuracy, zero-shot detection of phishing and web attacks with transparent justifications, significantly outperforming existing state-of-the-art methods without requiring retraining.

Original authors: Mohammad Zahangir Alam, Mahdi H Miraz, Elhan Ayath, Sharmin Sultana, Nowshad Amin

Published 2026-09-04
📖 5 min read🧠 Deep dive

Original authors: Mohammad Zahangir Alam, Mahdi H Miraz, Elhan Ayath, Sharmin Sultana, Nowshad Amin

Original paper licensed under CC BY 4.0 (https://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

In the digital world, the most persistent threats often arrive disguised as ordinary messages or routine website requests. Phishing emails, designed to steal passwords, and web attacks, which try to break into servers, have become so sophisticated that they can mimic legitimate communication with frightening accuracy. For decades, security systems have relied on a strategy of recognition: they are trained on massive libraries of known bad examples, learning to spot the specific fingerprints of past crimes. However, this approach has a fundamental weakness. When attackers invent a new trick, one that has never been seen before, these static systems often fail because they have no reference point for the unknown. To solve this, researchers are now exploring a different path, one that combines the ability to learn from context with the power to look up fresh information in real time, much like a security guard who not only knows the faces of known criminals but also carries a live feed of current alerts to identify a stranger in the crowd.

A team of researchers has developed a new system called XAR-Detect that attempts to bridge this gap between static training and dynamic reality. Instead of relying solely on a pre-trained model that freezes its knowledge the moment it finishes learning, this framework acts more like an intelligent investigator. It takes a suspicious email or a web request and first analyzes its content to understand its structure and meaning. Then, rather than making a guess based only on what it has memorized, it immediately reaches out to a live database of global threat intelligence. This database is constantly updated with information from major security repositories, containing millions of records about known phishing links, malicious code, and recent vulnerabilities. The system retrieves the most relevant warnings from this live feed and uses them to inform its decision. If the incoming message shares characteristics with a newly reported threat, the system can flag it as dangerous, even if the system itself has never been explicitly trained on that specific type of attack.

The core innovation lies in how the system processes this information. It does not simply add the new data to the old; it employs an autonomous reasoning agent that acts as a critical thinker. This agent weighs the evidence from the message itself against the fresh intelligence it has just retrieved. It asks itself whether the patterns match, considers the context, and then forms a hypothesis about whether the message is safe or malicious. This multi-step process allows the system to adapt to new attack strategies without needing to be retrained from scratch. In their experiments, the researchers tested this approach on a variety of real-world datasets, including thousands of phishing emails and millions of web traffic records. They found that the system could correctly identify known attacks with an accuracy of nearly 98 percent, a performance level that surpassed existing methods by a significant margin. More importantly, when tested on completely new types of attacks that were hidden from its training data, the system still managed to detect them with an accuracy of 88.3 percent. This suggests that the ability to look up current threats in real time provides a powerful safety net against the unknown.

Beyond just catching bad actors, the researchers were concerned with the "black box" problem, where complex computer systems make decisions that humans cannot understand. In high-stakes security, knowing why a system flagged a message is just as important as the flag itself. XAR-Detect addresses this by providing a clear, two-layer explanation for every decision it makes. First, it highlights which specific features of the message—such as a strange link or an unusual word choice—contributed most to the suspicion. Second, it shows which pieces of external threat intelligence were used to reach the conclusion. This transparency allows human security analysts to verify the system's logic, ensuring that the detection is based on solid evidence rather than a random guess. The researchers measured how reliable these explanations were and found them to be highly consistent, meaning the system gives a stable reason for its choices even when the input is slightly rephrased.

The study also revealed the limits of this approach. The system's ability to spot new threats depends entirely on the quality and coverage of the live database it consults. If a completely novel attack appears that has not yet been recorded in any global threat repository, the system cannot look it up, and its performance may drop. The researchers acknowledge that while the system is a major step forward, it is not a perfect shield against every possible future threat. Furthermore, because the reasoning part of the system relies on powerful external computing services, there are practical considerations regarding speed and cost that must be managed in real-world deployments. Despite these constraints, the results demonstrate a viable path forward for cyber defense. By combining deep understanding of language with the ability to access live intelligence, XAR-Detect offers a way to detect threats that have never been seen before, providing a more flexible and transparent defense for the digital world.

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 →