An Explainable Agentic RAG Framework for Zero-Shot Phishing and Web Attack Detection
Abstract Phishing and web attacks remain among the most damaging cyber threats in industrial and enterprise systems, yet existing detection frameworks struggle to keep pace with rapidly evolving attack strategies. Most current approaches, including recent self-supervised ensemble methods, depend heavily on large volumes of manually labelled data and static pre-trained models that cannot generalise to unseen attack patterns. To address these limitations, we propose XAR-Detect (eXplainable Agentic Retrieval-Augmented Detection), a framework that brings together agentic LLM-based reasoning, retrieval-augmented generation, and dual-layer explainability to enable zero-shot phishing and web attack detection without retraining. At the core of XAR-Detect, a DeBERTa-based encoder extracts rich contextual representations from raw email and HTTP request data, which are dynamically enriched by a RAG module that retrieves semantically matched threat signatures from a live knowledge base spanning PhishTank, VirusTotal, and CVE repositories. An autonomous reasoning agent jointly processes local features and retrieved evidence to reach detection decisions, while SHAP-driven global attribution and instance-level attention maps provide transparent, auditable justifications for every prediction. The framework is evaluated on three phishing corpora—Nazario, Enron, and Subhadeep—and the SR-BH web attack benchmark under balanced and severely imbalanced distributions to assess overall robustness and generalisability. Experimental results show that XAR-Detect achieves an F1-score of 97.8% and a false-positive rate of 2.1%, outperforming state-of-the-art self-supervised baselines by up to 19% and adaptive RL-based detectors by up to 11% under zero-shot evaluation conditions. These results demonstrate that XAR-Detect offers a practical, interpretable, and label-efficient path toward intelligent cyber threat detection in real-world deployments.
- Link
- https://doi.org/10.21203/rs.3.rs-10794223/v1
- Found by
- Crossref
- Authors
- Mohammad Zahangir Alam, Mahdi H Miraz, Elhan Ayath, Sharmin Sultana, Nowshad Amin, Mahdi H. Miraz
- Organizations
- University of Turku, Xiamen University Malaysia, CATECH, American International University-Bangladesh, Islamic University of Madinah, Católicas por el Derecho a Decidir
- Categories
- benchmark, evaluation, dataset
- Published
- 2026-09-04
- Last seen by the radar
- 2026-09-06
- Citations
- 0
- Radar score
- 44.25 / 100 (how it is scored)
- Why it scored so
- Also found via OpenAlex; Matched: benchmark, corpora$, evaluat; Primary record: Crossref