更新IaC安全缺陷分类,覆盖7大工具并用AI辅助验证
Security smells in infrastructure as code: a taxonomy update beyond the seven sins
- 扩展至7种IaC工具,结合LLM自动化初筛与人工校验
- 构建62类安全缺陷分类,落地到7个主流工具的检查规则
- 揭示缺陷长期存在原因,助力开发者实践DevSecOps
基础设施即代码(IaC)已成为现代软件管理的核心,但其脚本中的安全缺陷可能引发严重后果,如云服务反复被攻破。早期研究提出“七大罪”作为安全缺陷分类,但受限于单一工具和大量人工标注。本文将研究拓展至 Terraform、Ansible、Chef、Puppet、Pulumi、Saltstack、Vagrant 等七种流行IaC工具,引入大语言模型进行初步模式识别,并通过系统性人工验证与既有安全标准对齐,确保分类准确性。最终形成包含62类安全缺陷的新分类体系。我们进一步在7个主流IaC工具的linters中实现新检查规则,多数达到1.00精度。对GitHub项目的历史演化分析显示,这些缺陷往往长期存在,主因是检测与缓解工具不足。该工作为IaC从业者提供实用指导,推动更系统的DevSecOps实践。
原文摘要 · Abstract (English)
Infrastructure as Code (IaC) has become essential for modern software management, yet security flaws in IaC scripts can have severe consequences, as exemplified by the recurring exploits of Cloud Web Services. Prior work has recognized the need to build a precise taxonomy of security smells in IaC scripts as a first step towards developing approaches to improve IaC security. This first effort led to the unveiling of seven sins, limited by the focus on a single IaC tool as well as by the extensive, and potentially biased, manual effort that was required. We propose, in our work, to revisit this taxonomy: first, we extend the study of IaC security smells to a more diverse dataset with scripts associated with seven popular IaC tools, including Terraform, Ansible, Chef, Puppet, Pulumi, Saltstack, and Vagrant; second, we bring in some automation for the analysis by relying on an LLM. While we leverage LLMs for initial pattern processing, all taxonomic decisions underwent systematic human validation and reconciliation with established security standards. Our study yields a comprehensive taxonomy of 62 security smell categories, significantly expanding beyond the previously known seven. We demonstrate actionability by implementing new security checking rules within linters for seven popular IaC tools, often achieving 1.00 precision score. Our evolution study of security smells in GitHub projects reveals that these issues persist for extended periods, likely due to inadequate detection and mitigation tools. This work provides IaC practitioners with insights for addressing common security smells and systematically adopting DevSecOps practices to build safer infrastructure code.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。