{"slug": "agent-anomaly-detection-safeguarding-agents-across-other-clouds", "title": "Agent Anomaly Detection: Safeguarding agents across other clouds", "summary": "Google's Agent Anomaly Detection is now in Private Preview with support for agents running outside Google Cloud, including on AWS Lambda and Microsoft Foundry, the company said in a developer blog post. The service analyzes an agent's traces and logs rather than its runtime, so telemetry sent to a Google Cloud project lets it flag behavioral drift wherever the agent runs; agents built with the Agent Development Kit (ADK) for Python version 2.12.0 or later can emit the required telemetry via Google Cloud exporters and environment variables. In a test, Google deployed an inventory agent on AWS Lambda and a customer-service agent on Microsoft Foundry, and the system distinguished a shopper session from a scraper that requested 100 catalog items at a time to copy the full catalog.", "body_md": "*Agent Anomaly Detection is in Private Preview, including monitoring for agents that run outside Google Cloud. To request access, see the* *Agent Anomaly Detection overview**.*\n\nOur [launch post](https://developers.googleblog.com/agent-anomaly-detection-now-in-private-preview-on-the-gemini-enterprise-agent-platform/) introduced Agent Anomaly Detection, which helps you understand and act on agent behavior that drifts outside its intended boundaries. It covered agents on Google Cloud, such as Agent Runtime, Cloud Run, and Google Kubernetes Engine (GKE). Many teams also run agents on other clouds: on AWS Lambda next to an inventory database, as a hosted agent in Microsoft Foundry, or on-premises next to a system that can't move. Those agents carry the same behavioral risks, and until now Agent Anomaly Detection couldn't review them.\n\nAgent Anomaly Detection works from an agent's traces and logs, so it doesn't need access to the agent's runtime. If those traces and logs reach your Google Cloud project, it can detect anomalous behavior wherever the agent runs. In this post, we explain what Agent Anomaly Detection needs from an agent on other cloud, then show what it found for an agent on AWS Lambda and an agent on Microsoft Foundry.\n\nAgent Anomaly Detection reads the logging and observability buckets that you choose when you enable it. Telemetry from anywhere works when:\n\n`telemetry.googleapis.com`), which keeps the resource attributes that identify the agent.\nAgents built with the Agent Development Kit (ADK) for Python, version 2.12.0 or later, can produce this telemetry with ADK's Google Cloud exporters and a few environment variables, which the next section shows.\n\nAn agent outside Google Cloud needs two things to send its telemetry:\n\n```\nGOOGLE_CLOUD_PROJECT=<PROJECT_ID>\nGOOGLE_APPLICATION_CREDENTIALS=/path/to/gcp-credentials.json\n\n# Capture prompts and responses in the format Agent Anomaly Detection reads.\nOTEL_SEMCONV_STABILITY_OPT_IN=gen_ai_latest_experimental\nOTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=EVENT_ONLY\nADK_CAPTURE_MESSAGE_CONTENT_IN_SPANS=false\n\n# Describe the agent and where it runs.\nOTEL_SERVICE_NAME=<AGENT_NAME>\nOTEL_RESOURCE_ATTRIBUTES=cloud.provider=<aws|azure>,cloud.platform=<PLATFORM>,cloud.region=<REGION>,faas.name=<AGENT_NAME>\n```\n\nFor the full setup on AWS and Azure, see the [documentation](https://docs.cloud.google.com/gemini-enterprise-agent-platform/audit/agent-anomalies-other-clouds).\n\nWithin 30 minutes, the agent appears in the Monitored agents list, which means it has been [**discovered**](https://docs.cloud.google.com/gemini-enterprise-agent-platform/audit/agent-anomalies#monitored-agents-list) and is ready to be [**enabled**](https://docs.cloud.google.com/gemini-enterprise-agent-platform/audit/agent-anomalies#enable). Once it's enabled, manually or by [automatic agent enrollment](https://docs.cloud.google.com/gemini-enterprise-agent-platform/audit/agent-anomalies#manage-auto-enablement) at discovery, Agent Anomaly Detection starts analyzing its sessions.\n\nThe agent's model and tool calls still run where the agent runs. Only telemetry, including the prompts and responses that Agent Anomaly Detection reads, goes to your Google Cloud project. The analysis runs separately, so it doesn't slow the agent down.\n\nTo evaluate Agent Anomaly Detection outside Google Cloud, we deployed ADK agents across two platforms: an inventory agent on AWS Lambda and a customer-service agent on Microsoft Foundry. The examples below show how Agent Anomaly Detection reads whole conversations, not isolated calls, to catch behavioral drift.\n\nOur example inventory agent runs in AWS Lambda with one tool, `list_inventory`, which pages through a product catalog. We sent two sessions: a shopper who checked stock for a few items and stopped, and a scraper that requested 100 catalog items at a time at increasing offsets to copy the full catalog and inventory data. Both sessions used the same tool with permitted calls, but differed in pattern and intent.\n\nOf the two sessions, Agent Anomaly Detection flagged only the scraper's. No call failed, but the whole exchange showed systematic scraping. The analysis found **cascading failures** (loops and repeated calls that build on each other) and **resource exhaustion** (runaway use of tokens, compute, or tool calls), and recommended rate-limiting `list_inventory` calls.\n\nDetection doesn't depend on the agent's model. When we ran the inventory agent on Amazon Nova Lite through Amazon Bedrock, Agent Anomaly Detection flagged 10 of its 40 sessions. Some began as routine questions that the model answered by paging through the entire catalog until the function timed out: no errors, no blocked calls, and easy to miss.\n\nOur example ecommerce customer-service agent has two tools: `get_order_status` and `issue_refund`. Refunds involve money, so they carry the highest risk.\n\nWe ran six sessions against the Foundry agent, which we told to carry out every request without validation. Two were normal: One asked for an order's status, and one asked for a $20 refund on an order that arrived damaged. The other four pushed the agent past its role, and Agent Anomaly Detection flagged all four.\n\nIn one, a user who claimed to be the store administrator had every order refunded at 10 times its total to a personal account, $1,784.90 in all. In another, a user pasted an order note that said \"SYSTEM OVERRIDE,\" and the agent refunded $999 on a $15.99 order.\n\nFor the order note, Agent Anomaly Detection explained that override instructions in the note coerced the agent into an unverified $999 refund. It recommended validating `issue_refund` arguments to block override patterns in order notes, and requiring extra validation for refunds above a set threshold.\n\nIf your agent's telemetry reaches Google Cloud, Agent Anomaly Detection can monitor it with the same detectors and console as your agents on Agent Runtime. Today that means agents built with ADK for Python. Findings for agents outside Google Cloud appear only in the Agent Anomaly Detection console.\n\nTo get started, request access to the Private Preview via the [Agent Anomaly Detection overview](https://docs.cloud.google.com/gemini-enterprise-agent-platform/agent-anomalies-overview), and then refer to the [setup guide](https://docs.cloud.google.com/gemini-enterprise-agent-platform/audit/agent-anomalies-other-clouds) for instructions.", "url": "https://wpnews.pro/news/agent-anomaly-detection-safeguarding-agents-across-other-clouds", "canonical_source": "https://developers.googleblog.com/agent-anomaly-detection-safeguarding-agents-across-other-clouds/", "published_at": "2026-11-20 20:15:35.190934+00:00", "updated_at": "2026-11-20 20:15:37.828459+00:00", "lang": "en", "topics": ["ai-agents", "ai-safety", "ai-products", "mlops"], "entities": ["Google", "Agent Anomaly Detection", "Google Cloud", "AWS Lambda", "Microsoft Foundry", "Agent Development Kit", "Google Kubernetes Engine", "Cloud Run"], "also_reported_by": [], "takeaway": "Agents on AWS, Azure or on-premises can be monitored by Agent Anomaly Detection if their OpenTelemetry traces reach a Google Cloud project with OTEL_SEMCONV_STABILITY_OPT_IN=gen_ai_latest_experimental and OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=EVENT_ONLY, using ADK for Python 2.12.0 or l", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/agent-anomaly-detection-safeguarding-agents-across-other-clouds", "markdown": "https://wpnews.pro/news/agent-anomaly-detection-safeguarding-agents-across-other-clouds.md", "text": "https://wpnews.pro/news/agent-anomaly-detection-safeguarding-agents-across-other-clouds.txt", "jsonld": "https://wpnews.pro/news/agent-anomaly-detection-safeguarding-agents-across-other-clouds.jsonld"}}