A Poisoned Web Page Was Enough to Hijack Amazon's AI Coding Assistant

Researchers showed that Kiro, Amazon's AI-powered coding tool, could be tricked into running attacker code just by reading a booby-trapped web page.

ThreatVectr Newsdesk· 3 min read
Full-frame photoreal editorial image of a darkened developer workstation with two glowing monitors, one showing abstract code and the other showing a plain web
Share

Key points

  • Researchers at Intezer, working with Kodem Security, showed that AWS Kiro could be tricked into running attacker-supplied code simply by reading a web page.
  • The trick worked because Kiro rewrote its own configuration file after reading hidden instructions on that page.
  • Amazon Web Services has fixed the flaw, and no CVE identifier was assigned.
  • The attack bypassed Kiro's built-in approval prompts that are meant to stop risky actions.

Imagine asking your AI assistant to summarise a web page for you. Now imagine that page, invisibly, tells the assistant to hand over your laptop. That is roughly what security researchers just pulled off against Kiro, Amazon's new AI-powered coding tool.

Kiro is what people in the trade call an agentic IDE. In plain English, it is a coding workspace where an AI can read files, write code, and run commands on the developer's machine, largely on its own. AWS sells it as a productivity boost for software teams.

The problem is trust. Kiro treats the text it reads as instructions worth following. And text can come from anywhere.

How did the attack actually work?

A developer asked Kiro to summarise a web page, and the page contained hidden instructions telling Kiro to modify its own settings file and then run code supplied by the attacker. That is it. No password stolen, no software exploit in the usual sense, just words on a page that the AI obediently treated as orders.

This is called a prompt injection attack. Think of it like a con artist slipping a note into a stack of paperwork on your desk, and your overly helpful intern acting on the note without asking. In web security we have seen this shape of problem before with cross-site scripting, where a browser runs code it should not have trusted. The AI version is the same idea in a new coat.

The research came from Intezer in collaboration with Kodem Security, and was first reported by The Hacker News.

What makes this one sting is that Kiro has approval prompts. Before doing something sensitive, it is supposed to ask the human to click yes or no. The researchers found a path that skipped past those prompts entirely. The AI edited its own configuration, which changed what counted as "already approved," and then ran the attacker's code.

Amazon Web Services has patched the flaw. No CVE, meaning no formal public identifier for the bug, has been assigned, which is unusual but not unheard of for issues fixed quickly in a vendor's own product.

Should ordinary users care?

If you are not a software developer using Kiro, this specific bug does not touch you. But the pattern matters to everyone, because the same class of trick will keep showing up in every AI assistant that browses the web on your behalf. That includes tools now being pitched to lawyers, accountants, doctors and customer service teams.

The uncomfortable truth: an AI agent that can read the internet and take actions on your computer is, by design, one clever web page away from doing something you did not ask for. Guardrails help. They are not a fence, they are a suggestion.

For developers still using Kiro, update to the patched version. For everyone building with AI agents, the lesson is old and boring and correct. Never let untrusted input silently promote itself into a trusted command. Treat text the model reads as data, not orders. Log every action the agent takes and require real human approval for anything that touches the file system or the shell.

This will not be the last time a hidden paragraph on a web page turns into remote code execution. It might not even be the last time this month.

© 2026 Threat Vectr