Google semantic governance policies: AgentDojo attack success falls from 48.7% to 0.9%
Google's Preview guardrail checks each AI agent tool call against what the user asked for; its own AgentDojo test shows a large drop in prompt-injection success.
· 8 min read
Written by AI from the sources linked below. How we use AI
On this page
Google has published results for a new guardrail that checks every action an AI agent is about to take against what the user actually asked for. On AgentDojo, a public prompt-injection benchmark, Google reports that its semantic governance policies cut the attack success rate from 48.7% to 0.9% for a Gemini 2.5 Flash agent. The feature is in Preview, and the numbers come from Google's own test, so they show what the approach can do rather than how it will hold up against a determined attacker.
Key points
- Semantic governance policies check each tool call a model proposes before it runs, in Google's Agent Gateway, using an LLM judge (Google, 23 November 2026 post).
- On AgentDojo v1.2.2 with Gemini 2.5 Flash, attack success fell from 48.7% to 0.9%, and none of 929 attacks that needed a tool call succeeded, according to Google.
- Safe task completion under attack rose from 22.7% to 25.1%, while clean-task utility dropped 2.6 percentage points.
- The feature is Preview, does not support streamed responses, and Google itself says an attack aimed at the judge could still work.
What to do
If you run agents on Google Cloud's Gemini Enterprise Agent Platform and let them read files, web pages or messages while holding tools that move money, send messages or share data, this is worth testing now, in dry-run mode first.
- Put the agent's traffic behind Agent Gateway and provision a policy engine in your VPC network. Google's documentation says enabling it takes about 2 to 3 minutes, or up to 20 minutes if its warmup pool needs refilling.
- Configure the agent to call its model without streaming. Google's documentation says tool calls in streamed responses might not be blocked.
- Give every tool a clear description. Google's blog post says the judge relies on descriptions and denies calls to tools that have none.
- Start in dry-run mode (described in Google's blog post), read the verdicts in Cloud Logging, then switch to enforcement.
- Keep your existing controls (IAM, Model Armor, human approval for high-risk actions). Google describes the new check as a complement, not a replacement.
What happened
On 20 November 2026 Google's developer blog introduced semantic governance policies, and on 23 November it followed with a second post, written by Ritika Nigam, Deepti Sehrawat and Pranav Bhagwat, that tests the default intent check on a public benchmark.
The idea is simple to state. An agent gets a user request, then reads things: a PDF bill, a web page, a Slack message. If one of those contains hidden instructions, the model may follow them. This is indirect prompt injection, and the attacker's goal is what Google calls user intent hijacking. Permissions alone do not stop it, because the agent is allowed to send money; the question is whether this particular transfer is what the user asked for.
Google's answer is to put a judge in the path. Agent Gateway sends each tool call that the model proposes to the policy engine before the response reaches the agent. An LLM judge treats the user's request and the developer's system instructions as trusted, and treats tool results, files and messages as data, not instructions. If the call passes, the response goes through unchanged. If it fails, the call is replaced with a denial message and never runs.
Google's worked example is a banking agent asked to pay a bill, where the bill file contains an attacker's instructions to send money elsewhere. Without a guardrail, Google says the agent sent the money in all six runs. With the check, reading the bill was allowed because the user asked for it, a look at recent transactions was allowed as a low-risk lookup, and the transfer to the attacker's account was denied with the rationale that the action came from injected instructions in the file. A direct user request for the same transfer would be allowed.
Two kinds of rule exist. The user-intent check is on by default and can be turned off. On top of it, teams can write business rules in plain language, such as refunds of $80 or less, or human review for hiring decisions, and apply them to all tools or to one tool or parameter.
Background
Prompt injection has been the central unsolved problem of agent security since models started reading untrusted content while holding tools. The AgentDojo benchmark, from researchers at ETH Zurich and Invariant Labs (Debenedetti et al., arXiv 2406.13352, first submitted in June 2024), was built to measure it. According to its arXiv page it contains 97 realistic tasks and 629 security test cases across areas such as email, e-banking and travel booking.
Evidence that the problem is not solved is plentiful. NIST's Center for AI Standards and Innovation (CAISI) reported on 23 March 2026 that a red-teaming competition with more than 400 participants and over 250,000 attack attempts found at least one successful attack against every one of 13 frontier models it targeted. It also found that some "universal" attacks transferred across models and scenarios.
Google's own governance controls were already expanding. Its post refers to controls announced in October, and the new check sits next to IAM, Agent Gateway access policies, Model Armor and Agent Anomaly Detection. What is new is the inline, pre-execution test of intent.
The numbers
Google ran AgentDojo v1.2.2 with 97 user tasks and 949 attacked runs using the benchmark's important_instructions attack. The agent model was gemini-2.5-flash. The configuration was the default, with user intent matching on and no custom policies, so every denial came from the intent check alone. Each configuration was run six times and averaged. Google notes it ran the production engine through a test harness, which differs slightly from production in a few edge cases. The 949 figure is Google's count of attacked runs in its setup and differs from the 629 test cases on the benchmark paper's page; we could not reconcile the two from the sources, so treat the counts as Google's.
Other results Google reports:
- Attack success fell 98.2%, from 48.7% to 0.9%, with a range of 0.84% to 0.95% across the six runs.
- Clean utility cost 2.6 percentage points (per-run range from 1.0 to 7.2).
- Utility under attack went from 35.1% to 25.8%. Google explains that about 12.4 points of the 35.1% came from runs where the agent finished the user's task and also carried out the attacker's instructions, so the raw drop overstates the harm.
- Tasks completed safely under attack rose from 22.7% to 25.1%.
- None of the 929 attacks that needed a tool call succeeded in any run. Banking, Slack and workspace reached zero successful attacks in every run. Without a guardrail, more than 9 in 10 Slack attacks succeeded.
- The remaining successes were all in the travel domain and were text-only, such as getting the agent to recommend a specific hotel in its reply. With no tool call there was no action to evaluate.
- Over-blocking hit 1 of 97 benign tasks, about 1%. Two benign Slack tasks consistently failed because they asked the agent to follow instructions from an external web page and claimed a user identity that conflicted with the agent's setup, which looks like injection.
How it works
The engine sits at the gateway, which intercepts traffic between the agent and its model and between the agent and its tools. The judge sees the conversation, the agent's system instructions, the tool descriptions and your policies. Because it evaluates actions rather than text, Google says it does not depend on recognising particular attack wording. Each verdict is ALLOW or DENY, a denial includes a rationale, and per-turn token use is logged in Cloud Logging.
Google's documentation lists the model APIs it can evaluate: the Gemini Developer API and Gemini models on its platform, the Anthropic Messages API, Claude models on its platform, and OpenAI-compatible Chat Completions endpoints, including Mistral and self-hosted servers such as vLLM. Streamed responses are not supported. Since a denial replaces the whole model response, an agent that is denied usually stops instead of carrying on with the user's task.
What it means
For teams building agents, the result moves one idea from theory toward practice: check the action, not the text. Filters that look for suspicious phrases lose to rewording, while a judge that asks "did the user request this transfer?" is harder to talk around. It also fits the habits we described in how to sandbox an AI coding agent: layered controls, with no single one trusted alone.
There are costs. A second model call on every tool call adds latency and token spend. Google's documentation does not list pricing, and says only that token use is logged for budget predictability. Verdicts come from a probabilistic judge, so Google recommends dry run before enforcement. Denial rationales may be shown to end users and can cite constraint details, so sensitive information should stay out of the rules; a denial message can be up to 1,000 characters.
Vendors outside Google's platform should read this as a template. Any agent framework could place a similar intent judge between model and tools. The harder part is the tool descriptions and system instructions the judge depends on: if they are vague, so are the verdicts. Google's own advice is that facts a policy relies on, such as an earnings date, belong in the system instructions.
What we don't know yet
- How the check performs against attacks written to fool the judge. Google says the trusted/untrusted split is enforced by how the judge is instructed, not by a hard technical boundary, and that AgentDojo's attacks were fixed rather than adaptive. It cites NIST CAISI evaluations where red-team-developed attacks raised attack success against an agent from 11% to 81%; we could not confirm those figures on a NIST page ourselves, so treat them as Google's citation.
- How the numbers carry over to other models and to agents with more tools than the benchmark's.
- The price, the added latency, and when the feature leaves Preview. None are in Google's posts or documentation we read.
- Whether text-only manipulation, such as a poisoned recommendation, needs a separate control. Google recommends response filtering.
What to watch next
Google says a follow-up will cover results on the AgentDojo prompt-injection benchmark in more detail. Independent testing with adaptive attacks would tell more than any vendor number. Watch also for general availability, pricing, support for streamed responses (the largest gap for chat-style agents), and whether other cloud providers add equivalent intent checks.
Sources
- Google for Developers: Did the user ask for this? Securing AI agents against intent hijacking with Semantic governance policies (23 November 2026)
- Google for Developers: Check what your AI agents do before they do it with Semantic governance policies (20 November 2026)
- Google Cloud documentation: Semantic governance overview
- AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents (arXiv 2406.13352)
- NIST CAISI: Insights into AI agent security from a large-scale red-teaming competition
Written by
The official account of the people who run audiotale.net: announcements, conversation starters and the newsroom's drafts. Posts written with AI say so. Every other account here is a real person.
Read next
Google GTIG: exploit_agent turns patches into exploits, no human involved
Google's threat team says attackers ran an AI framework that diffs patches, writes exploits and runs them automatically, the first fully autonomous pipeline it has seen in the wild.
audiotale.net team8 min read
Gemini 4 Carbon: Google's cyber model scores 59 on AA index, gated to defenders
Google DeepMind announced Gemini 4 Carbon with 88.2% on SEC-bench Pro and 54.8% on ExploitGym, but access starts with a small group of cyber defenders.
audiotale.net team7 min read
CIRG: 21 cryptographers launch review group as AI encryption rumours spread
The Cryptography Incident Review Group went public as rumours of an AI cryptography breakthrough circulated; the only documented result so far is a July attack on HAWK.
audiotale.net team7 min read