Skip to main content
QUICK REVIEW

[论文解读] AttacKG+:Boosting Attack Knowledge Graph Construction with Large Language Models

Yongheng Zhang, Tingwen Du|arXiv (Cornell University)|May 8, 2024
Topic ModelingComputer Science被引用 3
一句话总结

AttacKG+ 提出了一种完全自动化的、基于大语言模型(LLM)的框架,用于从网络威胁情报报告中构建攻击知识图谱,通过指令微调提示和跨四个模块的上下文学习:重写器、解析器、识别器和摘要生成器。该框架能够高保真地提取时间序列攻击行为、MITRE TTP 映射以及分阶段摘要,显著提升了对安全分析师的泛化能力和可用性,且无需自然语言处理(NLP)专业知识。

ABSTRACT

Attack knowledge graph construction seeks to convert textual cyber threat intelligence (CTI) reports into structured representations, portraying the evolutionary traces of cyber attacks. Even though previous research has proposed various methods to construct attack knowledge graphs, they generally suffer from limited generalization capability to diverse knowledge types as well as requirement of expertise in model design and tuning. Addressing these limitations, we seek to utilize Large Language Models (LLMs), which have achieved enormous success in a broad range of tasks given exceptional capabilities in both language understanding and zero-shot task fulfillment. Thus, we propose a fully automatic LLM-based framework to construct attack knowledge graphs named: AttacKG+. Our framework consists of four consecutive modules: rewriter, parser, identifier, and summarizer, each of which is implemented by instruction prompting and in-context learning empowered by LLMs. Furthermore, we upgrade the existing attack knowledge schema and propose a comprehensive version. We represent a cyber attack as a temporally unfolding event, each temporal step of which encapsulates three layers of representation, including behavior graph, MITRE TTP labels, and state summary. Extensive evaluation demonstrates that: 1) our formulation seamlessly satisfies the information needs in threat event analysis, 2) our construction framework is effective in faithfully and accurately extracting the information defined by AttacKG+, and 3) our attack graph directly benefits downstream security practices such as attack reconstruction. All the code and datasets will be released upon acceptance.

研究动机与目标

  • 解决现有攻击知识图谱构建方法在多样化和新型网络威胁上的泛化能力有限的问题。
  • 减少对专家调优的 NLP 模型和手动特征工程的依赖,使威胁情报提取对非 AI 安全从业者更加易用。
  • 通过引入涵盖行为、MITRE TTP 和分阶段摘要的多层模式,增强攻击知识图谱的表达能力。
  • 证明大语言模型在零样本和少样本设置下无需微调即可有效执行网络威胁信息抽取。
  • 发布开源数据集和代码,以支持自动化 CTI 处理领域的可复现性和未来研究。

提出的方法

  • 该框架采用四个由大语言模型驱动的模块:重写器将 CTI 报告结构化并按战术阶段过滤,解析器提取原子事件三元组和时间关系,识别器使用上下文学习将行为映射到 MITRE TTP,摘要生成器生成分阶段的情境概览。
  • 每个模块均通过指令提示和少样本上下文学习实现,支持零样本或少样本适应,无需模型微调。
  • 提出一种新型、全面的攻击知识图谱模式,将每个时间阶段表示为三层结构:行为图谱、MITRE TTP 标签和状态摘要(如权限、文件、工具、数据)。
  • 该方法利用大语言模型的通用世界知识和上下文推理能力,在多样化网络威胁类型和新型攻击模式之间实现良好泛化。
  • 该框架在两个新构建的数据集 Re-CTI 和 CTI-TE 上进行评估,以验证其在真实威胁分析场景中的性能。
  • 评估结合自动指标(如 F1 分数)和定性分析,以评估在攻击重建等下游任务中,其保真度、完整性和实用性。

实验结果

研究问题

  • RQ1大语言模型是否能在不进行微调的情况下,有效从非结构化 CTI 报告中提取结构化攻击知识,实现在多样化威胁类型上的高精度和强泛化能力?
  • RQ2基于大语言模型的模块(重写器、解析器、识别器、摘要生成器)在攻击叙述中能否有效保持语义丰富性和时间连贯性?
  • RQ3所提出的多层攻击知识图谱模式(行为、TTP、摘要)在多大程度上提升了攻击图谱在威胁分析和事件响应中的实用性?
  • RQ4基于大语言模型的框架是否能在覆盖范围、准确率和非专家用户部署便捷性方面优于传统基于规则或模型调优的方法?
  • RQ5上下文学习与指令提示的集成在多大程度上实现了对未见过的网络威胁报告的稳健零样本性能?

主要发现

  • AttacKG+ 在实体和关系抽取任务中取得了较高的 F1 分数,证明其在从非结构化 CTI 报告中捕捉攻击行为和时间序列方面具有极高的保真度。
  • 基于大语言模型的模块在复杂、多阶段攻击场景中,仍能以高精度成功识别并映射威胁行为到 MITRE TTP。
  • 引入分阶段摘要显著提升了攻击图谱在安全分析师进行事后分析时的可解释性和实用性。
  • 该框架实现了完全自动化、端到端的攻击知识图谱构建,几乎无需人工干预,降低了对 AI 专业知识的依赖。
  • 所提出的模式能够生成更丰富、更具行动指导意义的网络攻击表示,直接提升攻击重建和威胁狩猎等下游任务的效果。
  • 评估结果证实,AttacKG+ 在泛化到新型攻击模式和多样化知识类型方面优于现有方法,尤其在零样本设置下表现突出。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。