GoogleEric Dong, Shubham SabooExplainer
Build zero-trust AI agents that judge intent, not just syntax
Summary
Part 2 of the Zero-trust Agents series addresses attacks that deterministic, build-time checks cannot recognize when syntax remains valid. It keeps the Customer Support and Returns Agent, which reads orders, calculates restocking fees in Agent Sandbox, and commits payouts through an issue_refund tool signed with a hardware-backed Cloud KMS key, then moves enforcement to Gemini Enterprise Agent Platform. Agent Gateway applies three runtime controls: Model Armor screens prompts and responses, Semantic Governance Policies evaluates proposed tool calls against intent, history, and business rules, and Agent Anomaly Detection analyzes behavior across a session. The examples cover prompt injection, a non-refundable digital-license refund, and a multi-turn refund drain; detected anomalies can trigger a new policy that blocks subsequent calls without redeploying the agent.
Context
This is Part 2 of a Zero-trust Agents series. It uses the same Customer Support and Returns Agent from Part 1 and focuses on runtime governance, intent gating, and adaptive anomaly remediation.
Approach / What changed
The design moves security enforcement from agent code and self-hosted infrastructure to managed runtime controls on Gemini Enterprise Agent Platform. Agent Gateway applies Model Armor at ingress and egress, Semantic Governance Policies before tool execution, and Agent Anomaly Detection across session telemetry. Administrators can add a natural-language policy in response to a detected pattern, causing the next relevant tool call to be blocked without an agent redeploy or restart.
Takeaways
Model Armor can drop matched requests at the perimeter with a 403 before the agent model runs, and it can redact sensitive data such as credit card numbers and Stripe secrets from outgoing responses.
Semantic Governance Policies evaluate proposed tools and parameters against the user prompt, conversation history, and business rules, allowing a natural-language rule to block refunds for digital software licenses over $30 without manager approval.
Agent Anomaly Detection can identify multi-turn behavior such as repeated refunds, while a remediation policy can deny later issue_refund calls for the same order and route the request to a human manager.
FAQ
How does Semantic Governance Policies catch a valid-looking software-license refund?
The policy engine evaluates the proposed tool call and its parameters against the prompt, conversation history, and written business rules. A natural-language constraint can identify digital software licenses over $30 as non-refundable without manager approval, even when the request is syntactically valid.
What happens when Model Armor detects a malicious prompt?
Agent Gateway drops the request at the edge with a 403 before the agent's model is invoked. The source says this means no tokens are consumed and the context window remains clean.
Can anomaly remediation stop an attack without redeploying the agent?
Yes. An administrator or automated workflow can create a new Semantic Governance Policy from an anomaly finding, and Agent Gateway evaluates it on the next tool call without an agent redeploy or restart.
Source and freshness
- Source
- developers.googleblog.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.