向利用大语言模型生成软件架构的抽象渗透测试用例
Towards Leveraging LLMs to Generate Abstract Penetration Test Cases from Software Architecture
AI总结:
本文提出利用大语言模型生成抽象渗透测试用例,以支持软件架构层面的安全评估,实验显示生成的用例在实用性和正确性上表现良好。
摘要:
软件架构模型捕捉早期设计决策,这些决策强烈影响系统质量属性,包括安全性。然而,实际中架构层面的安全评估和反馈往往缺失,导致安全缺陷传播到软件开发生命周期的后期阶段,甚至在某些情况下未被发现,最终导致脆弱系统。本文通过提出从软件架构模型生成抽象渗透测试用例(APTCs)作为输入来填补这一空白。我们首先引入了一个元模型,定义了APTCs的概念,然后研究了使用不同提示策略的大语言模型生成有意义的APTCs的方法。为了设计APTCs元模型,我们分析了相关标准和最新研究,基于两个标准:(i) 从软件架构中可推导出,(ii) 对于架构安全评估和后续渗透测试的可用性。基于此元模型,我们进一步从软件架构模型生成APTCs。我们的评估显示有前景的结果,达到93%的有用性和86%的正确性,表明生成的APTCs可以显著支持架构师(通过突出安全关键设计决策)和渗透测试人员(通过提供可操作的测试指导).
英文摘要:
Software architecture models capture early design decisions that strongly influence system quality attributes, including security. However, architecture-level security assessment and feedback are often absent in practice, allowing security weaknesses to propagate into later phases of the software development lifecycle and, in some cases, to remain undiscovered, ultimately leading to vulnerable systems. In this paper, we bridge this gap by proposing the generation of Abstract Penetration Test Cases (APTCs) from software architecture models as an input to support architecture-level security assessment. We first introduce a metamodel that defines the APTC concept, and then investigate the use of large language models with different prompting strategies to generate meaningful APTCs from architecture models. To design the APTC metamodel, we analyze relevant standards and state of the art using two criteria: (i) derivability from software architecture, and (ii) usability for both architecture security assessment and subsequent penetration testing. Building on this metamodel, we then proceed to generate APTCs from software architecture models. Our evaluation shows promising results, achieving up to 93\% usefulness and 86\% correctness, indicating that the generated APTCs can substantially support both architects (by highlighting security-critical design decisions) and penetration testers (by providing actionable testing guidance).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。