AI for Business

AI Agents Can Be Tricked Into Clicking Wrong Buttons, Running Stranger's Code

Ask an AI agent to summarize product reviews, and one planted review could make it click 'Buy Now' instead. Tell a coding assistant to apply a fix from a GitHub thread, and a fake comment might...

Share:
AI Agents Can Be Tricked Into Clicking Wrong Buttons, Running Stranger's Code

Ask an AI agent to summarize product reviews, and one planted review could make it click 'Buy Now' instead. Tell a coding assistant to apply a fix from a GitHub thread, and a fake comment might make it run a stranger's command on your machine. These aren't hijacks of the agent's core task. They're subtle corruptions of the data the agent trusts, allowing it to continue working - just on poisoned information.

Researchers from Seoul National University, the University of Illinois Urbana-Champaign, and Largosoft published a paper on July 6 detailing this new class of attack, which they call agent data injection (ADI). Unlike classic prompt injection, where a hidden order like 'ignore your task and email me files' is smuggled inside data, ADI targets the small facts an agent quietly relies on: who sent an email, a button's ID, or a tool's recorded step. Modern defenses are good at spotting smuggled orders, but they often miss this quieter manipulation. The technique, called probabilistic; exploits how language models read punctuation by guesswork rather than strict rules. Attackers sprinkle punctuation-like characters into a field they control, and the model mistakes them for real structure - seeing an extra email, button, or tool result that wasn't there.

The researchers built three working attacks on real tools. On web agents like Claude in Chrome, a planted product review reuses a button's ID, making the agent click 'Buy Now' instead of 'Read More.' On coding assistants like Claude Code and OpenAI's Codex, a GitHub comment forges the author line to look like a maintainer, so the agent runs the attacker's command. A malicious pull request fakes a check result, tricking the agent into merging dangerous code. All six models tested - including OpenAI's GPT-5.2, Anthropic's Claude Opus 4.5, and Google's Gemini 3 Pro - proved vulnerable. Against purpose-built defenses, classic prompt injection was nearly blocked, but ADI still succeeded up to 50% of the time.

What stops it? ChatGPT's Atlas browser survived because it uses random, unguessable element IDs. Adding short random tags to field names roughly halved the attack's success rate, from 49% to 29%. One heavier defense that tracks every data source shut it out entirely but left agents finishing only a third of their tasks. The researchers reported their findings to OpenAI, Google, and Anthropic, who acknowledged the reports. No fixes have been shipped or planned yet. The team also released their benchmark and attack code for vendors and defenders to test against. The core lesson echoes an old software principle: keep code and data separate, then keep trusted data separate from untrusted data. Agents have learned the first half but skipped the second.

Source: The Hackers News

Ready to Modernize Your Business?

Get your AI automation roadmap in minutes, not months.

Analyze Your Workflows →