A newly disclosed AWS Kiro vulnerability shows how a hidden line of text on a webpage can be turned into remote code execution on a developer’s machine. The issue affects AWS Kiro, an AI-powered IDE built around a human-in-the-loop security model meant to prevent dangerous actions without user approval.
Researchers found that this trust boundary can be bypassed through prompt injection hidden inside external content, allowing the AI agent to rewrite its own configuration and execute attacker-controlled code.
Key Details
Kiro is designed to require user approval before actions such as running shell commands or modifying sensitive files. In theory, that should keep the human in control of high-risk operations.
In practice, the flaw shows that externally supplied content can silently influence the model. If a developer asks Kiro to summarize a page or fetch documentation, hidden instructions embedded in that page can be processed alongside the visible text.
The key target is the Model Context Protocol configuration file located at ~/.kiro/settings/mcp.json. Researchers found that:
- Kiro automatically reloads the file when it changes.
- The AI agent can modify it using internal tools.
- Those changes do not always require user approval.
- A malicious rewrite can register and launch attacker-controlled code.
A proof-of-concept showed the attack could deploy a lightweight Node.js payload to exfiltrate basic host details such as hostname, username, and platform information.
Technical Analysis
The attack works because large language models do not cleanly separate data from instructions the way traditional software does. If the model ingests poisoned content, it may treat hidden text as operational guidance rather than untrusted data.
That creates a dangerous prompt injection path:
- The user asks Kiro to fetch or summarize external content.
- The content contains invisible or concealed instructions.
- Kiro follows those instructions and modifies
mcp.json. - Kiro reloads the altered configuration.
- Attacker-controlled code runs on the host.
The real weakness is not only prompt injection itself, but the combination of prompt injection with excessive permissions around a critical configuration file. If an AI agent can rewrite its own execution environment, the human-in-the-loop model loses its value.
Why It Matters
This vulnerability is especially concerning on developer systems that already have access to credentials, source code, cloud environments, or production tooling. A silent compromise of the IDE can become a direct path to broader enterprise access.
The risk is also operationally deceptive. The user believes they approved a harmless web request, not a code execution chain. No obvious warning appears when the file is modified, and the security boundary that should have stopped the action fails quietly.
AWS says the issue was fixed in later Kiro releases, with version 0.11.130 confirming remediation. No CVE has been assigned.
Expert Recommendations
Organizations using AI-powered IDEs should assume that untrusted content can act like an attack vector, not just a document or web page. Security controls need to live at the system and policy level, not only inside the model’s reasoning.
Recommended actions:
- Update Kiro to version 0.11.130 or later.
- Avoid opening untrusted web pages or documents in agentic IDE workflows.
- Restrict write access to critical configuration files such as
~/.kiro/settings/mcp.json. - Review which internal tools can modify execution-sensitive files.
- Monitor for unexpected MCP server registrations or configuration rewrites.
- Limit IDE access to sensitive cloud credentials and production systems.
- Treat prompt injection as a practical threat, not a theoretical one.
Security teams should also test whether other AI development tools have similar trust-boundary weaknesses.
Industry Context
This case fits a broader pattern in AI security: attackers are increasingly targeting the boundary between model reasoning and system action. As AI agents become more capable, the question is no longer whether they can understand instructions, but whether they can be trusted to execute them safely.
The AWS Kiro incident shows why human approval alone is not enough if the model can alter the environment behind the user’s back. It also reinforces the need for protected paths, stronger file-write controls, and explicit authorization for execution-sensitive changes.
As AI-assisted development tools become more common, prompt injection will remain one of the most important risks to watch.
Conclusion
AWS Kiro’s hidden-text flaw is a clear reminder that AI security cannot depend only on model behavior. If an agent can rewrite its own configuration from poisoned external content, even a harmless web request can become a silent execution path.
FAQ SECTION
What is the AWS Kiro vulnerability?
It is a prompt injection issue where hidden web content can trick Kiro into rewriting configuration files and executing attacker-controlled code.
What file was targeted?
Researchers focused on ~/.kiro/settings/mcp.json, which controls external tools and commands.
Does the attack need user approval?
The user approves the original request, but the malicious file rewrite and execution can happen without meaningful awareness.
Has AWS fixed the issue?
Yes. AWS has addressed the problem in later Kiro versions, including 0.11.130.
Why is this dangerous for developers?
Because Kiro may have access to source code, credentials, and production infrastructure, making a compromised IDE a high-value target.