Characterizing Co-located Insecure Coding Patterns in Infrastructure as Code Scripts

Farzana Ahamed Bhuiyan, A. Rahman
{"title":"Characterizing Co-located Insecure Coding Patterns in Infrastructure as Code Scripts","authors":"Farzana Ahamed Bhuiyan, A. Rahman","doi":"10.1145/3417113.3422154","DOIUrl":null,"url":null,"abstract":"Context: Insecure coding patterns (ICPs), such as hard-coded passwords can be inadvertently introduced in infrastructure as code (IaC) scripts, providing malicious users the opportunity to attack provisioned computing infrastructure. As performing code reviews is resource-intensive, a characterization of co-located ICPs, i.e., ICPs that occur together in a script can help practitioners to prioritize their review efforts and mitigate ICPs in IaC scripts. Objective: The goal of this paper is to help practitioners in prioritizing code review efforts for infrastructure as code (IaC) scripts by conducting an empirical study of co-located insecure coding patterns in IaC scripts. Methodology: We conduct an empirical study with 1613, 2764 and 2845 Puppet scripts respectively collected from three organizations namely, Mozilla, Openstack, and Wikimedia. We apply association rule mining to identify co-located ICPs in IaC scripts. Results: We observe 17.9%, 32.9%, and 26.7% of the scripts to include colocated ICPs respectively, for Mozilla, Openstack, and Wikimedia. The most frequent co-located ICP category is hard-coded secret and suspicious comment. Conclusion: Practitioners can prioritize code review efforts for IaC scripts by reviewing scripts that include co-located ICPs.","PeriodicalId":110590,"journal":{"name":"2020 35th IEEE/ACM International Conference on Automated Software Engineering Workshops (ASEW)","volume":"59 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"5","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2020 35th IEEE/ACM International Conference on Automated Software Engineering Workshops (ASEW)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3417113.3422154","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 5

Abstract

Context: Insecure coding patterns (ICPs), such as hard-coded passwords can be inadvertently introduced in infrastructure as code (IaC) scripts, providing malicious users the opportunity to attack provisioned computing infrastructure. As performing code reviews is resource-intensive, a characterization of co-located ICPs, i.e., ICPs that occur together in a script can help practitioners to prioritize their review efforts and mitigate ICPs in IaC scripts. Objective: The goal of this paper is to help practitioners in prioritizing code review efforts for infrastructure as code (IaC) scripts by conducting an empirical study of co-located insecure coding patterns in IaC scripts. Methodology: We conduct an empirical study with 1613, 2764 and 2845 Puppet scripts respectively collected from three organizations namely, Mozilla, Openstack, and Wikimedia. We apply association rule mining to identify co-located ICPs in IaC scripts. Results: We observe 17.9%, 32.9%, and 26.7% of the scripts to include colocated ICPs respectively, for Mozilla, Openstack, and Wikimedia. The most frequent co-located ICP category is hard-coded secret and suspicious comment. Conclusion: Practitioners can prioritize code review efforts for IaC scripts by reviewing scripts that include co-located ICPs.
将基础设施中共存的不安全编码模式描述为代码脚本
上下文:不安全的编码模式(icp),例如硬编码的密码,可能在无意中作为代码(IaC)脚本引入基础设施,从而为恶意用户提供攻击已配置的计算基础设施的机会。由于执行代码审查是资源密集型的,因此对位于同一位置的icp的特征描述,即,在一个脚本中一起出现的icp可以帮助实践者优先考虑他们的审查工作,并减轻IaC脚本中的icp。目的:本文的目标是通过对IaC脚本中共存的不安全编码模式进行实证研究,帮助实践者优先考虑作为代码的基础设施脚本的代码审查工作。方法:我们对从Mozilla、Openstack和Wikimedia三个组织中分别收集的1613、2764和2845个Puppet脚本进行了实证研究。我们应用关联规则挖掘来识别IaC脚本中位于同一位置的icp。结果:我们分别观察到17.9%、32.9%和26.7%的脚本包含了Mozilla、Openstack和Wikimedia的并置icp。最常见的同址ICP类别是硬编码的秘密和可疑评论。结论:从业者可以通过审查包含共存的icp的脚本来优先考虑IaC脚本的代码审查工作。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信