arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.06779cs.CR
收藏

CyberLLM-FINDS 2025:基于检索增强生成和图集成的领域特定LLM指令微调方法用于MITRE评估

CyberLLM-FINDS 2025: Instruction-Tuned Fine-tuning of Domain-Specific LLMs with Retrieval-Augmented Generation and Graph Integration for MITRE Evaluation

Grambling State University(格兰布林州立大学);Florida International University(佛罗里达国际大学)

Vasanth Iyer, Leonardo Bobadilla, S. S. Iyengar

AI总结:

本文提出了一种基于检索增强生成和图集成的领域特定LLM微调方法,通过STIX威胁情报实现与MITRE ATT&CK技术的对齐,提升网络安全威胁情报分析的准确性。

摘要:

大型语言模型(如Gemma-2B)在各种自然语言处理任务中表现出色。然而,通用模型往往缺乏网络安全应用所需的领域专业知识。本文提出了一种将Gemma-2B模型微调为领域特定网络安全LLM的方法。我们详细描述了数据集准备、微调和合成数据生成的过程,以及在威胁检测、调查和攻击分析等现实应用中的意义。实验突出了在领域特定微调过程中提示长度分布的挑战。不均匀的提示长度限制了模型对上下文窗口的有效利用,即使硬件支持更长的序列,局部推理仍受限于200-400个标记。采用链式思考风格的提示与量化权重相结合,在这些限制下取得了最佳性能。为了解决上下文限制,我们采用了混合策略:使用云LLM生成合成数据,本地微调以提高部署效率。为扩展评估,我们引入了检索增强生成(RAG)管道和基于图的推理框架。这种方法通过基于STIX的威胁情报实现与MITRE ATT&CK技术的结构对齐,提高了多跳和长上下文场景下的召回率。图模块编码实体-邻居上下文和战术链,帮助缓解短提示窗口的限制。结果表明,模型在战术、技术、程序(TTP)覆盖方面的对齐得到改善,验证了图增强LLM在网络安全威胁情报中的实用性。

英文摘要:

Large Language Models (LLMs) such as Gemma-2B have shown strong performance in various natural language processing tasks. However, general-purpose models often lack the domain expertise required for cybersecurity applications. This work presents a methodology to fine-tune the Gemma-2B model into a domain-specific cybersecurity LLM. We detail the processes of dataset preparation, fine-tuning, and synthetic data generation, along with implications for real-world applications in threat detection, forensic investigation, and attack analysis. Experiments highlight challenges in prompt length distribution during domain-specific fine-tuning. Uneven prompt lengths limit the model's effective use of the context window, constraining local inference to 200-400 tokens despite hardware support for longer sequences. Chain-of-thought styled prompts, paired with quantized weights, yielded the best performance under these constraints. To address context limitations, we employed a hybrid strategy using cloud LLMs for synthetic data generation and local fine-tuning for deployment efficiency. To extend the evaluation, we introduce a Retrieval-Augmented Generation (RAG) pipeline and graph-based reasoning framework. This approach enables structured alignment with MITRE ATT&CK techniques through STIX-based threat intelligence, enhancing recall in multi-hop and long-context scenarios. Graph modules encode entity-neighborhood context and tactic chains, helping mitigate the constraints of short prompt windows. Results demonstrate improved model alignment with tactic, technique, and procedure (TTP) coverage, validating the utility of graph-augmented LLMs in cybersecurity threat intelligence applications.

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

↑