arXiv:2603.18196cs.CRcs.AI2026-03被引 2

用检索增强技术让大模型高效分析网络安全事件,省时又省钱。

Retrieval-Augmented LLMs for Security Incident Analysis

  • 通过预设查询库匹配日志中的攻击指标,结合大模型语义推理还原攻击过程。
  • 最高达94%的召回率,本地部署的Llama 3.1:70b零成本实现81%准确率。
  • 适合安全分析师、自动化威胁响应系统使用,兼顾精度与成本控制。

网络安全事件调查需从入侵检测告警、网络流量记录、认证事件等多源日志中收集分析证据,过程繁琐:分析师需人工筛选海量数据以识别关键指标并还原事件全貌。本文提出一种基于RAG的系统,通过目标查询式过滤与大模型语义推理实现安全事件分析。系统利用包含关联MITRE ATT&CK技术的查询库,从原始日志中提取指标,并检索相关上下文回答取证问题、重构攻击链。在恶意软件流量事件和多阶段Active Directory攻击场景下,对八种LLM配置进行评估。结果显示,Claude Sonnet 4在17个恶意软件场景中平均召回率达94%,DeepSeek V3达89%,但其成本仅为Claude的1/15;本地部署的Llama 3.1:70b以零每查询成本达到81%召回率。在Active Directory场景中,通过枚举提示可实现100%精确率与最高96%召回率。消融实验确认,结合目标查询过滤与RAG检索是提升准确性和成本效益的关键。

原文摘要 · Abstract (English)

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 eight LLM configurations on malware traffic incidents and a multi-stage Active Directory attack. We find that LLMs have different performance and tradeoffs, with Claude Sonnet 4 achieving 94% and DeepSeek V3 achieving 89% average recall across 17 malware scenarios, while DeepSeek costs 15$\times$ less than Claude per analysis, and locally-deployed Llama 3.1:70b achieves 81% recall at zero per-query cost. Attack step detection on the Active Directory scenario reaches 100% precision and up to 96% recall with an enumeration prompt. These results demonstrate that combining targeted query-based filtering with RAG-based retrieval -- confirmed essential by ablation studies -- enables accurate, cost-effective security analysis within LLM context limits.

安全分析RAG大模型日志挖掘

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。