Amazon Kiro IDE Data Exfiltration via Prompt Injection
Score: 8/10

Amazon Kiro IDE Data Exfiltration via Prompt Injection

An attacker can exfiltrate sensitive local data from Amazon Kiro IDE by using malicious repository content to influence the AI agent into modifying configuration settings and triggering outbound network requests.

Executive Summary

Security researchers at Mindgard have identified a critical data exfiltration vulnerability in the Amazon Kiro AI-assisted IDE (version 0.7.45). The flaw allows attacker-controlled files within a project repository to provide instructions to the integrated AI agent. When a user opens a malicious workspace and interacts with the agent, the agent can be coerced into reading sensitive local files (such as .env files) and writing that data into the IDE's 'kiroAgent.powersRecommendationUrl' configuration.

Technically, the attack chain leverages 'Kiro Powers' and Model Context Protocol (MCP) server configurations. The agent, following injected instructions, substitutes sensitive data into a URL placeholder and invokes a configuration action that forces the IDE to make a network request to an attacker-controlled endpoint. This vulnerability bypasses 'Trusted Workspace' restrictions, meaning even projects marked as untrusted by the user remain vulnerable if the agent is engaged.

This incident highlights a systemic shift in threat landscapes where AI agents serve as a bridge between untrusted data interpretation and privileged system execution. While Amazon has patched the issue in version 0.8.140, the complexity of the attack chain underscores the need for SOC teams to monitor AI-driven development tools for unusual configuration changes and outbound network activity originating from IDE processes.

Key Details

Threat Name

Amazon Kiro IDE Prompt Injection

Affects

Amazon Kiro, Anthropic Claude Code, Cursor, Codex CLI, Google Gemini CLI, Claude Code, NVIDIA NemoClaw, Ollama model server, Microsoft Visual Studio Code

Adversary

—

MITRE Techniques

Malware/Tools

kiroPowers, Envade, PromptFiction

Report Score

8out of 10
Quality Score
Good
IOC Quality6
TTP Details9
Detection Guidance6
Enterprise Relevance8
Clarity & Structure9
Technical Depth8

Sources