Skip to main content
Mallory
← Back to News
ai-platform-securityendpoint-software-vulnerabilitywidely-deployed-product-advisorypayload-delivery-evasion

AWS Kiro Prompt Injection Flaws Enabled Config Rewrites and Arbitrary Code Execution

Emerging Technology Risk · 4 sources · Updated 4mo ago · First seen Jul 21, 2026

AWS Kiro Prompt Injection Flaws Enabled Config Rewrites and Arbitrary Code Execution

Researchers disclosed multiple prompt injection flaws in AWS's Kiro IDE that allowed untrusted content to rewrite the tool's own configuration and execute arbitrary code on a developer's machine. One attack showed that prompt injection hidden in source code comments could modify trusted settings such as .vscode/settings.json or add malicious Model Context Protocol servers through ~/.kiro/settings/mcp.json, effectively allowlisting dangerous Bash commands and triggering local program execution without meaningful user consent.

A later finding showed a poisoned web page could similarly induce Kiro to overwrite its MCP configuration, automatically reload it, and launch attacker-defined MCP servers with the developer's privileges. AWS patched the issues in subsequent Kiro releases, including fixes reported in v0.1.42 and confirmation that the web-based attack no longer worked in v0.11.130, while adding protected-path enforcement and a capability-based permissions model; no CVE was assigned to the reported flaws.

Why it matters

Impact assessment

AWS Kiro users are affected, especially developers using the IDE in default Autopilot or trusted-workspace workflows where the agent can fetch external content and access local credentials, source code, or infrastructure tooling. The impact is high because successful exploitation yields arbitrary code execution with the developer’s privileges, enabling credential theft, source code exfiltration, persistence, and lateral movement into reachable internal systems.

The exposure appears broad across Kiro deployments prior to the patched releases rather than narrowly targeted, because the attack can be triggered by routine actions such as asking Kiro to summarize a web page, read documentation, or inspect source files containing hidden instructions. No confirmed in-the-wild exploitation was reported in the references, but researchers demonstrated reliable proof-of-concept execution within one or two attempts and showed that user approval controls did not provide a meaningful barrier.

Supporting facts

  • Affected product: AWS Kiro IDE.
  • Affected user population: developers using AI-assisted coding workflows with web fetch, documentation summarization, or project file analysis.
  • High-value environments at risk: developer workstations with cloud credentials, source repositories, CI/CD access, production infrastructure access, or internal network reachability.
  • Business impact: theft of credentials or source code, workstation compromise, persistence, and potential pivoting into enterprise systems.
  • Scope: default configurations were affected; tested on macOS and Ubuntu builds.
  • Exploitation status: no evidence of in-the-wild exploitation of this specific flaw was reported.
  • Severity indicators: arbitrary code execution occurred without meaningful consent; related Kiro issue CVE-2026-10591 was scored CVSS 3.1 8.8 / CVSS 4.0 8.6, which supports treating this class of issue as high risk even though no CVE was assigned here.
New surface, new adversariesTrack how attackers are adapting to this technology.
Track this risk
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

4 events · Jul 15, 2025 – Jul 21, 2026
  1. Jul 21, 20264mo ago

    AWS patches MCP configuration rewrite issue in Kiro

    AWS patched the Kiro flaw that allowed poisoned web content to rewrite MCP configuration and trigger arbitrary code execution, and Intezer confirmed the attack no longer worked in Kiro v0.11.130. No CVE was assigned for this specific finding.

    AWS Kiro Flaw Let a Poisoned Web Page Rewrite Its Config and Run Code
  2. Jul 21, 20264mo ago

    Researchers identify web-page prompt injection path to Kiro code execution

    Intezer, working with Kodem Security, found that hidden prompt injection content on a web page could cause AWS Kiro IDE to rewrite ~/.kiro/settings/mcp.json and execute arbitrary code through attacker-defined MCP servers. The finding highlighted Kiro's automatic reload of the file and server launch with the developer's privileges.

    AWS Kiro Flaw Let a Poisoned Web Page Rewrite Its Config and Run Code
  3. Aug 5, 20251y ago

    AWS fixes Kiro indirect prompt injection issue in v0.1.42

    AWS reportedly fixed the Kiro issues by releasing version 0.1.42, addressing the ability to alter configuration files and enable malicious command execution paths. No CVE was issued for the vulnerability.

    AWS Kiro: Arbitrary Code Execution via Indirect Prompt Injection · Embrace The Red
  4. Jul 15, 20251y ago

    Researcher reports Kiro command-execution flaw to AWS

    A security researcher notified AWS that Kiro could be abused for arbitrary command execution via indirect prompt injection, including by modifying trusted configuration files such as .vscode/settings.json or .kiro/settings/mcp.json.

    AWS Kiro: Arbitrary Code Execution via Indirect Prompt Injection · Embrace The Red
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Organizations

1 linked
Amazon Web Services
Do you run this?Follow how adversaries are adapting to this technology, and where it touches your stack today.
Track This Risk
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.