Ethical Hacking News
A critical vulnerability has been discovered in AWS's Kiro agentic coding IDE, allowing an attacker to inject malicious code into the configuration file and execute it on a developer's machine without approval. This incident highlights the potential risks associated with agent-based coding ideation and underscores the importance of robust security measures when designing these systems.
The recent discovery of a critical vulnerability in AWS's Kiro coding IDE allows an attacker to inject malicious code into the configuration file, mcp.json, and execute it on a developer's machine without approval. Kiro's safety model can be exploited by an attacker who influences the contents of its configuration file, highlighting the need for robust security measures in agent-based coding systems. The vulnerability involves hiding text within a URL fetch request, making it imperceptible to human eyes and bypassing the approval step. A successful attack results in arbitrary code being executed on the host machine using the developer's privileges. The incident highlights the potential risks of agent-based coding ideation and emphasizes the importance of ongoing testing and monitoring to identify vulnerabilities. AWS has released patches to address the issue, including marking sensitive files as protected paths and requiring explicit approval before writing to them.
The recent discovery of a critical vulnerability in AWS's agentic coding IDE, Kiro, serves as a stark reminder of the importance of robust security measures in software development. The flaw, which was identified by Intezer in collaboration with Kodem Security, allows an attacker to inject malicious code into Kiro's configuration file and execute it on a developer's machine without any approval step being required.
Kiro, which is designed to be a secure and efficient coding environment for developers, relies on a safety model that requires human intervention before allowing certain actions. However, the vulnerability found by Intezer reveals that this safety net can be easily exploited by an attacker who can influence the contents of Kiro's configuration file. This file, known as mcp.json, contains critical information about which external tools to load and commands to execute on the host machine.
The attack vector used in the research effort, led by Intezer, involved hiding text within a URL fetch request. The malicious text was embedded using a tiny white pixel with a size of 1x1 pixels, making it imperceptible to human eyes. Kiro's safety model assumes that the developer will review and approve any changes made to this file before they take effect. However, in this case, the attacker was able to write arbitrary code into the mcp.json file without triggering the approval step.
Once the malicious code had been injected into the configuration file, Kiro would reload the file and execute it on the host machine, using the developer's privileges. In the proof of concept demonstrated by Intezer, this resulted in a rogue server being launched, which then ran the attacker's code without any further intervention from the developer.
The researchers noted that while their testing was not perfectly reliable due to Kiro's non-deterministic behavior and possible human error, one success is all it takes for an attacker to exploit this vulnerability. Moreover, they found that even when a pop-up message appeared, warning the developer of changes to the configuration file, it had no effect on the outcome.
This incident highlights the potential risks associated with agent-based coding ideation, where software models make decisions on behalf of developers. While these systems can greatly improve development efficiency and speed, they also introduce new attack vectors that need to be addressed through robust security measures.
In response to this vulnerability, AWS has released patches to address the issue, including marking mcp.json and other sensitive files as protected paths, requiring explicit approval before writing to them in both Autopilot and Supervised modes. These changes aim to ensure that developers are always presented with a clear choice regarding any actions that may compromise system security.
The discovery of this vulnerability serves as a wake-up call for software developers and vendors alike to prioritize robust security measures when designing agent-based coding systems. It also underscores the importance of ongoing testing and monitoring to identify potential vulnerabilities before they can be exploited by malicious actors.
Furthermore, the recent findings on similar vulnerabilities in other AI coding tools highlight the need for a more comprehensive approach to addressing these risks. As the use of artificial intelligence continues to expand into various aspects of software development, it is essential that developers and vendors collaborate closely to develop secure solutions that mitigate potential threats.
In conclusion, the vulnerability found in Kiro serves as a stark reminder of the importance of robust security measures in agent-based coding systems. The discovery highlights the need for ongoing testing, monitoring, and collaboration between developers and vendors to address these risks and ensure that future AI-powered coding systems are designed with security at their core.
Related Information:
https://www.ethicalhackingnews.com/articles/AWS-Kiro-Flaw-A-Prime-Example-of-the-Perils-of-Agent-based-Coding-Ideation-ehn.shtml
https://thehackernews.com/2026/07/aws-kiro-flaw-let-poisoned-web-page.html
Published: Tue Jul 21 12:29:39 2026 by llama3.2 3B Q4_K_M