Committed by Accident: Studying Prevention and Remediation Strategies Against Secret Leakage in Source Code Repositories
Alexander Krause, Jan H. Klemmer, Nicolas Huaman, Dominik Wermke,, Yasemin Acar, Sascha Fahl

TL;DR
This study investigates how developers experience, prevent, and remediate secret leaks in source code repositories, highlighting challenges and providing recommendations to improve security practices.
Contribution
It offers empirical insights from surveys and interviews on secret leakage challenges and proposes practical recommendations for developers and platform providers.
Findings
30.3% of developers experienced secret leakage
Developers face challenges in risk estimation and prevention
Low adoption of existing secret management tools
Abstract
Version control systems for source code, such as Git, are key tools in modern software development environments. Many developers use online services, such as GitHub or GitLab, for collaborative software development. While software projects often require code secrets to work, such as API keys or passwords, they need to be handled securely within the project. Previous research and news articles have illustrated that developers are blameworthy of committing code secrets, such as private encryption keys, passwords, or API keys, accidentally to public source code repositories. However, making secrets publicly available might have disastrous consequences, such as leaving systems vulnerable to attacks. In a mixed-methods study, we surveyed 109 developers and conducted 14 in-depth semi-structured interviews with developers which experienced secret leakage in the past. We find that 30.3% of our…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Malware Detection Techniques · Software Engineering Research · Information and Cyber Security
