Adapting Large Language Models to Emerging Cybersecurity using Retrieval Augmented Generation
On the map: Retrieval-augmented generation → Privacy and security of RAG
Abstract (arXiv)
Security applications are increasingly relying on large language models (LLMs) for cyber threat detection; however, their opaque reasoning often limits trust, particularly in decisions that require domain-specific cybersecurity knowledge. Because security threats evolve rapidly, LLMs must not only recall historical incidents but also adapt to emerging vulnerabilities and attack patterns. Retrieval-Augmented Generation (RAG) has demonstrated effectiveness in general LLM applications, but its potential for cybersecurity remains underexplored. In this work, we introduce a RAG-based framework designed to contextualize cybersecurity data and enhance LLM accuracy in knowledge retention and temporal reasoning. Using external datasets and the Llama-3-8B-Instruct model, we evaluate baseline RAG, an optimized hybrid retrieval approach, and conduct a comparative analysis across multiple performance metrics. Our findings highlight the promise of hybrid retrieval in strengthening the adaptability and reliability of LLMs for cybersecurity tasks.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Privacy and security of RAG, one of 15 directions in Retrieval-augmented generation. Builds on 23 of its 38 references that are in the map. First posted on arXiv 31 Oct 2025.
Builds on
23 of 38 references.
Closest ancestors · 1
Same direction, newest first
Other references · 22
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
- 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Modelscited by 452
- 2023Ragas: Automated Evaluation of Retrieval Augmented Generationcited by 418
- 2024The Faiss librarycited by 376
- 2024Seven Failure Points When Engineering a Retrieval Augmented Generation Systemcited by 139
- 2022Text and Patterns: For Effective Chain of Thought, It Takes Two to Tangocited by 128
- 2024CyberSecEval 2: A Wide-Ranging Cybersecurity Evaluation Suite for Large Language Modelscited by 89
- 2024Test of Time: A Benchmark for Evaluating LLMs on Temporal Reasoningcited by 88
- 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 68
- 2024CTIBench: A Benchmark for Evaluating LLMs in Cyber Threat Intelligencecited by 62
10 more
- 2024CYBERSECEVAL 3: Advancing the Evaluation of Cybersecurity Risks and Capabilities in Large Language Modelscited by 58
- 2024Improving Retrieval for RAG based Question Answering Models on Financial Documentscited by 49
- 2024Understanding the Performance and Estimating the Cost of LLM Fine-Tuningcited by 48
- 2024Large Language Models in Cybersecurity: State-of-the-Artcited by 34
- 2024SEvenLLM: Benchmarking, Eliciting, and Enhancing Abilities of Large Language Models in Cyber Threat Intelligencecited by 22
- 2024SecBench: A Comprehensive Multi-Dimensional Benchmarking Dataset for LLMs in Cybersecuritycited by 21
- 2024SECURE: Benchmarking Large Language Models for Cybersecuritycited by 14
- 2024Actionable Cyber Threat Intelligence using Knowledge Graphs and Large Language Modelscited by 14
- 2024A RAG-Based Question-Answering Solution for Cyber-Attack Investigation and Attributioncited by 9
- 2024LLMSecCode: Evaluating Large Language Models for Secure Codingcited by 4
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025Large Language Models for Explainable Threat Intelligence
- 2023Advancing TTP Analysis: Harnessing the Power of Large Language Models with Retrieval Augmented Generation
- 2025LLM-Assisted Proactive Threat Intelligence for Automated Reasoning
- 2026Tug-of-War within A Decade: Conflict Resolution in Vulnerability Analysis via Teacher-Guided Retrieval-Augmented Generations
- 2025Retrieval Augmented Generation-based Large Language Models for Bridging Transportation Cybersecurity Legal Knowledge Gaps
- 2025CTIConnect: A Benchmark for Retrieval-Augmented LLMs over Heterogeneous Cyber Threat Intelligence
- 2024Cyber Knowledge Completion Using Large Language Models
- 2025RAG Security and Privacy: Formalizing the Threat Model and Attack Surface