CyberRAG: 一种基于代理的RAG网络攻击分类与报告工具
CyberRAG: An Agentic RAG cyber attack classification and reporting tool
AI总结:
CyberRAG是一种基于代理的RAG框架,通过模块化设计实现网络攻击的实时分类、解释和结构化报告,提高检测准确性和可解释性。
摘要:
大型企业中的入侵检测与预防系统(IDS/IPS)每小时可以生成数万条警报,使分析师面临需要快速发展的专业知识的日志压力。传统机器学习检测器可以减少警报数量,但仍会产生许多误报,而标准的检索增强生成(RAG)流程往往检索到不相关的内容,并且无法解释预测。我们提出了CyberRAG,一种模块化的基于代理的RAG框架,能够为网络攻击提供实时分类、解释和结构化报告。一个中心的LLM代理负责:(i)针对攻击类型进行微调的分类器;(ii)用于丰富和警报的工具适配器;(iii)一个迭代的检索与推理循环,查询领域特定的知识库,直到证据相关且自洽。与传统RAG不同,CyberRAG采用基于代理的设计,能够实现动态控制流和自适应推理。这种架构可以自动优化威胁标签和自然语言解释,减少误报并提高可解释性。它也是可扩展的:通过添加分类器可以支持新的攻击类型,而无需重新训练核心代理。CyberRAG在SQL注入、XSS和SSTI上进行了评估,每类的准确率超过94%,最终分类准确率为94.92%。生成的解释在BERTScore上达到0.94,在基于GPT-4的专家评估中得分为4.9/5,对对抗性和未见过的负载具有鲁棒性。这些结果表明,基于代理、面向专业领域的RAG可以结合高检测准确性和可信赖的SOC准备的文本,提供了一条通向部分自动化网络防御工作流程的灵活路径。
英文摘要:
Intrusion Detection and Prevention Systems (IDS/IPS) in large enterprises can generate hundreds of thousands of alerts per hour, overwhelming analysts with logs requiring rapidly evolving expertise. Conventional machine-learning detectors reduce alert volume but still yield many false positives, while standard Retrieval-Augmented Generation (RAG) pipelines often retrieve irrelevant context and fail to justify predictions. We present CyberRAG, a modular agent-based RAG framework that delivers real-time classification, explanation, and structured reporting for cyber-attacks. A central LLM agent orchestrates: (i) fine-tuned classifiers specialized by attack family; (ii) tool adapters for enrichment and alerting; and (iii) an iterative retrieval-and-reason loop that queries a domain-specific knowledge base until evidence is relevant and self-consistent. Unlike traditional RAG, CyberRAG adopts an agentic design that enables dynamic control flow and adaptive reasoning. This architecture autonomously refines threat labels and natural-language justifications, reducing false positives and enhancing interpretability. It is also extensible: new attack types can be supported by adding classifiers without retraining the core agent. CyberRAG was evaluated on SQL Injection, XSS, and SSTI, achieving over 94\% accuracy per class and a final classification accuracy of 94.92\% through semantic orchestration. Generated explanations reached 0.94 in BERTScore and 4.9/5 in GPT-4-based expert evaluation, with robustness preserved against adversarial and unseen payloads. These results show that agentic, specialist-oriented RAG can combine high detection accuracy with trustworthy, SOC-ready prose, offering a flexible path toward partially automated cyber-defense workflows.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。