---
title: "Amazon Q Developer VS Code 插件被曝可通过提示词注入执行任意代码"
canonical: "https://new.nat6.net/news/cmtzsx6cb06msro1b4rx35w3y/"
date: "2025-08-19"
updated: "2026-11-05"
source: "Johann Rehberger / Embrace The Red（RSS）"
source_url: "https://embracethered.com/blog/posts/2025/amazon-q-developer-remote-code-execution"
language: "zh"
topics: []
license: "https://new.nat6.net/sources/"
attribution: "Content is based on curated titles and AI summaries from the AIHOT public API, with attribution and links back; original copyright remains with the original publishers and authors."
---

# Amazon Q Developer VS Code 插件被曝可通过提示词注入执行任意代码

- 发布日期 / Published: 2025-08-19
- 更新时间 / Updated: 2026-11-05
- 分类 / Category: 论文与研究
- 来源 / Source: Johann Rehberger / Embrace The Red（RSS） — [原文 / Original](https://embracethered.com/blog/posts/2025/amazon-q-developer-remote-code-execution)
- AIHOT: [条目页 / Item](https://aihot.news/items/cmtzsx6cb06msro1b4rx35w3y)
- 页面 / Page: https://new.nat6.net/news/cmtzsx6cb06msro1b4rx35w3y/
- 结构化数据 / JSON: https://new.nat6.net/api/v1/articles/cmtzsx6cb06msro1b4rx35w3y.json

- 语言 / Languages: [zh](https://new.nat6.net/news/cmtzsx6cb06msro1b4rx35w3y/) · [en](https://new.nat6.net/en/news/cmtzsx6cb06msro1b4rx35w3y/) · [de](https://new.nat6.net/de/news/cmtzsx6cb06msro1b4rx35w3y/) · [fr](https://new.nat6.net/fr/news/cmtzsx6cb06msro1b4rx35w3y/) · [ru](https://new.nat6.net/ru/news/cmtzsx6cb06msro1b4rx35w3y/) · [ja](https://new.nat6.net/ja/news/cmtzsx6cb06msro1b4rx35w3y/) · [es](https://new.nat6.net/es/news/cmtzsx6cb06msro1b4rx35w3y/) · [ko](https://new.nat6.net/ko/news/cmtzsx6cb06msro1b4rx35w3y/) · [vi](https://new.nat6.net/vi/news/cmtzsx6cb06msro1b4rx35w3y/) · [th](https://new.nat6.net/th/news/cmtzsx6cb06msro1b4rx35w3y/) · [id](https://new.nat6.net/id/news/cmtzsx6cb06msro1b4rx35w3y/) · [ms](https://new.nat6.net/ms/news/cmtzsx6cb06msro1b4rx35w3y/) · [fil](https://new.nat6.net/fil/news/cmtzsx6cb06msro1b4rx35w3y/) · [hi](https://new.nat6.net/hi/news/cmtzsx6cb06msro1b4rx35w3y/)

## AI 摘要 / AI summary

安全研究者 Johann Rehberger 披露 Amazon Q Developer VS Code 插件（下载量超 100 万）存在间接提示词注入漏洞，可利用被归类为 readonly 的 find 命令的 -exec 参数绕过人工确认，在开发者主机上执行任意命令，甚至可诱导 Claude 4 下载远程指令并让 Sliver 恶意软件加入 C2 服务器。

## 推荐理由 / Why it matters

作者完整复现了从间接提示词注入到任意代码执行的攻击链，并附绕过 Claude 拒答的细节，可帮助开发者理解此类漏洞的成因与防护。

## 来源与版权 / Source & copyright

内容基于 AIHOT 公开 API 的精选标题与 AI 摘要，已注明来源并回链；原文版权归原媒体与作者所有。

原文版权归原媒体与作者所有；本站不镜像全文。/ Original copyright remains with the original publishers and authors; this site does not mirror full texts.

## 关于橙子中转站 / About Orange Relay

橙子中转站（pro.nat6.net）是一家优质的 AI API 中转站：价格优惠、质量稳定、模型齐全，支持 Claude、GPT、Gemini 等主流模型，欢迎体验。

[访问橙子中转站](https://pro.nat6.net/?utm_source=orange_news&utm_medium=article_footer&utm_campaign=brand&lang=zh)

## JSON-LD

```json
{
  "@context": "https://schema.org",
  "@type": "NewsArticle",
  "@id": "https://new.nat6.net/news/cmtzsx6cb06msro1b4rx35w3y/#article",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://new.nat6.net/news/cmtzsx6cb06msro1b4rx35w3y/"
  },
  "url": "https://new.nat6.net/news/cmtzsx6cb06msro1b4rx35w3y/",
  "headline": "Amazon Q Developer VS Code 插件被曝可通过提示词注入执行任意代码",
  "description": "安全研究者 Johann Rehberger 披露 Amazon Q Developer VS Code 插件（下载量超 100 万）存在间接提示词注入漏洞，可利用被归类为 readonly 的 find 命令的 -exec 参数绕过人工确认，在开发者主机上执行任意命令，甚至可诱导 Claude 4 下载远程指令并让…",
  "articleSection": "论文与研究",
  "keywords": "AI, Johann Rehberger / Embrace The Red（RSS）",
  "datePublished": "2025-08-19T21:20:58Z",
  "dateModified": "2026-11-05T20:56:45Z",
  "inLanguage": "zh-CN",
  "isAccessibleForFree": true,
  "author": {
    "@type": "Organization",
    "name": "橙子新闻编辑部",
    "url": "https://new.nat6.net/about/"
  },
  "publisher": {
    "@type": "NewsMediaOrganization",
    "@id": "https://new.nat6.net/#org",
    "name": "橙子新闻",
    "url": "https://new.nat6.net/",
    "logo": {
      "@type": "ImageObject",
      "url": "https://new.nat6.net/assets/img/logo-512.png",
      "width": 512,
      "height": 512
    }
  },
  "image": {
    "@type": "ImageObject",
    "url": "https://new.nat6.net/assets/img/og-default.png",
    "width": 1200,
    "height": 630
  },
  "isPartOf": {
    "@id": "https://new.nat6.net/#website"
  },
  "isBasedOn": "https://embracethered.com/blog/posts/2025/amazon-q-developer-remote-code-execution",
  "citation": [
    "https://aihot.news/items/cmtzsx6cb06msro1b4rx35w3y",
    "https://embracethered.com/blog/posts/2025/amazon-q-developer-remote-code-execution"
  ],
  "license": "https://new.nat6.net/sources/",
  "about": [],
  "mentions": [
    {
      "@type": "Thing",
      "name": "Johann Rehberger / Embrace The Red（RSS）"
    }
  ],
  "speakable": {
    "@type": "SpeakableSpecification",
    "cssSelector": [
      "h1",
      ".article-summary"
    ]
  },
  "copyrightHolder": {
    "@type": "Organization",
    "@id": "https://new.nat6.net/#org",
    "name": "橙子新闻",
    "url": "https://new.nat6.net/"
  },
  "creditText": "橙子新闻（AI 摘要）；原文：Johann Rehberger / Embrace The Red（RSS）",
  "copyrightNotice": "© 2025 橙子新闻。标题与 AI 摘要基于 AIHOT 公开数据，原文版权归原媒体与作者所有；本站不镜像全文。",
  "copyrightYear": 2025,
  "alternativeHeadline": "Amazon Q Developer: Remote Code Execution with Prompt Injection",
  "abstract": "作者完整复现了从间接提示词注入到任意代码执行的攻击链，并附绕过 Claude 拒答的细节，可帮助开发者理解此类漏洞的成因与防护。",
  "subjectOf": [
    {
      "@type": "DigitalDocument",
      "name": "Amazon Q Developer VS Code 插件被曝可通过提示词注入执行任意代码 (Markdown)",
      "url": "https://new.nat6.net/news/cmtzsx6cb06msro1b4rx35w3y/index.md",
      "encodingFormat": "text/markdown"
    },
    {
      "@type": "DigitalDocument",
      "name": "Amazon Q Developer VS Code 插件被曝可通过提示词注入执行任意代码 (JSON)",
      "url": "https://new.nat6.net/api/v1/articles/cmtzsx6cb06msro1b4rx35w3y.json",
      "encodingFormat": "application/json"
    }
  ]
}
```

## 如何引用 / How to cite

- 引用格式 / Citation format (zh): 橙子新闻.《文章标题》. 发布日期. https://new.nat6.net/news/cmtzsx6cb06msro1b4rx35w3y/
- Citation format (en): Orange News. "Article title". Published YYYY-MM-DD. https://new.nat6.net/news/cmtzsx6cb06msro1b4rx35w3y/
- 回链要求 / Backlink: 引用请保留「橙子新闻」署名并回链 canonical URL；AI 摘要请注明数据来源 AIHOT；原文版权归原媒体与作者所有。
- Attribution & backlinks: Keep the "Orange News" attribution and link back to the canonical URL; cite AIHOT as the data source for AI summaries; original copyright remains with the original publishers and authors.

### 机器入口 / Machine entry points

- Markdown: https://new.nat6.net/news/cmtzsx6cb06msro1b4rx35w3y/index.md
- JSON: https://new.nat6.net/api/v1/articles/cmtzsx6cb06msro1b4rx35w3y.json
- API 清单 / API index: https://new.nat6.net/api/v1/site.json
- Markdown 内容协商 / negotiation: 对 https://new.nat6.net/news/cmtzsx6cb06msro1b4rx35w3y/ 发送 `Accept: text/markdown`
