The AI Gazette

Agent securityGoogle

Google's action check blocked nearly every planted instruction against its test agent

In a post dated 23 November, Google tested Semantic governance policies, a preview feature that judges each tool call an agent proposes against the user's request, on the AgentDojo benchmark. With only the built-in user intent check switched on, the attack success rate fell from 48.7% to 0.9%, at a cost of 2.6 percentage points of utility on benign tasks.

Diagram: a user's request goes to an agent, which proposes three actions. A shield labelled Semantic governance policies passes two of them with green checks and stops a third, marked Intent hijacking, that came from an instruction hidden in a receipt.
Image: Google Developers Blog (opens in a new tab)

An agent works with two kinds of context: what the user and its developer told it, and whatever it reads from tools, such as web pages, documents, messages and API responses. The second kind is an attack surface. In one AgentDojo task a user asks a banking agent to pay a bill, and the bill file hides an instruction to first send money to an attacker's account. Without a guardrail, Google's agent sent the money in every one of six runs. The post calls this user intent hijacking: getting the agent to act on an attacker's intent instead of the user's.

Semantic governance policies sit behind Google's Agent Gateway. When the agent's model proposes a tool call, a policy engine with an LLM judge checks it before it runs, against any policies written in natural language and against what the user asked for. The judge treats the user's request and the agent's system instructions as trusted, and every tool result, file and message as data, never as instructions. Because it judges actions rather than text, it does not have to recognize an attack's wording. A denied call is replaced with a denial message and never runs. In the bill example, reading the bill and checking recent transactions were allowed and the transfer was denied; the same transfer asked for directly by the user is allowed.

Google ran a gemini-2.5-flash agent on AgentDojo v1.2.2, 97 user tasks and 949 attacked runs, six times in each configuration, with only the default user intent check and no policies of its own. Across the six runs the attack success rate stayed between 0.84% and 0.95%. None of the 929 attacks that needed a tool call succeeded in any run; the rest asked the agent only to say something, such as recommend a particular hotel, which leaves no action to check. Unintended over-blocking affected 1 of the 97 benign tasks. Counting only attacked runs in which the task was done and the attack failed, the protected agent came out ahead, 25.1% against 22.7%.

The post states the limits. The judge still has to read untrusted content, and the separation between data and instructions is enforced by how the judge is instructed, not by a hard technical boundary, so an attack built against the judge could try to pass itself off as the user. AgentDojo's attacks are fixed and were not adapted to the defence; in NIST CAISI's agent hijacking evaluations, attacks developed through red-teaming raised the success rate against an agent from 11% to 81%. Semantic governance policies are in Preview in Gemini platform, with a dry run mode whose verdicts go to Cloud Logging.

From other editions

Say hi.