用大模型自动分析银行系统威胁,提升安全建模效率。
ThreatModeling-LLM: Automating Threat Modeling using Large Language Models for Banking System
- 构建三阶段框架:数据生成、提示优化、模型微调
- 在真实银行场景中实现威胁识别准确率显著提升
- 适合金融安全团队快速部署,降低人工依赖
威胁建模是网络安全的关键环节,尤其在银行业对金融数据安全要求极高的背景下尤为重要。传统方法依赖专家手动操作,效率低且易出错。大型语言模型(LLMs)为自动化威胁建模提供了新可能,但面临三大挑战:(1)缺乏公开的领域专用数据集;(2)需定制化模型以应对复杂的银行系统架构;(3)需实时、自适应的缓解策略以符合如NIST 800-53等合规标准。本文提出ThreatModeling-LLM,一种新颖且可适配的框架,利用大模型自动化银行系统的威胁建模。该框架分三步进行:(1)使用微软威胁建模工具(TMT)生成基准数据集;(2)在预训练大模型上应用思维链(CoT)与基于提示优化(OPRO)技术优化初始提示;(3)基于基准数据集和优化后的提示,采用低秩适配(LoRA)对模型进行微调,增强其威胁识别与缓解方案生成能力。
原文摘要 · Abstract (English)
Threat modeling is a crucial component of cybersecurity, particularly for industries such as banking, where the security of financial data is paramount. Traditional threat modeling approaches require expert intervention and manual effort, often leading to inefficiencies and human error. The advent of Large Language Models (LLMs) offers a promising avenue for automating these processes, enhancing both efficiency and efficacy. However, this transition is not straightforward due to three main challenges: (1) the lack of publicly available, domain-specific datasets, (2) the need for tailored models to handle complex banking system architectures, and (3) the requirement for real-time, adaptive mitigation strategies that align with compliance standards like NIST 800-53. In this paper, we introduce ThreatModeling-LLM, a novel and adaptable framework that automates threat modeling for banking systems using LLMs. ThreatModeling-LLM operates in three stages: 1) dataset creation, 2) prompt engineering and 3) model fine-tuning. We first generate a benchmark dataset using Microsoft Threat Modeling Tool (TMT). Then, we apply Chain of Thought (CoT) and Optimization by PROmpting (OPRO) on the pre-trained LLMs to optimize the initial prompt. Lastly, we fine-tune the LLM using Low-Rank Adaptation (LoRA) based on the benchmark dataset and the optimized prompt to improve the threat identification and mitigation generation capabilities of pre-trained LLMs.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。