arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.12377cs.SEcs.CR
收藏

开发人员在软件工件中隐藏的秘密方面面临哪些挑战?

What Challenges Do Developers Face About Checked-in Secrets in Software Artifacts?

Setu Kumar Basak, Lorenzo Neil, Bradley Reaves, Laurie Williams

摘要:

在整个2021年,GitGuardian对公共GitHub存储库的监测显示,与2020年相比,暴露的秘密(数据库凭据,API密钥和其他凭据)数量增加了两倍,累积了超过600万个秘密。据我们所知,开发人员面临的挑战,以避免签入的秘密尚未特征化。我们的论文的目标是帮助研究人员和工具开发人员理解和优先考虑未来的研究和工具自动化的机会,通过经验调查的挑战和解决方案,以减轻签入秘密。我们提取了779个与Stack Exchange上签入秘密相关的问题,并应用定性分析来确定每个挑战的挑战和其他人提出的解决方案。我们确定了27个挑战和13个解决方案。四个最常见的挑战按排名顺序是:(i)在部署期间存储秘密/秘密版本;(ii)在源代码中存储秘密/秘密版本;(iii)忽略/隐藏源代码中的秘密;以及(iv)清理历史记录。按排名顺序,三种最常见的解决方案是:(i)将机密移出源代码/版本控制并使用模板配置文件;(ii)部署中的机密管理;以及(iii)使用本地环境变量。我们的调查结果表明,已经提到了相同的解决方案,以减轻多种挑战。然而,我们的研究结果也发现了一个日益增长的趋势,即缺乏公认的解决方案的问题,证实了未来对管理秘密的研究和工具自动化的需求。

英文摘要:

Throughout 2021, GitGuardian's monitoring of public GitHub repositories revealed a two-fold increase in the number of secrets (database credentials, API keys, and other credentials) exposed compared to 2020, accumulating more than six million secrets. To our knowledge, the challenges developers face to avoid checked-in secrets are not yet characterized. The goal of our paper is to aid researchers and tool developers in understanding and prioritizing opportunities for future research and tool automation for mitigating checked-in secrets through an empirical investigation of challenges and solutions related to checked-in secrets. We extract 779 questions related to checked-in secrets on Stack Exchange and apply qualitative analysis to determine the challenges and the solutions posed by others for each of the challenges. We identify 27 challenges and 13 solutions. The four most common challenges, in ranked order, are: (i) store/version of secrets during deployment; (ii) store/version of secrets in source code; (iii) ignore/hide of secrets in source code; and (iv) sanitize VCS history. The three most common solutions, in ranked order, are: (i) move secrets out of source code/version control and use template config file; (ii) secret management in deployment; and (iii) use local environment variables. Our findings indicate that the same solution has been mentioned to mitigate multiple challenges. However, our findings also identify an increasing trend in questions lacking accepted solutions substantiating the need for future research and tool automation on managing secrets.

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

↑