---
type: "post"
id: "did-the-user-ask-for-this-securing-ai-27f946"
slug: "did-the-user-ask-for-this-securing-ai-27f946"
title: "Did the user ask for this? Securing AI agents against intent hijacking with Semantic governance policies"
description: "Google says its Semantic governance policies reduced successful indirect prompt-injection attacks against a Gemini 2.5 Flash agent on AgentDojo from 48.7% to 0.9%."
retrieval_nugget: "Google says its Semantic governance policies reduced successful indirect prompt-injection attacks against a Gemini 2.5 Flash agent on AgentDojo from 48.7% to 0.9%. The results make action-level checks against user intent a promising defense for tool-using agents, while exposing a trade-off: some legitimate tasks are blocked, and the defense does not cover text-only manipulation."
published_at: "2026-11-23"
updated_at: "2026-11-23"
record_date: "2026-11-23"
date_kind: "published_at"
topics: ["google","gemini"]
entities: ["Google","Gemini 2.5 Flash","AgentDojo","ETH Zurich","Invariant Labs","NIST Center for AI Standards and Innovation"]
related_patterns: ["agent-security-moves-to-runtime-boundaries"]
novelty_label: "new_fact"
what_changed: "Google reports benchmark results for its Semantic governance policies: user-intent checking reduced AgentDojo attack success from 48.7% to 0.9%, with a 2.6-point utility cost on benign tasks."
prior_refs: ["https://newruntime.com/posts/check-what-your-ai-agents-do-before-they-c90893/"]
source_url: "https://developers.googleblog.com/did-the-user-ask-for-this-securing-ai-agents-against-intent-hijacking-with-semantic-governance-policies"
source_urls: ["https://developers.googleblog.com/did-the-user-ask-for-this-securing-ai-agents-against-intent-hijacking-with-semantic-governance-policies"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:did-the-user-ask-for-this-securing-ai-27f946"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/did-the-user-ask-for-this-securing-ai-27f946/","markdown":"https://newruntime.com/posts/did-the-user-ask-for-this-securing-ai-27f946.md","json":"https://newruntime.com/posts/did-the-user-ask-for-this-securing-ai-27f946.json"}
markdown_url: "https://newruntime.com/posts/did-the-user-ask-for-this-securing-ai-27f946.md"
---

# Did the user ask for this? Securing AI agents against intent hijacking with Semantic governance policies

## Retrieval answer

Google says its Semantic governance policies reduced successful indirect prompt-injection attacks against a Gemini 2.5 Flash agent on AgentDojo from 48.7% to 0.9%. The results make action-level checks against user intent a promising defense for tool-using agents, while exposing a trade-off: some legitimate tasks are blocked, and the defense does not cover text-only manipulation.

## Summary
Google says its Semantic governance policies reduced successful indirect prompt-injection attacks against a Gemini 2.5 Flash agent on AgentDojo from 48.7% to 0.9%. The results make action-level checks against user intent a promising defense for tool-using agents, while exposing a trade-off: some legitimate tasks are blocked, and the defense does not cover text-only manipulation.

## What happened
In a November 23, 2026 announcement, Google engineers Ritika Nigam, Deepti Sehrawat, and Pranav Bhagwat describe using Semantic governance policies to check agent actions before execution. The policies evaluate each proposed tool call against natural-language rules and the user’s request. The user-intent check is on by default. In Google’s example, an agent asked to pay a bill reads a file containing an attacker’s instruction to transfer money elsewhere. The file and other tool results are treated as untrusted data, not instructions. The agent may read the bill and check transactions, but the injected transfer is denied. A user-requested transfer of the same kind is allowed.

Google tested the policies with AgentDojo v1.2.2, a benchmark developed by ETH Zurich and Invariant Labs. It used a Gemini 2.5 Flash agent across 97 user tasks and 949 attacked runs, with the benchmark’s `important_instructions` attack. The policies ran in their default configuration, with user-intent matching enabled and no custom policies. Google says it did not tune the setup for individual tasks or domains. Because agents are nondeterministic, the team ran the full benchmark six times for each configuration and reported averages. AgentDojo directly calls the model, so Google ran its production policy engine through a test harness; the harness handles denials slightly differently in some edge cases.

The average attack success rate fell from 48.7% without the policies to 0.9% with them, a 98.2% reduction. With the policies, attack success stayed between 0.84% and 0.95% across the six runs. Clean-task utility—the share of benign tasks completed—fell by 2.6 percentage points on average, with individual-run differences ranging from a 1.0-point improvement to a 7.2-point decline. The policies increased the share of attacked runs in which the agent completed the user’s task and the attack failed from 22.7% to 25.1%. They also over-blocked one of 97 benign tasks, about 1%.

The strongest results applied to tool actions: none of the 929 attacks that required a tool call succeeded in any of the six runs. Banking, Slack, and workspace attacks fell to zero in every run. Some travel attacks still worked because they manipulated what the agent said—such as recommending a hotel—without requiring a tool call. Google says that when a denial occurs, the agent usually stops rather than continuing the task. The policies are in Preview in the Gemini platform; Google’s suggested rollout is to enable them behind Agent Gateway in dry-run mode, review verdicts in Cloud Logging, and then switch to enforcement.

## What the archive adds
New Runtime’s November 21, 2026 [earlier coverage](https://newruntime.com/posts/check-what-your-ai-agents-do-before-they-c90893/) described Google previewing policies that check tool calls against user intent and natural-language rules. This is a new fact on that story: Google now reports benchmark measurements, including the security gain, utility cost, and limits of the approach.

## Trend signal
This supports [agent security moving to runtime boundaries](https://newruntime.com/patterns/agent-security-moves-to-runtime-boundaries/): the policy engine intercepts proposed tool actions before they execute, rather than relying only on instructions in the agent’s prompt. The benchmark also makes the boundary concrete: it stopped tool-mediated attacks, but did not address text-only manipulation and remains exposed to attacks targeting the judge itself.

## Why now
Google positions the work as a response to indirect prompt injection in the untrusted content agents read while doing real tasks. The policies are in Preview, and the announcement offers a dry-run-to-enforcement rollout path for teams using Gemini platform and Agent Gateway.

## Why it matters
For teams giving agents access to email, payments, messaging, or other consequential tools, checking the proposed action against the user’s intent can provide a control point that survives changes in the wording of an injection. Google’s results are encouraging, but they do not establish that the judge is secure against adaptive attacks: its instructions, not a hard technical boundary, enforce the separation between trusted requests and untrusted tool content. The utility cost matters operationally, too. A denial can prevent harm but also end the agent’s turn, leaving the legitimate task unfinished. Teams should evaluate both safe task completion and attack prevention, and pair action checks with controls for response-only manipulation.

## Limits and uncertainty
The benchmark used fixed attacks that were not adapted to Semantic governance policies, so it does not show how the policies perform against targeted red-teaming. Google notes that NIST CAISI evaluations raised attack success against an agent from 11% to 81% through red-team-developed attacks. The policy judge still reads untrusted content, and Google says the trusted/untrusted distinction is enforced by instructions rather than a hard technical boundary. Results also come from a test harness, not a full production deployment, and the announcement does not establish performance across other models, tasks, or live environments. Text-only manipulation remains outside the action-check mechanism.

## Reader takeaway
Google’s AgentDojo results suggest that checking each tool call against user intent can sharply reduce indirect prompt-injection attacks, but the benchmark is not proof against adaptive attacks or response manipulation. If your agent can take consequential actions, test an action-level policy in dry-run mode, track both safe completion and denials, and add separate controls for what the agent says.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Google](https://newruntime.com/topics/google.md): Explore the google topic hub.
- topic hub: [Gemini](https://newruntime.com/topics/gemini.md): Explore the gemini topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
