arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.02009cs.SEcs.AIcs.CRcs.LG
收藏

LLMSecConfig:一种基于大语言模型的软件容器错误配置修复方法

LLMSecConfig: An LLM-Based Approach for Fixing Software Container Misconfigurations

CREST - The Centre for Research on Engineering Software Technologies(工程软件技术研究中心(CREST))

Ziyang Ye, Triet Huynh Minh Le, M. Ali Babar

AI总结:

LLMSecConfig框架结合静态分析工具与大语言模型,利用提示技术和RAG自动修复容器安全错误配置,在1,000个真实Kubernetes配置上实现94%修复成功率。

摘要:

容器编排器(COs)中的安全错误配置可能对软件系统构成严重威胁。虽然静态分析工具(SATs)能够有效检测这些安全漏洞,但业界目前仍缺乏能够修复这些错误配置的自动化解决方案。大语言模型(LLMs)的出现,凭借其在代码理解与生成方面已被验证的能力,为解决这一局限提供了机会。本研究提出了LLMSecConfig,这是一个通过将SATs与LLMs相结合来弥合这一差距的创新框架。我们的方法利用先进的提示技术和检索增强生成(RAG),在保持操作功能的同时自动修复安全错误配置。对1,000个真实世界Kubernetes配置的评估取得了94%的成功率,同时保持了较低的引入新错误配置的比例。我们的工作朝着自动化容器安全管理迈出了有希望的一步,减少了配置维护所需的人工工作量。

英文摘要:

Security misconfigurations in Container Orchestrators (COs) can pose serious threats to software systems. While Static Analysis Tools (SATs) can effectively detect these security vulnerabilities, the industry currently lacks automated solutions capable of fixing these misconfigurations. The emergence of Large Language Models (LLMs), with their proven capabilities in code understanding and generation, presents an opportunity to address this limitation. This study introduces LLMSecConfig, an innovative framework that bridges this gap by combining SATs with LLMs. Our approach leverages advanced prompting techniques and Retrieval-Augmented Generation (RAG) to automatically repair security misconfigurations while preserving operational functionality. Evaluation of 1,000 real-world Kubernetes configurations achieved a 94\% success rate while maintaining a low rate of introducing new misconfigurations. Our work makes a promising step towards automated container security management, reducing the manual effort required for configuration maintenance.

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

↑