Google Launches Agent Anomaly Detection to Secure Gemini Enterprise Agents
Google introduces Agent Anomaly Detection, a new security layer for its Gemini Enterprise agents, designed to monitor behavior, detect tool misuse, and prevent rogue actions.

Google has unveiled Agent Anomaly Detection, a novel reasoning-based oversight and audit layer integrated into its Gemini Enterprise Agent Platform. This new system, designed to enhance the security of autonomous agents built with the Agent Development Kit (ADK) for Python (version 1.2 or later, with 2.1.0 recommended), operates by evaluating emitted traces to identify deviations from intended operational boundaries. The system aims to proactively flag behavioral anomalies, suspicious intent, and policy violations before they can lead to significant security incidents.
Agent Anomaly Detection specifically targets several risks outlined in the OWASP agentic Top 10, including tool misuse, identity and privilege abuse, agentic cascading failures, and the emergence of rogue agents. Tool misuse encompasses scenarios like unsafe tool chaining, parameter manipulation, and indirect prompt injection. Identity and privilege abuse covers unauthorized actions stemming from dynamic trust delegation, persona forgery, memory escalation, and confused-deputy vulnerabilities. Agentic cascading failures can manifest as infinite execution loops, oscillating retries, fault propagation, and feedback-loop amplification, while rogue agents might abandon their declared roles or bypass established guardrails.
Beyond these agent-specific risks, the system also addresses operational concerns such as resource exhaustion and escalating token usage. Each anomaly finding is accompanied by a severity level, a clear explanation of the trigger, and recommended remediation actions. These findings are then published to Google Cloud's Security Command Center, allowing for centralized triage alongside other security alerts. This integration ensures that potential issues with AI agents are handled within the existing security operations framework.
To enable Agent Anomaly Detection, several prerequisites must be met, including having logging and observability buckets within the same US multi-region, enabling OpenTelemetry tracing and logging via the ADK, and ensuring raw telemetry captures prompt inputs and response outputs. Regional scanner service accounts require sufficient read access to these buckets, and Log Analytics and Observability Analytics must be enabled. Agents must also have an active telemetry data flow to be discovered and enrolled for monitoring.
The detection process employs a layered approach to balance speed, cost, and coverage. An initial lightweight pass scans all traffic for statistical anomalies, flagging unusual sessions. Subsequently, a more intensive LLM-based reasoning layer performs a deep examination of these flagged sessions. For instance, an agent repeatedly calling an inventory tool to scrape data might be identified as a statistical outlier by the first layer, with the second layer analyzing the pattern as systematic scraping.
For cases requiring even closer scrutiny, a third, invocation-level layer analyzes individual tool executions, execution states, and parameter histories within the conversation trace. This multi-layered analysis allows for precise identification of malicious or unintended agent behavior. For example, a resource exhaustion finding with critical severity might be generated for a systematic scraping pattern, with recommendations including rate-limiting or blocking the specific tool.
Crucially, the anomaly detection runs asynchronously, meaning it does not introduce latency into the live execution path of the agent. Applications can retrieve these anomaly findings via an API and integrate them into their workflows using ADK callbacks or plugins. This allows for real-time decision-making, such as blocking subsequent tool calls or halting an agent's turn if configured severity and probability thresholds are exceeded, thereby providing a robust mechanism for controlling AI agent behavior in production environments.
Google is also actively developing the capability for users to define custom anomalies specific to their business context. This will enable organizations to write flexible anomaly detectors using natural language and deterministic rules, ensuring agents adhere to enterprise-specific business guidelines. Furthermore, users will be able to validate the accuracy of this custom logic against past traffic, enhancing the system's adaptability and effectiveness.