{"title":"Test-Based Least Privilege Discovery on Cloud Infrastructure as Code","authors":"Ryo Shimizu, Hideyuki Kanuka","doi":"10.1109/CloudCom49646.2020.00007","DOIUrl":null,"url":null,"abstract":"Infrastructure as Code (IaC) for cloud is an important practice due to its efficient and reproducible provisioning of cloud environments. On a cloud IaC definition (template), developers need to manage permissions for each cloud services as well as a desired cloud environment. To minimize the risk of cyber-attacks, retaining least privilege, i.e., giving a minimum set of permissions, on IaC templates is important and widely regarded as best practice. However, discovering least privilege on a target IaC template at one time is an error-prone and burdensome task for developers. One reason is that some actions of a cloud service implicitly use other services and require corresponding permissions, which are hard to recognize without actual executions on the cloud and burden the development process with iterations of permission setting and provisioned result checking. In this paper, we present a technique to automatically discover least privilege. Our method incrementally finds the least privilege by the iteration of testing on the cloud and (re)configuring permissions on the basis of test results. We conducted case studies and found that our approach can identify least privilege on Amazon Web Services within a practical time. Our experiments also show that the proposed algorithm can reduce the number of test executions, which directly affects the time and cost on cloud to determine least privilege, by 69.3% and 39.8% compared with the random and heuristic methods, respectively, on average.","PeriodicalId":401135,"journal":{"name":"2020 IEEE International Conference on Cloud Computing Technology and Science (CloudCom)","volume":"157 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2020 IEEE International Conference on Cloud Computing Technology and Science (CloudCom)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/CloudCom49646.2020.00007","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1
Abstract
Infrastructure as Code (IaC) for cloud is an important practice due to its efficient and reproducible provisioning of cloud environments. On a cloud IaC definition (template), developers need to manage permissions for each cloud services as well as a desired cloud environment. To minimize the risk of cyber-attacks, retaining least privilege, i.e., giving a minimum set of permissions, on IaC templates is important and widely regarded as best practice. However, discovering least privilege on a target IaC template at one time is an error-prone and burdensome task for developers. One reason is that some actions of a cloud service implicitly use other services and require corresponding permissions, which are hard to recognize without actual executions on the cloud and burden the development process with iterations of permission setting and provisioned result checking. In this paper, we present a technique to automatically discover least privilege. Our method incrementally finds the least privilege by the iteration of testing on the cloud and (re)configuring permissions on the basis of test results. We conducted case studies and found that our approach can identify least privilege on Amazon Web Services within a practical time. Our experiments also show that the proposed algorithm can reduce the number of test executions, which directly affects the time and cost on cloud to determine least privilege, by 69.3% and 39.8% compared with the random and heuristic methods, respectively, on average.
云的基础设施即代码(IaC)是一项重要的实践,因为它可以高效地提供云环境,并且可重复。在云IaC定义(模板)上,开发人员需要管理每个云服务以及所需云环境的权限。为了最大限度地减少网络攻击的风险,在IaC模板上保留最少的特权,即给予最小的权限集是很重要的,并且被广泛认为是最佳实践。然而,对于开发人员来说,一次发现目标IaC模板上的最小权限是一项容易出错且繁重的任务。原因之一是,云服务的某些操作隐式地使用其他服务并需要相应的权限,如果不在云上实际执行,则很难识别这些操作,并且会给开发过程带来反复的权限设置和预置结果检查的负担。本文提出了一种自动发现最小权限的方法。我们的方法通过在云上迭代测试和(重新)配置基于测试结果的权限,以增量方式找到最小权限。我们进行了案例研究,发现我们的方法可以在实际时间内确定Amazon Web Services上的最小特权。我们的实验还表明,与随机和启发式方法相比,该算法可以减少直接影响云上确定最小权限的时间和成本的测试执行次数,平均分别减少69.3%和39.8%。