arXiv:2412.00707cs.CRcs.AI2024-12被引 9

发现8.5%的VSCode插件存在密钥泄露风险,可被其他插件窃取。

Protect Your Secrets: Understanding and Measuring Data Exposure in VSCode Extensions

  • 通过程序分析与NLP构建自动化检测框架
  • 27,261个插件中2,325个存在凭据数据暴露
  • 揭示插件间交互中的隐蔽数据泄露漏洞

近年来,Visual Studio Code(VSCode)等现代集成开发环境中的扩展程序显著提升了开发者生产力,尤其以GitHub Copilot和Tabnine等AI编程助手为代表,提供自动补全与调试功能。然而,这些扩展可能引入隐私与安全风险。目前尚无系统性研究分析VSCode扩展中的安全与隐私问题,特别是数据泄露风险。本文研究了VSCode中跨扩展交互的安全问题,揭示了因扩展间数据暴露导致的高危漏洞。若扩展厂商未妥善处理,攻击者可隐蔽获取或篡改密码、API密钥、访问令牌等敏感信息。我们设计了一种新型自动化风险检测框架,结合程序分析与自然语言处理技术,自动识别潜在风险。在27,261个真实世界扩展中应用该工具,发现8.5%(即2,325个)扩展存在通过命令、用户输入、配置等途径导致的凭据数据泄露。本研究揭示了IDE扩展范式下的安全挑战,并提出改进建议以降低数据暴露风险。

原文摘要 · Abstract (English)

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.

安全分析数据泄露VSCode扩展防护

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。