Pushed by Accident: A Mixed-Methods Study on Strategies of Handling Secret Information in Source Code Repositories
Alexander Krause, Jan H. Klemmer, Nicolas Huaman, Dominik Wermke, Yasemin Acar, Sascha Fahl
摘要
Version control systems for source code, such as Git, are key tools in modern software development. Many developers use services like GitHub or GitLab for collaborative software development. Many software projects include code secrets such as API keys or passwords that need to be managed securely. Previous research and blog posts found that developers struggle with secure code secret management and accidentally leaked code secrets to public Git repositories. Leaking code secrets to the public can have disastrous consequences, such as abusing services and systems or making sensitive user data available to attackers. In a mixed-methods study, we surveyed 109 developers with version control system experience. Additionally, we conducted 14 in-depth semi-structured interviews with developers who experienced secret leakage in the past. 30.3% of our participants encountered code secret leaks in the past. Most of them face several challenges with secret leakage prevention and remediation. Based on our findings, we discuss challenges, such as estimating the risks of leaked secrets, and the needs of developers in remediating and preventing code secret leaks, such as low adoption requirements. We conclude with recommendations for developers and source code platform providers to reduce the risk of secret leakage.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 8 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Leaky Apps: Large-scale Analysis of Secrets Distributed in Android and iOS Apps 引用了 How Bad Can It Git? Characterizing Secret Leakage in Public GitHub Repositories
- Engaging Company Developers in Security Research Studies: A Comprehensive Literature Review and Quantitative Survey 引用了 Why Do Developers Get Password Storage Wrong?: A Qualitative Usability Study
- Engaging Company Developers in Security Research Studies: A Comprehensive Literature Review and Quantitative Survey 引用了 Comparing the Usability of Cryptographic APIs
- Why Do Developers Get Password Storage Wrong?: A Qualitative Usability Study 引用了 Comparing the Usability of Cryptographic APIs
- AssetHarvester: A Static Analysis Tool for Detecting Secret-Asset Pairs in Software Artifacts 引用了 How Bad Can It Git? Characterizing Secret Leakage in Public GitHub Repositories
- Keys on Doormats: Exposed API Credentials on the Web 引用了 Tranco: A Research-Oriented Top Sites Ranking Hardened Against Manipulation
- Keys on Doormats: Exposed API Credentials on the Web 引用了 How Bad Can It Git? Characterizing Secret Leakage in Public GitHub Repositories
引用它的顶会 Paper8
- Engaging Company Developers in Security Research Studies: A Comprehensive Literature Review and Quantitative SurveyRaphael Serafini, Stefan Albert Horstmann, Alena NaiakshinaUSENIX Security 2024 · 7 次引用
- Skipping the Security Side Quests: A Qualitative Study on Security Practices and Challenges in Game DevelopmentPhilip Klostermeyer, Sabrina Amft, Sandra Höltervennhoff, Alexander Krause 等CCS 2024 · 4 次引用
- Keys on Doormats: Exposed API Credentials on the WebNurullah Demir, Yash Vekaria, Georgios Smaragdakis, Zakir DurumericCCS 2026 · 2 次引用
- AssetHarvester: A Static Analysis Tool for Detecting Secret-Asset Pairs in Software ArtifactsSetu Kumar Basak, K. Virgil English, Ken Ogura, Vitesh Kambara 等ICSE 2025 · 1 次引用
- Leaky Apps: Large-scale Analysis of Secrets Distributed in Android and iOS AppsDavid Schmidt, Sebastian Schrittwieser, Edgar R. WeipplCCS 2025
它引用的 Paper14
- Tranco: A Research-Oriented Top Sites Ranking Hardened Against ManipulationVictor Le Pochat, Tom van Goethem, Samaneh Tajalizadehkhoob, Maciej Korczynski 等NDSS 2019 · 826 次引用
- Comparing the Usability of Cryptographic APIsYasemin Acar, Michael Backes, Sascha Fahl, Simson L. Garfinkel 等S&P 2017 · 261 次引用
- Why Do Developers Get Password Storage Wrong?: A Qualitative Usability StudyAlena Naiakshina, Anastasia Danilova, Christian Tiefenau, Marco Herzog 等CCS 2017 · 146 次引用
- How Bad Can It Git? Characterizing Secret Leakage in Public GitHub RepositoriesMichael Meli, Matthew R. McNiece, Bradley ReavesNDSS 2019 · 130 次引用
- Build It, Break It, Fix It: Contesting Secure DevelopmentAndrew Ruef, Michael W. Hicks, James Parker, Dave Levin 等CCS 2016 · 80 次引用
相关 Paper
- What Challenges Do Developers Face About Checked-in Secrets in Software Artifacts?Setu Kumar Basak, Lorenzo Neil, Bradley Reaves, Laurie A. WilliamsICSE 2023 · 9 次引用
- It Should Be Easy but... New Users' Experiences and Challenges with Secret Management ToolsLorenzo Neil, Deepthi Mungara, Laurie A. Williams, Yasemin Acar 等CCS 2025
- The File That Contained the Keys Has Been Removed: An Empirical Analysis of Secret Leaks in Cloud Buckets and Responsible Disclosure OutcomesSoufian El Yadmani, Olga Gadyatskaya, Yury ZhauniarovichS&P 2025
- A Large-Scale Empirical Study of Secret Key Leakage in Hugging Face SpacesShaoxuan Yun, Yuchao Zhang, Zhikun Shi, Liu Wang 等ICSE 2026
- Hey, Your Secrets Leaked! Detecting and Characterizing Secret Leakage in the WildJiawei Zhou, Zidong Zhang, Lingyun Ying, Huajun Chai 等S&P 2025
