AI Security AI安全 9h ago Updated 2h ago 更新于 2小时前 41

Amazon Kiro Prompt Injection Can Exfiltrate Sensitive Data Through Kiro Powers 亚马逊Kiro提示词注入可通过Kiro Powers泄露敏感数据

A prompt injection vulnerability in Amazon Kiro IDE (versions up to 0.7.45 on Windows) allows attacker-controlled repository content to exfiltrate sensitive local data to external endpoints without explicit user consent The attack exploits Kiro Powers' steering files ("POWER.md") to coerce the AI agent into reading sensitive information and writing it into security-relevant IDE configuration, which is then transmitted via network activity Exploitation requires only two user actions: opening a ma Amazon Kiro IDE存在提示注入漏洞,攻击者可通过恶意仓库内容诱导AI代理外泄敏感本地数据 漏洞利用难度低,用户只需通过工作区文件打开恶意项目并发送任意消息即可触发 核心问题在于信任边界失效:仓库内容被解释为指令,影响安全敏感操作,最终通过IDE功能转为网络活动 Amazon已在Kiro IDE 0.8.140版本中修复该漏洞 该漏洞是AI开发工具安全问题的最新案例,与OpenAI Codex CLI、Cursor、Claude Code等工具的多项漏洞形成系列问题

62
Hot 热度
58
Quality 质量
55
Impact 影响力

Analysis 深度分析

TL;DR

  • A prompt injection vulnerability in Amazon Kiro IDE (versions up to 0.7.45 on Windows) allows attacker-controlled repository content to exfiltrate sensitive local data to external endpoints without explicit user consent
  • The attack exploits Kiro Powers' steering files ("POWER.md") to coerce the AI agent into reading sensitive information and writing it into security-relevant IDE configuration, which is then transmitted via network activity
  • Exploitation requires only two user actions: opening a malicious project via workspace file and sending any message to the agent, with exploitation difficulty assessed as low
  • Amazon implemented a fix in Kiro IDE version 0.8.140 following responsible disclosure
  • This vulnerability is part of a broader pattern of security flaws in AI-powered development tools, including similar issues in Cursor, GitHub Copilot CLI, OpenAI Codex CLI, and Google Gemini CLI

Why It Matters

This vulnerability highlights a critical trust boundary failure in AI-powered IDEs where repository-controlled content can influence security-sensitive operations, representing a growing class of risks as AI development environments increasingly merge interpretation and execution within the same workflow. For AI practitioners and security professionals, it underscores the urgent need for robust input sanitization, strict separation between context-providing files and executable instructions, and zero-trust assumptions when AI agents process repository content. The pattern of vulnerabilities across multiple AI coding tools suggests systemic architectural challenges that the industry must address as agentic AI becomes more deeply integrated into development pipelines.

Technical Details

  • The vulnerability affects Amazon Kiro IDE 0.7.45 on Windows and exploits the Kiro Powers feature, which bundles Model Context Protocol (MCP) server configurations, steering files ("POWER.md"), hooks, and contextual knowledge to guide agent behavior
  • Attack chain: attacker-controlled repository content is interpreted as instructions by the AI agent → the agent reads sensitive local information → the agent writes that information into security-relevant IDE configuration → a subsequent IDE capability converts the modified configuration into network activity transmitting data to an external endpoint
  • Exploitation requires opening a malicious project through a workspace file using File → Open Workspace From File (not opening the folder directly) and sending any message to the agent; the vulnerability is reproducible against both trusted and untrusted workspaces
  • The flaw builds upon a previous Mindguard-disclosed bug where steering-file directives could coerce the AI into incorporating local information into Markdown image requests sent to external servers
  • This follows a June 2026 disclosure of CVE-2026-10591 (CVSS 8.8), an insufficient access control flaw that allowed remote unauthenticated arbitrary command execution via crafted instructions writing to execution-sensitive paths like ".vscode/tasks.json"

Industry Insight

  • AI IDE vendors must implement strict trust boundaries that prevent repository-controlled content from influencing security-sensitive operations; context-providing files and executable instructions should be architecturally separated with explicit permission models
  • Security teams should audit AI development tool configurations, particularly MCP server setups and steering files, and enforce least-privilege principles to limit what agent-modified configurations can trigger, especially network activity
  • The recurring pattern of vulnerabilities across Cursor, Copilot, Codex, Gemini, and Kiro suggests the industry needs standardized security frameworks for agentic AI tools, including mandatory sandboxing, network egress controls, and user-transparent approval workflows for sensitive operations

TL;DR

  • Amazon Kiro IDE存在提示注入漏洞,攻击者可通过恶意仓库内容诱导AI代理外泄敏感本地数据
  • 漏洞利用难度低,用户只需通过工作区文件打开恶意项目并发送任意消息即可触发
  • 核心问题在于信任边界失效:仓库内容被解释为指令,影响安全敏感操作,最终通过IDE功能转为网络活动
  • Amazon已在Kiro IDE 0.8.140版本中修复该漏洞
  • 该漏洞是AI开发工具安全问题的最新案例,与OpenAI Codex CLI、Cursor、Claude Code等工具的多项漏洞形成系列问题

为什么值得看

本文揭示了AI驱动开发环境中一个关键的安全范式问题:当解释和执行在同一工作流中融合时,仓库文件可能成为攻击向量。对于AI从业者而言,这提醒我们在享受AI代理便利性的同时,必须重新审视信任边界和输入验证机制。

技术解析

  • 漏洞机制:攻击者控制的仓库内容被Kiro代理解释为指令,代理读取敏感本地信息后写入安全相关的IDE配置,随后IDE功能将修改后的配置转化为网络活动,实现数据外泄。
  • 利用条件:用户需通过"File → Open Workspace From File"打开恶意项目(而非直接打开文件夹),然后向代理发送任意消息即可触发漏洞,无需提交恶意提示或引用攻击者控制的内容。
  • Kiro Powers架构:该功能捆绑了MCP服务器配置、引导文件("POWER.md")、钩子和上下文知识,引导文件作为"入职手册"提供持久上下文并告知AI代理可用的MCP工具及使用时机。
  • 修复版本:Amazon在Kiro IDE 0.8.140版本中实施了修复,受影响版本为0.7.45(Windows),当前最新版本为1.0.337。
  • 历史漏洞关联:此漏洞建立在Mindguard之前披露的另一个bug基础上,该bug允许引导文件指令将本地信息纳入Markdown图像请求并传输到外部服务器。

行业启示

  • AI开发工具需要重新设计信任边界模型,仓库内容不应被直接解释为可执行指令,应实施严格的内容隔离和权限控制机制。
  • 随着AI代理在开发环境中的普及,安全研究应重点关注"间接提示注入"和"配置污染"类攻击向量,这些攻击可在用户无感知的情况下触发。
  • 行业需要建立统一的AI开发工具安全标准和认证框架,参考现有CVE披露模式,推动厂商及时修复和更新安全补丁。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Security 安全 Research 科学研究 Programming 编程 Agent Agent