Amazon Q Developer 被提示注入实现远程代码执行
安全研究者 Johann Rehberger 披露 Amazon Q Developer VS Code 扩展存在间接提示注入漏洞,攻击者可通过源码注释等不可信数据劫持 AI,在开发者未确认的情况下执行任意命令。漏洞根因是 executeBash 工具把 find 归入 readonly 类别从而绕过人工确认,而 find 的 -exec 参数可执行任意系统命令;作者还演示了绕过 Claude 4 拒绝机制、从远程服务器下载并执行命令乃至 Sliver 恶意软件加入 C2 的完整链路。该漏洞于 2025 年 7 月 4 日报告给 AWS,7 月 17 日在 v1.85 版本中静默修复,AWS 最终以该报告需先有系统入侵为由拒绝分配 CVE。
that matter) to run arbitrary commands on the host without the developer’s consent. The resulting impact of the vulnerability is the same as CVE-2025-53773 that Microsoft fixed in GitHub Copilot, however AWS did not issue a CVE when patching the vulnerabiliy. Let’s explore this in detail. As usual, the first step for me was to dump the system prompt. The Amazon Q VS Code extension has a set of tools defined, including reading files, writing files, and executeBash to run commands and so on. Under
匹配字段正文


