保护你的秘密:理解并度量 VSCode 扩展中的数据暴露
Protect Your Secrets: Understanding and Measuring Data Exposure in VSCode Extensions
AI总结:
本文系统研究 VSCode 扩展的跨扩展数据暴露安全问题,提出结合程序分析与自然语言处理的自动化风险检测框架,并在 27,261 个真实扩展中发现 8.5% 存在凭据相关数据泄露风险。
摘要:
近年来,现代集成开发环境(IDE)如 Visual Studio Code(VSCode)中的扩展呈现出新兴趋势,显著提升了开发者生产力。尤其是像 GitHub Copilot 和 Tabnine 这样的流行 AI 编程助手,提供了自动化代码补全和调试等便利。虽然这些扩展带来了诸多好处,但它们可能给软件开发者引入隐私和安全问题。然而,目前尚无现有工作系统性地分析 VSCode 扩展中的安全与隐私问题,包括数据暴露风险。 在本文中,我们研究了 VSCode 中跨扩展交互的安全问题,并揭示了不同扩展之间因数据暴露而产生的漏洞。我们的研究发现了一些高影响力的安全缺陷,如果扩展供应商处理不当,攻击者可能利用这些缺陷从其他扩展中隐秘地获取或操纵与凭据相关的数据(例如密码、API 密钥、访问令牌)。为了度量这些问题的普遍性,我们设计了一个新颖的自动化风险检测框架,该框架利用程序分析和自然语言处理技术来自动识别 VSCode 扩展中的潜在风险。通过将我们的工具应用于 27,261 个真实世界的 VSCode 扩展,我们发现其中 8.5%(即 2,325 个扩展)通过命令、用户输入和配置等多种途径暴露于凭据相关数据泄露风险之中。我们的研究揭示了 IDE 内扩展范式的安全挑战与缺陷,并为提高 VSCode 扩展的安全性以及降低数据暴露风险提供了建议和推荐方案。
英文摘要:
Recent years have witnessed the emerging trend of extensions in modern Integrated Development Environments (IDEs) like Visual Studio Code (VSCode) that significantly enhance developer productivity. Especially, popular AI coding assistants like GitHub Copilot and Tabnine provide conveniences like automated code completion and debugging. While these extensions offer numerous benefits, they may introduce privacy and security concerns to software developers. However, there is no existing work that systematically analyzes the security and privacy concerns, including the risks of data exposure in VSCode extensions. In this paper, we investigate on the security issues of cross-extension interactions in VSCode and shed light on the vulnerabilities caused by data exposure among different extensions. Our study uncovers high-impact security flaws that could allow adversaries to stealthily acquire or manipulate credential-related data (e.g., passwords, API keys, access tokens) from other extensions if not properly handled by extension vendors. To measure their prevalence, we design a novel automated risk detection framework that leverages program analysis and natural language processing techniques to automatically identify potential risks in VSCode extensions. By applying our tool to 27,261 real-world VSCode extensions, we discover that 8.5% of them (i.e., 2,325 extensions) are exposed to credential-related data leakage through various vectors, such as commands, user input, and configurations. Our study sheds light on the security challenges and flaws of the extension-in-IDE paradigm and provides suggestions and recommendations for improving the security of VSCode extensions and mitigating the risks of data exposure.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。