# Google tests intent checks for AI agents in preview

Published 2026-11-23 · AI.info Team · AI.info

> Google says its semantic governance policies reduced attack success in an agent-security benchmark from 48.7% to 0.9%. The checks are available in preview, but the company says the benchmark did not test attacks adapted to target the policy judge.

Google says its semantic governance policies reduced the success rate of attacks against an AI agent from 48.7% to 0.9% in a benchmark, while lowering completion of benign tasks by 2.6 percentage points. The company described the results in a [Google Developers Blog](https://developers.googleblog.com/did-the-user-ask-for-this-securing-ai-agents-against-intent-hijacking-with-semantic-governance-policies/) post on November 23, alongside details of a preview that checks agents' proposed actions against users' requests.

The policies are available in preview on the Gemini platform. They are designed to address indirect prompt injection, in which instructions placed in material an agent reads try to redirect it toward an attacker's goal.

## Checking actions before they run

The policy engine examines proposed tool calls against both the user's request and any natural-language policies a developer has configured. The user-intent check is enabled by default, even if no additional policies are supplied.

When an agent's model proposes a tool call, Agent Gateway sends it to the policy engine before the response reaches the agent. An allowed call passes through; a denied call is replaced with a denial message and does not run.

A language-model judge evaluates the proposed action using the context available to the agent. The user's request and the agent's system instructions are treated as trusted, while material such as tool results, files and messages is treated as data rather than instructions.

In one benchmark example, a user asks a banking agent to pay a bill containing a hidden instruction to send money to an attacker's account. Google said the unguarded agent sent the money in all six runs of that example; with the policy check, the attempted transfer was denied, while reading the bill and checking recent transactions were allowed.

## Benchmark results

Google used a Gemini 2.5 Flash agent on AgentDojo, a public security benchmark that runs agents against simulated banking, messaging, travel and workspace applications. The test covered AgentDojo v1.2.2's 97 user tasks and 949 attacked runs, using its important_instructions attack.

The company said it ran the full benchmark six times with the policy engine and six times without it, reporting averages. The guarded configuration used the default intent check without additional policies or task-specific tuning.

Under attack, the agent completed the user's task in 25.8% of runs with the policies, compared with 35.1% without them, according to Google. Counting only cases where the task was completed and the attack failed, the figures were 25.1% with the policies and 22.7% without them.

Google said the agent usually stopped after a harmful action was denied rather than continuing the user's task. In production, a denial replaces the model's whole response and ends that turn.

## Limits of the test

The company reported that none of the 929 attacks requiring a tool call succeeded in any of the six guarded runs. The remaining successful attacks were in the travel scenario and sought to influence the agent's text response, recommending a hotel, without requiring a tool call.

The judge must read untrusted content to evaluate an action, and its distinction between data and instructions relies on how it is instructed rather than on a hard technical boundary. Google cautioned that the benchmark's attacks were fixed and had not been adapted to target the policy judge itself.

The benchmark called the model directly, so the production policy engine was run through a test harness rather than Agent Gateway. Google said the harness handles denials differently in a few edge cases, but that those differences did not materially change the results.

## Sources

1. Original source · Blog post [Google Developers Blog](https://developers.googleblog.com/did-the-user-ask-for-this-securing-ai-agents-against-intent-hijacking-with-semantic-governance-policies/) “Did the user ask for this? Securing AI agents against intent hijacking with Semantic governance policies- Google Developers Blog” developers.googleblog.com

## Companies in this story

- [Google](https://ai.info/companies/google)

## Related stories

- [Google brings Duplex business calls to Gemini Tasks](https://ai.info/news/google-duplex-business-calls-gemini-tasks)
- [Wiz links agentic attack campaign to more than a dozen organizations](https://ai.info/news/wiz-agentic-attacks-artex-harvester)
- [OpenRouter removes three providers after data-handling findings](https://ai.info/news/openrouter-removes-providers-data-processing-incidents)
- [Google adds Wallet connections to Search’s AI Mode](https://ai.info/news/google-search-ai-mode-wallet-drive-gemini-personal-data)
- [Google workers urge AI-free Search option for schools](https://ai.info/news/google-workers-petition-ai-free-search-schools)

## Explore

[More articles](https://ai.info/news)

---

Canonical: https://ai.info/news/google-semantic-governance-agent-intent-hijacking
