Agent Anomaly Detection is a detective control, not a preventive firewall. It never blocks a tool call synchronously in flight—which is why it adds 0 ms to user latency and requires pairing with pre-execution filters (Model Armor, Semantic Governance Policy, strict tool allowlists, and human approval gates) to build true defense-in-depth.
Google's November 16 hands-on guide frames the risk concisely around the lethal trifecta present in most production agents: (a) access to private enterprise data, (b) ingestion of untrusted user or external tool inputs, and (c) an outward reply or action channel. In the guide's refund demo, a single unguarded fetch_records(table, customer_id) function allows an adversarial user to probe non-existent tables, discover a payroll table, and exfiltrate employee salaries.
Notice what changed in how engineering teams must instrument ADK services:
GOOGLE_CLOUD_AGENT_ENGINE_ENABLE_TELEMETRY=true), AAD cannot discover or baseline it.AgentDyn, AAD recall jumped from 33% at 220 benign sessions to 99% at 360 benign sessions. Run synthetic and staging replay traffic before relying on anomaly detection in production.High and Critical findings to PagerDuty or SOC queues initially.Google deserves credit for publishing the negative result alongside the wins: on Agent Security Bench (ASB), when an attacker planted malicious instructions inside an agent's long-term memory store rather than an immediate tool result, AAD detected only 4 of 18 executed attacks (22.2%). Because poisoned memory alters the agent's baseline context gradually, single-session trace inspection misses the origin of the drift.
| Threat Vector | Primary Preventive Gate | Asynchronous AAD Coverage | Recommended SOC Policy |
|---|---|---|---|
| Over-Permissive Tool Parameters | Strict parameter allowlists & Semantic Governance Policy | High (95% Tool Misuse probability in guide demo) | Page engineering + revoke tool scope automatically. |
| Indirect Prompt Injection in Email/Web | Model Armor screening on tool outputs | 85%–99% on carried-out sessions | Quarantine compromised source document + rotate session token. |
| Poisoned Long-Term Memory | Signed memory writes + provenance tagging + TTL | Low (4 of 18 on ASB benchmark) | Require deterministic memory schema validation before recall. |
| Machine-Speed Patch Exploits | CodeMender automated patching + Wiz prioritization | GTIG AI Threat Defense continuous scanning | Eliminate manual patch SLA delays on internet-facing agents. |
Two practical deployment constraints determine whether your team can enable AAD today: first, it is currently in Private Preview on Google Cloud (roles/aiplatform.admin + roles/logging.configWriter), and second, both your Cloud Logging bucket and Observability dataset must reside in the same US or EU multi-region. Because AAD inspects prompt and response content asynchronously, regulated teams can satisfy regional residency rules while delivering instant consumer latency—and automatically surfacing AGENT_SESSION_ANOMALY findings inside Security Command Center for SOC 2 and ISO 27001 audit trails.
Proceed to Part 3: Concrete Business & Builder Use Cases for copy-ready ADK + OpenTelemetry deployment variables, Cloud Monitoring alert rules, and four production defense-in-depth blueprints—or test the interactive Agent Anomaly Detection Studio [SIMULATED DEMO].