分析与缓解(借助LLM)Artifact Hub上Helm Charts的安全错误配置
Analyzing and Mitigating (with LLMs) the Security Misconfigurations of Helm Charts from Artifact Hub
AI总结:
本研究提出流水线从Artifact Hub挖掘Helm charts,用Checkov和KICS分析错误配置,并利用LLM生成缓解重构,同时评估工具与LLM输出中的误报,以提升K8s部署安全性。
摘要:
背景:Helm是一个包管理器,允许在Kubernetes(K8s)这一流行的容器编排平台上定义、安装和升级应用程序。Helm chart是描述在K8s集群中部署应用程序所需的所有依赖、资源和参数的文件集合。目标:本研究旨在挖掘并实证评估Helm chart的安全性,比较现有工具在默认可用策略报告的错误配置方面的性能,并衡量LLM在多大程度上可用于消除错误配置。我们还希望调查LLM重构和工具输出中是否存在误报。方法:我们提出一个从Artifact Hub(一个流行的集中式仓库)挖掘Helm chart的流水线,并使用Checkov和KICS等最先进的开源工具对其进行分析。首先,该流水线将运行多个chart分析器,识别每个工具报告的常见和独特错误配置。其次,它将使用LLM为每个错误配置建议缓解措施。最后,将再次使用相同的工具分析先前生成的chart重构,以查看其是否满足工具的策略。同时,我们还将对一部分chart进行手动分析,以评估工具报告和LLM重构中是否存在误报错误配置。
英文摘要:
Background: Helm is a package manager that allows defining, installing, and upgrading applications with Kubernetes (K8s), a popular container orchestration platform. A Helm chart is a collection of files describing all dependencies, resources, and parameters required for deploying an application within a K8s cluster. Objective: The goal of this study is to mine and empirically evaluate the security of Helm charts, comparing the performance of existing tools in terms of misconfigurations reported by policies available by default, and measure to what extent LLMs could be used for removing misconfiguration. We also want to investigate whether there are false positives in both the LLM refactorings and the tool outputs. Method: We propose a pipeline to mine Helm charts from Artifact Hub, a popular centralized repository, and analyze them using state-of-the-art open-source tools, such as Checkov and KICS. First, such a pipeline will run several chart analyzers and identify the common and unique misconfigurations reported by each tool. Secondly, it will use LLMs to suggest mitigation for each misconfiguration. Finally, the chart refactoring previously generated will be analyzed again by the same tools to see whether it satisfies the tool's policies. At the same time, we will also perform a manual analysis on a subset of charts to evaluate whether there are false positive misconfigurations from the tool's reporting and in the LLM refactoring.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。