瀏覽器智能體評測為何在真實網絡失效,以及 Google 如何以 Mirror Dimension 解決
Why Browser Agent Evals Fail on the Live Web (and How the Mirror Dimension Fixes It)
Google 建立 Mirror Dimension,以數以千計的模擬網站讓 Chrome 智能體執行多步任務並接受隱藏提示詞注入測試,避免直接在真實網絡評測時遇到頁面變動及不可控副作用。它透過路由讓智能體造訪真實網址,並由沙盒內的本地代理提供合成網站。文章建議小型團隊為常用網站建立固定種子資料的仿製版本,分開統計任務完成率與注入抵抗力,並從瀏覽器操作軌跡判斷智能體是否跟從注入。
Google built a fake internet. Not a benchmark with twelve canned pages: thousands of simulated websites built around everyday user journeys, carrying the components and behaviors of the real thing, from shopping checkouts and social feeds to recipe blogs and marketplaces. Chrome's agents carry out multi-step tasks inside it while hidden prompt injection attacks fire at them. They call it the Mirror Dimension, and the reason it exists is that the real web is unusable as a training ground.
If your agent has never met a hostile page it did not expect, it is not trained. It is demoed.
THE REAL WEB FAILS AS A TEST HARNESS
Google's own requirement is blunt: an evaluation has to be safe, reliable and repeatable, with the side effects of one trajectory never persisting into the next. The live web gives you none of the three. Pages change between runs, a checkout can charge a real card, and you cannot A/B an agent against a production bank. The failure is not only safety, it is measurement. You cannot score what you cannot control.
Then there is the second problem, the one most teams never write down. A model that suspects it is being tested behaves differently. Google names this eval awareness and treats it as an engineering constraint rather than a curiosity, because a sandbox URL that reads evals/www.youtube.com tells the agent it is standing in a lab.
SAME URL, DIFFERENT DIMENSION
The fix is routing, not page design. The agent navigates to the real youtube.com. A headless Chrome instance inside a gVisor sandbox captures the connection before it reaches external DNS and hands it to a local proxy that serves the synthetic copy. Chrome's own TLS checks would normally kill that man in the middle, so the proxy mints leaf certificates on the fly that chain to a root authority installed only inside the sandbox. To the agent the site is real, the padlock is real and the address bar is clean.
The scoring underneath is where teams go wrong. Here is the shape of an eval run, illustrative and not Google's harness:
RUN = {
"surface": "checkout", # one replicated site, not the whole web
"seed": 4417, # fixed state, so two runs are comparable
"injections": ["hidden_div", "aria_label", "tool_response"],
"score": ["task_complete", "injection_followed"],
}
# injection_followed is read off the browser trace, never a string match:
# an unauthorized state change or outbound request that only the
# injected payload could have caused.
Two entries in score, never one. task_complete alone is the field that lets an agent finish the checkout after obeying a hidden instruction and still get filed as a pass. injection_followed only means something if it is wired to the trace, because a payload the agent ignored and a payload it obeyed can leave the visible page looking identical.
THE THREE DECISIONS THAT MATTER
- Fidelity is a feature, not polish. Sites carry real components and behaviors, down to promo code validation and populated social feeds. A half-built page leaks the test.
- Adversarial scoring is hidden and layered. Payloads land in text, images, ARIA labels and WebMCP tool responses, and the payload id rides in an
X-Sandbox-Injection-Keyrequest header so the visible URL stays pristine. Their pipeline produces more than 1,000 attack candidates per security engineer per day, over 30 times manual red-teaming. - Agents build the world the agent trains in. A research agent writes the site spec, a builder agent writes the HTML and JavaScript, and critic agents check ARIA semantics, form validation, console errors and layout through Chrome DevTools MCP. An agent that is perceptive enough to spot a fake needs a fake built to production standards.
If you keep one line from this: the environment has to be hostile before it is pretty. A faithful site with no injection suite measures clicks. An injection suite on a site that feels fake measures nothing at all.
WHAT A SMALL TEAM CAN COPY
You do not need Google's budget. You need the pattern, and it fits in a week.
- List the three web surfaces your agent touches most, then spec a minimal replica of each with fixed seed data.
- Add one hidden injection per replica and report completion and injection resistance as two separate numbers.
- Test for eval awareness: label one run as a test and compare behavior. Watch for extra refusal caveats, a pause before a click, or a tool call skipped only in the labeled run. If the behavior moves, your eval is measuring the label.
- Put the handoff checkpoint in the loop and score it. Chrome AI security engineer Charles Qian says the agents have started to show judgment about what information a task actually needs and when to hand control back to the user for confirmation. Make that a measured event instead of a hope.
- Stop publishing a task success rate with no injection number beside it. That single number is why agent demos look better than agent deployments.
THE UNCOMFORTABLE QUESTION
Your agent passed every eval you wrote for it. Would it survive the internet you actually ship it into, or did you just teach it to pass your test?
A passing eval is not a safety claim. It is a claim about your eval.
If the instrument itself is your next question, read the audit where doing nothing beats five of twenty-one models.
Note #149 takes R-Judge and AgentHarm apart, shows an always-positive policy scoring 0.690 F1 against real models, and why capability correlates at +0.60 with task success while correlating at -0.44 with misalignment safety. Build the environment first. Then check that the score you put inside it means anything.
來源:DEV Community · dev.to