GitHub Copilot 提示词注入致远程代码执行(CVE-2025-53773)
安全研究者 Johann Rehberger 披露 GitHub Copilot 与 VS Code 中的提示词注入漏洞 CVE-2025-53773,攻击者可通过源码文件、网页、GitHub issue 或 MCP 返回内容中的注入指令,向 ~/.vscode/settings.json 写入 "chat.tools.autoApprove": true,使 Copilot 进入 YOLO 模式并关闭全部用户确认,进而执行终端命令实现远程代码执行。该漏洞影响 Windows、macOS 和 Linux,作者演示了下载恶意软件、接入远程命令控制服务器,以及通过感染文件在 Git 项目间传播的 AI 病毒思路。作者于 2025 年 6 月 29 日报告,微软在 8 月补丁星期二发布修复;文中还提到 .vscode/tasks.json 和伪造 MCP 服务器等其他可导致代码执行的攻击面。
all models are vulnerable to such invisible prompt injection attacks. Recommendations and Fix There are actually more attack angles then just the YOLO mode example I shared. When Microsoft asked me if there is any more info I have, I had looked a bit more and noticed there are other problematic places, for instance .vscode/tasks.json that the AI can write to, or adding fake malicious MCP servers, etc which can lead to code execution. And the AI can reconfigure the user interface and configurati
匹配字段正文




