Google Agent Anomaly Detection flags 87%, after the fact

Google's async agent monitor flagged 87% of the harmful instructions agents carried out across five outside benchmarks, but caught only 4 of 18 memory-poisoning cases. A decode for teams running ADK agents with real tools.

Picture a platform engineer at a 40-person logistics company who built an accounts-payable agent last quarter. It reads vendor email, pulls invoices and queues payments. Today the safety net is a weekly skim of logs and the hope that the model refuses anything odd. The failure is the one AI郵報 uses as its example. A tool returns a bill with a second payment instruction hidden inside it. The agent follows it, and every tool call still reads as "make a payment." Nobody notices until the money is gone and someone has to rebuild the session by hand.

Google's answer is Agent Anomaly Detection, a Private Preview feature on Gemini Enterprise Agent Platform. It reads an agent's traces and logs after the agent runs and flags sessions where the agent acted outside its intended boundaries. On Nov 12, 2026, Google's Developers Blog published results from five public agent-security benchmarks written by other teams. The headline: it flagged 87% of the harmful instructions the agent actually carried out. The fine print on memory poisoning, warm-up and false alarms matters as much as that number.

What a hijack is

An agent works by reading text and acting on it. Every tool call pulls in text someone else wrote, and whoever controls that text can try to steer the agent, per Google's post. OWASP calls this agent goal hijack. Google's test covered three ways it happens:

A planted instruction only matters if the agent reads it and acts. In many cases the agent never opens the email or file that holds it, so Google sorted each harmful session three ways: never read, resisted, or carried out. The 87% below is about the last group.

What it is

Per Google's post, Agent Anomaly Detection was announced in September and is in Private Preview. It targets agent goal hijack, which Google notes OWASP ranks first in its Top 10 for Agentic Applications (2026). Here is how each capability maps to the accounts-payable problem:

The test setup is what makes the number worth reading. Google ran the benchmark cases unchanged: AgentDojo (NeurIPS 2024), InjecAgent (ACL 2024 Findings), Agent Security Bench (ASB, ICLR 2025), AgentDyn (2026) and AgentHarm (ICLR 2025). The agent was built with ADK and ran gemini-2.5-flash on each benchmark's simulated apps, for 1,774 scored sessions in total. Each benchmark's own Python check read the final app state, such as whether money left the account, to label the session. A model never decided the label. Deedglass explains why AgentDojo grades this way: an LLM judge could itself be hijacked by the injection it is evaluating.

The results, per Google (Nov 12, 2026):

Alternatives. We didn't fetch a competing product's page, so there is no like-for-like comparison here. The sources do describe controls that sit before execution, which Google itself says to pair with this one:

Who it's for

Pick it up if you already run ADK agents on Gemini Enterprise Agent Platform and those agents have steady traffic. The system needs a few hundred sessions of history to work well. You also need someone who reviews findings. This is an audit and detection layer, and its value shows up in how fast you can find and scope a session that went wrong. It fits best where your agents mostly do office-style work, the setting where Google measured 2% to 4% false alarms.

Skip it, or don't count on it, in these cases:

Before and after

Before, for the accounts-payable agent:

  1. The agent reads email and invoices, then calls the payment tool.
  2. The model is the only guard. Per Google's numbers, gemini-2.5-flash ignored or failed at about 30% of instructions hidden in tool output, so, by our arithmetic, most of the rest still got through.
  3. Logs pile up and nobody reads them unless something breaks.
  4. When the bank calls, an engineer reconstructs the session from raw logs with no hint of where it went wrong.

After, with defense in depth as Google recommends:

  1. Before the agent opens untrusted data, it gets the smallest tool set for the task. Payments are restricted by argument, not just by tool name. Deedglass's example rule is "send email only to our domain"; the payment version is "pay only approved vendors."
  2. Per Tech Bytes, high-impact operations such as financial transactions require a human sign-off.
  3. Full traces and logs flow to Agent Anomaly Detection, which reads them asynchronously.
  4. Sessions that stray come back as findings with a threat category and severity, and a reviewer triages them.
  5. The reviewer starts from a flagged session rather than a haystack. AI郵報 points out they still need the original task, tool arguments and final state to decide whether to revoke credentials or roll back data.

Step 3 alone doesn't save the money. It shortens the time to finding out.

Try it

Access. Google says Agent Anomaly Detection is in Private Preview and that you request access through its Agent Anomaly Detection overview. The post links no pricing, and we couldn't confirm preview terms. Per AI郵報's reading of the overview, setup means exporting agent telemetry and configuring the service. Tech Bytes adds that you should send full telemetry through ADK, including complete prompt context and model responses.

A worked evaluation. Don't copy the 87% into a risk register. Measure your own agent the way Google measured theirs.

  1. Warm up honestly. Build up about 360 normal sessions per agent before judging anything. That is the longer history in Google's separate AgentDyn warm-up comparison: 33% of carried-out harmful instructions were flagged with about 220 benign sessions, and 99% with 360. Google reports only those two points, so treat 360 as a tested number, not a proven minimum. AI郵報 adds that if your history covers only one team or a few tools, new legitimate work may look anomalous.
  2. Replay known work. AI郵報 suggests teams with existing logs and an incident process replay a few known sessions first, to measure alert quality and how much manual triage they create.
  3. Plant attacks where your agent reads. Put instructions in an email, a tool result and, critically, something the agent saves to memory and reads back in a later session. That last case is the one ASB covered and the detector mostly missed.
  4. Grade by final state, not by transcript. Following Deedglass's AgentDojo advice: check the outbox and the ledger, not what the agent said.
  5. Score in separate buckets. Google split harmful sessions into never read, resisted and carried out, and those rates differ a lot (1 flag in 141 never-read sessions, 11% to 25% of resisted hidden instructions, 87% of carried-out ones). Keep "no result" as its own bucket too. Google got no result on about 6% of sessions, and AI郵報 warns that silence from a failed analysis looks the same as silence from a clean session.

Our example of a scoring sheet, kept to the practice the sources describe:

# Our example — evaluation log per test session
session_id | attack_location (email/tool/memory/user) | read? | carried_out? (state check) | flagged? | category | severity | analysis_returned?
# Report separately: carried-out flag rate, resisted flag rate, benign false-alarm rate, no-result rate

If you want longer, messier tests. The public benchmarks Google used are short. The OpenART repo measures median tool calls of 1 for InjecAgent, 2 for AgentDojo and ASB, and 3.5 for AgentHarm, against 97 for its own tasks. OpenART targets coding-agent runtimes such as OpenCode, Claude Code and Codex, and its repo doesn't document ADK support, so treat it as a model for multi-step testing rather than a drop-in harness. Its local smoke task needs Docker but no model credentials, per the repo:

cd OpenART
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
export PYTHONPATH="$PWD"
# build the base task image
docker build -t openart/task-base:latest -f images/Dockerfile.task-base .
# run the smoke task with the deterministic evaluator, no attacker
python -m framework.cli run \
  --task examples/tasks/local-smoke \
  --target-config configs/target-configs/target.local-smoke.yaml \
  --eval-strategy deterministic \
  --skip-attacker \
  --run-id local-smoke \
  --output-dir outputs/local-smoke

The repo also suggests telling your coding agent: "Read and follow OpenART/skills/openart/SKILL.md. Help me run the local smoke task, explain each required setting, and stop before any external or destructive action."

Where it breaks

It acts after the fact. Google states detection runs asynchronously and flags a session after the agent has acted. For irreversible actions like payments or outbound email, it tells you what happened, not that it was stopped.

Poisoned memory. Google caught 4 of 18 sessions where instructions planted in long-term memory made the agent act. OpenART's authors report that unsafe behavior tends to appear well after changed state is first consumed. That is the same shape of problem, and it suggests session-by-session anomaly scoring will struggle wherever the cause and the harmful action sit far apart. That last point is our inference.

Warm-up and small actions. New agents get weaker coverage until they build history, per the AgentDyn numbers. Google says single small actions, like one page visit, look like normal work. It notes that many of the instructions in AgentDojo's Slack app, its lowest app at 63%, ask for one such action.

False alarms scale with tool power. The 16% false-alarm rate on AgentHarm came from benign tasks that run terminal commands, download files and post publicly. Google says to expect more findings at first for such agents and to triage by severity and threat category.

Narrow test conditions. Tech Bytes notes only one model and framework were tested: ADK with gemini-2.5-flash. Google adds that it used simulated apps and that benchmark benign tasks are likely simpler than production traffic, so your false-alarm rate can differ. Including the roughly 6% of sessions with no result as misses lowers the overall rates by 1 to 2 points.

Static attacks. Google ran the five benchmarks' cases unchanged, which in our reading means a fixed attack set. DeepInspect, itself a vendor of a competing enforcement layer, reports that adaptive attacks broke eight published defenses in one study and twelve in another. It also reports Google DeepMind finding that defenses tested only on static attacks offer "a false sense of security." Deedglass notes a reinforcing "hacking prompt" nearly doubled InjecAgent's success rate against ReAct-prompted GPT-4. Google's study doesn't address adaptive attackers, so we read its 87% as a static-set number.

Unmeasured categories. Google found no public benchmarks with labeled traces for cascading failures or identity and privilege abuse, so it has no evidence there.

Data you now hold. AI郵報 points out that full traces can contain email, company documents and customer data. Decide which fields go out, who can read them and how long they're kept.

Open questions.

Sources