arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.18196cs.CRcs.AI
收藏

增强检索的大型语言模型用于安全事件分析

Retrieval-Augmented LLMs for Security Incident Analysis

Dartmouth College(达特茅斯学院);Northeastern University(东北大学)

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

AI总结:

本文提出基于RAG的系统,通过针对性查询过滤和LLM语义推理分析安全事件,展示LLM在恶意软件和Active Directory攻击中的高召回率和精度,证明RAG架构在安全分析中的有效性。

摘要:

调查网络安全事件需要从多个日志源收集和分析证据,包括入侵检测警报、网络流量记录和身份验证事件。此过程劳动强度大:分析师必须筛选大量数据以识别相关指标并拼凑事件经过。本文提出基于RAG的系统,通过针对性查询过滤和LLM语义推理进行安全事件分析。系统使用包含关联MITRE ATT&CK技术的查询库从原始日志中提取指标,然后检索相关上下文以回答取证问题并重建攻击序列。我们使用五家LLM提供商在恶意软件流量事件和多阶段Active Directory攻击中评估该系统。发现LLM模型在性能和权衡上各有差异,其中Claude Sonnet 4和DeepSeek V3在所有四个恶意软件场景中均达到100%召回率,而DeepSeek成本仅为15倍更低($0.008 vs. $0.12每分析)。Active Directory场景中的攻击步骤检测达到100%精度和82%召回率。消融研究证实RAG架构至关重要:没有RAG增强上下文的LLM基线能够正确识别受害主机,但遗漏所有攻击基础设施,包括恶意域名和命令与控制服务器。这些结果证明,结合针对性查询过滤与基于RAG的检索能够实现准确且成本效益高的安全分析,且在LLM上下文限制内。

英文摘要:

Investigating cybersecurity incidents requires collecting and analyzing evidence from multiple log sources, including intrusion detection alerts, network traffic records, and authentication events. This process is labor-intensive: analysts must sift through large volumes of data to identify relevant indicators and piece together what happened. We present a RAG-based system that performs security incident analysis through targeted query-based filtering and LLM semantic reasoning. The system uses a query library with associated MITRE ATT&CK techniques to extract indicators from raw logs, then retrieves relevant context to answer forensic questions and reconstruct attack sequences. We evaluate the system with five LLM providers on malware traffic incidents and multi-stage Active Directory attacks. We find that LLM models have different performance and tradeoffs, with Claude Sonnet 4 and DeepSeek V3 achieving 100% recall across all four malware scenarios, while DeepSeek costs 15 times less ($0.008 vs. $0.12 per analysis). Attack step detection on Active Directory scenarios reaches 100% precision and 82% recall. Ablation studies confirm that a RAG architecture is essential: LLM baselines without RAG-enhanced context correctly identify victim hosts but miss all attack infrastructure including malicious domains and command-and-control servers. These results demonstrate that combining targeted query-based filtering with RAG-based retrieval enables accurate, cost-effective security analysis within LLM context limits.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑